summaryrefslogtreecommitdiff
path: root/world/map/npc/functions/gm_island.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-18 17:41:41 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-18 17:41:41 -0300
commit6609ed3a7aec3f32bda2df73e650611541452681 (patch)
treede1f4708ee1e0bf52f414aeef0f372cb5ef89e24 /world/map/npc/functions/gm_island.txt
parent0c8ad632ab52f8e3f71eacbf76b5a7ffee94677c (diff)
downloadserverdata-6609ed3a7aec3f32bda2df73e650611541452681.tar.gz
serverdata-6609ed3a7aec3f32bda2df73e650611541452681.tar.bz2
serverdata-6609ed3a7aec3f32bda2df73e650611541452681.tar.xz
serverdata-6609ed3a7aec3f32bda2df73e650611541452681.zip
Mr. Jak1 needed a puppeter. Here he goes. Have fun.
Diffstat (limited to 'world/map/npc/functions/gm_island.txt')
-rw-r--r--world/map/npc/functions/gm_island.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/world/map/npc/functions/gm_island.txt b/world/map/npc/functions/gm_island.txt
index 3e1127c4..900e0222 100644
--- a/world/map/npc/functions/gm_island.txt
+++ b/world/map/npc/functions/gm_island.txt
@@ -9,6 +9,36 @@ OnInit:
disablenpc "Gm Event#3";
end;
}
+-|script|#Puppet|32767
+{
+ mes "You found me! Now please send my coordinates to staff.";
+ close;
+
+OnSpawn:
+ callfunc "argv_splitter";
+ if (@argv$[4] == "") goto L_Failed;
+ set $@PMAP$, @argv$[0];
+ set $@PX, @argv$[1];
+ set $@PY, @argv$[2];
+ set $@PNAME$, @argv$[3];
+ set $@PNPC, @argv$[4];
+ debugmes "Map "+$@PMAP$+" ID "+$@PNPC;
+ if (puppet($@PMAP$, $@PX, $@PY, $@PNAME$, $@PNPC) < 1) debugmes "Error";
+ set $@PMAP$, "";
+ set $@PX, 0;
+ set $@PY, 0;
+ set $@PNAME$, "";
+ set $@PNPC, 0;
+ end;
+
+L_Failed:
+ message strcharinfo(0), "Syntax: @puppeter MAP X Y NAME NPCID";
+ end;
+
+OnInit:
+ registercmd chr(ATCMD_SYMBOL) + "puppeter", strnpcinfo(0)+"::OnSpawn";
+ end;
+}
function|script|GmWarp
{
if ($@GM_EVENT_WARP == 1) warp "028-1", 110, 30;