summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-23 11:08:04 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-23 11:08:04 -0300
commit06aafc9a2a8213040aa33cc2c2a819d1be6f874b (patch)
treefcd4f364ed6506339ef5437c633f36e9fc9a184f /npc/functions
parentf2fe58ad450eaaf07824eff20739557a0485636d (diff)
downloadserverdata-06aafc9a2a8213040aa33cc2c2a819d1be6f874b.tar.gz
serverdata-06aafc9a2a8213040aa33cc2c2a819d1be6f874b.tar.bz2
serverdata-06aafc9a2a8213040aa33cc2c2a819d1be6f874b.tar.xz
serverdata-06aafc9a2a8213040aa33cc2c2a819d1be6f874b.zip
Break every imaginable pipeline. I'm waiting it to fail.
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/class.txt30
-rw-r--r--npc/functions/clientversion.txt26
-rw-r--r--npc/functions/main.txt13
-rw-r--r--npc/functions/news.txt94
4 files changed, 86 insertions, 77 deletions
diff --git a/npc/functions/class.txt b/npc/functions/class.txt
index 588b9dd3f..b4d1466e3 100644
--- a/npc/functions/class.txt
+++ b/npc/functions/class.txt
@@ -160,11 +160,11 @@ L_T2_Fail:
delitem SunnyCrystal, 1;
} else {
mesn;
- mes col("WARNING. YOU ARE CHEATING THE SUNNY CRYSTAL QUEST.", 1);
+ mes col(l("WARNING. YOU ARE CHEATING THE SUNNY CRYSTAL QUEST."), 1);
next;
mesn;
- mes col("YOU WILL BE PENALIZED WITH 60% OF HEALTH.", 1);
- mes col("IF YOU DIE, YOU'LL SUFFER THE EXP PENALTY.", 1);
+ mes col(l("YOU WILL BE PENALIZED WITH 60% OF HEALTH."), 1);
+ mes col(l("IF YOU DIE, YOU'LL SUFFER THE EXP PENALTY."), 1);
percentheal -60, -100;
close;
}
@@ -175,18 +175,18 @@ L_T2_Fail:
delitem JesusalvaGrimorium, 1;
} else {
mesn;
- mes col("WARNING. YOU ARE CHEATING THE GRIMORIE QUEST.", 1);
+ mes col(l("WARNING. YOU ARE CHEATING THE GRIMORIE QUEST."), 1);
next;
mesn;
- mes col("YOU WILL BE PENALIZED WITH 70% OF HEALTH.", 1);
- mes col("IF YOU DIE, YOU'LL SUFFER THE EXP PENALTY.", 1);
+ mes col(l("YOU WILL BE PENALIZED WITH 70% OF HEALTH."), 1);
+ mes col(l("IF YOU DIE, YOU'LL SUFFER THE EXP PENALTY."), 1);
percentheal -70, -100;
close;
}
}
- mes col(".:: Mission Failed ::.", 1);
- mes col("You ran out of time.", 1);
+ mes col(l(".:: Mission Failed ::."), 1);
+ mes col(l("You ran out of time."), 1);
mes "";
mes l("You should have gotten here @@.", FuzzyTime(QUEST_ELEVARTEMPO,0,2));
ST_TIER=1;
@@ -203,7 +203,7 @@ L_T2_S0:
if (getskilllv(.@CLASS) == 1 && MAGIC_LVL >= 2 && ST_TIER == 6) goto L_T2_S6;
if (getskilllv(.@CLASS) == 1 && MAGIC_LVL >= 2 && ST_TIER <= 9) goto L_T2_S7;
if (getskilllv(.@CLASS) == 1 && MAGIC_LVL >= 2 && ST_TIER == 10) goto L_T2_Final;
- mes col("Error, error, L_T2_S0 General Error, REPORT ME", 9);
+ mes col(l("Error, error, L_T2_S0 General Error, REPORT ME"), 9);
close;
L_T2_S1:
@@ -241,10 +241,10 @@ L_T2_S1:
set QUEST_ELEVARTEMPO, gettimetick(2) + (60 * 35);
getexp 400, 0;
mesn;
- mes col("The class master mix the powder with the slime inside the bottle, and makes some weird mixture.", 9);
+ mes col(l("The class master mix the powder with the slime inside the bottle, and makes some weird mixture."), 9);
next;
mesn;
- mes col("He pours something on it, you're not sure what. He then utters some magic words.", 9);
+ mes col(l("He pours something on it, you're not sure what. He then utters some magic words."), 9);
next;
// Reset timer, this is the place where it should really happen.
set QUEST_ELEVARTEMPO, gettimetick(2) + (60 * 35);
@@ -275,7 +275,7 @@ L_T2_S3:
mesq l("Good, you did it!");
next;
mesn;
- mes col("*chants more words, while the crystal hovers the potion*", 9);
+ mes col(l("*chants more words, while the crystal hovers the potion*"), 9);
next;
L_T2_S4:
@@ -303,7 +303,7 @@ L_T2_S4:
getexp .@r*3, 0;
//getitem MagicPotion, 1;
- mes col("You quickly give him the herbs, and he skillfully mix them on a potion.", 9);
+ mes col(l("You quickly give him the herbs, and he skillfully mix them on a potion."), 9);
next;
// You'll get a random amount of time, based on spent herbs
// Usually, 10~73 sec, being 73 sec = 1m13s
@@ -340,8 +340,8 @@ L_T2_Final:
skill(SM_PROVOKE, 1, 0);
addtoskill(.@CLASS,2,0);
getexp 40000, 0; // Yes, 40k experience points. Waw.
- mes col(".:: Congratulations! ::.", 2);
- mes col("You advanced your tier!", 2);
+ mes col(l(".:: Congratulations! ::."), 2);
+ mes col(l("You advanced your tier!"), 2);
next;
mesn;
mesq l("Keep the Grimorie with you. It's the proof you are now Tier 2. The book shall guide your advances!");
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 041e9e8ce..6b49a15e2 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -18,8 +18,8 @@ function script checkclientversion {
UPDATE=gettimetick(2);
Lang=0;
mesn "Jesus Saves";
- 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);
+ mes col(l("Oh, noes! Due lack of translators, some languages were removed from this project."), 9);
+ mes col(l("You might have been affected. Please, select your desired language."), 9);
asklanguage(LANG_IN_SHIP);
if (!#ADD_LVL)
close;
@@ -27,19 +27,19 @@ function script checkclientversion {
// #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);
+ mes col(l("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);
+ mes col(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";
- 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);
+ mes col(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";
- 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);
+ mes col(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";
- mes col("Anyway, ##Bwelcome##b, and have fun! If you need anything, we are a keypress from distance!", 3);
+ mes col(l("Anyway, ##Bwelcome##b, and have fun! If you need anything, we are a keypress from distance!"), 3);
atcommand "@blvl "+#ADD_LVL;
#ADD_LVL=0;
// TODO: Use @super debug functions and force player to join a guild. We will need the guild ID, though.
@@ -47,7 +47,7 @@ function script checkclientversion {
if (ClientVersion >= 24) close;
next;
mesn "Failsafe Mechanism";
- mes col("Ah... You must update your client first.", 1);
+ mes col(l("Ah... You must update your client first."), 1);
next;
}
if (is_admin() && UPDATE < 1528369855) {
@@ -58,14 +58,14 @@ function script checkclientversion {
if (ClientVersion >= 24) return;
mesn "Narrator";
- mes col("Warning.", 1);
- mes col("Warning.", 1);
- mes col("Warning: You are using an old client.", 9);
+ mes col(l("Warning."), 1);
+ mes col(l("Warning."0, 1);
+ mes col(l("Warning: You are using an old client."), 9);
next;
- mes col("Please install the new client from [@@https://manaplus.org/|https://manaplus.org/@@]", 9);
+ mes col(l("Please install the new client from [@@https://manaplus.org/|https://manaplus.org/@@]"), 9);
next;
if (ClientVersion >= 22) return;
- mes col("You won't be allowed to play this game until you have an updated client.", 9);
+ mes col(l("You won't be allowed to play this game until you have an updated client."), 9);
next;
// Force user to disconnect
atcommand "@kick "+strcharinfo(0);
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index e4bda0d1a..1a074e6b8 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -69,8 +69,7 @@ function script col {
}
function script adddefaultskills {
- if (getskilllv(NV_BASIC) < 6)
- {
+ if (getskilllv(NV_BASIC) < 6) {
skill NV_BASIC, 6, 0;
}
return;
@@ -81,6 +80,16 @@ function script addremovemapmask {
return;
}
+function script mescol {
+ mes col(getarg(0),getarg(1));
+ return;
+}
+
+function script mesc {
+ mes col(getarg(0),9);
+ return;
+}
+
// Function to show narrator text. Accepts string args.
// If first arg is a number N, then it represents bit flags.
// Bit flags :
diff --git a/npc/functions/news.txt b/npc/functions/news.txt
index 1a9f06b4c..eecd4f56c 100644
--- a/npc/functions/news.txt
+++ b/npc/functions/news.txt
@@ -10,99 +10,99 @@ function script GameNews {
case 0:
case 20180531:
mes "";
- mes col("Release 4.0 - Quest Giver's Handbook", 9);
+ mesc l("Release 4.0 - Quest Giver's Handbook");
next;
mes "";
- mes col("With renewed confidence about the outcome of the war, various people left their houses.", 9);
- mes col("However, the Monster King laid siege to Hurnscald. His power increased greatly, and ships are not capable of even approaching the city.", 9);
- mes col("This caused a mana disturbance, and healing items are working better now, affecting every sector of economy.", 9);
+ mesc l("With renewed confidence about the outcome of the war, various people left their houses.");
+ mesc l("However, the Monster King laid siege to Hurnscald. His power increased greatly, and ships are not capable of even approaching the city.");
+ mesc l("This caused a mana disturbance, and healing items are working better now, affecting every sector of economy.");
next;
- mes col("Tulimshar miners are having troubles with monsters. They are offering rewards to whoever helps them.", 9);
- mes col("And speaking in reward, guards are looking for someone contrabanding goods from Artis. Do not help them!", 9);
+ mesc l("Tulimshar miners are having troubles with monsters. They are offering rewards to whoever helps them.");
+ mesc l("And speaking in reward, guards are looking for someone contrabanding goods from Artis. Do not help them!");
next;
- mes col("Tulimshar Guards bought a Slot Machine to play, but that was done unofficialy.", 9);
- mes col("There are rumors of a grand prize to whoever gets lucky on that machine.", 9);
+ mesc l("Tulimshar Guards bought a Slot Machine to play, but that was done unofficialy.");
+ mesc l("There are rumors of a grand prize to whoever gets lucky on that machine.");
next;
- mes col("Tulimshar Jewerly is once again open. Cyndala and Tamiloc rented a shop south of Tulimshar.", 9);
- mes col("The Tulimshar Forge is also dealing with more complex materials, and not just Iron.", 9);
+ mesc l("Tulimshar Jewerly is once again open. Cyndala and Tamiloc rented a shop south of Tulimshar.");
+ mesc l("The Tulimshar Forge is also dealing with more complex materials, and not just Iron.");
next;
- mes col("Nard's ship is not capable to do Tulimshar<->Candor route instantly anymore: His magic sail broke.", 9);
- mes col("Ishi also rewrote his rewards table. More items for lower prices!", 9);
+ mesc l("Nard's ship is not capable to do Tulimshar<->Candor route instantly anymore: His magic sail broke.");
+ mesc l("Ishi also rewrote his rewards table. More items for lower prices!");
next;
- mes col("Zitoni announces he can now craft really good potions to improve attack speed and damage!", 9);
- mes col("Saulc and Cherry married in Halinarzo, and stayed like this for perhaps 20 seconds, before Cherry asked for divorce.", 9);
- mes col("After paying the divorce fee, she said: \"Blame Saulc for this one.\"", 9);
+ mesc l("Zitoni announces he can now craft really good potions to improve attack speed and damage!");
+ mesc l("Saulc and Cherry married in Halinarzo, and stayed like this for perhaps 20 seconds, before Cherry asked for divorce.");
+ mesc l("After paying the divorce fee, she said: \"Blame Saulc for this one.\"");
next;
- mes col("The Alliance announces a great new way to keep adventurers killing monsters.", 9);
- mes col("The Grand Hunter quest is available with Aidan. It's an experiment by the High Council,", 9);
- mes col("and may change later without notice.", 9);
+ mesc l("The Alliance announces a great new way to keep adventurers killing monsters.");
+ mesc l("The Grand Hunter quest is available with Aidan. It's an experiment by the High Council,");
+ mesc l("and may change later without notice.");
next;
- mes col("Some adventurer broke what was previously thought as maximum level, and is now level 45!", 9);
- mes col("Somebody else also got huge stats bonuses because reached the unbelievable job level 25.", 9);
+ mesc l("Some adventurer broke what was previously thought as maximum level, and is now level 45!");
+ mesc l("Somebody else also got huge stats bonuses because reached the unbelievable job level 25.");
next;
- mes col("The Alliance High Council informs that Super Players and above are capable to try ##B @toevent ##b for free event warps.", 9);
- mes col("This was caused because changes on the Mana Bridge. They hope that for next release, everyone will be able to use these magic words, instead of needing to talk to the Soul Menhir.", 9);
+ mesc l("The Alliance High Council informs that Super Players and above are capable to try ##B @toevent ##b for free event warps.");
+ mesc l("This was caused because changes on the Mana Bridge. They hope that for next release, everyone will be able to use these magic words, instead of needing to talk to the Soul Menhir.");
next;
break;
case 20180408:
mes "";
- mes col("Release 3.0 - In The Dreams", 9);
+ mesc l("Release 3.0 - In The Dreams");
next;
mes "";
- mes col("There were trees blocking the path to Halinarzo? Why nobody told that to Tulimshar Council?!", 9);
- mes col("These trees were cut and travellers can once again travel to Halin.", 9);
+ mesc l("There were trees blocking the path to Halinarzo? Why nobody told that to Tulimshar Council?!");
+ mesc l("These trees were cut and travellers can once again travel to Halin.");
next;
- mes col("Estard finished arranging sufficient paperwork so adventurers can create their own guilds.", 9);
- mes col("This somehow affected the whole economy.", 9);
+ mesc l("Estard finished arranging sufficient paperwork so adventurers can create their own guilds.");
+ mesc l("This somehow affected the whole economy.");
next;
- mes col("Some adventurer broke what was previously thought as maximum level, and is now level 40!", 9);
+ mesc l("Some adventurer broke what was previously thought as maximum level, and is now level 40!");
mes l("##9Was that not sufficient, this someone acquired MAGIC and is now under @@'s group.", (rand(0,1) ? "Colin" : "Luca"));
next;
- mes col("The Magic Council finished the reform on their guest hall.", 9);
- mes col("Soren, the architect responsible for it, is very happy with the new design.", 9);
+ mesc l("The Magic Council finished the reform on their guest hall.");
+ mesc l("Soren, the architect responsible for it, is very happy with the new design.");
next;
- mes col("Tulimshar Guardhouse's door was struck, but the guards managed to get it open again.", 9);
- mes col("Access is restricted to guards, as usual.", 9);
+ mesc l("Tulimshar Guardhouse's door was struck, but the guards managed to get it open again.");
+ mesc l("Access is restricted to guards, as usual.");
next;
break;
case 20180323:
mes "";
- mes col("Release 2.2 - There Are No Pipelines", 9);
+ mesc l("Release 2.2 - There Are No Pipelines");
next;
mes "";
- mes col("Unfortunately, Tulimshar guards are dying in the sun. Maybe you could provide them with Water?", 9);
+ mesc l("Unfortunately, Tulimshar guards are dying in the sun. Maybe you could provide them with Water?");
next;
- mes col("The NPC responsible for buying raw gemstones from other NPCs has recovered since the last siege.", 9);
- mes col("Therefore, raw gemstones prices are once again on the rise.", 9);
+ mesc l("The NPC responsible for buying raw gemstones from other NPCs has recovered since the last siege.");
+ mesc l("Therefore, raw gemstones prices are once again on the rise.");
next;
- mes col("Someone adventurer broke what was previously thought as maximum level, and is now level 31!", 9);
+ mesc l("Someone adventurer broke what was previously thought as maximum level, and is now level 31!");
next;
- mes col("The Magic Council lift Statues in honor of some people. But its guest hall is in reform!", 9);
+ mesc l("The Magic Council lift Statues in honor of some people. But its guest hall is in reform!");
next;
- mes col("Easter will soon start!", 9);
+ mesc l("Easter will soon start!");
next;
break;
case 20180316:
- mes col("Release 2.1 - Free Lunch For Those Who Work Hard!", 9);
+ mesc l("Release 2.1 - Free Lunch For Those Who Work Hard!");
next;
mes "";
- mes col("Money to leave Candor is easier, as various persons there need help.", 9);
+ mesc l("Money to leave Candor is easier, as various persons there need help.");
next;
- mes col("Nard and Elmo changed the way they talk to newcomers, to be more clear about what they expect.", 9);
+ mesc l("Nard and Elmo changed the way they talk to newcomers, to be more clear about what they expect.");
next;
- mes col("Hard workers get an extra work level. This means a +1 VIT bonus is possible!", 9);
+ mesc l("Hard workers get an extra work level. This means a +1 VIT bonus is possible!");
next;
- mes col("Some NPCs are [@@https://transifex.com/akaras/saulc-tmw-fork|learning new languages@@].", 9);
+ mesc l("Some NPCs are [@@https://transifex.com/akaras/saulc-tmw-fork|learning new languages@@].");
next;
break;
default:
break;
}
- mes col("We want to thank everyone who did this release possible.", 9);
+ mesc l("We want to thank everyone who did this release possible.");
mes "";
- mes col("Shall you have any inquiry, do not hesit to [@@mailto:admin@tmw2.org|send us an email@@]##b.", 9);
- mes col("You can also read the [@@news|server news@@], or even [@@https://tmw2.org/news|older entries@@].", 9);
+ mesc l("Shall you have any inquiry, do not hesit to [@@mailto:admin@tmw2.org|send us an email@@]##b.");
+ mesc l("You can also read the [@@news|server news@@], or even [@@https://tmw2.org/news|older entries@@].");
next;
return;
}