summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-09 16:26:10 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-09 16:26:10 -0300
commitc3829e354358f9ed972cfd4642805b191ceaebb6 (patch)
treeb9b24b183ea3d1fda7681d3cefe360be008e6a89 /npc/functions/main.txt
parentb8ac7c7b4b86b0debd229ad29cec48e945b7a098 (diff)
downloadserverdata-c3829e354358f9ed972cfd4642805b191ceaebb6.tar.gz
serverdata-c3829e354358f9ed972cfd4642805b191ceaebb6.tar.bz2
serverdata-c3829e354358f9ed972cfd4642805b191ceaebb6.tar.xz
serverdata-c3829e354358f9ed972cfd4642805b191ceaebb6.zip
This should fix PC distance bug
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index 89b2cff7..ab7dac8e 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -555,6 +555,11 @@ function script if_then_else {
return (getarg(0) ? getarg(1) : getarg(2));
}
+function script misceffect {
+ // or SELF + something
+ return specialeffect(getarg(0), AREA, getarg(1, strnpcinfo(0));
+}
+
//////////////////////////////////////////////////////////////////////
// maptimer("<map>", <tick>, "<npc>::<event>")
function script maptimer {