summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-24 23:17:16 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-24 23:17:16 -0300
commit88ba1fc25ee59699479604c9593bb28ea192248d (patch)
tree5adf8eaef489cf0e04edce6da4c753afa6208443 /npc/functions
parentfa44362b939ea193007b4c6cb9c16efaf805f504 (diff)
downloadserverdata-88ba1fc25ee59699479604c9593bb28ea192248d.tar.gz
serverdata-88ba1fc25ee59699479604c9593bb28ea192248d.tar.bz2
serverdata-88ba1fc25ee59699479604c9593bb28ea192248d.tar.xz
serverdata-88ba1fc25ee59699479604c9593bb28ea192248d.zip
Handle Mirror Lake entries; For lake 0 and lake 1.
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/hub.txt13
1 files changed, 13 insertions, 0 deletions
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;
}