summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-28 22:07:51 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-28 22:07:51 -0300
commit5078989542df030741ed3f1acd79d438052c13c9 (patch)
treea20076bc9b2c6d83817e2a9b8144f5e3990d5ab5 /npc/functions/util.txt
parent3b2bb2b88cf428e3167067200f9918ded1d77ca8 (diff)
downloadserverdata-5078989542df030741ed3f1acd79d438052c13c9.tar.gz
serverdata-5078989542df030741ed3f1acd79d438052c13c9.tar.bz2
serverdata-5078989542df030741ed3f1acd79d438052c13c9.tar.xz
serverdata-5078989542df030741ed3f1acd79d438052c13c9.zip
When player is exiled from a town, if they already were saved there, unsave.
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r--npc/functions/util.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 1b088cdcc..95087455e 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -1005,6 +1005,13 @@ function script MapToLoc {
return $@LOCMASTER_LOC$[.@lx];
}
+// Gets the location code for TP code
+function script TPToLoc {
+ .@i=array_find($@LOCMASTER_TP, getarg(0));
+ return $@LOCMASTER_MAP$[.@i];
+ return;
+}
+
// Warps home and updates LOCATION$
function script teleporthome {
warp "Save", 0, 0;