summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-02 12:41:13 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-02 12:41:13 -0300
commitc8cfdf0c64f67e00f627efc39894a9a8666b2f58 (patch)
tree4bf5a4df8285d20c34aef38facc628c948a3465d /npc/items
parent435ace0cb46b9e636c423d3eaf07d9ebf419a7f8 (diff)
downloadserverdata-jesusalva/mesc.tar.gz
serverdata-jesusalva/mesc.tar.bz2
serverdata-jesusalva/mesc.tar.xz
serverdata-jesusalva/mesc.zip
mesc() is a function to optimize mes(col(l())), saving parenthesis.jesusalva/mesc
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.
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/croconut.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/npc/items/croconut.txt b/npc/items/croconut.txt
index eb8b6d65..8e54971d 100644
--- a/npc/items/croconut.txt
+++ b/npc/items/croconut.txt
@@ -14,7 +14,7 @@
OnUse:
mesn "Narrator";
- mes col(l("Do you want to cut this @@?", getitemlink(Croconut)), 9);
+ mesc(l("Do you want to cut this @@?", getitemlink(Croconut)), 9);
next;
menu
@@ -27,7 +27,7 @@ OnUse:
L_Weapon:
mes "";
mesn "Narrator";
- mes col(l("Which of your weapons do you want to use in order to cut this @@?", getitemlink(Croconut)), 9);
+ mesc(l("Which of your weapons do you want to use in order to cut this @@?", getitemlink(Croconut)), 9);
next;
menu
@@ -48,24 +48,24 @@ L_TooWeak:
if ( (.@q == 3) || (.@q == 4) || (.@q == 5) ) goto L_Weak;
L_TooWeakLost:
- mes col(l("You hit too hard with your fist, you destroyed your @@.", getitemlink(Croconut)), 9);
+ mesc(l("You hit too hard with your fist, you destroyed your @@.", getitemlink(Croconut)), 9);
close;
L_TooWeakFail:
- mes col(l("Your hands are too weak, you did not succeed in opening this @@.", getitemlink(Croconut)), 9);
+ mesc(l("Your hands are too weak, you did not succeed in opening this @@.", getitemlink(Croconut)), 9);
getitem Croconut, 1;
close;
L_Weak:
- mes col(l("You opened the @@ in two parts, but you crushed one of them.", getitemlink(Croconut)), 9);
+ mesc(l("You opened the @@ in two parts, but you crushed one of them.", getitemlink(Croconut)), 9);
getitem HalfCroconut, 1;
close;
L_Good:
- mes col(l("You perfectly cut your @@ into two edible parts.", getitemlink(Croconut)), 9);
+ mesc(l("You perfectly cut your @@ into two edible parts.", getitemlink(Croconut)), 9);
getitem HalfCroconut, 2;
close;