From 6900b9087b83da2aa5a4ab62e8618499f7f4835f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 6 Jul 2018 02:07:38 +0300 Subject: Update packet PACKET_ZC_USE_ITEM_ACK. --- src/map/packets_struct.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/map/packets_struct.h') 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 -- cgit v1.2.3-70-g09d2