summaryrefslogtreecommitdiff
path: root/world/map/npc/031-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/031-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/031-1')
-rw-r--r--world/map/npc/031-1/dock.txt30
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: