summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/event.txt7
-rw-r--r--npc/functions/weather.txt6
2 files changed, 11 insertions, 2 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;
diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt
index db73f93e5..729c639ba 100644
--- a/npc/functions/weather.txt
+++ b/npc/functions/weather.txt
@@ -113,6 +113,10 @@ OnMinute00:
OnMinute15:
OnMinute30:
OnMinute45:
+ // There is no weather in test servers
+ if (debug && !$@GM_OVERRIDE)
+ end;
+
//debugmes "[Weather.sys] Starting to regen";
.@hti = htiterator(.wcore);
@@ -200,7 +204,7 @@ OnMinute45:
//debugmes "[Weather.sys] Regenerated";
// Hardcore: Skip day/night cycles
- if ($HARDCORE || debug) {
+ if ($HARDCORE || $@GM_OVERRIDE) {
$@WEATHER_NIGHT=is_night(true);
end;
}