diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-12-08 12:45:11 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-12-08 12:45:11 -0300 |
commit | 8458f006b905a920a57d7f8e74f45b03a17f4cde (patch) | |
tree | 3112b7673f0bda5f875581ae6f0081a9bfdd992f /npc/annuals/xmas | |
parent | bec0b62689edc69a17f9bd01b0e37bbf73e542df (diff) | |
download | serverdata-8458f006b905a920a57d7f8e74f45b03a17f4cde.tar.gz serverdata-8458f006b905a920a57d7f8e74f45b03a17f4cde.tar.bz2 serverdata-8458f006b905a920a57d7f8e74f45b03a17f4cde.tar.xz serverdata-8458f006b905a920a57d7f8e74f45b03a17f4cde.zip |
Lock tighter
Diffstat (limited to 'npc/annuals/xmas')
-rw-r--r-- | npc/annuals/xmas/2021.txt | 14 |
1 files changed, 14 insertions, 0 deletions
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) { |