summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-28 21:54:34 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-28 21:54:34 -0300
commitce20c7c97760915ae5ac838dc5b732ef6da50195 (patch)
treeb875b64de7315c9208dbb2d5eda780a1b1c8d675 /npc/functions
parent08268b51173bdc1ae12d359b24b0e0562156a8d2 (diff)
downloadserverdata-ce20c7c97760915ae5ac838dc5b732ef6da50195.tar.gz
serverdata-ce20c7c97760915ae5ac838dc5b732ef6da50195.tar.bz2
serverdata-ce20c7c97760915ae5ac838dc5b732ef6da50195.tar.xz
serverdata-ce20c7c97760915ae5ac838dc5b732ef6da50195.zip
Use EnterTown() on ships
Diffstat (limited to 'npc/functions')
-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;
+}
+