summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-02 12:41:13 -0300
committergumi <git@gumi.ca>2018-07-05 14:16:00 -0400
commite5b03ddac013749e1ae7c7805e1533d1a3df531a (patch)
tree3b7796198bdd90018eb3690cc8cf516dc515e0b5 /npc/functions
parentc88088ba36a6577ce81f6ed6cf1d0ceea73cd91b (diff)
downloadserverdata-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')
-rw-r--r--npc/functions/main.txt5
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)
{