// TMW2 script // Originals from TMW-BR // Imported by Jesusalva 002-5,28,27,0 script #NardShip NPC_HIDDEN,117,29,{ end; OnEvent: if (PC_DEST$ == "Candor") goto L_Candor; else if (PC_DEST$ == "Tulim") goto L_Tulim; else goto L_Error; end; 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_Tulim: PC_DEST$ = ""; @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..."); close2; // 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; }