diff options
Diffstat (limited to 'world/map/npc/031-1/dock.txt')
-rw-r--r-- | world/map/npc/031-1/dock.txt | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/world/map/npc/031-1/dock.txt b/world/map/npc/031-1/dock.txt index a2f19941..1904487e 100644 --- a/world/map/npc/031-1/dock.txt +++ b/world/map/npc/031-1/dock.txt @@ -1,23 +1,26 @@ // The ferry dock -// Ferry Sign -031-1,95,107,0|script|Ferry Schedule#6|398 +031-1,110,108,0|script|Nivalis Koga|395,12,2 { - callfunc "FerryManifest"; + callfunc "BoardFerry"; end; -} -031-1,110,108,0|script|Nivalis Koga|395,6,2 -{ +OnTouch: + addtimer get(.warp_delay, "#FerryConfig"), strnpcinfo(0)+"::OnBoard"; + end; + +OnBoard: callfunc "BoardFerry"; - close; + end; } -031-1,99,109,0|script|Nivalis Dock|400,3,3 +031-1,99,109,0|script|Nivalis Dock|400,2,1 { - set @DockNumber, 2; - callfunc "FerryManifest"; - close; + set @npc_distance, 3; + callfunc "PCtoNPCRange"; + if(@npc_check) end; + callfunc "BoardFerry"; + end; } 031-1,100,100,0|script|#NivalisDock|32767 @@ -27,6 +30,11 @@ 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: |