summaryrefslogtreecommitdiff
path: root/world/map/npc/029-1/dock.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/029-1/dock.txt')
-rw-r--r--world/map/npc/029-1/dock.txt33
1 files changed, 22 insertions, 11 deletions
diff --git a/world/map/npc/029-1/dock.txt b/world/map/npc/029-1/dock.txt
index 0252368b..fcb27b6c 100644
--- a/world/map/npc/029-1/dock.txt
+++ b/world/map/npc/029-1/dock.txt
@@ -1,23 +1,29 @@
// The ferry dock
-// Ferry Sign
-029-1,43,104,0|script|Ferry Schedule#8|397
+029-1,46,111,0|script|Candor Dock|400,1,0
{
- callfunc "FerryManifest";
+ set @npc_distance, 1;
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
+ callfunc "BoardCandorFerry";
end;
-}
-029-1,46,110,0|script|Candor Dock|400,3,3
-{
- set @DockNumber, 1;
- callfunc "FerryManifest";
- close;
+OnTouch:
+ addtimer get(.warp_delay, "#FerryConfig"), strnpcinfo(0)+"::OnBoard";
+ end;
+
+OnBoard:
+ callfunc "BoardCandorFerry";
+ end;
}
-029-1,51,118,0|script|Candor Koga|395,8,8
+029-1,51,118,0|script|Candor Koga|395,8,7
{
+ set @npc_distance, 8;
+ callfunc "PCtoNPCRange";
+ if(@npc_check) end;
callfunc "BoardCandorFerry";
- close;
+ end;
}
029-1,55,110,0|script|#CandorDock|32767
@@ -26,6 +32,11 @@
OnCommandArrive:
disablenpc "Candor Dock";
enablenpc "Candor Koga";
+ areatimer 0, "029-1", 39, 111, 53, 113, get(.warp_delay, "#FerryConfig"), strnpcinfo(0)+"::OnAreaWarp"; // warp players on dock
+ end;
+
+OnAreaWarp:
+ callfunc "BoardCandorFerry";
end;
OnCommandWarp: