summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-11-28 03:15:45 +0300
committerAndrei Karas <akaras@inbox.ru>2019-12-12 09:07:30 +0300
commit79f7a2274092f892ec183ed11cc16609c3a2f180 (patch)
treef637d2ca017b63b45a7c359b582c2cff09aefe49 /src/map/packets_struct.h
parent63e8f6ec65d9b2a04d03684b2e02afd3b7719ef8 (diff)
downloadhercules-79f7a2274092f892ec183ed11cc16609c3a2f180.tar.gz
hercules-79f7a2274092f892ec183ed11cc16609c3a2f180.tar.bz2
hercules-79f7a2274092f892ec183ed11cc16609c3a2f180.tar.xz
hercules-79f7a2274092f892ec183ed11cc16609c3a2f180.zip
Add new version for packet ZC_NOTIFY_EFFECT3 and convert to structure
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 a7a9e2e63..fa9a0c873 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -3729,6 +3729,25 @@ struct PACKET_CZ_REQ_MOUNTOFF {
DEFINE_PACKET_HEADER(CZ_REQ_MOUNTOFF, 0x0b35);
#endif
+// in 3 clients from same version
+#if PACKETVER >= 20191127
+struct PACKET_ZC_NOTIFY_EFFECT3 {
+ int16 packetType;
+ uint32 aid;
+ uint32 effectId;
+ uint64 num;
+} __attribute__((packed));
+DEFINE_PACKET_HEADER(ZC_NOTIFY_EFFECT3, 0x0b69);
+#elif PACKETVER_MAIN_NUM >= 20060911 || PACKETVER_AD_NUM >= 20060911 || PACKETVER_SAK_NUM >= 20060911 || defined(PACKETVER_RE) || defined(PACKETVER_ZERO)
+struct PACKET_ZC_NOTIFY_EFFECT3 {
+ int16 packetType;
+ uint32 aid;
+ uint32 effectId;
+ uint32 num;
+} __attribute__((packed));
+DEFINE_PACKET_HEADER(ZC_NOTIFY_EFFECT3, 0x0284);
+#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