summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/009-1/teleporter.txt4
-rw-r--r--npc/018-5/teleporter.txt4
-rw-r--r--npc/024-1/teleporter.txt4
-rw-r--r--npc/functions/politics.txt26
4 files changed, 32 insertions, 6 deletions
diff --git a/npc/009-1/teleporter.txt b/npc/009-1/teleporter.txt
index 27eefc46a..f36abc917 100644
--- a/npc/009-1/teleporter.txt
+++ b/npc/009-1/teleporter.txt
@@ -29,8 +29,8 @@ OnTouch:
rif(TELEPORTERS & TP_TULIM, l("Tulimshar")),
rif(TELEPORTERS & TP_HURNS, l("Hurnscald")),
rif(TELEPORTERS & TP_NIVAL, l("Nivalis")),
- rif(TELEPORTERS & TP_ARTIS, l("Artis")),
- rif(TELEPORTERS & TP_ESPER, l("Esperia")),
+ rif(TELEPORTERS & TP_LOF, l("Land Of Fire")),
+ rif(TELEPORTERS & TP_FORT, l("Fortress Island")),
rif(TELEPORTERS & TP_BOSSR, l("The Monster King Fortress")),
l("None");
mes "";
diff --git a/npc/018-5/teleporter.txt b/npc/018-5/teleporter.txt
index 8a3dcdaff..7b3be840b 100644
--- a/npc/018-5/teleporter.txt
+++ b/npc/018-5/teleporter.txt
@@ -29,8 +29,8 @@ OnTouch:
rif(TELEPORTERS & TP_TULIM, l("Tulimshar")),
rif(TELEPORTERS & TP_HURNS, l("Hurnscald")),
rif(TELEPORTERS & TP_NIVAL, l("Nivalis")),
- rif(TELEPORTERS & TP_ARTIS, l("Artis")),
- rif(TELEPORTERS & TP_ESPER, l("Esperia")),
+ rif(TELEPORTERS & TP_LOF, l("Land Of Fire")),
+ rif(TELEPORTERS & TP_FORT, l("Fortress Island")),
rif(TELEPORTERS & TP_BOSSR, l("The Monster King Fortress")),
l("None");
mes "";
diff --git a/npc/024-1/teleporter.txt b/npc/024-1/teleporter.txt
index b24fb50fd..34595e695 100644
--- a/npc/024-1/teleporter.txt
+++ b/npc/024-1/teleporter.txt
@@ -29,8 +29,8 @@ OnTouch:
rif(TELEPORTERS & TP_TULIM, l("Tulimshar")),
rif(TELEPORTERS & TP_HURNS, l("Hurnscald")),
rif(TELEPORTERS & TP_NIVAL, l("Nivalis")),
- rif(TELEPORTERS & TP_ARTIS, l("Artis")),
- rif(TELEPORTERS & TP_ESPER, l("Esperia")),
+ rif(TELEPORTERS & TP_LOF, l("Land Of Fire")),
+ rif(TELEPORTERS & TP_FORT, l("Fortress Island")),
rif(TELEPORTERS & TP_BOSSR, l("The Monster King Fortress")),
l("None");
mes "";
diff --git a/npc/functions/politics.txt b/npc/functions/politics.txt
index b1c92a726..ba7cd4a90 100644
--- a/npc/functions/politics.txt
+++ b/npc/functions/politics.txt
@@ -68,6 +68,32 @@ function script SaleTaxes {
return;
}
+// Convert LOC (uppercase) to a TP variable
+// POL_LocToTP( {TOWNCODE} )
+function script POL_LocToTP {
+ .@tw$=strtoupper(getarg(0, LOCATION$));
+
+ 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$ == "FROSTIA")
+ return TP_FROSTIA;
+
+ return Exception("Invalid town requested / POL_LocToTP", RB_DEFAULT|RB_SPEECH, -1);
+}
+
- script Politics NPC_HIDDEN,{
OnSun0000: