diff options
author | Haru <haru@dotalux.com> | 2019-09-23 02:25:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-23 02:25:22 +0200 |
commit | 1132e2e89b4f193cc6edd9ed2856995f3fb8fdd2 (patch) | |
tree | d19c8deee09fa6d3e1f50a601f3a0d17767cde17 /src/map/packets_struct.h | |
parent | 418b26dddca1d6ad9261adee56f96cf7c2c2de9b (diff) | |
parent | de6b3e72de09b3ca0ad34cd95e1fa7ebc572b2c1 (diff) | |
download | hercules-1132e2e89b4f193cc6edd9ed2856995f3fb8fdd2.tar.gz hercules-1132e2e89b4f193cc6edd9ed2856995f3fb8fdd2.tar.bz2 hercules-1132e2e89b4f193cc6edd9ed2856995f3fb8fdd2.tar.xz hercules-1132e2e89b4f193cc6edd9ed2856995f3fb8fdd2.zip |
Merge pull request #2336 from Asheraf/lapineddukddak
Implementation of LapineDdukDdak System
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 24bb718da..9c8c93865 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3669,6 +3669,45 @@ struct PACKET_CZ_CASTLE_INFO_REQUEST { DEFINE_PACKET_HEADER(CZ_CASTLE_INFO_REQUEST, 0x0b2c); #endif +#if PACKETVER_MAIN_NUM >= 20160601 || PACKETVER_RE_NUM >= 20160525 || defined(PACKETVER_ZERO) +struct PACKET_ZC_LAPINEDDUKDDAK_OPEN { + int16 packetType; +#if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114 + int32 itemId; +#else + int16 itemId; +#endif +} __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_LAPINEDDUKDDAK_OPEN, 0x0a4e); +#endif // PACKETVER_MAIN_NUM >= 20160601 || PACKETVER_RE_NUM >= 20160525 || defined(PACKETVER_ZERO) + +#if PACKETVER >= 20160302 +struct PACKET_CZ_LAPINEDDUKDDAK_ACK_sub { + int16 index; + int16 count; +} __attribute__((packed)); + +struct PACKET_CZ_LAPINEDDUKDDAK_ACK { + int16 packetType; + int16 packetLength; +#if PACKETVER_MAIN_NUM >= 20181121 || PACKETVER_RE_NUM >= 20180704 || PACKETVER_ZERO_NUM >= 20181114 + int32 itemId; +#else + int16 itemId; +#endif + struct PACKET_CZ_LAPINEDDUKDDAK_ACK_sub items[]; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(CZ_LAPINEDDUKDDAK_ACK, 0x0a4f); +#endif // PACKETVER >= 20160302 + +#if PACKETVER_MAIN_NUM >= 20160601 || PACKETVER_RE_NUM >= 20160525 || defined(PACKETVER_ZERO) +struct PACKET_ZC_LAPINEDDUKDDAK_RESULT { + int16 packetType; + int16 result; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_LAPINEDDUKDDAK_RESULT, 0x0a50); +#endif // PACKETVER_MAIN_NUM >= 20160601 || PACKETVER_RE_NUM >= 20160525 || defined(PACKETVER_ZERO) + #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 |