summaryrefslogblamecommitdiff
path: root/world/map/npc/002-1/sandstorm_mine_barrier.txt
blob: 49c9b733dfff51df08097e3bdc7c90e448f7e2c1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                        
                                                         
 






                                                                       
                                                                       
               
 
                         
                           



                  
        
 
//Sandstorm mine barrier

002-1.gat,20,94,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-3.gat",37,31;
    goto L_End;

L_End:
    set @state, 0;
    end;
}