summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-24 05:57:43 +0300
committerAndrei Karas <akaras@inbox.ru>2018-12-12 21:18:06 +0300
commitc76f8ded8743966abe10a15a3a03604d76d2d5df (patch)
treeef5f4b6557c4913cfa8a03de1c1ce526185c955e /src/map/packets_struct.h
parent1f7f90156632811bcf7f0102325ba504428bc44a (diff)
downloadhercules-c76f8ded8743966abe10a15a3a03604d76d2d5df.tar.gz
hercules-c76f8ded8743966abe10a15a3a03604d76d2d5df.tar.bz2
hercules-c76f8ded8743966abe10a15a3a03604d76d2d5df.tar.xz
hercules-c76f8ded8743966abe10a15a3a03604d76d2d5df.zip
Add packet ZC_ENCHANT_EQUIPMENT
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 357627ce7..c1b93e781 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -2919,6 +2919,21 @@ DEFINE_PACKET_HEADER(ZC_ITEM_PREVIEW, 0x0ab9);
#endif // PACKETVER_MAIN_NUM >= 20181017 || PACKETVER_RE_NUM >= 20181017 || PACKETVER_ZERO_NUM >= 20181024
#endif // PACKETVER_MAIN_NUM >= 20170726 || PACKETVER_RE_NUM >= 20170621 || defined(PACKETVER_ZERO)
+#if PACKETVER_MAIN_NUM >= 20160831 || PACKETVER_RE_NUM >= 20151118 || defined(PACKETVER_ZERO)
+struct PACKET_ZC_ENCHANT_EQUIPMENT {
+ int16 packetType;
+ int16 wearState;
+ int16 cardSlot;
+#if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114
+ int32 itemId;
+#else
+ int16 itemId;
+#endif
+ int8 equipFlag;
+} __attribute__((packed));
+DEFINE_PACKET_HEADER(ZC_ENCHANT_EQUIPMENT, 0x0a3f);
+#endif // PACKETVER_MAIN_NUM >= 20160831 || PACKETVER_RE_NUM >= 20151118 || defined(PACKETVER_ZERO)
+
#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