summaryrefslogblamecommitdiff
path: root/world/map/npc/029-1/dock.txt
blob: fcb27b6ccb8a9f3d68b0365553e261343fbf073b (plain) (tree)
1
2
3
4
5
6
7
8
9

                 
                                         
 



                                
        
 






                                                                         

 
                                         
 


                            
                                
        

 
                                       


                
                             
                            




                                                                                                                                   



                             
                            
        
 
// The ferry dock

029-1,46,111,0|script|Candor Dock|400,1,0
{
    set @npc_distance, 1;
    callfunc "PCtoNPCRange";
    if(@npc_check) end;
    callfunc "BoardCandorFerry";
    end;

OnTouch:
    addtimer get(.warp_delay, "#FerryConfig"), strnpcinfo(0)+"::OnBoard";
    end;

OnBoard:
    callfunc "BoardCandorFerry";
    end;
}

029-1,51,118,0|script|Candor Koga|395,8,7
{
    set @npc_distance, 8;
    callfunc "PCtoNPCRange";
    if(@npc_check) end;
    callfunc "BoardCandorFerry";
    end;
}

029-1,55,110,0|script|#CandorDock|32767
{
    end;
OnCommandArrive:
    disablenpc "Candor Dock";
    enablenpc "Candor Koga";
    areatimer 0, "029-1", 39, 111, 53, 113, get(.warp_delay, "#FerryConfig"), strnpcinfo(0)+"::OnAreaWarp"; // warp players on dock
    end;

OnAreaWarp:
    callfunc "BoardCandorFerry";
    end;

OnCommandWarp:
    disablenpc "Candor Koga";
    enablenpc "Candor Dock";
    end;
}