diff options
Diffstat (limited to 'npc/functions/time.txt')
-rw-r--r-- | npc/functions/time.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/npc/functions/time.txt b/npc/functions/time.txt index a2a4cbe32..56f691e35 100644 --- a/npc/functions/time.txt +++ b/npc/functions/time.txt @@ -2,6 +2,16 @@ function script now { return gettimetick(2); } +// Composite time for quests +// Returns gettimetick(2), but counting since 2018 in commercial date. +// This value is NOT reversable to FuzzyTime +// ( time to be checked ) +function script santime { + .@day=60*60*24; + .@year=.@day*30*360; + .@fact=.@year*(2018-1970); + return gettimetick(2)-(.@fact); +} function script time_from_ms { return now() + (getarg(0) / 1000); |