summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-08-01 06:13:19 -0300
committerJesusaves <cpntb1@ymail.com>2020-08-01 06:13:19 -0300
commit6c7893365cbc2410fb4b3aa4b0f1cf3a9ac06237 (patch)
treed95e73951571119ba17eae63f1f00c081a444dba /npc
parentb7698400488152e78ec80d3c3ce9c3ed8a8850bd (diff)
downloadserverdata-6c7893365cbc2410fb4b3aa4b0f1cf3a9ac06237.tar.gz
serverdata-6c7893365cbc2410fb4b3aa4b0f1cf3a9ac06237.tar.bz2
serverdata-6c7893365cbc2410fb4b3aa4b0f1cf3a9ac06237.tar.xz
serverdata-6c7893365cbc2410fb4b3aa4b0f1cf3a9ac06237.zip
Oh noes - I've found ANOTHER bug on AFKing %%n
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/clientversion.txt16
1 files changed, 12 insertions, 4 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index a9e740a2b..58b84035e 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -902,10 +902,11 @@ function script clientupdater {
// 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);
+ .@x=(AFKING >= 2592000 ? 4 : (
+ AFKING >= 864000 ? 3 : (
+ AFKING >= 201600 ? 2 : (
+ AFKING >= 28800 ? 1 : 0
+ ))));
skill(TMW2_SPEECH, .@x, 0);
dispbottom l("AFK skill levels fixed.");
}
@@ -913,6 +914,13 @@ function script clientupdater {
// sáb ago 1 05:45:00 BRT 2020
if (UPDATE < 1596271500) {
UPDATE=1596271500;
+ .@x=(AFKING >= 2592000 ? 4 : (
+ AFKING >= 864000 ? 3 : (
+ AFKING >= 201600 ? 2 : (
+ AFKING >= 28800 ? 1 : 0
+ ))));
+ skill(TMW2_SPEECH, .@x, 0);
+ dispbottom l("AFK skill levels fixed.");
for (.@i=0; .@i < getarraysize($@MSK_MAGIC) ; .@i++) {
if (getskilllv($@MSK_MAGIC[.@i]) > 1) {
.@msp=max(0, getskilllv(@menuret)-5);