summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-08-30 00:09:12 +0300
committerAndrei Karas <akaras@inbox.ru>2018-09-19 22:24:50 +0300
commit3e6199fd739d811fdc15139ce4743fa4596c5473 (patch)
tree1ce2464cf2c7b62147837bd36a8bc456556f9990 /src/map/packets_struct.h
parent0830dbf7552811fcacb83691bbdb93ee6715c5dd (diff)
downloadhercules-3e6199fd739d811fdc15139ce4743fa4596c5473.tar.gz
hercules-3e6199fd739d811fdc15139ce4743fa4596c5473.tar.bz2
hercules-3e6199fd739d811fdc15139ce4743fa4596c5473.tar.xz
hercules-3e6199fd739d811fdc15139ce4743fa4596c5473.zip
Update storage packet for 2018-08-29 RE.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h44
1 files changed, 29 insertions, 15 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 852a44cb8..7a15f4274 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -218,25 +218,29 @@ enum packet_headers {
#else
inventorylistequipType = 0xa4,
#endif
-#if PACKETVER >= 20120925
- storagelistnormalType = 0x995,
+#if PACKETVER_RE_NUM >= 20180829
+ storageListNormalType = 0xb09,
+#elif PACKETVER >= 20120925
+ storageListNormalType = 0x995,
#elif PACKETVER >= 20080102
- storagelistnormalType = 0x2ea,
+ storageListNormalType = 0x2ea,
#elif PACKETVER >= 20071002
- storagelistnormalType = 0x295,
+ storageListNormalType = 0x295,
#else
- storagelistnormalType = 0xa5,
+ storageListNormalType = 0xa5,
#endif
-#if PACKETVER >= 20150226
- storagelistequipType = 0xa10,
+#if PACKETVER_RE_NUM >= 20180829
+ storageListEquipType = 0xb0a,
+#elif PACKETVER >= 20150226
+ storageListEquipType = 0xa10,
#elif PACKETVER >= 20120925
- storagelistequipType = 0x996,
+ storageListEquipType = 0x996,
#elif PACKETVER >= 20080102
- storagelistequipType = 0x2d1,
+ storageListEquipType = 0x2d1,
#elif PACKETVER >= 20071002
- storagelistequipType = 0x296,
+ storageListEquipType = 0x296,
#else
- storagelistequipType = 0xa6,
+ storageListEquipType = 0xa6,
#endif
#if PACKETVER >= 20120925
cartlistnormalType = 0x993,
@@ -1171,19 +1175,29 @@ struct packet_itemlist_equip {
struct EQUIPITEM_INFO list[MAX_ITEMLIST];
} __attribute__((packed));
-struct packet_storelist_normal {
+struct ZC_STORE_ITEMLIST_NORMAL {
int16 PacketType;
int16 PacketLength;
-#if PACKETVER >= 20120925
+#if PACKETVER >= 20120925 && PACKETVER_RE_NUM < 20180829
char name[NAME_LENGTH];
#endif
struct NORMALITEM_INFO list[MAX_ITEMLIST];
} __attribute__((packed));
-struct packet_storelist_equip {
+struct ZC_STORE_START {
+ int16 packetType;
+ char name[NAME_LENGTH];
+} __attribute__((packed));
+
+struct ZC_STORE_END {
+ int16 packetType;
+ char flag;
+} __attribute__((packed));
+
+struct ZC_STORE_ITEMLIST_EQUIP {
int16 PacketType;
int16 PacketLength;
-#if PACKETVER >= 20120925
+#if PACKETVER >= 20120925 && PACKETVER_RE_NUM < 20180829
char name[NAME_LENGTH];
#endif
struct EQUIPITEM_INFO list[MAX_ITEMLIST];