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



                            
        
 




                                                                         
                          
        

 
                                           
 




                            

 
                                         


                
                                
                               




                                                                                                                                 



                                
                               

        
// The ferry dock
// Author: Wushin

001-1,75,70,0|script|Tulimshar Koga|395,9,4
{
    set @npc_distance, 10;
    callfunc "PCtoNPCRange";
    if(@npc_check) end;
    callfunc "BoardFerry";
    end;

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

OnBoard:
    callfunc "BoardFerry";
    end;
}

001-1,68,72,0|script|Tulimshar Dock|400,2,2
{
    set @npc_distance, 3;
    callfunc "PCtoNPCRange";
    if(@npc_check) end;
    callfunc "BoardFerry";
    end;
}

001-1,70,70,0|script|#TulimsharDock|32767
{
    end;
OnCommandArrive:
    disablenpc "Tulimshar Dock";
    enablenpc "Tulimshar Koga";
    areatimer 0, "001-1", 66, 71, 77, 73, get(.warp_delay, "#FerryConfig"), strnpcinfo(0)+"::OnAreaWarp"; // warp players on dock
    end;

OnAreaWarp:
    callfunc "BoardFerry";
    end;

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