summaryrefslogtreecommitdiff
path: root/npc/config/location.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/config/location.txt')
-rw-r--r--npc/config/location.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/npc/config/location.txt b/npc/config/location.txt
index 5a069545b..04b2c84d7 100644
--- a/npc/config/location.txt
+++ b/npc/config/location.txt
@@ -18,3 +18,18 @@ OnInit:
//debugmes "Locmaster: Index 5: %s [%s.gat (%d, %d)]", $@LOCMASTER_LOC$[5], $@LOCMASTER_MAP$[5], $@LOCMASTER_X[5], $@LOCMASTER_Y[5];
end;
}
+
+// Resaves your respawn point
+function script ResaveRespawn {
+ .@i=array_find($@LOCMASTER_LOC$, LOCATION$);
+ savepoint $@LOCMASTER_MAP$[.@i], $@LOCMASTER_X[.@i], $@LOCMASTER_Y[.@i];
+ return;
+}
+
+// Warps you to last visited town
+function script ReturnTown {
+ .@i=array_find($@LOCMASTER_LOC$, LOCATION$);
+ warp $@LOCMASTER_MAP$[.@i], $@LOCMASTER_X[.@i], $@LOCMASTER_Y[.@i];
+ return;
+}
+