summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-19 21:06:49 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-28 04:41:40 +0300
commitec38bb9ec92453cbfa9ee0a237d0382a02cf35d1 (patch)
tree253268cc125de7fbdf763d35cc68e2745b0c82f0 /src/map/packets_struct.h
parentb8d48b6f16745132c9be894d7ee12ded9be30d29 (diff)
downloadhercules-ec38bb9ec92453cbfa9ee0a237d0382a02cf35d1.tar.gz
hercules-ec38bb9ec92453cbfa9ee0a237d0382a02cf35d1.tar.bz2
hercules-ec38bb9ec92453cbfa9ee0a237d0382a02cf35d1.tar.xz
hercules-ec38bb9ec92453cbfa9ee0a237d0382a02cf35d1.zip
Update packet ZC_WARPLIST.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h21
1 files changed, 21 insertions, 0 deletions
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