From d621c59d33b2a8796765c3b7e9d25abb314adc63 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 21 Nov 2021 10:50:10 -0300 Subject: Christmas 2021 Mirror Lake Integration. I've been wanting to test this one for a while, now :3 --- npc/functions/hub.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'npc/functions/hub.txt') diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 831bd2e0f..dd903a45d 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -25,6 +25,18 @@ function script HUB_Login { // Mirror Lake functionality if (getvaultid() && !getstatus(SC_JAILED)) { + // Christmas 2021 + if ($EVENT$ == "Christmas") { + if (#XMAS2021 < ##01_TMWEXP) { + getexp ##01_TMWEXP-#XMAS2021, 0; + #XMAS2021 = ##01_TMWEXP; + } else if (#XMAS2021 > ##01_TMWEXP) { + // You leveled up? + getexp ##01_TMWEXP, 0; + #XMAS2021 = ##01_TMWEXP; + } + } + .@gto=get_byte(##00_INFO, 3); .@mlp=get_nibble(##00_INFO, 5); /*debugmes "INFO: %d", ##00_INFO; -- cgit v1.2.3-60-g2f50