summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-26 17:05:12 -0300
committerjesusalva <cpntb1@ymail.com>2018-02-26 17:05:12 -0300
commit1ae38aa5abfa086c87a0e54fbcb89aefced4fe61 (patch)
tree807fee07d401d51026266c3a06ca987ec299c850
parentaa8b3b67297cc88758d53432513eab51cb066073 (diff)
downloadserverdata-1ae38aa5abfa086c87a0e54fbcb89aefced4fe61.tar.gz
serverdata-1ae38aa5abfa086c87a0e54fbcb89aefced4fe61.tar.bz2
serverdata-1ae38aa5abfa086c87a0e54fbcb89aefced4fe61.tar.xz
serverdata-1ae38aa5abfa086c87a0e54fbcb89aefced4fe61.zip
Improve client-version kicking
-rw-r--r--npc/000-0/sailors.txt2
-rw-r--r--npc/003-3/malindou.txt1
-rw-r--r--npc/functions/clientversion.txt8
3 files changed, 6 insertions, 5 deletions
diff --git a/npc/000-0/sailors.txt b/npc/000-0/sailors.txt
index 1f13684e4..c537ed128 100644
--- a/npc/000-0/sailors.txt
+++ b/npc/000-0/sailors.txt
@@ -11,7 +11,7 @@
000-0,23,20,0 script Sailors NPC_SAILORS,6,6,{
OnTouch:
- checkclientversion;
+ //checkclientversion;
.@lang = requestlang();
if (.@lang >= 0 && .@lang <= 9) Lang = .@lang;
diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt
index 58d75b010..5a90619c8 100644
--- a/npc/003-3/malindou.txt
+++ b/npc/003-3/malindou.txt
@@ -145,6 +145,7 @@ OnInit:
end;
OnPCLoginEvent:
+ checkclientversion;
if (#MerchantBank)
{
BankVault += max(0, #MerchantBank);
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 5286a9cf3..ba74c082b 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -8,13 +8,13 @@ function script checkclientversion {
if (ClientVersion > 20) return;
mesn "Narrator";
- mes col("Warning.", 9);
- mes col("Warning.", 9);
+ mes col("Warning.", 1);
+ mes col("Warning.", 1);
mes col("Warning: You are using an old client.", 9);
next;
- mes col("Not all features will work.", 9);
+ mes col("Please install the new client from [@@https://manaplus.org/|https://manaplus.org/@@]", 9);
next;
- mes col("Please install the new client from [@@https://manaplus.org/|https://manaplus.org/]", 9);
+ mes col("You won't be allowed to play this game until you have a valid client.", 9);
next;
// Force user to disconnect
atcommand "@kick "+strcharinfo(0);