summaryrefslogtreecommitdiff
path: root/npc/annuals/xmas
diff options
context:
space:
mode:
Diffstat (limited to 'npc/annuals/xmas')
-rw-r--r--npc/annuals/xmas/2021.txt23
1 files changed, 21 insertions, 2 deletions
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}})