diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-05-27 23:50:04 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-05-27 23:50:04 -0300 |
commit | 6824ded6fcab0cef75ef55d2d71453ed5937f535 (patch) | |
tree | 2267a1825aff30467196b63f03fa04ebfdc3f33b /npc/functions/util.txt | |
parent | 7f9621b7083c5edb3b9c35ccab0fe3b7f3f640ad (diff) | |
download | serverdata-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.txt | 24 |
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; +} |