summaryrefslogtreecommitdiff
path: root/world/map/npc/029-1
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-03-22 14:26:26 -0400
committermekolat <mekolat@users.noreply.github.com>2016-04-25 06:57:42 -0400
commit7c21e91ca9dc319e16611e90ca64371c9a2678ab (patch)
treecd071b6b7e51ddc9572cb968c3ab7a3cc8b822b9 /world/map/npc/029-1
parent636ff667090ba472c4e1ad66290ed6370bdded66 (diff)
downloadserverdata-7c21e91ca9dc319e16611e90ca64371c9a2678ab.tar.gz
serverdata-7c21e91ca9dc319e16611e90ca64371c9a2678ab.tar.bz2
serverdata-7c21e91ca9dc319e16611e90ca64371c9a2678ab.tar.xz
serverdata-7c21e91ca9dc319e16611e90ca64371c9a2678ab.zip
further ferry improvements
Diffstat (limited to 'world/map/npc/029-1')
-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: