summaryrefslogblamecommitdiff
path: root/npc/002-3/doors.txt
blob: 75a08348dac21c4dbb4fe1f8392861a42b0beed3 (plain) (tree)
1
2
3
4
5
6
7
8
9
                
          
               
               
                             
 
                                                        

        












                                                                          
                                

                              
     
                               

                             
     
                                        

          
 

 
                                                        


                                     
                                  


          













                                                        

          
// TMW2 Scripts.
// Author:
//    Jesusalva
// Description:
//    Nard's ship Doors NPCs.

002-3,30,28,0	script	AreaNPC#doors4	NPC_HIDDEN,0,0,{

OnTouch:
    if (getq(ShipQuests_Julia) < 3) {
        setcamnpc "Julia";
        mesn "Julia";
        mesq l("The captain has locked the door, you should go see him.");
        next;

        mesn "Narrator";
        mesc l("Captain Nard is in the room to your right.");
        next;
        restorecam;
        close;
    }

    if (LOCATION$ == "Candor") {
        warp "005-1", 42, 107;
        close;
    }
    if (LOCATION$ == "Tulim") {
        warp "003-1", 81, 68;
        close;
    }
    debugmes "Script error: 002-3 door";
    close;


}

002-3,44,28,0	script	AreaNPC#doors5	NPC_HIDDEN,0,0,{

OnTouch:
    .@julia = getq(ShipQuests_Julia);
    if (.@julia >= 2) goto L_Warp;
    close;

L_Warp:
    if (LOCATION$ == "") 
        warp "002-4", 20, 27;
    else
        warp "002-4@"+LOCATION$, 20, 27;
    close;
}

002-3,42,25,0	script	AreaNPC#002-3d	NPC_HIDDEN,0,0,{

OnTouch:
    if (LOCATION$ == "") 
        warp "002-1", 72, 29;
    else
        warp "002-1@"+LOCATION$, 72, 29;
    close;
}