summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Botosh <rumly111@gmail.com>2015-10-27 17:10:48 +0200
committerJoseph Botosh <rumly111@gmail.com>2015-10-27 17:10:48 +0200
commita50d8bb74a3e421f5af3ea81cfd3d153a923d783 (patch)
treeb0a29795479bc861eadf82b805a6a97a4eb77c48
parent2e782bc2100631abb4b17c35bbe48db646b97dd8 (diff)
downloadserverdata-a50d8bb74a3e421f5af3ea81cfd3d153a923d783.tar.gz
serverdata-a50d8bb74a3e421f5af3ea81cfd3d153a923d783.tar.bz2
serverdata-a50d8bb74a3e421f5af3ea81cfd3d153a923d783.tar.xz
serverdata-a50d8bb74a3e421f5af3ea81cfd3d153a923d783.zip
Killing a Crafty teleports back to Ship
-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 67b16509..52417d39 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 a183ab99..76ab85c4 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 00000000..4face176
--- /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;
+
+}