diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-06 21:56:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-15 20:36:20 +0300 |
commit | 4635a32afe097f84b541d0d7980a5f607130d00c (patch) | |
tree | 019876666af2d629e71f5cc47cd4f6de93af4a22 /src/map/clif.c | |
parent | 9cada287c3d2f4ddfb83da8e37c725212fd9bbf9 (diff) | |
download | hercules-4635a32afe097f84b541d0d7980a5f607130d00c.tar.gz hercules-4635a32afe097f84b541d0d7980a5f607130d00c.tar.bz2 hercules-4635a32afe097f84b541d0d7980a5f607130d00c.tar.xz hercules-4635a32afe097f84b541d0d7980a5f607130d00c.zip |
Update packet ZC_ITEM_PICKUP_PARTY.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index eda4b933b..03e92340b 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17353,22 +17353,22 @@ static void clif_instance_leave(int fd) static void clif_party_show_picker(struct map_session_data *sd, struct item *item_data) { #if PACKETVER >= 20071002 - unsigned char buf[22]; struct item_data* id; + struct PACKET_ZC_ITEM_PICKUP_PARTY p; nullpo_retv(sd); nullpo_retv(item_data); id = itemdb->search(item_data->nameid); - WBUFW(buf,0) = 0x2b8; - WBUFL(buf,2) = sd->status.account_id; - WBUFW(buf,6) = item_data->nameid; - WBUFB(buf,8) = item_data->identify; - WBUFB(buf,9) = item_data->attribute; - WBUFB(buf,10) = item_data->refine; - clif->addcards((struct EQUIPSLOTINFO*)WBUFP(buf, 11), item_data); - WBUFW(buf,19) = id->equip; // equip location - WBUFB(buf,21) = itemtype(id->type); // item type - clif->send(buf, packet_len(0x2b8), &sd->bl, PARTY_SAMEMAP_WOS); + p.packetType = 0x2b8; + p.AID = sd->status.account_id; + p.itemId = item_data->nameid; + p.identified = item_data->identify; + p.damaged = item_data->attribute; + p.refine = item_data->refine; + clif->addcards(&p.slot, item_data); + p.location = id->equip; // equip location + p.itemType = itemtype(id->type); // item type + clif->send(&p, sizeof(p), &sd->bl, PARTY_SAMEMAP_WOS); #endif } |