summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-03-01 22:09:37 -0300
committerJesusaves <cpntb1@ymail.com>2020-03-01 22:09:37 -0300
commit33e14b71b6c8233077cb4cffbedf680fdf09f48f (patch)
tree69f9f2d6846775d9b4eca3c8a73b639363491b08 /npc
parentd8e7d5221df8c96a7a4fe4752ea088522bc0f611 (diff)
downloadserverdata-33e14b71b6c8233077cb4cffbedf680fdf09f48f.tar.gz
serverdata-33e14b71b6c8233077cb4cffbedf680fdf09f48f.tar.bz2
serverdata-33e14b71b6c8233077cb4cffbedf680fdf09f48f.tar.xz
serverdata-33e14b71b6c8233077cb4cffbedf680fdf09f48f.zip
AFK Timer fix
Diffstat (limited to 'npc')
-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
////////////////////////////////////