diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-09 16:58:06 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-09 16:58:06 -0300 |
commit | 92f7a4436220c1b999c8ebcf3834a00a1b78b10b (patch) | |
tree | 87e16fbecc80966757153c92331ed8011100a2c2 /npc/functions/main.txt | |
parent | 539f5574f03a0d0178c1805ffbfd1df4f3bbe90f (diff) | |
download | serverdata-92f7a4436220c1b999c8ebcf3834a00a1b78b10b.tar.gz serverdata-92f7a4436220c1b999c8ebcf3834a00a1b78b10b.tar.bz2 serverdata-92f7a4436220c1b999c8ebcf3834a00a1b78b10b.tar.xz serverdata-92f7a4436220c1b999c8ebcf3834a00a1b78b10b.zip |
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
Diffstat (limited to 'npc/functions/main.txt')
-rw-r--r-- | npc/functions/main.txt | 15 |
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 { |