예제 #1
0
        /// <summary>
        /// Put in here what you want to do when the mode is running
        /// </summary>
        public static void Execute()
        {
            var qtarget = TargetSelector.GetTarget(Q.Range, DamageType.Mixed);
            var wtarget = TargetSelector.GetTarget(W.Range, DamageType.Mixed);
            var etarget = TargetSelector.GetTarget(E.Range, DamageType.Mixed);
            var rtarget = TargetSelector.GetTarget(3400, DamageType.Mixed);
            var target  = TargetSelector.GetTarget(E.Range + 200, DamageType.Magical);

            if (Q.IsReady() && AutoHarassMenu.GetCheckBoxValue("qUse") && AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            {
                var predq = Q.GetPrediction(qtarget);
                if (predq.HitChance >= HitChance.High)
                {
                    Q.Cast(predq.CastPosition);
                }
            }

            if (E.IsReady() && HarassMenu.GetCheckBoxValue("eUse") && AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            {
                var prede = E.GetPrediction(etarget);
                if (prede.HitChance >= HitChance.High)
                {
                    E.Cast(prede.CastPosition);
                }
            }
        }
예제 #2
0
        public static void Execute()
        {
            var enemiese = EntityManager.Heroes.Enemies.OrderByDescending
                               (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= R.Range);
            var enemiesq = EntityManager.Heroes.Enemies.OrderByDescending
                               (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= Q.Range);
            var target = TargetSelector.GetTarget(1900, DamageType.Magical);

            if (!target.IsValidTarget())
            {
                return;
            }

            if (E.IsReady() && target.IsValidTarget(E.Range) && AutoHarassMenu.GetCheckBoxValue("eUse") && AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            {
                foreach (var eenemies in enemiese)
                {
                    E.Cast(eenemies);
                }
            }

            if (Q.IsReady() && AutoHarassMenu.GetCheckBoxValue("qUse") && AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            {
                foreach (var qenemies in enemiesq)
                {
                    var predq = Q.GetPrediction(qenemies);
                    if (predq.HitChance >= HitChance.High)
                    {
                        Q.Cast(predq.CastPosition);
                    }
                }
            }
        }
예제 #3
0
        public static void Execute()
        {
            var enemiese = EntityManager.Heroes.Enemies.OrderByDescending
                               (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= E.Range);
            var target  = TargetSelector.GetTarget(1500, DamageType.Magical);
            var etarget = TargetSelector.GetTarget(E.Range, DamageType.Magical);

            if (AutoHarassMenu.GetCheckBoxValue("eUse") && etarget.IsValidTarget(SpellsManager.E.Range) && E.IsReady() && AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            {
                foreach (var eenemies in enemiese)
                {
                    var predE = E.GetPrediction(eenemies);
                    {
                        E.Cast(predE.CastPosition);
                    }
                }
            }
        }
예제 #4
0
        /// <summary>
        /// Put in here what you want to do when the mode is running
        /// </summary>
        public static void Execute()
        {
            var qtarget = TargetSelector.GetTarget(Q.Range, DamageType.Magical);
            var wtarget = TargetSelector.GetTarget(W.Range, DamageType.Magical);
            var etarget = TargetSelector.GetTarget(E.Range, DamageType.Magical);
            var rtarget = TargetSelector.GetTarget(R.Range, DamageType.Magical);

            if (AutoHarassMenu.GetCheckBoxValue("qUse") && qtarget.IsValidTarget(SpellsManager.Q.Range) && Q.IsReady() && AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            {
                Q.Cast(qtarget);
            }

            if (AutoHarassMenu.GetCheckBoxValue("eUse") && E.IsReady() && etarget.IsValidTarget(SpellsManager.E.Range) && AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            {
                E.Cast(etarget);
            }

            if (AutoHarassMenu.GetCheckBoxValue("wUse") && W.IsReady() && wtarget.IsValidTarget(SpellsManager.W.Range) && AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            {
                W.Cast(wtarget);
            }
        }
예제 #5
0
        /// <summary>
        /// Put in here what you want to do when the mode is running
        /// </summary>
        public static void Execute()
        {
            var qtarget = TargetSelector.GetTarget(Q.Range, DamageType.Magical);
            var wtarget = TargetSelector.GetTarget(W.Range, DamageType.Magical);
            var etarget = TargetSelector.GetTarget(E.Range, DamageType.Magical);

            //    if (AutoHarassMenu.GetCheckBoxValue("qUse") && AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            //{
            //  Q.TryToCast(target, AutoHarassMenu);
            //}

            if (AutoHarassMenu.GetCheckBoxValue("rqUse") && AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            {
                R.Cast();
                Q.Cast(qtarget);
            }

            if (AutoHarassMenu.GetCheckBoxValue("qUse") && AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            {
                Q.Cast(qtarget);
            }
        }
예제 #6
0
파일: AutoHarass.cs 프로젝트: Taazuma/EB-T
        public static void Execute()
        {
            var target  = TargetSelector.GetTarget(E.Range + 200, DamageType.Mixed);
            var qtarget = TargetSelector.GetTarget(Q.Range, DamageType.Magical);
            var wtarget = TargetSelector.GetTarget(W.Range, DamageType.Magical);
            var etarget = TargetSelector.GetTarget(E.Range, DamageType.Magical);

            if (qtarget == null)
            {
                return;
            }

            if (AutoHarassMenu.GetCheckBoxValue("rqUse") && AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            {
                R.Cast();
                Q.Cast(qtarget);
            }

            if (AutoHarassMenu.GetCheckBoxValue("qUse") && AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            {
                Q.Cast(qtarget);
            }
        }
예제 #7
0
        /// <summary>
        /// Put in here what you want to do when the mode is running
        /// </summary>
        public static void Execute()
        {
            var target = TargetSelector.GetTarget(1250, DamageType.Magical);

            if (target == null)
            {
                return;
            }

            if (W.IsReady() && AutoHarassMenu.GetCheckBoxValue("wUse"))
            {
                if (W.Handle.Ammo == 1 && AutoHarassMenu.GetCheckBoxValue("wSave"))
                {
                    return;
                }

                if (Orbwalker.AzirSoldiers.Any(x => !x.IsInRange(target, Orbwalker.AzirSoldierAutoAttackRange)))
                {
                    W.Cast(W.GetPrediction(target).CastPosition);
                }

                if (Orbwalker.AzirSoldiers.Count(s => s.IsAlly) == 0)
                {
                    W.Cast(W.GetPrediction(target).CastPosition);
                }

                if (target.IsValidTarget(Q.Range - 25) && Q.IsReady() && Q.Handle.SData.Mana + W.Handle.SData.Mana < Azir.Mana)
                {
                    var p = Azir.Distance(target, true) > W.RangeSquared
                                ? Azir.Position.To2D().Extend(target.Position.To2D(), W.Range)
                                : target.Position.To2D();
                    W.Cast((Vector3)p);
                }
            }

            if (Q.IsReady() && AutoHarassMenu.GetCheckBoxValue("qUse"))
            {
                if (Orbwalker.AzirSoldiers.Any(x => x.IsInRange(target, Orbwalker.AzirSoldierAutoAttackRange)))
                {
                    return;
                }

                Q.RangeCheckSource = Azir.ServerPosition;
                Q.SourcePosition   = Orbwalker.AzirSoldiers.FirstOrDefault(s => s.IsAlly)?.ServerPosition;

                var pred = Q.GetPrediction(target);
                if (pred.HitChance >= hitchance)
                {
                    Q.Cast(pred.CastPosition);
                }
                if (target.GetDamage(SpellSlot.Q) >= target.TotalShieldHealth())
                {
                    Q.Cast(Azir.Position.To2D().Extend(target.Position.To2D(), Q.Range).To3D());
                }
            }

            if (Ehit(target) && E.IsReady() && AutoHarassMenu.GetCheckBoxValue("eUse"))
            {
                if (target.IsUnderHisturret() && !AutoHarassMenu.GetCheckBoxValue("eDive") ||
                    (target.CountEnemiesInRange(750) >= AutoHarassMenu.GetSliderValue("eSave")))
                {
                    return;
                }
                E.TryToCast(target, AutoHarassMenu);
            }
        }
예제 #8
0
        /// <summary>
        /// This event is triggered every tick of the game
        /// </summary>
        /// <param name="args"></param>
        private static void Game_OnTick(EventArgs args)
        {
            var orbMode    = Orbwalker.ActiveModesFlags;
            var playerMana = Azir.ManaPercent;

            Active.Execute();

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Harass) && playerMana > HarassMenu.GetSliderValue("manaSlider"))
            {
                Harass.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LastHit) && playerMana > LasthitMenu.GetSliderValue("manaSlider"))
            {
                LastHit.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LaneClear) && playerMana > LaneClearMenu.GetSliderValue("manaSlider"))
            {
                LaneClear.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.JungleClear) && playerMana > JungleClearMenu.GetSliderValue("manaSlider"))
            {
                JungleClear.Execute();
            }

            if (AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            {
                if (Orbwalker.AzirSoldiers.Count >= 1 && AutoHarassMenu.GetCheckBoxValue("attack"))
                {
                    var target = TargetSelector.GetTarget(1250, DamageType.Magical);
                    if (target == null)
                    {
                        return;
                    }
                    SoldierAttack(target);
                }
                if (playerMana > AutoHarassMenu.GetSliderValue("manaSlider"))
                {
                    AutoHarass.Execute();
                }
            }
            if (FleeMenu.GetKeyBindValue("insect"))
            {
                InSec.Normal();
            }

            if (FleeMenu.GetKeyBindValue("insected"))
            {
                InSec.New();
            }

            if (FleeMenu.GetKeyBindValue("flee"))
            {
                Flee.Execute();
            }
            KillSteal.Execute();
        }