summaryrefslogtreecommitdiff
path: root/src/map/clif.c
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/clif.c
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/clif.c')
-rw-r--r--src/map/clif.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index b8051697e..6838a8021 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -12234,7 +12234,7 @@ void clif_parse_PartyMessage(int fd, struct map_session_data* sd)
void clif_parse_PartyChangeLeader(int fd, struct map_session_data* sd) {
party->changeleader(sd, map->id2sd(RFIFOL(fd,2)));
}
-
+
/// Party Booking in KRO [Spiria]
///
@@ -18254,6 +18254,18 @@ void clif_parse_NPCMarketPurchase(int fd, struct map_session_data *sd) {
clif->npc_market_purchase_ack(sd,p,npc->market_buylist(sd,(p->PacketLength - 4) / sizeof(p->list[0]),p));
#endif
}
+
+void clif_PartyLeaderChanged(struct map_session_data *sd, int prev_leader_aid, int new_leader_aid) {
+ struct packet_party_leader_changed p;
+
+ p.PacketType = partyleaderchangedType;
+
+ p.prev_leader_aid = prev_leader_aid;
+ p.new_leader_aid = new_leader_aid;
+
+ clif->send(&p,sizeof(p),&sd->bl,PARTY);
+}
+
/* */
unsigned short clif_decrypt_cmd( int cmd, struct map_session_data *sd ) {
if( sd ) {
@@ -18884,6 +18896,7 @@ void clif_defaults(void) {
clif->party_xy_remove = clif_party_xy_remove;
clif->party_show_picker = clif_party_show_picker;
clif->partyinvitationstate = clif_partyinvitationstate;
+ clif->PartyLeaderChanged = clif_PartyLeaderChanged;
/* guild-specific */
clif->guild_created = clif_guild_created;
clif->guild_belonginfo = clif_guild_belonginfo;