summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/001-2-14/_import.txt1
-rw-r--r--npc/001-2-14/_mobs.txt2
-rw-r--r--npc/001-2-14/teleport.txt18
3 files changed, 20 insertions, 1 deletions
diff --git a/npc/001-2-14/_import.txt b/npc/001-2-14/_import.txt
index 67b165096..52417d391 100644
--- a/npc/001-2-14/_import.txt
+++ b/npc/001-2-14/_import.txt
@@ -1,3 +1,4 @@
npc: npc/001-2-14/mapflags.txt
npc: npc/001-2-14/_warps.txt
npc: npc/001-2-14/_mobs.txt
+npc: npc/001-2-14/teleport.txt
diff --git a/npc/001-2-14/_mobs.txt b/npc/001-2-14/_mobs.txt
index a183ab99e..76ab85c46 100644
--- a/npc/001-2-14/_mobs.txt
+++ b/npc/001-2-14/_mobs.txt
@@ -1,4 +1,4 @@
// 001-2-14 mobs
// Crafty
-001-2-14.gat,32,32,7,4 monster Crafty 1018,6,30000,15000
+001-2-14.gat,32,32,7,4 monster Crafty 1018,6,30000,15000,"Teleporter::OnCraftyDeath"
diff --git a/npc/001-2-14/teleport.txt b/npc/001-2-14/teleport.txt
new file mode 100644
index 000000000..4face1767
--- /dev/null
+++ b/npc/001-2-14/teleport.txt
@@ -0,0 +1,18 @@
+// Evol scripts.
+// Author:
+// Travolta
+// Description:
+// Invisible NPC to teleport player back to the Ship.
+
+
+- script Teleporter -1,{
+
+OnCraftyDeath:
+ if (playerattached())
+ {
+ warp "000-2-1",50,38;
+ message strcharinfo(0), l("What a strange dream.");
+ }
+ end;
+
+}