From aec6c27ea77ed637693ba65c9c92c889c5ed15c6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 19 May 2019 15:32:21 -0300 Subject: Lift restrictions and system exp bonus --- npc/commands/rate-management.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'npc/commands') 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: -- cgit v1.2.3-60-g2f50