summaryrefslogtreecommitdiff
path: root/npc/functions/savepoint.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/savepoint.txt')
-rw-r--r--npc/functions/savepoint.txt17
1 files changed, 16 insertions, 1 deletions
diff --git a/npc/functions/savepoint.txt b/npc/functions/savepoint.txt
index 90c190c32..df2bed34c 100644
--- a/npc/functions/savepoint.txt
+++ b/npc/functions/savepoint.txt
@@ -1,6 +1,21 @@
-// Deprecated
+// TMW2 Script
+// Author: Jesusalva
+// Description: Save utils
function script savepointparticle {
debugmes "[ERROR] Usage of savepointparticle() is deprecated.";
return;
}
+
+// 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;
+}
+