From b8a7ee5eeee65369ba5e4e4a88815f8f6e67d9f2 Mon Sep 17 00:00:00 2001 From: Jessica Tölke Date: Sun, 27 Jan 2013 17:39:15 +0100 Subject: Restructuring the quests saved in TMW_Quest: Convert NPCs on 002-3 to new variables. --- world/map/npc/002-3/underground_palace_barrier.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'world/map/npc/002-3/underground_palace_barrier.txt') 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; } -- cgit v1.2.3-70-g09d2