summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-05-27 23:50:04 -0300
committerJesusaves <cpntb1@ymail.com>2018-05-27 23:50:04 -0300
commit6824ded6fcab0cef75ef55d2d71453ed5937f535 (patch)
tree2267a1825aff30467196b63f03fa04ebfdc3f33b /npc/functions/util.txt
parent7f9621b7083c5edb3b9c35ccab0fe3b7f3f640ad (diff)
downloadserverdata-6824ded6fcab0cef75ef55d2d71453ed5937f535.tar.gz
serverdata-6824ded6fcab0cef75ef55d2d71453ed5937f535.tar.bz2
serverdata-6824ded6fcab0cef75ef55d2d71453ed5937f535.tar.xz
serverdata-6824ded6fcab0cef75ef55d2d71453ed5937f535.zip
Newest version of our travels!! Copy paste from TMW-BR
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;
+}