summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-11 21:54:10 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-15 20:36:27 +0300
commit6c0436f0c5710d025ed5c2796a24fd7bcea2f5e4 (patch)
treef07fcf0c81d08bf2dbf51b1541ba3247bc3cb9c3 /src/map/packets_struct.h
parentaee584e0444ab514ced7787451f281777437912a (diff)
downloadhercules-6c0436f0c5710d025ed5c2796a24fd7bcea2f5e4.tar.gz
hercules-6c0436f0c5710d025ed5c2796a24fd7bcea2f5e4.tar.bz2
hercules-6c0436f0c5710d025ed5c2796a24fd7bcea2f5e4.tar.xz
hercules-6c0436f0c5710d025ed5c2796a24fd7bcea2f5e4.zip
Update packet ZC_SEARCH_STORE_INFO_ACK.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 210e1f6d9..faffe0238 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -2546,6 +2546,34 @@ struct PACKET_CZ_SEARCH_STORE_INFO {
*/
} __attribute__((packed));
+struct PACKET_ZC_SEARCH_STORE_INFO_ACK_sub {
+ uint32 storeId;
+ uint32 AID;
+ char shopName[MESSAGE_SIZE];
+#if PACKETVER_RE_NUM >= 20180704
+ uint32 itemId;
+#else
+ uint16 itemId;
+#endif
+ uint8 itemType;
+ uint32 price;
+ uint16 amount;
+ uint8 refine;
+ struct EQUIPSLOTINFO slot;
+#if PACKETVER >= 20150226
+ struct ItemOptions option_data[MAX_ITEM_OPTIONS];
+#endif
+} __attribute__((packed));
+
+struct PACKET_ZC_SEARCH_STORE_INFO_ACK {
+ int16 packetType;
+ int16 packetLength;
+ uint8 firstPage;
+ uint8 nextPage;
+ uint8 usesCount;
+ struct PACKET_ZC_SEARCH_STORE_INFO_ACK_sub items[];
+} __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