diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-03-01 22:09:37 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-03-01 22:09:37 -0300 |
commit | 33e14b71b6c8233077cb4cffbedf680fdf09f48f (patch) | |
tree | 69f9f2d6846775d9b4eca3c8a73b639363491b08 /npc/functions/clientversion.txt | |
parent | d8e7d5221df8c96a7a4fe4752ea088522bc0f611 (diff) | |
download | serverdata-33e14b71b6c8233077cb4cffbedf680fdf09f48f.tar.gz serverdata-33e14b71b6c8233077cb4cffbedf680fdf09f48f.tar.bz2 serverdata-33e14b71b6c8233077cb4cffbedf680fdf09f48f.tar.xz serverdata-33e14b71b6c8233077cb4cffbedf680fdf09f48f.zip |
AFK Timer fix
Diffstat (limited to 'npc/functions/clientversion.txt')
-rw-r--r-- | npc/functions/clientversion.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index b4dd340ac..143bc0625 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -782,6 +782,25 @@ function script clientupdater { mes l("Ok, done."); } } + // AFK Time fix + // dom mar 1 22:05:00 BRT 2020 + if (UPDATE < 1583111100) { + UPDATE=1583111100; + unequipbyid(Slippers); + unequipbyid(AFKCap); + unequipbyid(Blanket); + unequipbyid(Bathrobe); + skill TMW2_SPEECH, 0, 0; + // PS. All values are รท 3 + if (AFKING >= 28800) + sk_lvup(TMW2_SPEECH); // 24 hours mark + if (AFKING >= 201600) + sk_lvup(TMW2_SPEECH); // 7 days mark + if (AFKING >= 864000) + sk_lvup(TMW2_SPEECH); // 30 days mark + if (AFKING >= 2592000) + sk_lvup(TMW2_SPEECH); // 90 days mark + } // :// End of Regular Update System //////////////////////////////////// |