summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorDastgir <dastgirp@gmail.com>2018-06-03 17:14:54 +0530
committerAsheraf <acheraf1998@gmail.com>2018-07-24 21:41:28 +0100
commit7f5b041efd88bae052c98e1bd1c5e28676c73272 (patch)
treed57e33db4aa0022958f0d10a452fe3d3504717f1 /src/map/packets_struct.h
parent19aa33a5f61f0996d76d19db7dbe9d81f5daa090 (diff)
downloadhercules-7f5b041efd88bae052c98e1bd1c5e28676c73272.tar.gz
hercules-7f5b041efd88bae052c98e1bd1c5e28676c73272.tar.bz2
hercules-7f5b041efd88bae052c98e1bd1c5e28676c73272.tar.xz
hercules-7f5b041efd88bae052c98e1bd1c5e28676c73272.zip
Implemented Title System.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index ef78f76aa..6c08d634a 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -406,6 +406,12 @@ enum packet_headers {
#else
hominfoType = 0x22e,
#endif
+ reqName = 0x95,
+#if PACKETVER >= 20150503 // Confirm this?
+ reqNameAllType = 0xA30,
+#else
+ reqNameAllType = 0x195,
+#endif
};
#if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute
@@ -2626,6 +2632,26 @@ struct packet_achievement_reward_ack {
uint32 ach_id;
} __attribute__((packed));
+// Name Packet ZC_ACK_REQNAME
+struct packet_reqname_ack {
+ uint16 packet_id;
+ int32 gid;
+ char name[NAME_LENGTH];
+} __attribute__((packed));
+
+// ZC_ACK_REQNAMEALL / ZC_ACK_REQNAMEALL2
+struct packet_reqnameall_ack {
+ uint16 packet_id;
+ int32 gid;
+ char name[NAME_LENGTH];
+ char party_name[NAME_LENGTH];
+ char guild_name[NAME_LENGTH];
+ char position_name[NAME_LENGTH];
+#if PACKETVER >= 20150503 // Confirm this?
+ int32 title_id; // Achievement Title
+#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