diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-05-31 16:39:53 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-05-31 16:39:53 -0400 |
commit | 1a444e3861985b53ac3abf0d95d94471d5eb261f (patch) | |
tree | 3637ae743e9db2d82c9f4ed45d22edb6548ead46 /src/map/clif.cpp | |
parent | 182e82a79c0455b6e6734b1cb6d83cfcd7f28d61 (diff) | |
download | tmwa-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/clif.cpp')
-rw-r--r-- | src/map/clif.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp index 248f74a..fbca96a 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -930,6 +930,8 @@ int clif_spawnpc(dumb_ptr<map_session_data> sd) clif_send(buf, sd, SendWho::AREA_WOS); + clif_pvpstatus(sd); + if (sd->bl_m->flag.get(MapFlag::SNOW)) clif_specialeffect(sd, 162, 1); if (sd->bl_m->flag.get(MapFlag::FOG)) @@ -2048,6 +2050,19 @@ int clif_misceffect(dumb_ptr<block_list> bl, int type) return 0; } +void clif_pvpstatus(dumb_ptr<map_session_data> sd) +{ + nullpo_retv(sd); + + Packet_Fixed<0x019a> fixed_19a; + fixed_19a.block_id = sd->bl_id; + fixed_19a.rank = sd->state.pvp_rank; + fixed_19a.channel = sd->state.pvpchannel; + Buffer buf = create_fpacket<0x019a, 14>(fixed_19a); + + clif_send(buf, sd, SendWho::AREA); +} + /*========================================== * 表示オプション変更 *------------------------------------------ |