summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorEmistry Haoyan <Equinox1991@gmail.com>2017-03-14 00:15:49 +0800
committerEmistry Haoyan <Equinox1991@gmail.com>2017-03-14 00:15:49 +0800
commit880ea659c9ec5241579281c8f9bff256d3d42eac (patch)
treef95e240db0325d101afdb38257d1ea884294b376 /src/map/battle.c
parent7b4d4fb92603ef1e622b52e777cd5ac1b7f97d55 (diff)
downloadhercules-880ea659c9ec5241579281c8f9bff256d3d42eac.tar.gz
hercules-880ea659c9ec5241579281c8f9bff256d3d42eac.tar.bz2
hercules-880ea659c9ec5241579281c8f9bff256d3d42eac.tar.xz
hercules-880ea659c9ec5241579281c8f9bff256d3d42eac.zip
Fixed MVP exp message issue for clients 2013-12-23cRagexe and newer
- Fixed MVP exp message issue clients 2013-12-23cRagexe and newer. - Gravity remove packet MVP exp message - Credit to https://github.com/rathena/rathena/commit/85749e84b91087960e868e30a7a052b0c0cdce5b
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 64fda033f..77bb99730 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -7321,6 +7321,7 @@ static const struct battle_data {
{ "player_warp_keep_direction", &battle_config.player_warp_keep_direction, 0, 0, 1, },
{ "atcommand_levelup_events", &battle_config.atcommand_levelup_events, 0, 0, 1, },
{ "max_summoner_parameter", &battle_config.max_summoner_parameter, 120, 10, 10000, },
+ { "mvp_exp_reward_message", &battle_config.mvp_exp_reward_message, 0, 0, 1, },
};
#ifndef STATS_OPT_OUT
/**
@@ -7599,6 +7600,13 @@ void battle_adjust_conf(void) {
}
#endif
+#if PACKETVER < 20131223
+ if (battle_config.mvp_exp_reward_message) {
+ ShowWarning("conf/map/battle/client.conf MVP EXP reward message is enabled but it requires PACKETVER 2013-12-23 or newer, disabling...\n");
+ battle_config.mvp_exp_reward_message = 0;
+ }
+#endif
+
#ifndef CELL_NOSTACK
if (battle_config.custom_cell_stack_limit != 1)
ShowWarning("Battle setting 'custom_cell_stack_limit' takes no effect as this server was compiled without Cell Stack Limit support.\n");