summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-07-17 02:42:49 +0300
committerAndrei Karas <akaras@inbox.ru>2019-07-24 23:54:31 +0300
commit99f1db754f40e42af9402157acc9f1d0cbbaa64e (patch)
tree110d3fbdf91c3d37a9ae69e73d68eb2e7da72739 /src/map/packets_struct.h
parentcdd5789d8fff14572df1e6d801ba9e2afa7b505e (diff)
downloadhercules-99f1db754f40e42af9402157acc9f1d0cbbaa64e.tar.gz
hercules-99f1db754f40e42af9402157acc9f1d0cbbaa64e.tar.bz2
hercules-99f1db754f40e42af9402157acc9f1d0cbbaa64e.tar.xz
hercules-99f1db754f40e42af9402157acc9f1d0cbbaa64e.zip
Convert packet ZC_HAT_EFFECT into struct and fix allowed packet versions
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index aeb57bdc4..f41008889 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -3522,6 +3522,17 @@ struct PACKET_ZC_STATUS_CHANGE_ACK {
} __attribute__((packed));
DEFINE_PACKET_HEADER(ZC_STATUS_CHANGE_ACK, 0x00bc);
+#if PACKETVER_MAIN_NUM >= 20150507 || PACKETVER_RE_NUM >= 20150429 || defined(PACKETVER_ZERO)
+struct PACKET_ZC_HAT_EFFECT {
+ int16 packetType;
+ int16 packetLength;
+ uint32 aid;
+ int8 status;
+ uint16 effects[];
+} __attribute__((packed));
+DEFINE_PACKET_HEADER(ZC_HAT_EFFECT, 0x0a3b);
+#endif
+
#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