From 42740f8474c56285cb0e8f0f8beb4e04b61c66b1 Mon Sep 17 00:00:00 2001
From: Jesusaves <cpntb1@ymail.com>
Date: Sat, 7 Sep 2019 19:00:23 -0300
Subject: Fix several critical bugs

---
 npc/018-6-0/main.txt | 27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

(limited to 'npc/018-6-0')

diff --git a/npc/018-6-0/main.txt b/npc/018-6-0/main.txt
index ef3af5d75..263173022 100644
--- a/npc/018-6-0/main.txt
+++ b/npc/018-6-0/main.txt
@@ -108,6 +108,7 @@ OnTouch:
     } else {
         warp "018-6-1", 83, 28;
     }
+    .alwaysVisible=true;
     end;
 }
 
@@ -125,7 +126,7 @@ OnTouch:
     .@q2=getq2(LoFQuest_Barbara);
     .@q3=getq3(LoFQuest_Barbara);
     if (.@q == 2 && .@q3 >= 3) {
-        addtimer("#01862_InstCtrl::OnLevel3", 100);
+        addtimer(100, "#01862_InstCtrl::OnLevel3");
         enablenpc instance_npcname("#FromWestHall", .@q2);
         enablenpc instance_npcname("#FromEastHall", .@q2);
         warp BarbaraInstCheck(2), 90, 32;
@@ -158,14 +159,13 @@ OnTouch:
         end;
     }
 
-    // Monster control
-    if (.@q3 & 2)
-        addtimer("#01862_InstCtrl::OnLevel2", 100);
-    else
-        addtimer("#01862_InstCtrl::OnLevel1", 100);
-
     // Check if quest must begin
     if (!(.@q3 & 1)) {
+        // Monster control
+        if (.@q3 & 2)
+            addtimer(100, "#01862_InstCtrl::OnLevel2");
+        else
+            addtimer(100, "#01862_InstCtrl::OnLevel1");
         // Mark the quest in progress as WEST HALL, and warp
         setq3 LoFQuest_Barbara, .@q3|64;
         enablenpc instance_npcname("#FromSouthHall", .@q2);
@@ -177,6 +177,7 @@ OnTouch:
 
 
 OnInit:
+    .alwaysVisible=true;
     disablenpc .name$;
     end;
 }
@@ -196,14 +197,13 @@ OnTouch:
         end;
     }
 
-    // Monster control
-    if (.@q3 & 1)
-        addtimer("#01862_InstCtrl::OnLevel2", 100);
-    else
-        addtimer("#01862_InstCtrl::OnLevel1", 100);
-
     // Check if quest must begin
     if (!(.@q3 & 2)) {
+        // Monster control
+        if (.@q3 & 1)
+            addtimer(100, "#01862_InstCtrl::OnLevel2");
+        else
+            addtimer(100, "#01862_InstCtrl::OnLevel1");
         // Mark the quest in progress as EAST HALL, and warp
         setq3 LoFQuest_Barbara, .@q3|128;
         enablenpc instance_npcname("#FromSouthHall", .@q2);
@@ -215,6 +215,7 @@ OnTouch:
 
 
 OnInit:
+    .alwaysVisible=true;
     disablenpc .name$;
     end;
 }
-- 
cgit v1.2.3-70-g09d2