From 70bded3be5f87da0f864509865bdd74c2131a974 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 28 Jan 2020 20:50:51 -0300 Subject: Sort properly UPDATES on ClientVersion updater --- npc/functions/clientversion.txt | 73 +++++++++++++++++++++-------------------- 1 file changed, 38 insertions(+), 35 deletions(-) (limited to 'npc') diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index e1c98a41f..d4746b460 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -673,41 +673,6 @@ function script clientupdater { // Karma fix (double check Karma=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) { - .@dg=1; - /* - mesn "Jesus Saves"; - mesc l("Oh - Welcome to TMW2: Moubootaur Legends!"), 3; - next; - mesn "Jesus Saves"; - mesc l("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"; - mesc l("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"; - mesc l("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"; - mesc l("Anyway, ##Bwelcome##b, and have fun! If you need anything, we are a keypress from distance!"), 3; - //atcommand "@blvl "+#ADD_LVL; - //getitem TimeFlask, 1; - #ADD_LVL=(#ADD_LVL*9)/10; - */ - if ((readparam(BaseExp)+#ADD_LVL > readparam(NextBaseExp))) { - do { - .@v=readparam(NextBaseExp)-readparam(BaseExp); - getexp .@v, 0; - #ADD_LVL-=.@v; - } while (readparam(BaseExp)+#ADD_LVL > readparam(NextBaseExp)); - } - 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! Enjoy our game!", 20); - } // Baktar changes // seg out 21 19:32:55 -03 2019 if (UPDATE < 1571697175) { @@ -751,6 +716,44 @@ function script clientupdater { } } + // :// End of Regular Update System + //////////////////////////////////// + + // #ADD_LVL means the user have to right to get some levels. This is a sketch. The code might be deleted. + if (#ADD_LVL) { + .@dg=1; + /* + mesn "Jesus Saves"; + mesc l("Oh - Welcome to TMW2: Moubootaur Legends!"), 3; + next; + mesn "Jesus Saves"; + mesc l("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"; + mesc l("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"; + mesc l("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"; + mesc l("Anyway, ##Bwelcome##b, and have fun! If you need anything, we are a keypress from distance!"), 3; + //atcommand "@blvl "+#ADD_LVL; + //getitem TimeFlask, 1; + #ADD_LVL=(#ADD_LVL*9)/10; + */ + if ((readparam(BaseExp)+#ADD_LVL > readparam(NextBaseExp))) { + do { + .@v=readparam(NextBaseExp)-readparam(BaseExp); + getexp .@v, 0; + #ADD_LVL-=.@v; + } while (readparam(BaseExp)+#ADD_LVL > readparam(NextBaseExp)); + } + 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! Enjoy our game!", 20); + } + if (.@dg) { next; -- cgit v1.2.3-60-g2f50