diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-01-29 19:20:09 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-01-29 19:20:09 -0300 |
commit | 5fd8aa9bd7f6761e7f46a969fb4fe02f8ee858c0 (patch) | |
tree | 1dde8f73670e001c2d0b0d995d8c80d604cd5238 /npc/functions | |
parent | b160fdbc530bd4a89f350def90ae931a9442bcb6 (diff) | |
download | serverdata-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.txt | 3 |
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$); } |