blob: 0ba3606aac1c32fa837ffebe30f40688db5ea634 (
plain) (
tree)
|
|
// TMW2 scripts.
// Authors:
// Jesusalva
// Description:
// Cave logic
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, 122;
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;
}
|