From ec38bb9ec92453cbfa9ee0a237d0382a02cf35d1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 19 Jul 2018 21:06:49 +0300 Subject: Update packet ZC_WARPLIST. --- src/map/packets_struct.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/map/packets_struct.h') diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index ab48025dc..30595534f 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -412,6 +412,11 @@ enum packet_headers { #else reqNameAllType = 0x195, #endif +#if PACKETVER_MAIN_NUM >= 20170502 || PACKETVER_RE_NUM >= 20170419 || defined(PACKETVER_ZERO) + skilWarpPointType = 0xabe, +#else + skilWarpPointType = 0x11c, +#endif }; #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute @@ -2660,6 +2665,22 @@ struct PACKET_ZC_OVERWEIGHT_PERCENT { uint32 percent; } __attribute__((packed)); +struct PACKET_ZC_WARPLIST_sub { + char map[MAP_NAME_LENGTH_EXT]; +} __attribute__((packed)); + +struct PACKET_ZC_WARPLIST { + int16 packetType; +#if PACKETVER_MAIN_NUM >= 20170502 || PACKETVER_RE_NUM >= 20170419 || defined(PACKETVER_ZERO) + int16 packetLength; + uint16 skillId; + struct PACKET_ZC_WARPLIST_sub maps[]; +#else + uint16 skillId; + struct PACKET_ZC_WARPLIST_sub maps[4]; +#endif +} __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 -- cgit v1.2.3-60-g2f50