summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-05 21:51:38 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-15 20:36:15 +0300
commitb8b65a031b79ff9ec1d5b6ecd138fc47613c0b65 (patch)
treecd6db9e9b95a4324c32ff9fc66f2e39136383b7b /src/map/packets_struct.h
parent45f0fd6ba65abebc1c553918bb5157458843fbfa (diff)
downloadhercules-b8b65a031b79ff9ec1d5b6ecd138fc47613c0b65.tar.gz
hercules-b8b65a031b79ff9ec1d5b6ecd138fc47613c0b65.tar.bz2
hercules-b8b65a031b79ff9ec1d5b6ecd138fc47613c0b65.tar.xz
hercules-b8b65a031b79ff9ec1d5b6ecd138fc47613c0b65.zip
Update packet ZC_ADD_ITEM_TO_CART.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 900c9d5bb..1a30ee7e2 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -1883,6 +1883,25 @@ struct PACKET_ZC_ACK_TOUSESKILL {
uint8 cause;
} __attribute__((packed));
+struct PACKET_ZC_ADD_ITEM_TO_CART {
+ int16 packetType;
+ int16 index;
+ int32 amount;
+#if PACKETVER_RE_NUM >= 20180704
+ uint32 itemId;
+#else
+ uint16 itemId;
+#endif
+#if PACKETVER >= 5
+ uint8 itemType;
+#endif
+ uint8 identified;
+ uint8 damaged;
+ uint8 refine;
+ struct EQUIPSLOTINFO slot;
+ struct ItemOptions option_data[MAX_ITEM_OPTIONS];
+} __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