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
47
48
49
50
51
52
53
|
// TMW2 script
// Originals from TMW-BR
// Imported by Jesusalva
002-5,28,27,0 script #NardShip NPC_HIDDEN,117,29,{
//if (PC_DEST$ != "" && @timer_navio_running == 0) goto L_Timer;
end;
OnEvent:
if (@timer_navio_running == 0) end;
if (PC_DEST$ == "Candor") goto L_Candor;
else if (PC_DEST$ == "Tulim") goto L_Tulim;
else goto L_Error;
end;
L_Candor:
PC_DEST$ = "";
LOCATION$ = "Candor";
@timer_navio_running = 0;
warp "005-1", 49, 117;
message strcharinfo(0), l("@@ disembarks at Candor Island.", strcharinfo(0));
end;
L_Tulim:
PC_DEST$ = "";
LOCATION$ = "Tulim";
@timer_navio_running = 0;
warp "003-1", 81, 68;
message strcharinfo(0), l("@@ disembarks at Tulimshar.", strcharinfo(0));
end;
L_Error:
debugmes "ERROR: PLAYER INVALID PC_DEST ON #NardShip: " + PC_DEST$;
PC_DEST$ = "";
@timer_navio_running = 0;
warp "000-1", 22, 22;
dispbottom l("An error on your travel happened. Please report.");
end;
}
// Do not add .distance here.
002-5,40,26,0 script Elmo#002-5 NPC_ELMO,{
npctalk3 l("It won't be long before we reach our destination...");
// If player logged out during travel, this Elmo can reset player travel time.
if (PC_DEST$ != "" && @timer_navio_running == 0) goto L_Timer;
end;
L_Timer:
addtimer nard_time(PC_DEST$), "#NardShip::OnEvent";
@timer_navio_running = 1;
end;
}
|