From 2761bb0af9ddfa8bd14cefa9b6e1b33b2940e7be Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 27 Nov 2013 14:27:41 -0200 Subject: Fixed Bug 7858 Official item drop announce support, currently hardcoded list -- we'll be following up shortly with a decent way of storing it. Special Thanks to Yommy, Beret, kyeme. http://hercules.ws/board/tracker/issue-7858-monster-rare-drop-announcement/ Signed-off-by: shennetsind --- src/map/packets_struct.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/map/packets_struct.h') diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 882c2fe24..7e7f8bd87 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -76,6 +76,7 @@ enum packet_headers { #endif script_clearType = 0x8d6, package_item_announceType = 0x7fd, + item_drop_announceType = 0x7fd, #if PACKETVER < 4 unit_walkingType = 0x7b, #elif PACKETVER < 7 @@ -696,6 +697,18 @@ struct packet_package_item_announce { unsigned short BoxItemID; } __attribute__((packed)); +/* made possible thanks to Yommy!! */ +struct packet_item_drop_announce { + short PacketType; + short PacketLength; + unsigned char type; + unsigned short ItemID; + char len; + char Name[NAME_LENGTH]; + char monsterNameLen; + char monsterName[NAME_LENGTH]; +} __attribute__((packed)); + struct packet_cart_additem_ack { short PacketType; char result; -- cgit v1.2.3-60-g2f50