diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-09 15:45:46 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-09 15:45:46 -0300 |
commit | 7494c464a0936e56a884fbfb47484e66f8e9eabc (patch) | |
tree | 17e6ff70d1506d1d54e1ff6d9662ae02902c7dc8 /npc/functions | |
parent | 830f7e456b3a1477265f1f1daad1d8c276bbd7b0 (diff) | |
download | serverdata-7494c464a0936e56a884fbfb47484e66f8e9eabc.tar.gz serverdata-7494c464a0936e56a884fbfb47484e66f8e9eabc.tar.bz2 serverdata-7494c464a0936e56a884fbfb47484e66f8e9eabc.tar.xz serverdata-7494c464a0936e56a884fbfb47484e66f8e9eabc.zip |
Cleanup
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/main.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 5fb9e9e7..89b2cff7 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -551,6 +551,10 @@ function script isat { return isin(getarg(0), getarg(1), getarg(2), 0); } +function script if_then_else { + return (getarg(0) ? getarg(1) : getarg(2)); +} + ////////////////////////////////////////////////////////////////////// // maptimer("<map>", <tick>, "<npc>::<event>") function script maptimer { |