diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-08-24 02:02:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-08-24 02:02:05 +0300 |
commit | 69165395c7c6d4d23cd8b3044a4a5bf82a4216d1 (patch) | |
tree | ccd9419a55e38e4d9fc0ea8ad3da61c011a09793 /src/map/packets_struct.h | |
parent | 538c34ac4534390112837f631b1f9898f79c0796 (diff) | |
download | hercules-69165395c7c6d4d23cd8b3044a4a5bf82a4216d1.tar.gz hercules-69165395c7c6d4d23cd8b3044a4a5bf82a4216d1.tar.bz2 hercules-69165395c7c6d4d23cd8b3044a4a5bf82a4216d1.tar.xz hercules-69165395c7c6d4d23cd8b3044a4a5bf82a4216d1.zip |
Update packet ZC_ACK_BAN_GUILD.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 1f22d5081..5aeb40be5 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -421,6 +421,13 @@ enum packet_headers { #else skilWarpPointType = 0x11c, #endif +#if PACKETVER_MAIN_NUM >= 20161019 || PACKETVER_RE_NUM >= 20160921 || defined(PACKETVER_ZERO) + guildExpulsion = 0xa82, +#elif PACKETVER >= 20100803 + guildExpulsion = 0x839, +#else + guildExpulsion = 0x15c, +#endif }; #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute @@ -2727,6 +2734,33 @@ struct PACKET_ZC_INVENTORY_MOVE_FAILED { int16 unknown; } __attribute__((packed)); +#if PACKETVER_MAIN_NUM >= 20161019 || PACKETVER_RE_NUM >= 20160921 || defined(PACKETVER_ZERO) +#define PACKET_ZC_ACK_BAN_GUILD PACKET_ZC_ACK_BAN_GUILD3 +#elif PACKETVER >= 20100803 +#define PACKET_ZC_ACK_BAN_GUILD PACKET_ZC_ACK_BAN_GUILD2 +#else +#define PACKET_ZC_ACK_BAN_GUILD PACKET_ZC_ACK_BAN_GUILD1 +#endif + +struct PACKET_ZC_ACK_BAN_GUILD1 { + int16 packetType; + char name[NAME_LENGTH]; + char reason[40]; + char account_name[NAME_LENGTH]; +} __attribute__((packed)); + +struct PACKET_ZC_ACK_BAN_GUILD2 { + int16 packetType; + char name[NAME_LENGTH]; + char reason[40]; +} __attribute__((packed)); + +struct PACKET_ZC_ACK_BAN_GUILD3 { + int16 packetType; + char reason[40]; + uint32 GID; +} __attribute__((packed)); + #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 |