diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-11-28 16:30:47 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-11-28 16:30:47 -0300 |
commit | b5d08e5b92d47b92c6d50672a51b7c5b55e79f4c (patch) | |
tree | d3727a2aa267417cdccb1f5c315482e4cf25c732 /npc/annuals | |
parent | d5cf5ef46d0dee7b7446851ad78fdf79be2284ab (diff) | |
download | serverdata-b5d08e5b92d47b92c6d50672a51b7c5b55e79f4c.tar.gz serverdata-b5d08e5b92d47b92c6d50672a51b7c5b55e79f4c.tar.bz2 serverdata-b5d08e5b92d47b92c6d50672a51b7c5b55e79f4c.tar.xz serverdata-b5d08e5b92d47b92c6d50672a51b7c5b55e79f4c.zip |
Some instance concerns
Diffstat (limited to 'npc/annuals')
-rw-r--r-- | npc/annuals/xmas/2021.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/npc/annuals/xmas/2021.txt b/npc/annuals/xmas/2021.txt index fb65092b..4a73c35e 100644 --- a/npc/annuals/xmas/2021.txt +++ b/npc/annuals/xmas/2021.txt @@ -34,13 +34,15 @@ function script X21ED1_DOCLEAR { } function script X21SEED_CHECK { - if (XMAS2021 & X21_PLANTPUZZLE) return false; /* Protip: You don't have to fill all spots * * If you plant a "L" it also works * This is because "L" is the first letter of "Lazy" * And I was particularly lazy to make a proper script */ + if ('XMAS21TREE) return false; + // NOTE: We could check here if player already finished this + // And skip the challenge after planting one tree? if (!'XMAS21TREE_X[116]) return false; if (!'XMAS21TREE_X[117]) return false; if (!'XMAS21TREE_X[118]) return false; @@ -49,6 +51,10 @@ function script X21SEED_CHECK { if (!'XMAS21TREE_Y[168]) return false; if (!'XMAS21TREE_Y[169]) return false; if (!'XMAS21TREE_Y[170]) return false; + // This instance challenge is over + 'XMAS21TREE = true; + // Record on player as well, just to be safe. + if (XMAS2021 & X21_PLANTPUZZLE) return true; XMAS2021 = (XMAS2021 | X21_PLANTPUZZLE); return true; } |