summaryrefslogtreecommitdiff
path: root/npc/functions/clientversion.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-11 19:46:25 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-11 19:46:25 -0300
commitc096284e22d3949015127e19f2e462a8199bb51a (patch)
tree85be9fadc40ef714543441a03b10a6b57b3b75ad /npc/functions/clientversion.txt
parentccab7e3695fa581f2dc6e3d34513316c241a2d46 (diff)
downloadserverdata-c096284e22d3949015127e19f2e462a8199bb51a.tar.gz
serverdata-c096284e22d3949015127e19f2e462a8199bb51a.tar.bz2
serverdata-c096284e22d3949015127e19f2e462a8199bb51a.tar.xz
serverdata-c096284e22d3949015127e19f2e462a8199bb51a.zip
Introduce #ADD_LVL, a special flag for when we need to give levels upon login.
Introduce $UPDATE to keep Jesusalva aware of some misc server update stuff.
Diffstat (limited to 'npc/functions/clientversion.txt')
-rw-r--r--npc/functions/clientversion.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index c9d7752fd..48438e626 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -5,6 +5,7 @@
// Jesusalva
// Description:
// Function checking the client version and reports if it is too old.
+// This also handles all updates, and usually have priority.
function script checkclientversion {
// Update handler (use `date +%s` for this)
@@ -16,6 +17,32 @@ function script checkclientversion {
mes col("Oh, noes! Due lack of translators, some languages were removed from this project.", 9);
mes col("You might have been affected. Please, select your desired language.", 9);
asklanguage(LANG_IN_SHIP);
+ if (!#ADD_LVL)
+ close;
+ }
+ // #ADD_LVL means the user have to right to get some levels. This is a sketch. The code might be deleted.
+ if (#ADD_LVL) {
+ mesn "Jesus Saves";
+ mes col("Oh - Welcome to TMW2: Moubootaur Legends!", 3);
+ next;
+ mesn "Jesus Saves";
+ mes col("Please, fell at home. You can use ##B#world##b channel to speak to everyone on Discord, IRC and ingame.", 3);
+ next;
+ mesn "Jesus Saves";
+ mes col("Our mission statement is to bring fun to all players. You'll get some levels automatically. We advise you to join a guild.", 3);
+ next;
+ mesn "Jesus Saves";
+ mes col("If you have any trouble or doubt, don't hesit to call us. There are some cooperative quests, and more of them are being added.", 3);
+ next;
+ mesn "Jesus Saves";
+ mes col("Anyway, ##Bwelcome##b, and have fun! If you need anything, we are a keypress from distance!", 3);
+ atcommand "@blvl "+#ADD_LVL;
+ #ADD_LVL=0;
+ if (ClientVersion >= 24) close;
+ next;
+ mesn "Failsafe Mechanism";
+ mes col("Ah... You must update your client first.", 1);
+ next;
}
if (ClientVersion >= 24) return;