summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-08-24 02:19:04 +0300
committerAndrei Karas <akaras@inbox.ru>2018-08-24 02:19:04 +0300
commit8829a0c4cfeebed780b4ec31bde3bf84b1658e37 (patch)
tree62cf7acbc3fdfeb35a86bf114d82c2e228186ace /src/map/packets_struct.h
parent69165395c7c6d4d23cd8b3044a4a5bf82a4216d1 (diff)
downloadhercules-8829a0c4cfeebed780b4ec31bde3bf84b1658e37.tar.gz
hercules-8829a0c4cfeebed780b4ec31bde3bf84b1658e37.tar.bz2
hercules-8829a0c4cfeebed780b4ec31bde3bf84b1658e37.tar.xz
hercules-8829a0c4cfeebed780b4ec31bde3bf84b1658e37.zip
Update packet ZC_ACK_LEAVE_GUILD.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 5aeb40be5..852a44cb8 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -428,6 +428,11 @@ enum packet_headers {
#else
guildExpulsion = 0x15c,
#endif
+#if PACKETVER_MAIN_NUM >= 20161019 || PACKETVER_RE_NUM >= 20160921 || defined(PACKETVER_ZERO)
+ guildLeave = 0xa83,
+#else
+ guildLeave = 0x15a,
+#endif
};
#if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute
@@ -2761,6 +2766,24 @@ struct PACKET_ZC_ACK_BAN_GUILD3 {
uint32 GID;
} __attribute__((packed));
+#if PACKETVER_MAIN_NUM >= 20161019 || PACKETVER_RE_NUM >= 20160921 || defined(PACKETVER_ZERO)
+#define PACKET_ZC_ACK_LEAVE_GUILD PACKET_ZC_ACK_LEAVE_GUILD2
+#else
+#define PACKET_ZC_ACK_LEAVE_GUILD PACKET_ZC_ACK_LEAVE_GUILD1
+#endif
+
+struct PACKET_ZC_ACK_LEAVE_GUILD1 {
+ int16 packetType;
+ char name[NAME_LENGTH];
+ char reason[40];
+} __attribute__((packed));
+
+struct PACKET_ZC_ACK_LEAVE_GUILD2 {
+ int16 packetType;
+ uint32 GID;
+ char reason[40];
+} __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