From 33e14b71b6c8233077cb4cffbedf680fdf09f48f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 1 Mar 2020 22:09:37 -0300 Subject: AFK Timer fix --- npc/functions/clientversion.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'npc/functions/clientversion.txt') 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 //////////////////////////////////// -- cgit v1.2.3-60-g2f50