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/functions/util.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'npc/functions/util.txt') diff --git a/npc/functions/util.txt b/npc/functions/util.txt index 10c9fbbfa..78ba1f519 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -91,4 +91,28 @@ function script nard_reputation { } +// Returns time for ship travel. +// Can be modified by a factor. +function script nard_time { + // Estimates time to move by ship from LOCATION$ to getarg(0) + + // Candor + if (LOCATION$ == "Candor") { + if (getarg(0) == "Tulim") + return 42000; + + } + // Candor + if (LOCATION$ == "Tulim") { + if (getarg(0) == "Candor") + return 42000; + + } + + // Error + debugmes "ERROR, INVALID LOCATION AND DESTINATION"; + debugmes l("@@ -> @@", LOCATION$, getarg(0)); + dispbottom l("An error on your travel time happened. Please report."); + return 99999999999; +} -- cgit v1.2.3-60-g2f50