diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-07-02 12:41:13 -0300 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-07-05 14:16:00 -0400 |
commit | e5b03ddac013749e1ae7c7805e1533d1a3df531a (patch) | |
tree | 3b7796198bdd90018eb3690cc8cf516dc515e0b5 /npc/functions/main.txt | |
parent | c88088ba36a6577ce81f6ed6cf1d0ceea73cd91b (diff) | |
download | serverdata-e5b03ddac013749e1ae7c7805e1533d1a3df531a.tar.gz serverdata-e5b03ddac013749e1ae7c7805e1533d1a3df531a.tar.bz2 serverdata-e5b03ddac013749e1ae7c7805e1533d1a3df531a.tar.xz serverdata-e5b03ddac013749e1ae7c7805e1533d1a3df531a.zip |
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.
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r-- | npc/functions/main.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 243ae383..97c34702 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,10 @@ function script col { return "##" + .@color + getarg(0) + "##0"; } +function script mesc { + return mes(col(getarg(0, ""), getarg(1, 9))); +} + function script adddefaultskills { if (getskilllv(NV_BASIC) < 6) { |