summaryrefslogtreecommitdiff
path: root/npc/functions/event.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-02-11 21:15:53 -0300
committerJesusaves <cpntb1@ymail.com>2021-02-11 21:15:53 -0300
commit0bba734d881344214a54cba2e707393e0acc0f11 (patch)
treed8ae4fb49e0d94e528efe4a6663fd3a5f825799b /npc/functions/event.txt
parent3acfc3ab2250b821f520c9db2687b90290f26921 (diff)
downloadserverdata-0bba734d881344214a54cba2e707393e0acc0f11.tar.gz
serverdata-0bba734d881344214a54cba2e707393e0acc0f11.tar.bz2
serverdata-0bba734d881344214a54cba2e707393e0acc0f11.tar.xz
serverdata-0bba734d881344214a54cba2e707393e0acc0f11.zip
Disable Weather & Event Cycles on Test Server.
Save some RAM, CPU and Chat Logs.
Diffstat (limited to 'npc/functions/event.txt')
-rw-r--r--npc/functions/event.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/npc/functions/event.txt b/npc/functions/event.txt
index 8e8fbb1ce..733658c91 100644
--- a/npc/functions/event.txt
+++ b/npc/functions/event.txt
@@ -365,6 +365,11 @@ OnInit:
// Check for events every midnight
OnClock0000:
+ // No events on test server
+ if (debug && !$@GM_OVERRIDE)
+ end;
+
+ // Prepare variables
.@d=gettime(GETTIME_DAYOFMONTH);
.@m=gettime(GETTIME_MONTH);
.@o=gettime(GETTIME_WEEKDAY); // Resets at 0 (sunday)
@@ -381,7 +386,7 @@ OnClock0000:
debugmes "EVENT CORE, the %02d/%02d", .@d, .@m;
// Is there another event this week?
- if (!debug && !$HARDCORE && .@o == MONDAY && !.@isinit) {
+ if (!$HARDCORE && .@o == MONDAY && !.@isinit) {
.@dofy=true;
.@confname$=".conf_"+.@m;