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/001-1 | |
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/001-1')
-rw-r--r-- | world/map/npc/001-1/dock.txt | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/world/map/npc/001-1/dock.txt b/world/map/npc/001-1/dock.txt index 0e9fb55b..077e3ce6 100644 --- a/world/map/npc/001-1/dock.txt +++ b/world/map/npc/001-1/dock.txt @@ -1,24 +1,30 @@ // The ferry dock // Author: Wushin -// Ferry Sign -001-1,61,71,0|script|Ferry Schedule#2|396 +001-1,75,70,0|script|Tulimshar Koga|395,9,4 { - callfunc "FerryManifest"; + set @npc_distance, 10; + callfunc "PCtoNPCRange"; + if(@npc_check) end; + callfunc "BoardFerry"; end; -} -001-1,75,70,0|script|Tulimshar Koga|395,8,3 -{ +OnTouch: + addtimer get(.warp_delay, "#FerryConfig"), strnpcinfo(0)+"::OnBoard"; + end; + +OnBoard: callfunc "BoardFerry"; - close; + end; } -001-1,68,72,0|script|Tulimshar Dock|400,3,3 +001-1,68,72,0|script|Tulimshar Dock|400,2,2 { - set @DockNumber, 2; - callfunc "FerryManifest"; - close; + set @npc_distance, 3; + callfunc "PCtoNPCRange"; + if(@npc_check) end; + callfunc "BoardFerry"; + end; } 001-1,70,70,0|script|#TulimsharDock|32767 @@ -27,6 +33,11 @@ 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: |