From d6b5551bff867250edcdc36455ef32844ee2b935 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Nov 2014 20:23:22 +0300 Subject: convert server data for using with hercules. --- npc/functions/main.txt | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 npc/functions/main.txt (limited to 'npc/functions/main.txt') diff --git a/npc/functions/main.txt b/npc/functions/main.txt new file mode 100644 index 00000000..67677d1a --- /dev/null +++ b/npc/functions/main.txt @@ -0,0 +1,44 @@ +// Evol functions. +// Authors: +// 4144 +// Description: +// Build in functions. + +function script menuimage { + return getarg(0) + "|" + getarg(1); +} + +function script mesn { + if (getargcount() > 0) + { + .@s$ = "[" + getarg(0) + "]"; + } + else + { + .@s$ = "[" + strnpcinfo(1) + "]"; + } + mes .@s$; + return; +} + +function script mesq { + mes "\"" + getarg(0)+ "\""; + return; +} + +function script g { + mes Sex == 0 ? getarg(0) : getarg(1); + return; +} + +function script lg { + mes Sex == 0 ? l(getarg(0)) : l(getarg(1)); + return; +} + +function script col { + .@color = getarg(1); + if (.@color < 0) .@color = 0; + if (.@color > 9) .@color = 9; + return "##" + .@color + getarg(0) + "##0"; +} -- cgit v1.2.3-60-g2f50