summaryrefslogtreecommitdiff
path: root/npc/annuals/xmas/2021.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-03 20:17:15 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-03 20:17:15 -0300
commit5a84dd8369d9d687616637e6a789b270c2452278 (patch)
tree8d063c4b3a871140f183fe5357be42e517e8e467 /npc/annuals/xmas/2021.txt
parent711f197ebc7a84270df768964662165c022b6c97 (diff)
downloadserverdata-5a84dd8369d9d687616637e6a789b270c2452278.tar.gz
serverdata-5a84dd8369d9d687616637e6a789b270c2452278.tar.bz2
serverdata-5a84dd8369d9d687616637e6a789b270c2452278.tar.xz
serverdata-5a84dd8369d9d687616637e6a789b270c2452278.zip
Initial prototype of the Ambush Puzzle.
Diffstat (limited to 'npc/annuals/xmas/2021.txt')
-rw-r--r--npc/annuals/xmas/2021.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/npc/annuals/xmas/2021.txt b/npc/annuals/xmas/2021.txt
index 97f5422f..1c5507fc 100644
--- a/npc/annuals/xmas/2021.txt
+++ b/npc/annuals/xmas/2021.txt
@@ -105,6 +105,20 @@ function script X21_SEEDS {
return;
}
+function script X21SRLZ {
+ .@n=getarg(0);
+ switch (.@n) {
+ case 1: return l("first");
+ case 2: return l("second");
+ case 3: return l("third");
+ case 4: return l("fourth");
+ case 5: return l("fifth");
+ case 6: return l("sixth");
+ case 7: return l("seventh");
+ }
+ return str(.@n);
+}
+
function script X21QUESTON {
// Create and setup the challenge. Allow to reset quest.
XMAS2021 = X21_ACCEPTED;
@@ -424,6 +438,20 @@ OnInstanceInit:
'COLORCODE[4] = rand2(0, 2);
'COLORCODE[5] = rand2(0, 2);
'OBSCURECOLOR = any(0, 1);
+
+ /* Prepare the Ambush Chamber */
+ 'AMBUSHTRI[0] = rand2(1, 17);
+ do
+ {
+ 'AMBUSHTRI[1] = rand2(1, 17);
+ } while ('AMBUSHTRI[1] == 'AMBUSHTRI[0]);
+ do
+ {
+ 'AMBUSHTRI[2] = rand2(1, 17);
+ } while ('AMBUSHTRI[2] == 'AMBUSHTRI[0] || 'AMBUSHTRI[2] == 'AMBUSHTRI[1]);
+ 'AMBUSH_BMASK = 0;
+
+ /* Prepare the Enigma */
'TRUES=0;
'TRUTHSTAT[0]=any(false, true);
if ('TRUTHSTAT[0])