summaryrefslogtreecommitdiff
path: root/npc/config
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-07-04 13:39:01 -0300
committerJesusaves <cpntb1@ymail.com>2020-07-04 13:39:01 -0300
commit2050c457b7aaf14e0dc6e6b2b4793da1be6f828b (patch)
tree92c91b5ac643612864a9ffe0ff12d3f1d57dfdec /npc/config
parent7c057bc19b36c71171a2c4155df5422f93b2c455 (diff)
downloadserverdata-2050c457b7aaf14e0dc6e6b2b4793da1be6f828b.tar.gz
serverdata-2050c457b7aaf14e0dc6e6b2b4793da1be6f828b.tar.bz2
serverdata-2050c457b7aaf14e0dc6e6b2b4793da1be6f828b.tar.xz
serverdata-2050c457b7aaf14e0dc6e6b2b4793da1be6f828b.zip
Update some old, precarious code
Diffstat (limited to 'npc/config')
-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;
+}
+