summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-01-29 19:20:09 -0300
committerJesusaves <cpntb1@ymail.com>2020-01-29 19:20:09 -0300
commit5fd8aa9bd7f6761e7f46a969fb4fe02f8ee858c0 (patch)
tree1dde8f73670e001c2d0b0d995d8c80d604cd5238 /npc/functions
parentb160fdbc530bd4a89f350def90ae931a9442bcb6 (diff)
downloadserverdata-5fd8aa9bd7f6761e7f46a969fb4fe02f8ee858c0.tar.gz
serverdata-5fd8aa9bd7f6761e7f46a969fb4fe02f8ee858c0.tar.bz2
serverdata-5fd8aa9bd7f6761e7f46a969fb4fe02f8ee858c0.tar.xz
serverdata-5fd8aa9bd7f6761e7f46a969fb4fe02f8ee858c0.zip
New debug flag: $@OVERRIDE_NUMDATE
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/util.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index fa64fcca3..3466cc02e 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -938,6 +938,9 @@ function script NewcomerEXPDROPUP {
// numdate( - )
function script numdate {
.@strdate$=sprintf("%04d%02d%02d", gettime(GETTIME_YEAR), gettime(GETTIME_MONTH), gettime(GETTIME_DAYOFMONTH));
+ // Debug payload
+ if ($@OVERRIDE_NUMDATE)
+ return $@OVERRIDE_NUMDATE;
return atoi(.@strdate$);
}