summaryrefslogtreecommitdiff
path: root/npc/functions/clientversion.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-29 06:53:20 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-29 06:53:20 -0300
commite61f12cd8365c3b0e1998110124b14ac59dfe1bd (patch)
treed7e75638a7cb6005cdf137d703da6f74dc38e34e /npc/functions/clientversion.txt
parentf0e5932f32958290fe0961c7f343b1b9c1a198d4 (diff)
downloadserverdata-e61f12cd8365c3b0e1998110124b14ac59dfe1bd.tar.gz
serverdata-e61f12cd8365c3b0e1998110124b14ac59dfe1bd.tar.bz2
serverdata-e61f12cd8365c3b0e1998110124b14ac59dfe1bd.tar.xz
serverdata-e61f12cd8365c3b0e1998110124b14ac59dfe1bd.zip
Fix the exploit on AFKing, and correct it everywhere else
Diffstat (limited to 'npc/functions/clientversion.txt')
-rw-r--r--npc/functions/clientversion.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 480d06639..3e6b11830 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -898,6 +898,17 @@ function script clientupdater {
}
}
+ // AFKing bugfix
+ // qua jul 29 06:52:00 BRT 2020
+ if (UPDATE < 1596016320) {
+ UPDATE=1596016320;
+ .@x=(AFKING >= 28800 ? 1 : 0);
+ .@x=(AFKING >= 201600 ? 2 : 1);
+ .@x=(AFKING >= 864000 ? 3 : 2);
+ .@x=(AFKING >= 2592000 ? 4 : 3);
+ skill(TMW2_SPEECH, .@x, 0);
+ dispbottom l("AFK skill levels fixed.");
+ }
// :// End of Regular Update System
////////////////////////////////////