From 6824ded6fcab0cef75ef55d2d71453ed5937f535 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 27 May 2018 23:50:04 -0300 Subject: Newest version of our travels!! Copy paste from TMW-BR --- npc/002-5/main.txt | 46 ++++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 22 deletions(-) (limited to 'npc/002-5') diff --git a/npc/002-5/main.txt b/npc/002-5/main.txt index 52609ff17..226f592bb 100644 --- a/npc/002-5/main.txt +++ b/npc/002-5/main.txt @@ -1,48 +1,50 @@ // TMW2 script // Originals from TMW-BR -// TODO WARNING: File not yet modified. DO NOT USE. +// Imported by Jesusalva -002-5,28,27,0 script #teleporterNavio NPC_HIDDEN,117,29,{ +002-5,28,27,0 script #NardShip NPC_HIDDEN,117,29,{ end; OnEvent: - if (PC_DEST == 1) goto L_Destino1; - if (PC_DEST == 2) goto L_Destino2; - if (PC_DEST == 3) goto L_Destino3; + if (PC_DEST$ == "Candor") goto L_Candor; + else if (PC_DEST$ == "Tulim") goto L_Tulim; + else goto L_Error; end; -L_Destino1: - message strcharinfo(0), "" + strcharinfo(0) + " desembarcou na Ilha de Bhramir."; - warp "007", 21, 94; - PC_DEST = 0; +L_Candor: + PC_DEST$ = ""; @timer_navio_running = 0; + warp "005-1", 42, 107; + message strcharinfo(0), l("@@ disembarks at Candor Island.", strcharinfo(0)); end; -L_Destino2: - message strcharinfo(0), "" + strcharinfo(0) + " desembarcou no Polo Norte."; - warp "010", 178, 67; - PC_DEST = 0; +L_Tulim: + PC_DEST$ = ""; @timer_navio_running = 0; + warp "003-1", 81, 68; + message strcharinfo(0), l("@@ disembarks at Tulimshar.", strcharinfo(0)); end; -L_Destino3: - message strcharinfo(0), "" + strcharinfo(0) + " desembarcou nas Terras Desconhecidas."; - warp "org016", 51, 102; - PC_DEST = 0; +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,{ - set @porto, 0; // Em alto mar - //callfunc "CapitaoMirc"; - hello; + npctalk3 l("It won't be long before we reach our destination..."); close2; - if (PC_DEST != 0 && @timer_navio_running == 0) goto L_Timer; + // 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 42000, "#teleporterNavio::OnEvent"; + addtimer nard_time(PC_DEST$), "#NardShip::OnEvent"; @timer_navio_running = 1; end; + } -- cgit v1.2.3-70-g09d2