diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-19 15:32:21 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-19 15:32:21 -0300 |
commit | aec6c27ea77ed637693ba65c9c92c889c5ed15c6 (patch) | |
tree | d92fc7ed743004e1c26e161a484eca1bae0e69bf /npc | |
parent | 3eb89a4597237e22825923634cda0a2013c050e4 (diff) | |
download | serverdata-aec6c27ea77ed637693ba65c9c92c889c5ed15c6.tar.gz serverdata-aec6c27ea77ed637693ba65c9c92c889c5ed15c6.tar.bz2 serverdata-aec6c27ea77ed637693ba65c9c92c889c5ed15c6.tar.xz serverdata-aec6c27ea77ed637693ba65c9c92c889c5ed15c6.zip |
Lift restrictions and system exp bonus
Diffstat (limited to 'npc')
-rw-r--r-- | npc/commands/rate-management.txt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/npc/commands/rate-management.txt b/npc/commands/rate-management.txt index c0a6036df..aab0d9cd8 100644 --- a/npc/commands/rate-management.txt +++ b/npc/commands/rate-management.txt @@ -76,23 +76,27 @@ OnPlayerCall: // GM calls take precedence at any time! if (.max_hours > 0 || .hours > 0) end; - // $@EXP_EVENT will determine the boost and shall NEVER be above 25% - $@EXP_EVENT=max(0, min(125, $@EXP_EVENT)); + // $@EXP_EVENT will determine the boost and should not be above 25% + // Default duration is one hour, or whatever $@EXP_EVENT_TIME is + $@EXP_EVENT=max(0, min(150, $@EXP_EVENT)); + $@EXP_EVENT_TIME=max(1, min(6, $@EXP_EVENT_TIME)); + // Default duration is one hour, or whatever $@EXP_EVENT_TIME is .hours = 0; - .max_hours = 1; // Always one hour - never more than that + .max_hours = $@EXP_EVENT_TIME; .current_rate = $@EXP_EVENT; setbattleflag("base_exp_rate", $@EXP_EVENT); charcommand("@reloadmobdb"); SeasonReload(1); initnpctimer; // start counting - .@msg$="Experience Rate was modified to "+$@EXP_EVENT+"%!"; + .@msg$="Experience Rate was modified to "+$@EXP_EVENT+"% for "+$@EXP_EVENT_TIME+" hours!"; announce .@msg$, bc_all; channelmes("#world", .@msg$); $@EXP_EVENT=0; + $@EXP_EVENT_TIME=0; end; OnTimer3600000: |