Hello! I'm continue building dungeon profile and now me need help.
Mobs are not ordinary, when they have 1 hp, they become immortal. The bot ceases to change targets and is glued to this mob.
After 1 hp, the mob becomes friendly.
The bot needs to move within 50 meters and lower the life of all the mobs that are there.
It would be ideal if I could turn off the fight, and just press 1 aoe ability.
public class SecondBossKill : QuestClass
{
public SecondBossKill()
{
Thread t = new Thread(() =>
{
var newbie = wManager.Wow.ObjectManager.ObjectManager.GetNearestWoWUnit(wManager.Wow.ObjectManager.ObjectManager.GetWoWUnitByEntry(111));
var snow = wManager.Wow.ObjectManager.ObjectManager.GetNearestWoWUnit(wManager.Wow.ObjectManager.ObjectManager.GetWoWUnitByEntry(222));
var lotos = wManager.Wow.ObjectManager.ObjectManager.GetNearestWoWUnit(wManager.Wow.ObjectManager.ObjectManager.GetWoWUnitByEntry(333));
while (true)
{
if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause)
{
if(newbie.IsValid && newbie.HealthPercent >= 1 && newbie.GetDistance <= 40)
{
wManager.Wow.Helpers.Interact.InteractGameObject(newbie.GetBaseAddress);
wManager.Wow.Helpers.SpellManager.CastSpellByIdLUA(202028);
Thread.Sleep(500);
wManager.Wow.Helpers.SpellManager.CastSpellByIdLUA(106830);
}
if(snow.IsValid && snow.HealthPercent >= 1 && snow.GetDistance <= 40)
{
wManager.Wow.Helpers.Interact.InteractGameObject(snow.GetBaseAddress);
wManager.Wow.Helpers.SpellManager.CastSpellByIdLUA(202028);
Thread.Sleep(500);
wManager.Wow.Helpers.SpellManager.CastSpellByIdLUA(106830);
}
if(lotos.IsValid && lotos.HealthPercent >= 1 && lotos.GetDistance <= 40)
{
wManager.Wow.Helpers.Interact.InteractGameObject(lotos.GetBaseAddress);
wManager.Wow.Helpers.SpellManager.CastSpellByIdLUA(202028);
Thread.Sleep(500);
wManager.Wow.Helpers.SpellManager.CastSpellByIdLUA(106830);
}
if(newbie.HealthPercent <= 2 && snow.HealthPercent <= 2 && lotos.HealthPercent <= 2)
{
break;
}
}
}
});
t.Start();
}
}