From a50d8bb74a3e421f5af3ea81cfd3d153a923d783 Mon Sep 17 00:00:00 2001 From: Joseph Botosh Date: Tue, 27 Oct 2015 17:10:48 +0200 Subject: Killing a Crafty teleports back to Ship --- npc/001-2-14/_import.txt | 1 + npc/001-2-14/_mobs.txt | 2 +- npc/001-2-14/teleport.txt | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 npc/001-2-14/teleport.txt 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; + +} -- cgit v1.2.3-60-g2f50