diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-15 00:34:10 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-15 00:34:10 -0300 |
commit | fda7f52fa934d21ea8a6f7fe8d363aacbf22128d (patch) | |
tree | e9ae4bc301784abcd5243fa4d630f9c82a7254b6 /npc/functions | |
parent | cf9965f364d8dddfc39cc432fdd2ffbe69676054 (diff) | |
download | serverdata-fda7f52fa934d21ea8a6f7fe8d363aacbf22128d.tar.gz serverdata-fda7f52fa934d21ea8a6f7fe8d363aacbf22128d.tar.bz2 serverdata-fda7f52fa934d21ea8a6f7fe8d363aacbf22128d.tar.xz serverdata-fda7f52fa934d21ea8a6f7fe8d363aacbf22128d.zip |
santime() experiment
Diffstat (limited to 'npc/functions')
-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); |