summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-09-21 01:14:59 -0300
committershennetsind <ind@henn.et>2014-09-21 01:14:59 -0300
commitff787408bcc523ebd4b7919db65423f741351664 (patch)
tree8aa90b3c7b025f463837f732a94c12990eb7662e /src/map/packets_struct.h
parent14475dc879bcd2cf1f9816fb9448831a9b33d295 (diff)
downloadhercules-ff787408bcc523ebd4b7919db65423f741351664.tar.gz
hercules-ff787408bcc523ebd4b7919db65423f741351664.tar.bz2
hercules-ff787408bcc523ebd4b7919db65423f741351664.tar.xz
hercules-ff787408bcc523ebd4b7919db65423f741351664.zip
Fixed Bug 8293
Implemented official party-leader-changed-packet Special Thanks to kyeme! http://hercules.ws/board/tracker/issue-8293-change-party-leader/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index b32baf53a..9f9349b88 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -209,6 +209,7 @@ enum packet_headers {
#else
wisendType = 0x98,
#endif
+ partyleaderchangedType = 0x7fc,
};
#if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute
@@ -959,6 +960,13 @@ struct packet_wis_end {
} __attribute__((packed));
+struct packet_party_leader_changed {
+ short PacketType;
+ unsigned int prev_leader_aid;
+ unsigned int new_leader_aid;
+} __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