summaryrefslogtreecommitdiff
path: root/world/map/npc/002-3/underground_palace_barrier.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/002-3/underground_palace_barrier.txt')
-rw-r--r--world/map/npc/002-3/underground_palace_barrier.txt14
1 files changed, 12 insertions, 2 deletions
diff --git a/world/map/npc/002-3/underground_palace_barrier.txt b/world/map/npc/002-3/underground_palace_barrier.txt
index 60befa87..a56fe801 100644
--- a/world/map/npc/002-3/underground_palace_barrier.txt
+++ b/world/map/npc/002-3/underground_palace_barrier.txt
@@ -2,11 +2,21 @@
002-3.gat,68,98,0|script|#UGP_Barrier|45,0,0,{
- if (TMW_Quest >= 37) goto L_Underground_Palace_Barrier_Open;
+ // This NPC previously used the variable TMW_Quest
+ callfunc "ClearVarTMW_Quest";
+
+ set @state, ((QUEST_SouthTulimshar & BYTE_2_MASK) >> BYTE_2_SHIFT);
+
+ if (@state >= 25) goto L_Underground_Palace_Barrier_Open;
+
message strcharinfo(0), "Some force seems to block your entrance.";
- end;
+ goto L_End;
L_Underground_Palace_Barrier_Open:
warp "002-4.gat",34,98;
+ goto L_End;
+
+L_End:
+ set @state, 0;
end;
}