diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-04-13 18:39:07 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-04-13 18:39:07 -0300 |
commit | ef1c3e81e2e0372e882fc7e0d76daf24cc4cc589 (patch) | |
tree | f43032c25c90af64eb69e2dc61192bfb50428cdb /npc/functions/location.txt | |
parent | 2d3024a574858935aac4c4a4fa078b357498531a (diff) | |
download | serverdata-ef1c3e81e2e0372e882fc7e0d76daf24cc4cc589.tar.gz serverdata-ef1c3e81e2e0372e882fc7e0d76daf24cc4cc589.tar.bz2 serverdata-ef1c3e81e2e0372e882fc7e0d76daf24cc4cc589.tar.xz serverdata-ef1c3e81e2e0372e882fc7e0d76daf24cc4cc589.zip |
Fix typos and record location changes when using the Koga
Diffstat (limited to 'npc/functions/location.txt')
-rw-r--r-- | npc/functions/location.txt | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/npc/functions/location.txt b/npc/functions/location.txt index 093764af..e40148c4 100644 --- a/npc/functions/location.txt +++ b/npc/functions/location.txt @@ -85,34 +85,19 @@ function script TPToLoc { function script POL_LocToTP { .@tw$=strtoupper(getarg(0, LOCATION$)); + // TODO: Change this to use the arrays instead if (.@tw$ == "TULIM") return TP_TULIM; - if (.@tw$ == "HALIN") - return TP_HALIN; - if (.@tw$ == "HURNS") return TP_HURNS; - if (.@tw$ == "LOF") - return TP_LOF; - if (.@tw$ == "NIVAL") return TP_NIVAL; - if (.@tw$ == "ARTIS") - return TP_ARTIS; - if (.@tw$ == "CANDOR") return TP_CANDOR; - if (.@tw$ == "LILIT") - return TP_LILIT; - - // TODO: Change this to use npc/config/location.txt instead - if (.@tw$ == "FROSTIA") - return TP_FROST; - return Exception("Invalid town requested / POL_LocToTP", RB_DEFAULT|RB_SPEECH, -1); } |