diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-04 20:23:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-04 22:56:41 +0300 |
commit | d6b5551bff867250edcdc36455ef32844ee2b935 (patch) | |
tree | 16acaf1c9a81b58ceb21bc4524a087c14f23735f /npc/functions/main.txt | |
parent | 905dada713af49bb610177c4842685628a1c0a97 (diff) | |
download | serverdata-d6b5551bff867250edcdc36455ef32844ee2b935.tar.gz serverdata-d6b5551bff867250edcdc36455ef32844ee2b935.tar.bz2 serverdata-d6b5551bff867250edcdc36455ef32844ee2b935.tar.xz serverdata-d6b5551bff867250edcdc36455ef32844ee2b935.zip |
convert server data for using with hercules.
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r-- | npc/functions/main.txt | 44 |
1 files changed, 44 insertions, 0 deletions
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"; +} |