Example #1
0
        private static void Game_OnUpdate(EventArgs args)
        {
            Defensive.Execute();
            Offensive.Execute();
            Consumables.Execute();

            Initialize.Execute();
        }
        public static async Task <bool> Combat()
        {
            if (!Core.Me.HasTarget || !Core.Me.CurrentTarget.ThoroughCanAttack())
            {
                return(false);
            }

            if (Core.Me.CurrentTarget.HasAnyAura(Auras.Invincibility))
            {
                return(false);
            }

            if (await CustomOpenerLogic.Opener())
            {
                return(true);
            }

            //if (await Defensive.ExecuteTankBusters()) return true;

            if (BotManager.Current.IsAutonomous)
            {
                Movement.NavigateToUnitLos(Core.Me.CurrentTarget, 3);
            }

            if (await Tank.Interrupt(GunbreakerSettings.Instance))
            {
                return(true);
            }
            if (await SingleTarget.RoughDivide())
            {
                return(true);
            }

            if (Utilities.Routines.Gunbreaker.OnGcd)
            {
                if (await Defensive.Execute())
                {
                    return(true);
                }
                if (await Buff.RoyalGuard())
                {
                    return(true);
                }
                if (await Buff.Bloodfest())
                {
                    return(true);
                }
                if (await Buff.NoMercy())
                {
                    return(true);
                }
                if (await SingleTarget.EyeGouge())
                {
                    return(true);
                }
                if (await SingleTarget.AbdomenTear())
                {
                    return(true);
                }
                if (await SingleTarget.JugularRip())
                {
                    return(true);
                }
                if (await SingleTarget.DangerZone())
                {
                    return(true);
                }
                if (await SingleTarget.BlastingZone())
                {
                    return(true);
                }

                if (GunbreakerSettings.Instance.UseAoe)
                {
                    if (await Aoe.BowShock())
                    {
                        return(true);
                    }
                }
            }



            if (GunbreakerSettings.Instance.UseAoe)
            {
                if (await Aoe.FatedCircle())
                {
                    return(true);
                }
                if (await Aoe.DemonSlaughter())
                {
                    return(true);
                }
                if (await Aoe.DemonSlice())
                {
                    return(true);
                }
            }

            if (await SingleTarget.GnashingFang())
            {
                return(true);
            }
            if (await SingleTarget.SonicBreak())
            {
                return(true);
            }
            if (await SingleTarget.LightningShot())
            {
                return(true);
            }
            if (await SingleTarget.WickedTalon())
            {
                return(true);
            }
            if (await SingleTarget.SavageClaw())
            {
                return(true);
            }
            if (await SingleTarget.SolidBarrel())
            {
                return(true);
            }
            if (await SingleTarget.BrutalShell())
            {
                return(true);
            }
            if (await SingleTarget.BurstStrike())
            {
                return(true);
            }

            if (Core.Me.HasAura(Auras.ReadytoRip))
            {
                return(await Spells.JugularRip.Cast(Core.Me.CurrentTarget));
            }
            if (Core.Me.HasAura(Auras.ReadytoTear))
            {
                return(await Spells.AbdomenTear.Cast(Core.Me.CurrentTarget));
            }
            if (Core.Me.HasAura(Auras.ReadytoGouge))
            {
                return(await Spells.EyeGouge.Cast(Core.Me.CurrentTarget));
            }


            return(await SingleTarget.KeenEdge());
        }
