diff options
author | Haru <haru@dotalux.com> | 2019-07-27 22:11:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-27 22:11:43 +0200 |
commit | 31a9c8de6b3e400763993b25581dbac4f2ca8a5e (patch) | |
tree | 8eef5427f2040ee84fd05de7aaeb645b18c81105 /src/map/packets_struct.h | |
parent | a5eb6ec995612c878a3b6cb522520ffae8b13a3b (diff) | |
parent | 92e35037e107ea89d245df3dfe60aa687c5d1f83 (diff) | |
download | hercules-31a9c8de6b3e400763993b25581dbac4f2ca8a5e.tar.gz hercules-31a9c8de6b3e400763993b25581dbac4f2ca8a5e.tar.bz2 hercules-31a9c8de6b3e400763993b25581dbac4f2ca8a5e.tar.xz hercules-31a9c8de6b3e400763993b25581dbac4f2ca8a5e.zip |
Merge pull request #2498 from 4144/updatepackets
Update packets up to 2019-07-24
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 9022dd66d..59f148c94 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3480,6 +3480,58 @@ struct PACKET_ZC_REFINE_STATUS { DEFINE_PACKET_HEADER(ZC_REFINE_STATUS, 0x0ada); #endif +#if PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190724 +struct PACKET_ZC_ACK_RANKING_sub { + char name[NAME_LENGTH]; + uint32 points; +} __attribute__((packed)); + +struct PACKET_ZC_ACK_RANKING { + int16 packetType; + int16 rankType; + uint32 chars[10]; + uint32 points[10]; + uint32 myPoints; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_ACK_RANKING, 0x0af6); +#elif PACKETVER_MAIN_NUM >= 20130605 || PACKETVER_RE_NUM >= 20130529 || defined(PACKETVER_ZERO) +struct PACKET_ZC_ACK_RANKING_sub { + char name[NAME_LENGTH]; + uint32 points; +} __attribute__((packed)); + +struct PACKET_ZC_ACK_RANKING { + int16 packetType; + int16 rankType; + struct PACKET_ZC_ACK_RANKING_sub ranks[10]; + uint32 myPoints; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_ACK_RANKING, 0x097d); +#else +struct PACKET_ZC_ACK_RANKING_sub { + char name[NAME_LENGTH]; + uint32 points; +} __attribute__((packed)); +#endif + +struct PACKET_ZC_STATUS_CHANGE_ACK { + int16 packetType; + uint16 sp; + uint8 ok; + uint8 value; +} __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) |