diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-06 23:09:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-15 20:36:21 +0300 |
commit | 0a7e3dee7e935254ae5bbc9ac4520f8b56dafb90 (patch) | |
tree | 5e7f09dc1e42b2be04d7b250af460f408c5ead2c /src/map/packets_struct.h | |
parent | 4635a32afe097f84b541d0d7980a5f607130d00c (diff) | |
download | hercules-0a7e3dee7e935254ae5bbc9ac4520f8b56dafb90.tar.gz hercules-0a7e3dee7e935254ae5bbc9ac4520f8b56dafb90.tar.bz2 hercules-0a7e3dee7e935254ae5bbc9ac4520f8b56dafb90.tar.xz hercules-0a7e3dee7e935254ae5bbc9ac4520f8b56dafb90.zip |
Update packet ZC_UPDATE_ITEM_FROM_BUYING_STORE.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index f3f4d65ef..2699f9108 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -390,6 +390,11 @@ enum packet_headers { #else sendLookType = 0xc3, #endif +#if PACKETVER >= 20141016 + buyingStoreUpdateItemType = 0x9e6, +#else + buyingStoreUpdateItemType = 0x81b, +#endif }; #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute @@ -2047,6 +2052,24 @@ struct PACKET_ZC_ITEM_PICKUP_PARTY { uint8 itemType; } __attribute__((packed)); +struct PACKET_ZC_UPDATE_ITEM_FROM_BUYING_STORE { + int16 packetType; +#if PACKETVER_RE_NUM >= 20180704 + uint32 itemId; +#else + uint16 itemId; +#endif + uint16 amount; +#if PACKETVER >= 20141016 + uint32 zeny; + uint32 zenyLimit; + uint32 charId; + uint32 updateTime; +#else + uint32 zenyLimit; +#endif +} __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 |