From 3fef87a0b577ba53c020da1fc647b17f6ca6740b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 29 Nov 2021 00:16:38 -0300 Subject: Techinically, you can now advance to Puzzle Area 3. Still need some real explanation about Puzzle Areas 1 and 2, but well. One thing at a time, eh? --- npc/annuals/xmas/2021.txt | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'npc/annuals/xmas') diff --git a/npc/annuals/xmas/2021.txt b/npc/annuals/xmas/2021.txt index 0562fb0d..8bc59d11 100644 --- a/npc/annuals/xmas/2021.txt +++ b/npc/annuals/xmas/2021.txt @@ -33,6 +33,24 @@ function script X21ED1_DOCLEAR { return; } +function script X21CANDLE_CHECK { + if ('XMAS21CANDLE) return false; + // NOTE: We could check here if player already finished this + // And skip the challenge after litting one candle? + if ('X21_CANDLE[0] != 'COLORCODE[0]) return false; + if ('X21_CANDLE[1] != 'COLORCODE[1]) return false; + if ('X21_CANDLE[2] != 'COLORCODE[2]) return false; + if ('X21_CANDLE[3] != 'COLORCODE[3]) return false; + if ('X21_CANDLE[4] != 'COLORCODE[4]) return false; + if ('X21_CANDLE[5] != 'COLORCODE[5]) return false; + // This instance challenge is over + 'XMAS21CANDLE = true; + // Record on player as well, just to be safe. + if (XMAS2021 & X21_CANDLES) return true; + XMAS2021 = (XMAS2021 | X21_CANDLES); + return true; +} + function script X21SEED_CHECK { /* Protip: You don't have to fill all spots * @@ -93,7 +111,7 @@ function script X21QUESTON { } function script X21INIT { - .@inst = instance_create("Northen Lights", X21ID(), X21TYPE()); + .@inst = instance_create("Northern Lights", X21ID(), X21TYPE()); // Instance must be created if (.@inst >= 0) { // We... Could use base name, actually, but whatever @@ -180,7 +198,8 @@ function script X21INIT { 081-3 mapflag zone MMO 081-3 mapflag nosave 081-1,68,31 -- script #XMAS21Core NPC_HIDDEN,{ +/* Script Core */ +080-1,0,0,0 script #XMAS21Core NPC_HIDDEN,{ end; // "#XMAS21Core"::spawn(MonsterID, {Amount=1, {Map=this}}) -- cgit v1.2.3-60-g2f50