summaryrefslogblamecommitdiff
path: root/world/map/npc/031-1/dock.txt
blob: 1904487e6d5061873204ff4906661c4cc3eb209f (plain) (tree)
1
2
3
4
5
6
7

                 
                                            
 
                          
        
 




                                                                         
                          
        

 
                                          
 




                            

 
                                         



                
                              
                             




                                                                                                                                    



                              
                             
        
 
// The ferry dock

031-1,110,108,0|script|Nivalis Koga|395,12,2
{
    callfunc "BoardFerry";
    end;

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

OnBoard:
    callfunc "BoardFerry";
    end;
}

031-1,99,109,0|script|Nivalis Dock|400,2,1
{
    set @npc_distance, 3;
    callfunc "PCtoNPCRange";
    if(@npc_check) end;
    callfunc "BoardFerry";
    end;
}

031-1,100,100,0|script|#NivalisDock|32767
{
    end;

OnCommandArrive:
    disablenpc "Nivalis Dock";
    enablenpc "Nivalis Koga";
    areatimer 0, "031-1", 97, 108, 108, 110, get(.warp_delay, "#FerryConfig"), strnpcinfo(0)+"::OnAreaWarp"; // warp players on dock
    end;

OnAreaWarp:
    callfunc "BoardFerry";
    end;

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