summaryrefslogtreecommitdiff
path: root/npc/functions/main.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r--npc/functions/main.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/npc/functions/main.txt b/npc/functions/main.txt
index cb25afbe..08abae2f 100644
--- a/npc/functions/main.txt
+++ b/npc/functions/main.txt
@@ -568,6 +568,21 @@ function script fakenpcname {
return;
}
+function script npcwarp {
+ if (getargcount() > 2)
+ .@id=getnpcid(getarg(3));
+ else
+ .@id=getnpcid();
+
+ getmapxy(.@m$, .@x, .@y, UNITTYPE_NPC, strnpcinfo(0, "", .@id));
+ unitwarp(.@id, .@m$, getarg(0), getarg(1));
+ return;
+}
+
+function script get {
+ return getvariableofnpc(getarg(0), getarg(1));
+}
+
//////////////////////////////////////////////////////////////////////
// maptimer("<map>", <tick>, "<npc>::<event>")
function script maptimer {