diff options
Diffstat (limited to 'npc/annuals/xmas/2021.txt')
-rw-r--r-- | npc/annuals/xmas/2021.txt | 18 |
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 */ |