diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-12-28 20:05:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-01-14 20:18:11 +0300 |
commit | 0f3a9dfaf79b0227944f2f4052dd48be3b2588f4 (patch) | |
tree | 57c488a7786a51da3f3338af795afb3beb0ddb84 /src/map/packets_struct.h | |
parent | e36edf03ce84351b27ef5d0f95b32c0f10725831 (diff) | |
download | hercules-0f3a9dfaf79b0227944f2f4052dd48be3b2588f4.tar.gz hercules-0f3a9dfaf79b0227944f2f4052dd48be3b2588f4.tar.bz2 hercules-0f3a9dfaf79b0227944f2f4052dd48be3b2588f4.tar.xz hercules-0f3a9dfaf79b0227944f2f4052dd48be3b2588f4.zip |
Add packet CZ_NPC_BARTER_PURCHASE
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 82ae82eaf..d20b20bee 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3091,6 +3091,26 @@ struct PACKET_CZ_NPC_BARTER_CLOSE { DEFINE_PACKET_HEADER(CZ_NPC_BARTER_CLOSE, 0x0b12); #endif +#if PACKETVER_ZERO_NUM >= 20181226 +struct PACKET_CZ_NPC_BARTER_PURCHASE_sub { +#if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114 + uint32 itemId; +#else + uint16 itemId; +#endif + uint32 amount; + uint16 invIndex; + uint32 shopIndex; +} __attribute__((packed)); + +struct PACKET_CZ_NPC_BARTER_PURCHASE { + int16 packetType; + int16 packetLength; + struct PACKET_CZ_NPC_BARTER_PURCHASE_sub list[]; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(CZ_NPC_BARTER_PURCHASE, 0x0b0f); +#endif + #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 |