summaryrefslogtreecommitdiff
path: root/npc/commands
diff options
context:
space:
mode:
Diffstat (limited to 'npc/commands')
-rw-r--r--npc/commands/rate-management.txt12
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: