From 8458f006b905a920a57d7f8e74f45b03a17f4cde Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 8 Dec 2021 12:45:11 -0300 Subject: Lock tighter --- npc/annuals/xmas/2021.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'npc/annuals') diff --git a/npc/annuals/xmas/2021.txt b/npc/annuals/xmas/2021.txt index dc714b15..056ca266 100644 --- a/npc/annuals/xmas/2021.txt +++ b/npc/annuals/xmas/2021.txt @@ -99,6 +99,20 @@ function script X21QUESTON { } function script X21INIT { + // If it is not Christmas, there is no meaning to this. + // Halt script execution + if (!isChristmas21()) { + warp "000-1", 22, 22; + end; + } + + // All instances require Santa authorization. + // Halt script execution + if (!X21_START() || !X21_DISPATCH()) { + warp "020-1", 80, 87; + end; + } + .@inst = instance_create("Northern Lights", X21ID(), X21TYPE()); // Instance must be created if (.@inst >= 0) { -- cgit v1.2.3-60-g2f50