From 73a6175e4a5908cb4cde2843b56f9f378a5ee818 Mon Sep 17 00:00:00 2001 From: Tato <47118168+wtffidy@users.noreply.github.com> Date: Sun, 3 Nov 2024 09:54:56 -0500 Subject: [PATCH] Update ArmyArchMageBossItems.cs --- Army/Various/ArmyArchMageBossItems.cs | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/Army/Various/ArmyArchMageBossItems.cs b/Army/Various/ArmyArchMageBossItems.cs index 2a1bd14ef..19f3dfc21 100644 --- a/Army/Various/ArmyArchMageBossItems.cs +++ b/Army/Various/ArmyArchMageBossItems.cs @@ -70,7 +70,7 @@ public void GetmBois() ArmyKillMonster("voidflibbi", "Enter", 5131, "Void Essentia"); ArmyKillMonster("voidnightbane", "Enter", 5240, "Insatiable Hunger"); - ArmyKillMonster("dage", "Boss", 0, "Vital Exanima"); + ArmyKillMonster("dage", "Boss", 5086, "Vital Exanima"); ArmyKillMonster("fireavatar", "r9", 4926, "Everlight Flame"); ArmyKillMonster("tercessuinotlim", "Boss2", 35, "The Mortal Coil"); ArmyKillMonster("theworld", "r9", 5187, "Undying Resolve"); @@ -89,6 +89,11 @@ public void ArmyKillMonster(string map, string cell, int MonID, string item, int Core.PrivateRooms = true; Core.PrivateRoomNumber = Army.getRoomNr(); + Core.Join(map); + Army.waitForPartyCell(cell, playerCount: Army.Players().Count()); + + Monster mon = Bot.Monsters.MapMonsters.FirstOrDefault(x => x != null && x.MapID == MonID); + if (!isTemp) Core.AddDrop(item); @@ -97,17 +102,16 @@ public void ArmyKillMonster(string map, string cell, int MonID, string item, int if (!Core.CheckInventory(item, toInv: false)) { - Bot.Drops.Add(item); - Core.FarmingLogger(item, 1); + Core.AddDrop(item); + Core.FarmingLogger(item, quant); if (MonID != 5295) - Army.AggroMonMIDs(MonID); + Army.AggroMonMIDs(mon.MapID); Army.AggroMonStart(map); Army.DivideOnCells(cell); } else { Core.Logger($"{item} Found."); - //Army.waitForParty(map, item); } if (Bot.Map.Name == "darkcarnax") @@ -130,17 +134,17 @@ public void ArmyKillMonster(string map, string cell, int MonID, string item, int } else if (Bot.Map.Name == "archmage") { + bool shouldExit = false; while (!Bot.ShouldExit && !Core.CheckInventory(item, quant)) { - foreach (Monster mon in Bot.Monsters.MapMonsters.Where(x => x.ID == 1 || x.ID == 2)) + foreach (Monster M in Bot.Monsters.MapMonsters.Where(mon => mon != null && mon.MapID is 1 or 2)) { - bool shouldExit = false; while (!Bot.ShouldExit && mon.HP >= 0 && !shouldExit) { - Bot.Combat.Attack(mon.MapID); + Bot.Combat.Attack(M.MapID); Core.Sleep(); - shouldExit = Core.CheckInventory(item, quant); + shouldExit = Bot.TempInv.Contains(item, quant) || Bot.Inventory.Contains(item, quant); } if (shouldExit) @@ -157,7 +161,7 @@ public void ArmyKillMonster(string map, string cell, int MonID, string item, int Core.Jump(cell); Core.Sleep(); } - Bot.Combat.Attack(MonID); + Bot.Combat.Attack(mon.MapID); } } Army.AggroMonStop(true);