Example #3
0
        public static async Task <bool> Combat()
        {
            if (BotManager.Current.IsAutonomous)
            {
                if (Core.Me.HasTarget)
                {
                    Movement.NavigateToUnitLos(Core.Me.CurrentTarget, 3 + Core.Me.CurrentTarget.CombatReach);
                }
            }

            if (await CustomOpenerLogic.Opener())
            {
                return(true);
            }

            if (await Buff.Grit())
            {
                return(true);
            }

            if (await Tank.Interrupt(DarkKnightSettings.Instance))
            {
                return(true);
            }

            if (DarkKnightRoutine.GlobalCooldown.CountOGCDs() < 2 &&
                Spells.HardSlash.Cooldown.TotalMilliseconds > 650 + BaseSettings.Instance.UserLatencyOffset)
            {
                if (await Tank.Provoke(DarkKnightSettings.Instance))
                {
                    return(true);
                }
                if (await Defensive.Execute())
                {
                    return(true);
                }
                if (await Defensive.Oblation(true))
                {
                    return(true);
                }
                if (await Defensive.Reprisal())
                {
                    return(true);
                }
                if (await SingleTarget.CarveAndSpit())
                {
                    return(true);
                }
                if (await Aoe.SaltedEarth())
                {
                    return(true);
                }
                if (await Aoe.AbyssalDrain())
                {
                    return(true);
                }
                if (await Aoe.FloodofDarknessShadow())
                {
                    return(true);
                }
                if (await SingleTarget.EdgeofDarknessShadow())
                {
                    return(true);
                }
                if (await SingleTarget.Plunge())
                {
                    return(true);
                }
                if (await Buff.Delirium())
                {
                    return(true);
                }
                if (await Buff.BloodWeapon())
                {
                    return(true);
                }
                if (await Buff.LivingShadow())
                {
                    return(true);
                }
                if (await SingleTarget.Shadowbringer())
                {
                    return(true);
                }
            }

            if (await SingleTarget.UnmendForAggro())
            {
                return(true);
            }
            if (await Aoe.Quietus())
            {
                return(true);
            }
            if (await Aoe.StalwartSoul())
            {
                return(true);
            }
            if (await Aoe.Unleash())
            {
                return(true);
            }

            if (await SingleTarget.Bloodspiller())
            {
                return(true);
            }
            if (await SingleTarget.SoulEater())
            {
                return(true);
            }
            if (await SingleTarget.SyphonStrike())
            {
                return(true);
            }
            if (await SingleTarget.HardSlash())
            {
                return(true);
            }
            if (await SingleTarget.Unmend())
            {
                return(true);
            }

            return(false);
        }
Example #4
0
        public static async Task <bool> Combat()
        {
            if (!Core.Me.HasTarget || !Core.Me.CurrentTarget.ThoroughCanAttack())
            {
                return(false);
            }

            if (await CustomOpenerLogic.Opener())
            {
                return(true);
            }

            //if (await Defensive.ExecuteTankBusters()) return true;

            if (BotManager.Current.IsAutonomous)
            {
                Movement.NavigateToUnitLos(Core.Me.CurrentTarget, 4);
            }

            if (await Buff.Grit())
            {
                return(true);
            }
            if (await Tank.Interrupt(DarkKnightSettings.Instance))
            {
                return(true);
            }

            if (Weaving.GetCurrentWeavingCounter() < 2 && Spells.HardSlash.Cooldown.TotalMilliseconds > 650 + BaseSettings.Instance.UserLatencyOffset)
            {
                if (await Tank.Provoke(DarkKnightSettings.Instance))
                {
                    return(true);
                }
                if (await Defensive.Execute())
                {
                    return(true);
                }
                if (await Defensive.TheBlackestNight())
                {
                    return(true);
                }
                if (await SingleTarget.Reprisal())
                {
                    return(true);
                }
                if (await SingleTarget.CarveAndSpit())
                {
                    return(true);
                }
                if (await Aoe.SaltedEarth())
                {
                    return(true);
                }
                if (await Aoe.AbyssalDrain())
                {
                    return(true);
                }
                if (await Aoe.FloodofDarknessShadow())
                {
                    return(true);
                }
                if (await SingleTarget.EdgeofDarknessShadow())
                {
                    return(true);
                }
                if (await SingleTarget.Plunge())
                {
                    return(true);
                }
                if (await Buff.Delirium())
                {
                    return(true);
                }
                if (await Buff.BloodWeapon())
                {
                    return(true);
                }
                if (await Buff.LivingShadow())
                {
                    return(true);
                }
            }

            if (await SingleTarget.Unmend())
            {
                return(true);
            }
            if (await Aoe.Quietus())
            {
                return(true);
            }
            if (await Aoe.StalwartSoul())
            {
                return(true);
            }
            if (await Aoe.Unleash())
            {
                return(true);
            }

            if (await SingleTarget.Bloodspiller())
            {
                return(true);
            }
            if (await SingleTarget.SoulEater())
            {
                return(true);
            }
            if (await SingleTarget.SyphonStrike())
            {
                return(true);
            }
            return(await SingleTarget.HardSlash());
        }
