From bd503ad7d569b1eb3213ca817af869f890ea8d88 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 29 Apr 2019 10:49:20 -0300 Subject: Make the boss a boss --- npc/012-1/guards.txt | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'npc/012-1') diff --git a/npc/012-1/guards.txt b/npc/012-1/guards.txt index 8c3cc3f7a..1a64b89e6 100644 --- a/npc/012-1/guards.txt +++ b/npc/012-1/guards.txt @@ -709,11 +709,20 @@ OnTimer30000: OnTimer60000: debugmes "12k"; - // Setup the lieutenant/colonel level and event/designation - // It'll be 40 + Siege*5, meaning the cap is 90. - .@val=40+($@SIEGE_HURNS*5); + // We will now prepare the boss + // It must be stronger than players in at least 15 levels, so the mob group + // is different. The siege difficulty, as usual, gives an extra level to them. + .@val=siege_calcdiff("012-1")+15; + .@val+=$@SIEGE_HURNS; + + // We must cap this at 100 to prevent running out of monsters + // Also, .@val can NEVER be less than 50, to prevent cheating :< if (.@val > 100) .@val=100; + else if (.@val < 50) + .@val=50; + + // Get their event/designation if (.@val >= 80) .@ts$="Colonel"; else @@ -725,7 +734,12 @@ OnTimer60000: array_remove($@SIEGE_TMPMOBS, CandiedSlime); array_remove($@SIEGE_TMPMOBS, ManaGhost); array_remove($@SIEGE_TMPMOBS, SlimeBlast); - .@mobId=any_of($@SIEGE_TMPMOBS); + if (array_entries($@SIEGE_TMPMOBS) > 0) { + .@mobId=any_of($@SIEGE_TMPMOBS); + } else { + .@mobId=Yetifly; + debugmes "ERROR, TOO FEW MOBS ON DATABASE, whaaaaaaat"; + } // Announce and spawn siege_spawn("012-1", .@mobId, 1, "#HurnscaldSiege::On"+.@ts$+"Death"); -- cgit v1.2.3-60-g2f50