summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/003-3/malindou.txt1
-rw-r--r--npc/functions/hub.txt13
2 files changed, 14 insertions, 0 deletions
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;
}