Example #5
0
        public static async Task <bool> Execute()
        {
            if (!Core.Me.HasTarget || !Core.Me.CurrentTarget.ThoroughCanAttack())
            {
                return(false);
            }

            if (await CustomOpenerLogic.Opener())
            {
                return(true);
            }

            if (!SpellQueue.Any())
            {
                InSpellQueue = false;
            }

            if (SpellQueue.Any())
            {
                if (await SpellQueueMethod())
                {
                    return(true);
                }
            }

            if (await Defensive.ExecuteTankBusters())
            {
                return(true);
            }

            if (BotManager.Current.IsAutonomous)
            {
                Movement.NavigateToUnitLos(Core.Me.CurrentTarget, 3);
            }

            if (await Buff.Grit())
            {
                return(true);
            }
            if (await Defensive.TheBlackestNight())
            {
                return(true);
            }
            if (await Buff.Delirium())
            {
                return(true);
            }
            if (await Buff.BloodWeapon())
            {
                return(true);
            }

            if (Utilities.Routines.DarkKnight.OnGcd)
            {
                if (await Tank.Provoke(DarkKnightSettings.Instance))
                {
                    return(true);
                }
                if (await Defensive.Execute())
                {
                    return(true);
                }
                if (await Buff.LivingShadow())
                {
                    return(true);
                }
                if (await SingleTarget.CarveAndSpit())
                {
                    return(true);
                }

                if (AoeCheck)
                {
                    if (await Aoe.SaltedEarth())
                    {
                        return(true);
                    }
                    if (await Aoe.AbyssalDrain())
                    {
                        return(true);
                    }
                    if (await Aoe.FloodofDarknessShadow())
                    {
                        return(true);
                    }
                }

                if (await SingleTarget.EdgeofDarknessShadow())
                {
                    return(true);
                }
                if (await SingleTarget.Plunge())
                {
                    return(true);
                }
                if (await SingleTarget.Reprisal())
                {
                    return(true);
                }
            }

            if (await SingleTarget.Unmend())
            {
                return(true);
            }

            if (AoeCheck)
            {
                if (await Aoe.Quietus())
                {
                    return(true);
                }
                if (await Aoe.StalwartSoul())
                {
                    return(true);
                }
                if (await Aoe.Unleash())
                {
                    return(true);
                }
            }

            if (await SingleTarget.Bloodspiller())
            {
                return(true);
            }
            if (await SingleTarget.SoulEater())
            {
                return(true);
            }
            if (await SingleTarget.SyphonStrike())
            {
                return(true);
            }
            return(await SingleTarget.HardSlash());
        }
Example #6
0
 private static void Game_OnTick(EventArgs args)
 {
     Defensive.Execute();
     Offensive.Execute();
     Consumables.Execute();
 }
Example #7
0
        public static async Task <bool> Execute()
        {
            if (!Core.Me.HasTarget || !Core.Me.CurrentTarget.ThoroughCanAttack())
            {
                return(false);
            }

            if (await CustomOpenerLogic.Opener())
            {
                return(true);
            }

            if (!SpellQueue.Any())
            {
                InSpellQueue = false;
            }

            if (SpellQueue.Any())
            {
                if (await SpellQueueMethod())
                {
                    return(true);
                }
            }

            if (await Defensive.ExecuteTankBusters())
            {
                return(true);
            }

            if (BotManager.Current.IsAutonomous)
            {
                Movement.NavigateToUnitLos(Core.Me.CurrentTarget, 3);
            }

            Logger.Write($"Blood: {ActionResourceManager.DarkKnight.BlackBlood}, Darkside: {ActionResourceManager.DarkKnight.Darkside.TotalMilliseconds}, DarkArts: {ActionResourceManager.DarkKnight.DarkArts}");

            if (await Buff.Grit())
            {
                return(true);
            }
            if (await Defensive.TheBlackestNight())
            {
                return(true);
            }
            if (await Buff.Delirium())
            {
                return(true);
            }
            if (await Buff.BloodWeapon())
            {
                return(true);
            }

            if (Utilities.Routines.DarkKnight.OnGcd)
            {
                if (await Tank.Provoke(DarkKnightSettings.Instance))
                {
                    return(true);
                }
                if (await Defensive.Execute())
                {
                    return(true);
                }
                if (await SingleTarget.LowBlow())
                {
                    return(true);
                }
                if (await SingleTarget.Reprisal())
                {
                    return(true);
                }
                if (await Aoe.SaltedEarth())
                {
                    return(true);
                }
                if (await SingleTarget.CarveAndSpit())
                {
                    return(true);
                }
                if (await SingleTarget.Plunge())
                {
                    return(true);
                }
            }

            if (await Aoe.AbyssalDrain())
            {
                return(true);
            }
            if (await Aoe.Unleash())
            {
                return(true);
            }
            if (await SingleTarget.Unmend())
            {
                return(true);
            }
            if (await Aoe.Quietus())
            {
                return(true);
            }
            if (await SingleTarget.Bloodspiller())
            {
                return(true);
            }
            if (await SingleTarget.SoulEater())
            {
                return(true);
            }
            if (await SingleTarget.SyphonStrike())
            {
                return(true);
            }
            return(await SingleTarget.HardSlash());
        }