diff options
author | Susu <bruant.bastien@gmail.com> | 2013-06-26 12:07:31 +0200 |
---|---|---|
committer | Susu <bruant.bastien@gmail.com> | 2013-06-26 12:07:31 +0200 |
commit | 56e37cb8d74da7c12814df50a1d28f59a9b8dc36 (patch) | |
tree | c280a8aa3be9bdd329b5de235d24b66667c71393 /src/map/clif.c | |
parent | 71627e92fbe36c23993456486a308acd0428fd3d (diff) | |
parent | 1b035a978d52bfc6c17c63bb7afd9210abd4983c (diff) | |
download | hercules-56e37cb8d74da7c12814df50a1d28f59a9b8dc36.tar.gz hercules-56e37cb8d74da7c12814df50a1d28f59a9b8dc36.tar.bz2 hercules-56e37cb8d74da7c12814df50a1d28f59a9b8dc36.tar.xz hercules-56e37cb8d74da7c12814df50a1d28f59a9b8dc36.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index f98df7ec3..06363c8a2 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17445,18 +17445,20 @@ void clif_scriptclear(struct map_session_data *sd, int npcid) { clif->send(&p,sizeof(p), &sd->bl, SELF); } - +/* Made Possible Thanks to Yommy! */ void clif_package_item_announce(struct map_session_data *sd, unsigned short nameid, unsigned short containerid) { struct packet_package_item_announce p; p.PacketType = package_item_announceType; - p.PacketLength = 10+NAME_LENGTH; + p.PacketLength = 11+NAME_LENGTH; p.type = 0x0; - p.ItemID = containerid; + p.ItemID = nameid; p.len = NAME_LENGTH; safestrncpy(p.Name, sd->status.name, sizeof(p.Name)); - p.BoxItemID = nameid; - clif->send(&p,p.PacketLength, &sd->bl, ALL_CLIENT); + p.unknown = 0x2; // some strange byte, IDA shows.. BYTE3(BoxItemIDLength) = 2; + p.BoxItemID = containerid; + + clif->send(&p,sizeof(p), &sd->bl, ALL_CLIENT); } /* */ unsigned short clif_decrypt_cmd( int cmd, struct map_session_data *sd ) { |