summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-11-28 12:54:06 -0300
committerJesusaves <cpntb1@ymail.com>2021-11-28 12:54:06 -0300
commit2d4ba43d55baacfeb6c503efe4a5466468d0e9e7 (patch)
tree275195d1d8b4586a014fd3c4c6ff66e09ba30c76 /npc
parent86c039847031738e8f40a2e04c4abfa81282622d (diff)
downloadserverdata-2d4ba43d55baacfeb6c503efe4a5466468d0e9e7.tar.gz
serverdata-2d4ba43d55baacfeb6c503efe4a5466468d0e9e7.tar.bz2
serverdata-2d4ba43d55baacfeb6c503efe4a5466468d0e9e7.tar.xz
serverdata-2d4ba43d55baacfeb6c503efe4a5466468d0e9e7.zip
Add the two items which will be required for the puzzles
Diffstat (limited to 'npc')
-rw-r--r--npc/annuals/xmas/2021.txt18
1 files changed, 16 insertions, 2 deletions
diff --git a/npc/annuals/xmas/2021.txt b/npc/annuals/xmas/2021.txt
index 2888c879..95a2c2fb 100644
--- a/npc/annuals/xmas/2021.txt
+++ b/npc/annuals/xmas/2021.txt
@@ -33,6 +33,20 @@ function script X21ED1_DOCLEAR {
return;
}
+function script X21_SEEDS {
+ getmapxy(.@m$, .@x, .@y, 0);
+ // If planted in the wrong region, vanish without effect
+ if (.@m$ != "0812@"+X21ID2())
+ return;
+ if (.@x < 107 || .@x > 126)
+ return;
+ if (.@y < 159 || .@y > 177)
+ return;
+ // TODO: Sprout a Christmas Tree IF position is not filled
+ // TODO: Record the position filled
+ return;
+}
+
function script X21QUESTON {
// Create and setup the challenge. Allow to reset quest.
XMAS2021 = X21_ACCEPTED;
@@ -174,7 +188,7 @@ OnX1081:
.@y2=.@y+1;
.@x=cap_value(rand2(.@x1, .@x2), 47, 65);
.@y=cap_value(rand2(.@y1, .@y2), 191, 212);
- //makeitem(ChristmasSeeds, 1, .@m$, .@x, .@y);
+ makeitem(XmasSeeds, rand2(1, 3), .@m$, .@x, .@y);
end;
// Mini-Boss Chamberlain, drops candle
OnX1146:
@@ -188,7 +202,7 @@ OnX1147:
.@y2=.@y+1;
.@x=cap_value(rand2(.@x1, .@x2), 70, 99);
.@y=cap_value(rand2(.@y1, .@y2), 250, 265);
- //makeitem(FuelPotion, rand2(3, 5), .@m$, .@x, .@y);
+ makeitem(ThermalNapalm, rand2(3, 5), .@m$, .@x, .@y);
end;
/* Experimental */