summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-06 02:07:38 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-15 20:36:17 +0300
commit6900b9087b83da2aa5a4ab62e8618499f7f4835f (patch)
tree72a4b5547b3627c8950cc27111bbe5a7f6759f79 /src/map/packets_struct.h
parentb5059175f726b31e7d231523bb86a914e22fcfdf (diff)
downloadhercules-6900b9087b83da2aa5a4ab62e8618499f7f4835f.tar.gz
hercules-6900b9087b83da2aa5a4ab62e8618499f7f4835f.tar.bz2
hercules-6900b9087b83da2aa5a4ab62e8618499f7f4835f.tar.xz
hercules-6900b9087b83da2aa5a4ab62e8618499f7f4835f.zip
Update packet PACKET_ZC_USE_ITEM_ACK.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 028cefa99..b8abe0b23 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -380,6 +380,11 @@ enum packet_headers {
#else
authError = 0x6a,
#endif
+#if PACKETVER >= 3
+ useItemAckType = 0x1c8,
+#else
+ useItemAckType = 0xa8,
+#endif
};
#if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute
@@ -1943,6 +1948,20 @@ struct PACKET_ZC_FEED_MER {
#endif
} __attribute__((packed));
+struct PACKET_ZC_USE_ITEM_ACK {
+ int16 packetType;
+ int16 index;
+#if PACKETVER_RE_NUM >= 20180704
+ uint32 itemId;
+ uint32 AID;
+#elif PACKETVER >= 3
+ uint16 itemId;
+ uint32 AID;
+#endif
+ int16 amount;
+ uint8 result;
+} __attribute__((packed));
+
#if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute
#pragma pack(pop)
#endif // not NetBSD < 6 / Solaris