From 539f5574f03a0d0178c1805ffbfd1df4f3bbe90f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 9 Apr 2021 16:47:59 -0300 Subject: Fix several tiny bugs --- npc/functions/main.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'npc/functions') 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; } ////////////////////////////////////////////////////////////////////// -- cgit v1.2.3-60-g2f50