diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-04-25 01:02:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-05-05 22:22:06 +0300 |
commit | 88221a48d2829d0124a8534bd3ac964a9ea9c3b7 (patch) | |
tree | 62364e4ddad342d855aa55cd6adf7f94c39deb5b /src/map/packets_struct.h | |
parent | 4eba922c4a3be24e8214608c8a6b39d64f1ed312 (diff) | |
download | hercules-88221a48d2829d0124a8534bd3ac964a9ea9c3b7.tar.gz hercules-88221a48d2829d0124a8534bd3ac964a9ea9c3b7.tar.bz2 hercules-88221a48d2829d0124a8534bd3ac964a9ea9c3b7.tar.xz hercules-88221a48d2829d0124a8534bd3ac964a9ea9c3b7.zip |
Update packet ZC_BAN_LIST
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 55d21f6b0..445e9a3e2 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3234,6 +3234,49 @@ struct PACKET_ZC_ROLE_CHANGE { } __attribute__((packed)); DEFINE_PACKET_HEADER(ZC_ROLE_CHANGE, 0x00e1); +#if PACKETVER_MAIN_NUM >= 20161019 || PACKETVER_RE_NUM >= 20160921 || defined(PACKETVER_ZERO) +struct PACKET_ZC_BAN_LIST_sub { + int char_id; + char message[40]; +} __attribute__((packed)); + +struct PACKET_ZC_BAN_LIST { + int16 packetType; + uint16 packetLen; + struct PACKET_ZC_BAN_LIST_sub chars[]; +} __attribute__((packed)); + +DEFINE_PACKET_HEADER(ZC_BAN_LIST, 0x0a87); +// version unconfirmed +#elif PACKETVER >= 20100803 +struct PACKET_ZC_BAN_LIST_sub { + char char_name[NAME_LENGTH]; + char message[40]; +} __attribute__((packed)); + +struct PACKET_ZC_BAN_LIST { + int16 packetType; + uint16 packetLen; + struct PACKET_ZC_BAN_LIST_sub chars[]; +} __attribute__((packed)); + +DEFINE_PACKET_HEADER(ZC_BAN_LIST, 0x0163); +#else +struct PACKET_ZC_BAN_LIST_sub { + char char_name[NAME_LENGTH]; + char account_name[NAME_LENGTH]; + char message[40]; +} __attribute__((packed)); + +struct PACKET_ZC_BAN_LIST { + int16 packetType; + uint16 packetLen; + struct PACKET_ZC_BAN_LIST_sub chars[]; +} __attribute__((packed)); + +DEFINE_PACKET_HEADER(ZC_BAN_LIST, 0x0163); +#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 |