diff options
author | Haru <haru@dotalux.com> | 2019-04-07 23:10:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-07 23:10:55 +0200 |
commit | ab975f47579e1522dd6da8996913ac31c2e72207 (patch) | |
tree | 3954ed57ab46f4e403d83215822d6ca4a9e24189 /src/map/packets_struct.h | |
parent | 4c571d8382418024ef39640f231ced878919e58e (diff) | |
parent | e610e222c57c1268fce72bc9578b42f655c18545 (diff) | |
download | hercules-ab975f47579e1522dd6da8996913ac31c2e72207.tar.gz hercules-ab975f47579e1522dd6da8996913ac31c2e72207.tar.bz2 hercules-ab975f47579e1522dd6da8996913ac31c2e72207.tar.xz hercules-ab975f47579e1522dd6da8996913ac31c2e72207.zip |
Merge pull request #2406 from 4144/updatepackets
Update packets and messages up to 2019-04-03
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 42b11b718..96337d32b 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3160,6 +3160,34 @@ struct PACKET_CZ_CLIENT_VERSION { DEFINE_PACKET_HEADER(CZ_CLIENT_VERSION, 0x044a); #endif +#if PACKETVER_MAIN_NUM >= 20190227 || PACKETVER_RE_NUM >= 20190220 || PACKETVER_ZERO_NUM >= 20190220 +struct PACKET_CZ_PING { + int16 packetType; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(CZ_PING, 0x0b1c); +#endif + +#if PACKETVER_MAIN_NUM >= 20190213 || PACKETVER_RE_NUM >= 20190213 || PACKETVER_ZERO_NUM >= 20190130 +struct PACKET_ZC_PING { + int16 packetType; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_PING, 0x0b1d); +#endif + +#if PACKETVER >= 20160622 +struct PACKET_CZ_COOLDOWN_RESET { + int16 packetType; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(CZ_COOLDOWN_RESET, 0x0a88); +#endif + +#if PACKETVER >= 20151104 +struct PACKET_CZ_STYLE_CLOSE { + int16 packetType; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(CZ_STYLE_CLOSE, 0x0a48); +#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 |