summaryrefslogtreecommitdiff
path: root/src/map/pc.cpp
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-05-31 16:39:53 -0400
committermekolat <mekolat@users.noreply.github.com>2015-05-31 16:39:53 -0400
commit1a444e3861985b53ac3abf0d95d94471d5eb261f (patch)
tree3637ae743e9db2d82c9f4ed45d22edb6548ead46 /src/map/pc.cpp
parent182e82a79c0455b6e6734b1cb6d83cfcd7f28d61 (diff)
downloadtmwa-1a444e3861985b53ac3abf0d95d94471d5eb261f.tar.gz
tmwa-1a444e3861985b53ac3abf0d95d94471d5eb261f.tar.bz2
tmwa-1a444e3861985b53ac3abf0d95d94471d5eb261f.tar.xz
tmwa-1a444e3861985b53ac3abf0d95d94471d5eb261f.zip
send pvp channel and rank to client
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r--src/map/pc.cpp5
1 files changed, 5 insertions, 0 deletions
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<block_list> src, dumb_ptr<map_session_data> sd,
};
npc_event_doall_l(stringish<ScriptLabel>("OnPCKilledEvent"_s), sd->bl_id, arg);
npc_event_doall_l(stringish<ScriptLabel>("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<ScriptLabel>("OnPCDieEvent"_s), sd->bl_id, nullptr);