diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-03-22 14:26:26 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-04-25 06:57:42 -0400 |
commit | 7c21e91ca9dc319e16611e90ca64371c9a2678ab (patch) | |
tree | cd071b6b7e51ddc9572cb968c3ab7a3cc8b822b9 /world/map/npc/008-1/dock.txt | |
parent | 636ff667090ba472c4e1ad66290ed6370bdded66 (diff) | |
download | serverdata-7c21e91ca9dc319e16611e90ca64371c9a2678ab.tar.gz serverdata-7c21e91ca9dc319e16611e90ca64371c9a2678ab.tar.bz2 serverdata-7c21e91ca9dc319e16611e90ca64371c9a2678ab.tar.xz serverdata-7c21e91ca9dc319e16611e90ca64371c9a2678ab.zip |
further ferry improvements
Diffstat (limited to 'world/map/npc/008-1/dock.txt')
-rw-r--r-- | world/map/npc/008-1/dock.txt | 62 |
1 files changed, 46 insertions, 16 deletions
diff --git a/world/map/npc/008-1/dock.txt b/world/map/npc/008-1/dock.txt index 1ce308e6..acb3a23e 100644 --- a/world/map/npc/008-1/dock.txt +++ b/world/map/npc/008-1/dock.txt @@ -1,22 +1,29 @@ // The ferry dock -008-1,134,69,0|script|Ferry Schedule#5|397 +008-1,147,64,0|script|Hurnscald North Koga|395,10,3 { - callfunc "FerryManifest"; + set @npc_distance, 11; + callfunc "PCtoNPCRange"; + if(@npc_check) end; + callfunc "BoardFerry"; end; -} -008-1,147,64,0|script|Hurnscald North Koga|395,8,3 -{ +OnTouch: + addtimer get(.warp_delay, "#FerryConfig"), strnpcinfo(0)+"::OnBoard"; + end; + +OnBoard: callfunc "BoardFerry"; - close; + end; } -008-1,139,65,0|script|Hurnscald North Dock|400,3,3 +008-1,139,65,0|script|Hurnscald North Dock|400,2,1 { - set @DockNumber, 2; - callfunc "FerryManifest"; - close; + set @npc_distance, 3; + callfunc "PCtoNPCRange"; + if(@npc_check) end; + callfunc "BoardFerry"; + end; } 008-1,120,44,0|script|#Hurnscald NorthDock|32767 @@ -25,6 +32,11 @@ OnCommandArrive: disablenpc "Hurnscald North Dock"; enablenpc "Hurnscald North Koga"; + areatimer 0, "008-1", 137, 64, 141, 65, get(.warp_delay, "#FerryConfig"), strnpcinfo(0)+"::OnAreaWarp"; // warp players on dock + end; + +OnAreaWarp: + callfunc "BoardFerry"; end; OnCommandWarp: @@ -33,17 +45,30 @@ OnCommandWarp: end; } -008-1,147,75,0|script|Hurnscald South Koga|395,8,3 +008-1,147,75,0|script|Hurnscald South Koga|395,10,3 { + set @npc_distance, 10; + callfunc "PCtoNPCRange"; + if(@npc_check) end; callfunc "BoardCandorFerry"; - close; + end; + +OnTouch: + addtimer get(.warp_delay, "#FerryConfig"), strnpcinfo(0)+"::OnBoard"; + end; + +OnBoard: + callfunc "BoardCandorFerry"; + end; } -008-1,139,76,0|script|Hurnscald South Dock|400,3,3 +008-1,139,76,0|script|Hurnscald South Dock|400,2,1 { - set @DockNumber, 1; - callfunc "FerryManifest"; - close; + set @npc_distance, 3; + callfunc "PCtoNPCRange"; + if(@npc_check) end; + callfunc "BoardCandorFerry"; + end; } 008-1,65,25,0|script|#Hurnscald SouthDock|32767 @@ -52,6 +77,11 @@ OnCommandWarp: OnCommandArrive: disablenpc "Hurnscald South Dock"; enablenpc "Hurnscald South Koga"; + areatimer 0, "008-1", 137, 75, 141, 76, get(.warp_delay, "#FerryConfig"), strnpcinfo(0)+"::OnAreaWarp"; // warp players on dock + end; + +OnAreaWarp: + callfunc "BoardCandorFerry"; end; OnCommandWarp: |