From 5afdb139fb1adbc843acd68493da0627623cdb73 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 10 Oct 2021 22:48:39 -0300 Subject: Thanksgiving special event --- npc/001-1/eventmaster.txt | 54 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) (limited to 'npc/001-1/eventmaster.txt') diff --git a/npc/001-1/eventmaster.txt b/npc/001-1/eventmaster.txt index 48c43c034..bb61fa20f 100644 --- a/npc/001-1/eventmaster.txt +++ b/npc/001-1/eventmaster.txt @@ -716,6 +716,60 @@ L_Conf: $@AEROS_SPWN=@menu-1; goto L_Menu; +OnAutoSched: + .@t=0; + // Scatter 10× Strange Coins for digging + // Also scatter some strange coins for looting + buryitem(StrangeCoin, any(9,10,10,10,11,11)); + mkitem(StrangeCoin, $@AEROS_AUTOSPAWN); + // Spawn monsters + freeloop(true); + for (.@i = 0; .@i < ($@AEROS_AUTOSPAWN * 5); .@i++) { + .@r=rand2(5, 12); + .@m=any(Piou, Piousee, Ratto, LittleBlub, Croc, PlushroomField, + Tipiu, CaveMaggot, Bat, Scorpion, Duck, Maggot, RedScorpion, + ManaBug, ManaGhost, HouseMaggot, RedSlime, WhiteSlime, + SlimeBlast, Mouboo, Bandit, BlackScorpion, GiantMaggot, + CaveSnake, ManaBug, GoldenScorpion, NightScorpion, SantaSlime, + CopperSlime, FallenGuard1, FallenGuard2, OldSnake, GrassSnake, + Snake, Pollet, Wolvern, EarthFairy, FireFairy, WaterFairy, + WindFairy, NatureFairy, GreenSlimeMother, ChocolateSlimeMother, + CopperSlimeMother, SeaSlimeMother, AzulSkullSlime, + CopperSkullSlime, Crafty, Troll, Forain, Yeti, Centaur, GoboBear, + Terranite, TerraniteProtector, Reaper, Michel, JackO, Skeleton, + Pinkie, PinkieSuseran, CloverPatch, MagicRatto, Moonshroom, + MoubooSlime); + spawner(strmobinfo(1, .@m), .@m, .@r); + .@t += .@r; + // Bonus + .@r=rand2(1, 3); + .@m=any(SaxsoGhost, HolyPixie, BronzeChest, SilverChest, GoldenChest, + MalignChest, PrismChest, SupremeChest, WildxChest, ManaChest, + ThornChest, ViciousChest, EvilChest, BronzeMimic, SilverMimic, + GoldenMimic, Bif, EleniumBif, BigEleniumBif, RubyBif, BigRubyBif, + TopazBif, BigTopazBif, EmeraldBif, BigEmeraldBif, + DiamondBif, BigDiamondBif, AmethystBif, BigAmethystBif, + SapphireBif, BigSapphireBif, SmallMagicBif, MagicBif, BigMagicBif, + CloverPatch, EvilScythe); + spawner(strmobinfo(1, .@m), .@m, .@r); + .@t += .@r; + } + freeloop(false); + // Open gate if full + if ($@AEROS_SPWN == 2 && .WALL) { + delcells "AerosWall"; + .WALL=0; + } + // Close gate otherwise + if ($@AEROS_SPWN != 2 && !.WALL) { + setcells "001-1", 169, 63, 169, 76, 3, "AerosWall"; + .WALL=1; + } + // We're done + $@AEROS_AUTOSPAWN = 0; + consoleinfo("script automatically spawned "+str(.@t)+" beigns at Aeros."); + end; + OnAerosMobDeath: if ($coinsrate < 0) end; // A level 100 monster can have a 4% drop bonus against a level 0 monster. -- cgit v1.2.3-60-g2f50