summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-27 14:27:41 -0200
committershennetsind <ind@henn.et>2013-11-27 14:27:41 -0200
commit2761bb0af9ddfa8bd14cefa9b6e1b33b2940e7be (patch)
tree35a6708b798a3baf5b7c75f06613ee5170c1d4d0 /src/map/packets_struct.h
parent2c6d8fdc747d1699af513d5fe7336a7f33dc716b (diff)
downloadhercules-2761bb0af9ddfa8bd14cefa9b6e1b33b2940e7be.tar.gz
hercules-2761bb0af9ddfa8bd14cefa9b6e1b33b2940e7be.tar.bz2
hercules-2761bb0af9ddfa8bd14cefa9b6e1b33b2940e7be.tar.xz
hercules-2761bb0af9ddfa8bd14cefa9b6e1b33b2940e7be.zip
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 <ind@henn.et>
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h13
1 files changed, 13 insertions, 0 deletions
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;