summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-07-04 05:52:56 +0300
committerAndrei Karas <akaras@inbox.ru>2019-07-24 20:34:46 +0300
commitc42b4140c6f336ef6d4aa7d59031eb339bedbf14 (patch)
treeccc570f8f9d96c2a0244011590cca4850d18c5be /src/map/packets_struct.h
parent29b9e526fc961fad2248f6452e0b5af41bdce1ed (diff)
downloadhercules-c42b4140c6f336ef6d4aa7d59031eb339bedbf14.tar.gz
hercules-c42b4140c6f336ef6d4aa7d59031eb339bedbf14.tar.bz2
hercules-c42b4140c6f336ef6d4aa7d59031eb339bedbf14.tar.xz
hercules-c42b4140c6f336ef6d4aa7d59031eb339bedbf14.zip
Update ZC_ACK_RANKING for new clients
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 8415be8ca..5566b5581 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -3480,12 +3480,26 @@ struct PACKET_ZC_REFINE_STATUS {
DEFINE_PACKET_HEADER(ZC_REFINE_STATUS, 0x0ada);
#endif
+#if PACKETVER_RE_NUM >= 20190703
+struct PACKET_ZC_ACK_RANKING_sub {
+ char name[NAME_LENGTH];
+ uint32 points;
+} __attribute__((packed));
+
+struct PACKET_ZC_ACK_RANKING {
+ int16 packetType;
+ int16 rankType;
+ uint32 chars[10];
+ uint32 points[10];
+ uint32 myPoints;
+} __attribute__((packed));
+DEFINE_PACKET_HEADER(ZC_ACK_RANKING, 0x0af6);
+#elif PACKETVER_MAIN_NUM >= 20130605 || PACKETVER_RE_NUM >= 20130529 || defined(PACKETVER_ZERO)
struct PACKET_ZC_ACK_RANKING_sub {
char name[NAME_LENGTH];
uint32 points;
} __attribute__((packed));
-#if PACKETVER_MAIN_NUM >= 20130605 || PACKETVER_RE_NUM >= 20130529 || defined(PACKETVER_ZERO)
struct PACKET_ZC_ACK_RANKING {
int16 packetType;
int16 rankType;
@@ -3493,6 +3507,11 @@ struct PACKET_ZC_ACK_RANKING {
uint32 myPoints;
} __attribute__((packed));
DEFINE_PACKET_HEADER(ZC_ACK_RANKING, 0x097d);
+#else
+struct PACKET_ZC_ACK_RANKING_sub {
+ char name[NAME_LENGTH];
+ uint32 points;
+} __attribute__((packed));
#endif
#if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute