summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r--npc/functions/util.txt24
1 files changed, 24 insertions, 0 deletions
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;
+}