summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-05-21 22:51:33 +0000
committerJesusaves <cpntb1@ymail.com>2018-05-21 22:51:33 +0000
commit114a46d027e34a9bfa419ee85f7bfc35a15617dd (patch)
treed905239b151cd9bf169b324bfa03a745110c6120
parent924e42901068bc1a0b7fd112441fac10f86032e9 (diff)
downloadserverdata-114a46d027e34a9bfa419ee85f7bfc35a15617dd.tar.gz
serverdata-114a46d027e34a9bfa419ee85f7bfc35a15617dd.tar.bz2
serverdata-114a46d027e34a9bfa419ee85f7bfc35a15617dd.tar.xz
serverdata-114a46d027e34a9bfa419ee85f7bfc35a15617dd.zip
Raise minimum client version from 20 to (24 ok, 22 kick)
-rw-r--r--npc/functions/clientversion.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index ba74c082b..0f1cba4b0 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -1,11 +1,13 @@
+// TMW2 Scripts
// Evol functions.
// Author:
// 4144
+// Jesusalva
// Description:
// Function checking the client version and reports if it is too old.
function script checkclientversion {
- if (ClientVersion > 20) return;
+ if (ClientVersion >= 24) return;
mesn "Narrator";
mes col("Warning.", 1);
@@ -14,7 +16,8 @@ function script checkclientversion {
next;
mes col("Please install the new client from [@@https://manaplus.org/|https://manaplus.org/@@]", 9);
next;
- mes col("You won't be allowed to play this game until you have a valid client.", 9);
+ if (ClientVersion >= 22) return;
+ mes col("You won't be allowed to play this game until you have an updated client.", 9);
next;
// Force user to disconnect
atcommand "@kick "+strcharinfo(0);