diff options
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r-- | npc/functions/util.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt index b87bc89b1..fa64fcca3 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -934,4 +934,11 @@ function script NewcomerEXPDROPUP { return .@BONUS; } +// Special function which makes a date as a number +// numdate( - ) +function script numdate { + .@strdate$=sprintf("%04d%02d%02d", gettime(GETTIME_YEAR), gettime(GETTIME_MONTH), gettime(GETTIME_DAYOFMONTH)); + return atoi(.@strdate$); +} + |