1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// The ferry dock
029-1,46,111,0|script|Candor Dock|400,1,0
{
set @npc_distance, 1;
callfunc "PCtoNPCRange";
if(@npc_check) end;
callfunc "BoardCandorFerry";
end;
}
029-1,51,118,0|script|Candor Koga|395,8,7
{
set @npc_distance, 8;
callfunc "PCtoNPCRange";
if(@npc_check) end;
callfunc "BoardCandorFerry";
end;
OnTouch:
addtimer get(.warp_delay, "#FerryConfig"), strnpcinfo(0)+"::OnBoard";
end;
OnBoard:
callfunc "BoardCandorFerry";
end;
}
029-1,55,110,0|script|#CandorDock|32767
{
end;
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:
disablenpc "Candor Koga";
enablenpc "Candor Dock";
end;
}
|