diff options
author | shennetsind <shennetsind@users.noreply.github.com> | 2013-11-06 16:30:09 -0800 |
---|---|---|
committer | shennetsind <shennetsind@users.noreply.github.com> | 2013-11-06 16:30:09 -0800 |
commit | 1c46a54fc4a77072698892a480936160dc4d0e7a (patch) | |
tree | b7b668c702e4c2b0ad745e6e465133fd25e56281 /src/map/clif.c | |
parent | 3a3d2297068809d25ca43e19fd2977f97b2728f5 (diff) | |
parent | 47401a4195c58e14f12200f1ba6aeb34ecd87df7 (diff) | |
download | hercules-1c46a54fc4a77072698892a480936160dc4d0e7a.tar.gz hercules-1c46a54fc4a77072698892a480936160dc4d0e7a.tar.bz2 hercules-1c46a54fc4a77072698892a480936160dc4d0e7a.tar.xz hercules-1c46a54fc4a77072698892a480936160dc4d0e7a.zip |
Merge pull request #212 from shennetsind/master
Account-wide Exp/Drop/Death Modifiers
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 6efc73880..c099d5a1b 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17798,6 +17798,19 @@ void clif_bank_withdraw(struct map_session_data *sd,enum e_BANKING_WITHDRAW_ACK clif->send(&p,sizeof(p), &sd->bl, SELF); } +/* TODO: official response packet (tried 0x8cb/0x97b but the display was quite screwed up.) */ +/* currently mimicing */ +void clif_show_modifiers (struct map_session_data *sd) { + + if( sd->status.mod_exp != 100 || sd->status.mod_drop != 100 || sd->status.mod_death != 100 ) { + char output[128]; + + snprintf(output,128,"Base EXP : %d%% | Base Drop: %d%% | Base Death Penalty: %d%%", + sd->status.mod_exp,sd->status.mod_drop,sd->status.mod_death); + clif->broadcast2(&sd->bl,output, strlen(output) + 1, 0xffbc90, 0x190, 12, 0, 0, SELF); + } + +} /* */ unsigned short clif_decrypt_cmd( int cmd, struct map_session_data *sd ) { @@ -18600,6 +18613,8 @@ void clif_defaults(void) { /* Bank System [Yommy/Hercules] */ clif->bank_deposit = clif_bank_deposit; clif->bank_withdraw = clif_bank_withdraw; + /* */ + clif->show_modifiers = clif_show_modifiers; /*------------------------ *- Parse Incoming Packet *------------------------*/ |