summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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$);
}