summaryrefslogtreecommitdiff
path: root/npc/commands/rate-management.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-04-06 12:01:16 -0300
committerJesusaves <cpntb1@ymail.com>2019-04-06 12:01:16 -0300
commit7fe4716444954eb596aefc626dc66e1bfc9b252e (patch)
treeee9a018771ffd5ecb94a7cd8aa6dc20ee3298cb2 /npc/commands/rate-management.txt
parent9f0e80eab6ff4ef902de96f0191ec4db395cbe57 (diff)
downloadserverdata-7fe4716444954eb596aefc626dc66e1bfc9b252e.tar.gz
serverdata-7fe4716444954eb596aefc626dc66e1bfc9b252e.tar.bz2
serverdata-7fe4716444954eb596aefc626dc66e1bfc9b252e.tar.xz
serverdata-7fe4716444954eb596aefc626dc66e1bfc9b252e.zip
Update Sagratha notes. Sunday 18:00 is the server happy hour!
(Yes, I used GvG times to make this happy hour. Saturday/Sunday 21h are on sight.)
Diffstat (limited to 'npc/commands/rate-management.txt')
-rw-r--r--npc/commands/rate-management.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/npc/commands/rate-management.txt b/npc/commands/rate-management.txt
index fc0af91fe..07e0eaf19 100644
--- a/npc/commands/rate-management.txt
+++ b/npc/commands/rate-management.txt
@@ -79,9 +79,8 @@ OnPlayerCall:
if (.max_hours > 0 || .hours > 0)
end;
// $@EXP_EVENT will determine the boost and shall NEVER be above 20%
- if ($@EXP_EVENT <= 0 || $@EXP_EVENT > 120) {
- announce "##1##BSEVERE ERROR: Misformatted command, $@EXP_EVENT cannot be over 20% bonus and must be valid.", bc_all;
- }
+ $@EXP_EVENT=max(0, min(120, $@EXP_EVENT));
+
.hours = 0;
.max_hours = 1; // Always one hour - never more than that
.current_rate = $@EXP_EVENT;