summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-09 16:47:59 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-09 16:47:59 -0300
commit539f5574f03a0d0178c1805ffbfd1df4f3bbe90f (patch)
treef0fc1b58fd819f8e840110ba6e2d23c1b3404631 /npc/functions/main.txt
parentc3829e354358f9ed972cfd4642805b191ceaebb6 (diff)
downloadserverdata-539f5574f03a0d0178c1805ffbfd1df4f3bbe90f.tar.gz
serverdata-539f5574f03a0d0178c1805ffbfd1df4f3bbe90f.tar.bz2
serverdata-539f5574f03a0d0178c1805ffbfd1df4f3bbe90f.tar.xz
serverdata-539f5574f03a0d0178c1805ffbfd1df4f3bbe90f.zip
Fix several tiny bugs
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index ab7dac8e..cb25afbe 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -557,7 +557,15 @@ function script if_then_else {
function script misceffect {
// or SELF + something
- return specialeffect(getarg(0), AREA, getarg(1, strnpcinfo(0));
+ return specialeffect(getarg(0), AREA, getarg(1, strnpcinfo(0)));
+}
+
+function script fakenpcname {
+ if (getargcount() > 2)
+ setnpcdisplay(getarg(0), getarg(1), getarg(2));
+ else
+ setnpcdisplay(getarg(0), getarg(1));
+ return;
}
//////////////////////////////////////////////////////////////////////