diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-10-16 22:45:22 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-10-16 22:45:22 -0300 |
commit | 5a597ebb8adeeb524b650b482a5835f0b90b7259 (patch) | |
tree | 11bbe411c9f70cb306b3f04ce30fa87f6d515c8c /npc/functions/main.txt | |
parent | 70ae0856d40396172fbb7ca0fb04f540b5dee7ee (diff) | |
download | serverdata-5a597ebb8adeeb524b650b482a5835f0b90b7259.tar.gz serverdata-5a597ebb8adeeb524b650b482a5835f0b90b7259.tar.bz2 serverdata-5a597ebb8adeeb524b650b482a5835f0b90b7259.tar.xz serverdata-5a597ebb8adeeb524b650b482a5835f0b90b7259.zip |
Create a get_race() function. This way, if l() breaks stuff, I can remove it.
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 9446d218b..b1777cb3d 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -92,6 +92,11 @@ function script mesc { return; } +function script get_race { + .@g=getarg(0, Class); + return l($@allraces$[.@g]); +} + // Function to show narrator text. Accepts string args. // If first arg is a number N, then it represents bit flags. // Bit flags : |