summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/clientversion.txt19
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
////////////////////////////////////