diff options
author | Haru <haru@dotalux.com> | 2019-09-22 21:06:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-22 21:06:08 +0200 |
commit | d3d7e84cde670e6ac2ea0fbf1b93b35ff83b5e5f (patch) | |
tree | 5461c6d855ed41d870067351c50223bccf82e5ec /src/map/packets_struct.h | |
parent | 76896e85057760d7f412293b912dce77d9016415 (diff) | |
parent | 3cbec0a83b20c88ceb7c68fea532b79260c583a8 (diff) | |
download | hercules-d3d7e84cde670e6ac2ea0fbf1b93b35ff83b5e5f.tar.gz hercules-d3d7e84cde670e6ac2ea0fbf1b93b35ff83b5e5f.tar.bz2 hercules-d3d7e84cde670e6ac2ea0fbf1b93b35ff83b5e5f.tar.xz hercules-d3d7e84cde670e6ac2ea0fbf1b93b35ff83b5e5f.zip |
Merge pull request #2519 from Asheraf/guildcastlesupdate
Implementation of new guild ui client features
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 93b4abcca..24bb718da 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3626,6 +3626,49 @@ struct PACKET_ZC_TALKBOX_CHATCONTENTS { } __attribute__((packed)); DEFINE_PACKET_HEADER(ZC_TALKBOX_CHATCONTENTS, 0x0191); +#if PACKETVER_MAIN_NUM >= 20190731 || PACKETVER_RE_NUM >= 20190717 || PACKETVER_ZERO_NUM >= 20190814 +struct PACKET_ZC_GUILD_CASTLE_LIST { + int16 packetType; + int16 packetLength; + int8 castle_list[]; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_GUILD_CASTLE_LIST, 0x0b27); +#endif + +#if PACKETVER_MAIN_NUM >= 20190522 || PACKETVER_RE_NUM >= 20190522 || PACKETVER_ZERO_NUM >= 20190515 +struct PACKET_CZ_CASTLE_TELEPORT_REQUEST { + int16 packetType; + int8 castle_id; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(CZ_CASTLE_TELEPORT_REQUEST, 0x0b28); +#endif + +#if PACKETVER_MAIN_NUM >= 20190731 || PACKETVER_RE_NUM >= 20190717 || PACKETVER_ZERO_NUM >= 20190814 +struct PACKET_ZC_CASTLE_TELEPORT_RESPONSE { + int16 packetType; + int16 result; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_CASTLE_TELEPORT_RESPONSE, 0x0b2e); +#endif + +#if PACKETVER_MAIN_NUM >= 20190731 || PACKETVER_RE_NUM >= 20190717 || PACKETVER_ZERO_NUM >= 20190814 +struct PACKET_ZC_CASTLE_INFO { + int16 packetType; + int8 castle_id; + int32 economy; + int32 defense; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_CASTLE_INFO, 0x0b2d); +#endif + +#if PACKETVER_MAIN_NUM >= 20190522 || PACKETVER_RE_NUM >= 20190522 || PACKETVER_ZERO_NUM >= 20190515 +struct PACKET_CZ_CASTLE_INFO_REQUEST { + int16 packetType; + int8 castle_id; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(CZ_CASTLE_INFO_REQUEST, 0x0b2c); +#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 |