From 88ba1fc25ee59699479604c9593bb28ea192248d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 24 May 2021 23:17:16 -0300 Subject: Handle Mirror Lake entries; For lake 0 and lake 1. --- npc/003-3/malindou.txt | 1 + npc/functions/hub.txt | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt index e954735bc..fe1bbaa93 100644 --- a/npc/003-3/malindou.txt +++ b/npc/003-3/malindou.txt @@ -69,6 +69,7 @@ OnInit: $BCONFD_DROP = 0; $BETASERVER = false; $AUTORESTART = false; + $WID = 1; $FIRESOFSTEAM[1] = 2000; $FIRESOFSTEAM[2] = 2000; $FIRESOFSTEAM[3] = 2000; diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index fdccd482d..53df48131 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -22,6 +22,19 @@ function script HUB_Login { if (CHAREG_CLEANUP < gettimetick(2)-PVP_WAITTIME) deletearray PVP_COOLDOWN; + // Mirror Lake functionality + if (getvaultid()) { + .@gto=get_byte(##00_INFO, 3); + .@mlp=get_nibble(##00_INFO, 5); + // Target: Us. Handle Mirror Lakes + if (.@gto == $WID) { + switch (.@mlp) { + case 1: warp "018-7-1", 90, 47; break; + default: warp "014-4", 28, 31; break; + } + debugmes("Vault User %d moved to lake %d.", getvaultid(), .@mlp); + } + } return; } -- cgit v1.2.3-60-g2f50