diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-02 12:41:13 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-07-02 12:41:13 -0300 |
commit | c8cfdf0c64f67e00f627efc39894a9a8666b2f58 (patch) | |
tree | 4bf5a4df8285d20c34aef38facc628c948a3465d /npc/functions | |
parent | 435ace0cb46b9e636c423d3eaf07d9ebf419a7f8 (diff) | |
download | serverdata-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/functions')
-rw-r--r-- | npc/functions/main.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 243ae383..2e92a97b 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -1,6 +1,7 @@ // Evol functions. // Authors: // 4144 +// Jesusalva // Travolta // Description: // Build in functions. @@ -42,6 +43,11 @@ function script col { return "##" + .@color + getarg(0) + "##0"; } +function script mesc { + mes(col(getarg(0),getarg(1,9))); + return; +} + function script adddefaultskills { if (getskilllv(NV_BASIC) < 6) { |