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

                        
                        
 
                                                           
                                                                    


        
                                       


                                               

        

                  
                         
                             
                          
                                                                                 

        

                  
                        
                             

                                                                             

        
        
                  
                             
                         
                                                                                           


        
                             
                                                  
                                                                      

                                                                                  


        
                                                       

                             
 
 
// TMW2 script
// Originals from TMW-BR
// Imported by Jesusalva

002-5,28,27,0	script	#NardShip	NPC_HIDDEN,117,29,{
    //if (PC_DEST$ != "" && @timer_navio_running == 0) goto L_Timer;
    end;

OnEvent:
    if (@timer_navio_running == 0) end;
    if (PC_DEST$ == "Candor") goto L_Candor;
    else if (PC_DEST$ == "Tulim") goto L_Tulim;
    else goto L_Error;
    end;

L_Candor:
    PC_DEST$ = "";
    LOCATION$ = "Candor";
    @timer_navio_running = 0;
    warp "005-1", 49, 117;
    message strcharinfo(0), l("@@ disembarks at Candor Island.", strcharinfo(0));
    end;

L_Tulim:
    PC_DEST$ = "";
    LOCATION$ = "Tulim";
    @timer_navio_running = 0;
    warp "003-1", 81, 68;
    message strcharinfo(0), l("@@ disembarks at Tulimshar.", strcharinfo(0));
    end;

L_Error:
    PC_DEST$ = "";
    @timer_navio_running = 0;
    warp "000-1", 22, 22;
    Exception("PLAYER INVALID PC_DEST ON #NardShip: " + PC_DEST$, RB_DEFAULT | RB_ISFATAL);
    end;
}

// Do not add .distance here.
002-5,40,26,0	script	Elmo#002-5	NPC_ELMO,{
    npctalk3 l("It won't be long before we reach our destination...");
    // If player logged out during travel, this Elmo can reset player travel time.
    if (PC_DEST$ != "" && @timer_navio_running == 0) goto L_Timer;
    end;

L_Timer:
    addtimer nard_time(PC_DEST$), "#NardShip::OnEvent";
    @timer_navio_running = 1;
    end;

}