diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-09-07 19:09:55 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-09-07 19:09:55 -0300 |
commit | 66f4929ac6e7ceb63e4970b1e5aeb8403038b114 (patch) | |
tree | 34c4c2d3b751496e53b1d8295dc9dcd23ec3adeb | |
parent | 364d4c724c1e31a6ee6e4016e05e600413c7fe57 (diff) | |
download | serverdata-66f4929ac6e7ceb63e4970b1e5aeb8403038b114.tar.gz serverdata-66f4929ac6e7ceb63e4970b1e5aeb8403038b114.tar.bz2 serverdata-66f4929ac6e7ceb63e4970b1e5aeb8403038b114.tar.xz serverdata-66f4929ac6e7ceb63e4970b1e5aeb8403038b114.zip |
Wrong operands
-rw-r--r-- | npc/018-6-2/main.txt | 10 |
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 { |