From 01cb2e3de648856901394329072b3d504ae25a60 Mon Sep 17 00:00:00 2001 From: Reid Date: Fri, 23 Oct 2015 04:44:22 +0200 Subject: Add door script to warp from #32 to #35. --- npc/001-2-32/_import.txt | 1 + npc/001-2-32/doors.txt | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 npc/001-2-32/doors.txt (limited to 'npc') diff --git a/npc/001-2-32/_import.txt b/npc/001-2-32/_import.txt index 0b109f9fe..efea6ea6c 100644 --- a/npc/001-2-32/_import.txt +++ b/npc/001-2-32/_import.txt @@ -1,3 +1,4 @@ // Map 001-2-32 npc: npc/001-2-32/_warps.txt +npc: npc/001-2-32/doors.txt npc: npc/001-2-32/mapflags.txt diff --git a/npc/001-2-32/doors.txt b/npc/001-2-32/doors.txt new file mode 100644 index 000000000..45d7415a0 --- /dev/null +++ b/npc/001-2-32/doors.txt @@ -0,0 +1,23 @@ +// Evol scripts. +// Author: +// Reid +// Description: +// Doors NPCs. + +001-2-32,33,29,0 script ToFightRoom#001-2-32 NPC_HIDDEN,0,0,{ + +OnTouch: + if (mobcount("001-2-35.gat","all") > 0) + { + narrator + l("You hear some sound behind the door."), + l("Somebody is probably training, better wait for him to finish."); + } + else + { + warp "001-2-35", 24, 29; + } + + closedialog; + close; +} -- cgit v1.2.3-60-g2f50