diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-07-16 17:25:06 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-07-16 17:25:06 -0300 |
commit | 16bd8bbb9905014f470e4d3704f649b766008ae5 (patch) | |
tree | b5c18d5aa0fb7d3e97f53d2f0ba033c734c34b0c | |
parent | ca5260325eb853f40dacec8061917e9b20935364 (diff) | |
download | serverdata-16bd8bbb9905014f470e4d3704f649b766008ae5.tar.gz serverdata-16bd8bbb9905014f470e4d3704f649b766008ae5.tar.bz2 serverdata-16bd8bbb9905014f470e4d3704f649b766008ae5.tar.xz serverdata-16bd8bbb9905014f470e4d3704f649b766008ae5.zip |
@exprate will now raise Job Exp rate too
-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; |