summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2019-05-26 07:43:35 +0100
committerHaru <haru@dotalux.com>2020-02-09 20:52:57 +0100
commit7880742956210d463ba364b88dc7ddc5ca51355c (patch)
tree63c72157378bf56b3ab6782b9ee39f5476948825 /src/map/packets_struct.h
parentc76c63d2dddb8c7ec4461dd660b7bb0210f4db96 (diff)
downloadhercules-7880742956210d463ba364b88dc7ddc5ca51355c.tar.gz
hercules-7880742956210d463ba364b88dc7ddc5ca51355c.tar.bz2
hercules-7880742956210d463ba364b88dc7ddc5ca51355c.tar.xz
hercules-7880742956210d463ba364b88dc7ddc5ca51355c.zip
Update PACKET_ZC_STATE_CHANGE to use struct format
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 c2c99629a..31b28e831 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -3851,6 +3851,27 @@ struct PACKET_CZ_NPC_EXPANDED_BARTER_PURCHASE {
DEFINE_PACKET_HEADER(CZ_NPC_EXPANDED_BARTER_PURCHASE, 0x0b57);
#endif
+#if PACKETVER >= 7
+struct PACKET_ZC_STATE_CHANGE {
+ int16 packetType;
+ uint32 AID;
+ int16 bodyState;
+ int16 healthState;
+ int32 effectState;
+ int8 isPKModeON;
+} __attribute__((packed));
+DEFINE_PACKET_HEADER(ZC_STATE_CHANGE, 0x0229);
+#else
+struct PACKET_ZC_STATE_CHANGE {
+ int16 PacketType;
+ uint32 AID;
+ int16 bodyState;
+ int16 healthState;
+ int16 effectState;
+ int8 isPKModeON;
+} __attribute__((packed));
+DEFINE_PACKET_HEADER(ZC_STATE_CHANGE, 0x0119);
+#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)