summaryrefslogtreecommitdiff
path: root/npc/021-4/doors.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/021-4/doors.txt')
-rw-r--r--npc/021-4/doors.txt10
1 files changed, 10 insertions, 0 deletions
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;
}