From 92f7a4436220c1b999c8ebcf3834a00a1b78b10b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 9 Apr 2021 16:58:06 -0300 Subject: Remove some chunks of unused data + legacy conversion. We'll need some Moubootaur Legends Advanced Builtins, to support Focus skills. It is the same as Rebirth Traits was supposed to be so should be easy-ish --- npc/functions/main.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'npc/functions/main.txt') 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("", , "::") function script maptimer { -- cgit v1.2.3-60-g2f50