From 1a444e3861985b53ac3abf0d95d94471d5eb261f Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 31 May 2015 16:39:53 -0400 Subject: send pvp channel and rank to client --- src/map/pc.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map/pc.cpp') diff --git a/src/map/pc.cpp b/src/map/pc.cpp index d2b2f44..ebe8bca 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -3313,6 +3313,11 @@ int pc_damage(dumb_ptr src, dumb_ptr sd, }; npc_event_doall_l(stringish("OnPCKilledEvent"_s), sd->bl_id, arg); npc_event_doall_l(stringish("OnPCKillEvent"_s), src->bl_id, arg); + + sd->state.pvp_rank = 0; + src->is_player()->state.pvp_rank++; + clif_pvpstatus(sd); + clif_pvpstatus(src->is_player()); } npc_event_doall_l(stringish("OnPCDieEvent"_s), sd->bl_id, nullptr); -- cgit v1.2.3-60-g2f50