diff options
-rw-r--r-- | conf/map/battle/exp.conf | 1 | ||||
-rw-r--r-- | npc/commands/rate-management.txt | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/conf/map/battle/exp.conf b/conf/map/battle/exp.conf index 6caa749e2..1aae6c22d 100644 --- a/conf/map/battle/exp.conf +++ b/conf/map/battle/exp.conf @@ -37,6 +37,7 @@ base_exp_rate: 100 // Rate at which job exp. is given. (Note 2) +// Modifying this value is without effect, as it is override during script runtime. job_exp_rate: 100 // Turn this on to allow a player to level up more than once from a kill. (Note 1) diff --git a/npc/commands/rate-management.txt b/npc/commands/rate-management.txt index 17a7f4cf3..f04597ca9 100644 --- a/npc/commands/rate-management.txt +++ b/npc/commands/rate-management.txt @@ -8,6 +8,7 @@ .max_hours = 0; .current_rate = .original_exp_rate; setbattleflag("base_exp_rate", .original_exp_rate); + setbattleflag("job_exp_rate", .original_exp_rate); charcommand("@reloadmobdb"); // this is on purpose (callable without RID) SeasonReload(1); channelmes("#world", "The EXP Rate Bonus is now over."); @@ -35,6 +36,7 @@ OnCall: .max_hours = .@hours; .current_rate = .@new_rate; setbattleflag("base_exp_rate", .@new_rate); + setbattleflag("job_exp_rate", .@new_rate); // Should GM event do this? //setbattleflag("quest_exp_rate", .@new_rate); charcommand("@reloadmobdb"); //charcommand("@reloadquestdb"); @@ -86,6 +88,7 @@ OnPlayerCall: .max_hours = $@EXP_EVENT_TIME; .current_rate = $@EXP_EVENT; setbattleflag("base_exp_rate", $@EXP_EVENT); + setbattleflag("job_exp_rate", $@EXP_EVENT); charcommand("@reloadmobdb"); SeasonReload(1); initnpctimer; // start counting @@ -131,6 +134,7 @@ OnInit: OnReload: .@new_rate = .current_rate; setbattleflag("base_exp_rate", .@new_rate); + setbattleflag("job_exp_rate", .@new_rate); //charcommand("@reloadmobdb"); //SeasonReload(1); // TODO FIXME: We are casting this twice. end; |