From 226072b5fc269e2e1565d2e616938d6d11a36607 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 24 May 2021 23:19:45 -0300 Subject: Reset Mirror Lake Warp Data on login. Still requires handling new users (passengers) instead of regular users --- npc/functions/hub.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-60-g2f50