From 5fd8aa9bd7f6761e7f46a969fb4fe02f8ee858c0 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 29 Jan 2020 19:20:09 -0300 Subject: New debug flag: $@OVERRIDE_NUMDATE --- npc/functions/util.txt | 3 +++ 1 file changed, 3 insertions(+) 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$); } -- cgit v1.2.3-60-g2f50