summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-10-31 20:23:58 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-07 06:27:59 +0300
commit7a244c205f5f0225abe9f5dc47e4c236d82b5313 (patch)
tree8c6ef25af96c48bfeda292abbf705d9cdc567d38 /src/map/packets_struct.h
parent6bf0cc3e848426169deb9cdbec0ee08f75000266 (diff)
downloadhercules-7a244c205f5f0225abe9f5dc47e4c236d82b5313.tar.gz
hercules-7a244c205f5f0225abe9f5dc47e4c236d82b5313.tar.bz2
hercules-7a244c205f5f0225abe9f5dc47e4c236d82b5313.tar.xz
hercules-7a244c205f5f0225abe9f5dc47e4c236d82b5313.zip
Update packet ZC_AUTOSPELLLIST.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index c2363ce08..374769728 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -456,6 +456,11 @@ enum packet_headers {
#else
itemPreview = 0xab9,
#endif
+#if PACKETVER_RE_NUM >= 20181031
+ autoSpellList = 0xafb,
+#else
+ autoSpellList = 0x1cd,
+#endif
};
#if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute
@@ -2890,6 +2895,22 @@ struct PACKET_ZC_ITEM_PREVIEW {
struct ItemOptions option_data[MAX_ITEM_OPTIONS];
} __attribute__((packed));
+#if PACKETVER_RE_NUM >= 20181031
+#define PACKET_ZC_AUTOSPELLLIST PACKET_ZC_AUTOSPELLLIST2
+#else
+#define PACKET_ZC_AUTOSPELLLIST PACKET_ZC_AUTOSPELLLIST1
+#endif
+
+struct PACKET_ZC_AUTOSPELLLIST1 {
+ int16 packetType;
+ int skills[7];
+} __attribute__((packed));
+
+struct PACKET_ZC_AUTOSPELLLIST2 {
+ int16 packetType;
+ int16 packetLength;
+ int skills[];
+} __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)