From e5b03ddac013749e1ae7c7805e1533d1a3df531a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 2 Jul 2018 12:41:13 -0300 Subject: mesc() is a function to optimize mes(col(l())), saving parenthesis. mesc() is a short for mes(col()). It should make coding colored code easier. The default color value is "9", same from narrator, but this default value is not used anymore. I assume mes* functions are legacy for this project, so fell free to reject the patch. --- npc/001-1/cookiemaster.txt | 6 +++--- npc/001-1/flyingpiou.txt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'npc/001-1') diff --git a/npc/001-1/cookiemaster.txt b/npc/001-1/cookiemaster.txt index f04a4797..b62014fa 100644 --- a/npc/001-1/cookiemaster.txt +++ b/npc/001-1/cookiemaster.txt @@ -133,13 +133,13 @@ L_Friends: next; mesn "Narrator"; - mes col(l("This Cookie Master rewards people who contribute and develop this world."), 9); + mesc(l("This Cookie Master rewards people who contribute and develop this world."), 9); next; mes col(lg("If you want to be rewarded, help us in making this world a better place."), 9); next; - mes col(l("When you see something that looks more like a bug than a feature, report it on http://bugs.evolonline.org or try to contact a game contributor."), 9); + mesc(l("When you see something that looks more like a bug than a feature, report it on http://bugs.evolonline.org or try to contact a game contributor."), 9); next; - mes col(l("Any contribution to the game (translations, graphics creation/edition, concepts, coding/scripting, etc...) is rewarded!"), 9); + mesc(l("Any contribution to the game (translations, graphics creation/edition, concepts, coding/scripting, etc...) is rewarded!"), 9); mes ""; mesn; diff --git a/npc/001-1/flyingpiou.txt b/npc/001-1/flyingpiou.txt index f6132f6b..bb8440b3 100644 --- a/npc/001-1/flyingpiou.txt +++ b/npc/001-1/flyingpiou.txt @@ -50,7 +50,7 @@ function script ArtisFlyingPiouLogic { if (.@q != 1) { mesn "Narrator"; - mes col(l("You scare the piou, but let it go."), 9); + mesc(l("You scare the piou, but let it go."), 9); close; } @@ -75,7 +75,7 @@ function script ArtisFlyingPiouLogic { npcwalkto .@x, .@y; .@trader$ = "Salem#001-1"; mesn "Narrator"; - mes col(l("You caught the piou, but it's trying to escape from you. You'd better hurry back to Salem."), 9); + mesc(l("You caught the piou, but it's trying to escape from you. You'd better hurry back to Salem."), 9); set getvariableofnpc(.LastPiouHunter$, .@trader$), strcharinfo(0); set getvariableofnpc(.PiouEscapedMessage$, .@trader$), l("Oh no, the piou escaped!"); set getvariableofnpc(.LastPiouHunterID, .@trader$), .@charid; -- cgit v1.2.3-60-g2f50