summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-20 23:48:03 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-20 23:48:03 -0300
commitcaf11961db4c5c047c7dbe36bfd32031d6a7876d (patch)
treef79c06ed8b2698ba368e3e96902e4137851d1435
parent1fbd1001d8717c4f37524fc2cd51c449e7294b40 (diff)
downloadserverdata-caf11961db4c5c047c7dbe36bfd32031d6a7876d.tar.gz
serverdata-caf11961db4c5c047c7dbe36bfd32031d6a7876d.tar.bz2
serverdata-caf11961db4c5c047c7dbe36bfd32031d6a7876d.tar.xz
serverdata-caf11961db4c5c047c7dbe36bfd32031d6a7876d.zip
Update #ADD_LVL, but we must check on exp table to allow multiple level up
-rw-r--r--npc/functions/clientversion.txt35
1 files changed, 22 insertions, 13 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 269bb0470..c2e85c791 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -22,9 +22,21 @@ function script checkclientversion {
mesc l("Oh, noes! Due lack of translators, some languages were removed from this project.");
mesc l("You might have been affected. Please, select your desired language.");
asklanguage(LANG_IN_SHIP);
- if (!#ADD_LVL)
- close;
}
+ if (is_admin() && UPDATE < 1528369855) {
+ UPDATE=1528369855;
+ dispbottom l("Client Version: @@", ClientVersion); // This is to debug UPDATE system.
+ }
+ if (UPDATE < 1531786864) {
+ UPDATE=1531786864;
+ skill TMW2_FAKESKILL, 1, 0;
+ skill TMW2_FAKESKILL2, 1, 0;
+ }
+
+
+
+
+
// #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";
@@ -41,25 +53,22 @@ function script checkclientversion {
next;
mesn "Jesus Saves";
mesc l("Anyway, ##Bwelcome##b, and have fun! If you need anything, we are a keypress from distance!"), 3;
- atcommand "@blvl "+#ADD_LVL;
+ //atcommand "@blvl "+#ADD_LVL;
+ getitem TimeFlask, 1;
+ getexp #ADD_LVL, 0;
#ADD_LVL=0;
// TODO: Use @super debug functions and force player to join a guild. We will need the guild ID, though.
- rodex_sendmail(getcharid(0), "TMW2 Team", "Welcome to Moubootaur Legends", "Hey, thanks for believing on us! We hope to have a great time togheter. Any problem, ask for help in #world - the Discord bridge! And take this change!", 20);
+ rodex_sendmail(getcharid(0), "TMW2 Team", "Welcome to Moubootaur Legends", "Hey, thanks for believing on us! We hope to have a great time togheter. Any problem, ask for help in #world - the Discord bridge! Enjoy our game!", 20);
if (ClientVersion >= 24) close;
next;
mesn "Failsafe Mechanism";
mesc l("Ah... You must update your client first."), 1;
next;
}
- if (is_admin() && UPDATE < 1528369855) {
- UPDATE=1528369855;
- dispbottom l("Client Version: @@", ClientVersion); // This is to debug UPDATE system.
- }
- if (UPDATE < 1531786864) {
- UPDATE=1531786864;
- skill TMW2_FAKESKILL, 1, 0;
- skill TMW2_FAKESKILL2, 1, 0;
- }
+
+
+
+
if (ClientVersion >= 24) return;