From a0f2241ba02542b26eaed678fabfe9286c82208e Mon Sep 17 00:00:00 2001 From: jak1 Date: Tue, 16 Feb 2016 16:14:21 +0100 Subject: added more checks and imported the npc --- npc/001-2-34/doors.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'npc/001-2-34') diff --git a/npc/001-2-34/doors.txt b/npc/001-2-34/doors.txt index b417675f..b4a483e9 100644 --- a/npc/001-2-34/doors.txt +++ b/npc/001-2-34/doors.txt @@ -7,7 +7,14 @@ 001-2-34,23,29,0 script ToTrainingRoom#001-2-34 NPC_HIDDEN,0,0,{ OnTouch: - if (mobcount("001-2-36.gat","all") > 0) + if ((getmapusers($@MAP_NAME$) == 0) && ($@FightingIsActive > 0)) + { + set $@FightingIsActive, 0; + killmonsterall "001-2-36.gat"; + + } + + if (mobcount("001-2-36.gat","all") > 0 && $@FightingIsActive > 0) { narrator l("You hear some sound behind the door."), -- cgit v1.2.3-70-g09d2