diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-09-30 09:27:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-10-17 03:30:39 +0300 |
commit | e62562efbfb4f414e6b977989682da42fc487f20 (patch) | |
tree | df0cd33379fb3a1e66b6363ac1c14ba3d3909b1c /src/map/packets_struct.h | |
parent | 1bc17b805aec9dff503afca1e4b7120c5c836b75 (diff) | |
download | hercules-e62562efbfb4f414e6b977989682da42fc487f20.tar.gz hercules-e62562efbfb4f414e6b977989682da42fc487f20.tar.bz2 hercules-e62562efbfb4f414e6b977989682da42fc487f20.tar.xz hercules-e62562efbfb4f414e6b977989682da42fc487f20.zip |
Define constants for packet names ZC_INVENTORY_START and ZC_INVENTORY_END
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 9c8c93865..f64fff199 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -1183,7 +1183,8 @@ struct ZC_STORE_ITEMLIST_NORMAL { struct NORMALITEM_INFO list[MAX_ITEMLIST]; } __attribute__((packed)); -struct ZC_INVENTORY_START { +#if PACKETVER_RE_NUM >= 20180829 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002 +struct PACKET_ZC_INVENTORY_START { int16 packetType; #if PACKETVER_RE_NUM >= 20180919 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002 int16 packetLength; @@ -1197,14 +1198,19 @@ struct ZC_INVENTORY_START { char name[NAME_LENGTH]; #endif } __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_INVENTORY_START, 0x0b08); +#endif // PACKETVER_RE_NUM >= 20180829 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002 -struct ZC_INVENTORY_END { +#if PACKETVER_RE_NUM >= 20180829 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002 +struct PACKET_ZC_INVENTORY_END { int16 packetType; #if PACKETVER_RE_NUM >= 20180912 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002 uint8 invType; #endif char flag; } __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_INVENTORY_END, 0x0b0b); +#endif // PACKETVER_RE_NUM >= 20180829 || PACKETVER_ZERO_NUM >= 20180919 || PACKETVER_MAIN_NUM >= 20181002 struct ZC_STORE_ITEMLIST_EQUIP { int16 PacketType; |