summaryrefslogtreecommitdiff
path: root/world/map/npc/002-3/mining_camp_barrier.txt
blob: 2ff0b35e24c88ac5b73a80fa06c287f725e8adf6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//Sandstorm mine barrier

002-3.gat,82,32,0|script|#Sandstorm_Mine_Barrier|45,0,0,
{
    // This NPC previously used the variable TMW_Quest
    callfunc "ClearVarTMW_Quest";

    set @state, ((QUEST_SouthTulimshar & BYTE_2_MASK) >> BYTE_2_SHIFT);

    if (@state >= 8) goto L_Sandstorm_Barrier_Open;

    message strcharinfo(0), "Some force seems to block your entrance.";
    goto L_End;

L_Sandstorm_Barrier_Open:
    warp "002-4.gat",37,31;
    goto L_End;

L_End:
    set @state, 0;
    end;
}