diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-24 23:17:16 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-24 23:17:16 -0300 |
commit | 88ba1fc25ee59699479604c9593bb28ea192248d (patch) | |
tree | 5adf8eaef489cf0e04edce6da4c753afa6208443 | |
parent | fa44362b939ea193007b4c6cb9c16efaf805f504 (diff) | |
download | serverdata-88ba1fc25ee59699479604c9593bb28ea192248d.tar.gz serverdata-88ba1fc25ee59699479604c9593bb28ea192248d.tar.bz2 serverdata-88ba1fc25ee59699479604c9593bb28ea192248d.tar.xz serverdata-88ba1fc25ee59699479604c9593bb28ea192248d.zip |
Handle Mirror Lake entries; For lake 0 and lake 1.
-rw-r--r-- | npc/003-3/malindou.txt | 1 | ||||
-rw-r--r-- | npc/functions/hub.txt | 13 |
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; } |