summaryrefslogtreecommitdiff
path: root/npc/functions/clientversion.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/clientversion.txt')
-rw-r--r--npc/functions/clientversion.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
new file mode 100644
index 00000000..2f097e4e
--- /dev/null
+++ b/npc/functions/clientversion.txt
@@ -0,0 +1,20 @@
+// Evol functions.
+// Author:
+// 4144
+// Description:
+// Function checking the client version and reports if it is too old.
+
+function script checkclientversion {
+ if (ClientVersion > 23) return;
+
+ mesn "Narrator";
+ mes col("Warning.", 9);
+ mes col("Warning.", 9);
+ mes col("Warning: You are using an old client.", 9);
+ next;
+ mes col("Not all features will work.", 9);
+ next;
+ mesc l("Please install the new client from %s.", "[@@https://manaplus.org/|@@]");
+ next;
+ return;
+}