summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-24 23:19:45 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-24 23:19:45 -0300
commit226072b5fc269e2e1565d2e616938d6d11a36607 (patch)
treedf21442250ea85c2c1cef490882293ebaa293daf
parent88ba1fc25ee59699479604c9593bb28ea192248d (diff)
downloadserverdata-226072b5fc269e2e1565d2e616938d6d11a36607.tar.gz
serverdata-226072b5fc269e2e1565d2e616938d6d11a36607.tar.bz2
serverdata-226072b5fc269e2e1565d2e616938d6d11a36607.tar.xz
serverdata-226072b5fc269e2e1565d2e616938d6d11a36607.zip
Reset Mirror Lake Warp Data on login.
Still requires handling new users (passengers) instead of regular users
-rw-r--r--npc/functions/hub.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index 53df48131..f9987f9b5 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -26,13 +26,21 @@ function script HUB_Login {
if (getvaultid()) {
.@gto=get_byte(##00_INFO, 3);
.@mlp=get_nibble(##00_INFO, 5);
- // Target: Us. Handle Mirror Lakes
if (.@gto == $WID) {
+ // Warp to the proper Mirror Lake
switch (.@mlp) {
case 1: warp "018-7-1", 90, 47; break;
default: warp "014-4", 28, 31; break;
}
+
+ // Send debug information
debugmes("Vault User %d moved to lake %d.", getvaultid(), .@mlp);
+
+ // FIXME: Handle new user (non-native) accounts
+
+ // Unset the target lake/world
+ set_byte(##00_INFO, 0, 3);
+ set_nibble(##00_INFO, 0, 5);
}
}
return;