From 9361aa027f9b998ba7c7c41e83e7a673bd66433c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 25 Oct 2018 07:49:15 -0300 Subject: Cindy Quest, probably complete --- npc/021-4/doors.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'npc/021-4/doors.txt') diff --git a/npc/021-4/doors.txt b/npc/021-4/doors.txt index 49e84cfb9..c97aec317 100644 --- a/npc/021-4/doors.txt +++ b/npc/021-4/doors.txt @@ -6,10 +6,20 @@ 021-4,67,27,0 script #Leave0214 NPC_NO_SPRITE,0,0,{ if ($@CINDY_STATE % 2 == 1 && $@CINDY_STATE < 150000) goto L_Blocked; + if ($@CINDY_STATE > 150000) goto L_Check; +L_Warp: warp "021-3", 24, 123; end; L_Blocked: dispbottom l("You cannot leave this room until either ALL yetis are dead, or you are dead yourself."); end; + +L_Check: + .@pl = getmapusers("021-4"); + if (.@pl <= 1) { // Because we must include the one who triggered this script wasn't warped yet + $@CINDY_HERO=""; + setnpcdisplay "Cindy#Outside", NPC_CINDY_CAGE; + } + goto L_Warp; } -- cgit v1.2.3-60-g2f50