summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/018-6-2/main.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/npc/018-6-2/main.txt b/npc/018-6-2/main.txt
index 779c7098f..d34deb632 100644
--- a/npc/018-6-2/main.txt
+++ b/npc/018-6-2/main.txt
@@ -15,28 +15,30 @@ OnTouch:
.@q3=getq3(LoFQuest_Barbara);
if (.@q == 2) {
// 1/64 - West Puzzle
- if (!(.@q3 & 64)) {
+ if ((.@q3 & 64)) {
warp BarbaraInstCheck(0), 68, 90;
setq3 LoFQuest_Barbara, .@q3|1;
.@q3=getq3(LoFQuest_Barbara);
- setq3 LoFQuest_Barbara, .@q3^64;
+ setq3 LoFQuest_Barbara, .@q3-64;
.@q3=getq3(LoFQuest_Barbara);
disablenpc instance_npcname(.name$, .@q2);
// Puzzle complete, enable next NPC
if (.@q3 == 3)
enablenpc instance_npcname("#ToSouthHall", .@q2);
+ end;
}
// 2/128 - East Puzzle
- else if (!(.@q3 & 128)) {
+ else if ((.@q3 & 128)) {
warp BarbaraInstCheck(0), 112, 90;
setq3 LoFQuest_Barbara, .@q3|2;
.@q3=getq3(LoFQuest_Barbara);
- setq3 LoFQuest_Barbara, .@q3^128;
+ setq3 LoFQuest_Barbara, .@q3-128;
.@q3=getq3(LoFQuest_Barbara);
disablenpc instance_npcname(.name$, .@q2);
// Puzzle complete, enable next NPC
if (.@q3 == 3)
enablenpc instance_npcname("#ToSouthHall", .@q2);
+ end;
}
// Wut
else {