summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/savepoint.txt16
-rw-r--r--npc/functions/util.txt11
2 files changed, 11 insertions, 16 deletions
diff --git a/npc/functions/savepoint.txt b/npc/functions/savepoint.txt
deleted file mode 100644
index 767476030..000000000
--- a/npc/functions/savepoint.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-// TMW2 Script
-// Author: Jesusalva
-// Description: Save utils
-
-// TODO: Implement elsewhere
-// Warps home and updates LOCATION$
-function script teleporthome {
- warp "Save", 0, 0;
- .@i=array_find($@LOCMASTER_MAP$, getmap());
- if (.@i >= 0)
- EnterTown($@LOCMASTER_LOC$[.@i]);
- else
- debugmes("[ERROR] Invalid Town Map for Time Flask: %s", getmap());
- return;
-}
-
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 125f60044..1b088cdcc 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -1005,6 +1005,17 @@ function script MapToLoc {
return $@LOCMASTER_LOC$[.@lx];
}
+// Warps home and updates LOCATION$
+function script teleporthome {
+ warp "Save", 0, 0;
+ .@i=array_find($@LOCMASTER_MAP$, getmap());
+ if (.@i >= 0)
+ EnterTown($@LOCMASTER_LOC$[.@i]);
+ else
+ debugmes("[ERROR] Invalid Town Map for Time Flask: %s", getmap());
+ return;
+}
+
// Returns TOP 3 Average Level
// TOP3AVERAGELVL( - )
function script TOP3AVERAGELVL {