summaryrefslogtreecommitdiff
path: root/npc/000-2-2/doors.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/000-2-2/doors.txt')
-rw-r--r--npc/000-2-2/doors.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/npc/000-2-2/doors.txt b/npc/000-2-2/doors.txt
index 0cb554168..dab5c6b1c 100644
--- a/npc/000-2-2/doors.txt
+++ b/npc/000-2-2/doors.txt
@@ -6,10 +6,11 @@
// Description:
// Doors NPCs.
-000-2-2.gat,48,29,0,1 script DoorUpwards 0,0,0,{
+// Gender = 1
+000-2-2,48,29,0 script DoorUpwards 32767,0,0,{
OnTouch:
- if (getmapmobs("000-2-2.gat") > 0) goto L_Warn;
+ if (mobcount("000-2-2.gat","all") > 0) goto L_Warn;
goto L_Warp;
@@ -35,7 +36,8 @@ L_Warp:
close;
}
-000-2-2.gat,24,31,0,1 script LeftDoor 0,0,0,{
+// Gender = 1
+000-2-2,24,31,0 script LeftDoor 32767,0,0,{
OnTouch:
mesn "Narrator";
@@ -45,7 +47,7 @@ OnTouch:
next;
menu
- rif(countitem("JohanneKey") > 0, l("Use the key.")), L_Warp,
+ rif(countitemcolor("JohanneKey") > 0, l("Use the key.")), L_Warp,
l("Break the door."), L_Break,
l("Go away."), -;