Exemple #1
0
 public virtual void LoadMenu(AzirMain azir)
 {
     GetMenu             = new LeagueSharp.Common.Menu(_menuName, _menuName, true);
     _orbWalkerMenu      = new LeagueSharp.Common.Menu("Orbwalker", "Orbwalker");
     Orb                 = new AzirWalker(_orbWalkerMenu, azir);
     _targetSelectorMenu = new LeagueSharp.Common.Menu("TargetSelector", "TargetSelector");
 }
Exemple #2
0
        public bool CheckQCastAtLaneClear(List <Obj_AI_Base> minions, AzirMain azir)
        {
            var       nSoldiersToQ = azir.Menu.GetMenu.Item("LQM").GetValue <Slider>().Value;
            const int attackRange  = 315;
            int       x            = 0;

            foreach (var sol in azir.SoldierManager.Soldiers)
            {
                if (!sol.IsDead)
                {
                    foreach (var min in minions)
                    {
                        if (!min.IsDead)
                        {
                            if (min.ServerPosition.Distance(sol.ServerPosition) <= attackRange) //estos estan atacando
                            {
                                x++;
                                break;
                            }
                        }
                    }
                }
            }
            int z = azir.SoldierManager.Soldiers.Count - x;

            return(z >= nSoldiersToQ);
        }
Exemple #3
0
        public bool ChecksToCastQ(AzirMain azir, Obj_AI_Hero target)
        {
            if (!azir.Spells.Q.IsReady())
            {
                return(false);
            }
            int x = 0; // soldados no atacando

            var nSoldiersToQ = azir.Menu.GetMenu.Item("SoldiersToQ").GetValue <Slider>().Value;

            if (!target.IsDead)
            {
                foreach (Obj_AI_Minion me in azir.SoldierManager.Soldiers)
                {
                    if (!me.IsDead)
                    {
                        if (me.Distance(target) > 315)
                        {
                            x++;
                        }
                    }
                }
            }
            return(x >= nSoldiersToQ);
        }
Exemple #4
0
        public bool ChecksToCastQHarrash(AzirMain azir, AIHeroClient target)
        {
            if (!azir.Spells.Q.IsReady())
            {
                return(false);
            }
            int x            = 0; // soldados no atacando
            var nSoldiersToQ = AzirMenu._comboMenu["SoldiersToQ"].Cast <Slider>().CurrentValue;

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                nSoldiersToQ = AzirMenu._comboMenu["SoldiersToQ"].Cast <Slider>().CurrentValue;
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                nSoldiersToQ = AzirMenu._harashMenu["hSoldiersToQ"].Cast <Slider>().CurrentValue;
            }

            if (!target.IsDead)
            {
                foreach (Obj_AI_Minion me in azir.SoldierManager.Soldiers)
                {
                    if (!me.IsDead)
                    {
                        if (me.Distance(target) > 315)
                        {
                            x++;
                        }
                    }
                }
            }
            return(x >= nSoldiersToQ);
        }
Exemple #5
0
        public bool ChecksToCastQHarrash(AzirMain azir, Obj_AI_Hero target)
        {
            if (!azir.Spells.Q.IsReady())
            {
                return(false);
            }
            int x            = 0; // soldados no atacando
            var nSoldiersToQ = azir.Menu.GetMenu.Item("SoldiersToQ").GetValue <Slider>().Value;

            switch (azir._menu.Orb.ActiveMode)
            {
            case LeagueSharp.Common.Orbwalking.OrbwalkingMode.Combo:
                nSoldiersToQ = azir.Menu.GetMenu.Item("SoldiersToQ").GetValue <Slider>().Value;
                break;

            case LeagueSharp.Common.Orbwalking.OrbwalkingMode.Mixed:
                nSoldiersToQ = azir.Menu.GetMenu.Item("hSoldiersToQ").GetValue <Slider>().Value;
                break;
            }
            if (!target.IsDead)
            {
                foreach (Obj_AI_Minion me in azir.SoldierManager.Soldiers)
                {
                    if (!me.IsDead)
                    {
                        if (me.Distance(target) > 315)
                        {
                            x++;
                        }
                    }
                }
            }
            return(x >= nSoldiersToQ);
        }
Exemple #6
0
        public override void Laneclear(AzirMain azir)
        {
            var useQ = Menu._laneClearMenu["LQ"].Cast <CheckBox>().CurrentValue;
            var useW = Menu._laneClearMenu["LW"].Cast <CheckBox>().CurrentValue;

            base.Laneclear(azir);
            var minion = MinionManager.GetMinions(azir.Spells.Q.Range, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.MaxHealth).FirstOrDefault();

            if (minion != null)
            {
                if (azir.Spells.W.IsInRange(minion))
                {
                    var pred = azir.Spells.W.GetPrediction(minion);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        if (useW)
                        {
                            azir.Spells.W.Cast(pred.CastPosition);
                        }
                    }
                    if (azir.soldierManager.SoldiersAttacking(azir) == false && azir.soldierManager.ActiveSoldiers.Count > 0)
                    {
                        pred = azir.Spells.Q.GetPrediction(minion);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            if (useQ)
                            {
                                azir.Spells.Q.Cast(pred.CastPosition);
                            }
                        }
                    }
                }
            }
        }
Exemple #7
0
        public int SoldiersAttackingn(AzirMain azir)
        {
            var soldiersa = azir.soldierManager.Soldiers.Where(m => !m.IsDead).Count(m => HeroManager.Enemies.Where(h => !h.IsDead).Any(h => m.LSDistance(h) > 315));

            //    Game.PrintChat("soldiersa : " +soldiersa);
            return((int)(soldiersa));
        }
Exemple #8
0
 public void castQ(AzirMain azir, AIHeroClient target, bool useQ, int nSoldiersToQ)
 {
     if (target.isRunningOfYou())
     {
         if (azir.Spells.Q.IsKillable(target))
         {
             var pred = azir.Spells.Q.GetPrediction(target);
             if (pred.Hitchance >= HitChance.High)
             {
                 if (useQ)
                     azir.Spells.Q.Cast(pred.CastPosition.LSExtend(target.ServerPosition, 80));
             }
         }
     }
     if (!azir.soldierManager.SoldiersAttacking(azir) && azir.soldierManager.ActiveSoldiers.Count >= nSoldiersToQ)
     {
         if (target.isRunningOfYou())
         {
             var pos = Prediction.GetPrediction(target, 0.8f).UnitPosition;
             if (pos.LSDistance(HeroManager.Player.ServerPosition) <= azir.Spells.Q.Range)
                 if (useQ)
                     azir.Spells.Q.Cast(pos);
         }
         else
         {
             var pred = azir.Spells.Q.GetPrediction(target);
             if (pred.Hitchance >= HitChance.High)
             {
                 if (useQ)
                     azir.Spells.Q.Cast(pred.CastPosition);
             }
         }
     }
 }
Exemple #9
0
        public virtual void Update(AzirMain azir)
        {
            switch (azir._menu.Orb.ActiveMode)
            {
            case LeagueSharp.Common.Orbwalking.OrbwalkingMode.Combo:
                Combo(azir);
                break;

            case LeagueSharp.Common.Orbwalking.OrbwalkingMode.Mixed:
                Harash(azir);
                break;

            case LeagueSharp.Common.Orbwalking.OrbwalkingMode.LaneClear:
                Laneclear(azir);
                Jungleclear(azir);
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            case Orbwalking.OrbwalkingMode.Freeze:
                break;

            case Orbwalking.OrbwalkingMode.CustomMode:
                break;

            case Orbwalking.OrbwalkingMode.None:
                break;

            default:
                break;
            }
        }
Exemple #10
0
 public Insec(AzirMain azir)
 {
     Clickposition = new Vector3(0, 0, 0);
     this.azir = azir;
     Game.OnUpdate += Game_OnUpdate;
     Game.OnWndProc += Game_OnWndProc;
     Drawing.OnDraw += Drawing_OnDraw;
 }
Exemple #11
0
 public Insec(AzirMain azir)
 {
     Clickposition   = new Vector3(0, 0, 0);
     this.azir       = azir;
     Game.OnUpdate  += Game_OnUpdate;
     Game.OnWndProc += Game_OnWndProc;
     Drawing.OnDraw += Drawing_OnDraw;
 }
Exemple #12
0
        public override void Harash(AzirMain azir)
        {
            var wCount       = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Ammo;
            var useQ         = Menu._harashMenu["HQ"].Cast <CheckBox>().CurrentValue;
            var useW         = Menu._harashMenu["HW"].Cast <CheckBox>().CurrentValue;
            var savew        = Menu._harashMenu["HW2"].Cast <CheckBox>().CurrentValue;
            var nSoldiersToQ = Menu._harashMenu["hSoldiersToQ"].Cast <Slider>().CurrentValue;

            base.Harash(azir);
            var target = TargetSelector.GetTarget(900, DamageType.Magical);

            if (target != null)
            {
                if (target.Distance(azir.Hero.ServerPosition) < 450)
                {
                    var pred = azir.Spells.W.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.Medium)
                    {
                        if (savew && (wCount == 0))
                        {
                        }
                        else
                        {
                            if (useW)
                            {
                                azir.Spells.W.Cast(pred.CastPosition);
                            }
                        }
                    }
                }
                else
                {
                    if (azir.Spells.Q.Level > 0 && azir.Spells.Q.IsReady())
                    {
                        if ((!savew && (savew && (wCount > 0))))
                        {
                            if (useW)
                            {
                                azir.Spells.W.Cast(azir.Hero.Position.LSExtend(target.ServerPosition, 450));
                            }
                        }
                    }
                }
                azir.Spells.castQ(azir, target, useQ, nSoldiersToQ);
                if (Menu._comboMenu["CR"].Cast <CheckBox>().CurrentValue)
                {
                    if (target.Health < azir.Spells.R.GetDamage(target))
                    {
                        var pred = azir.Spells.R.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            azir.Spells.R.Cast(pred.CastPosition);
                        }
                    }
                    azir.Spells.R.Cast(target);
                }
            }
        }
Exemple #13
0
        public override void Jungleclear(AzirMain azir)
        {
            var useW = azir.Menu.GetMenu.Item("JQ").GetValue <bool>();
            var useQ = azir.Menu.GetMenu.Item("JW").GetValue <bool>();

            base.Jungleclear(azir);
            var minionW =
                MinionManager.GetMinions(
                    azir.Hero.Position,
                    azir.Spells.W.Range,
                    MinionTypes.All,
                    MinionTeam.Neutral,
                    MinionOrderTypes.MaxHealth);

            if (minionW != null && useW)
            {
                var wFarmLocation = azir.Spells.W.GetCircularFarmLocation(minionW,
                                                                          315);
                if (wFarmLocation.MinionsHit >= 1)
                {
                    azir.Spells.W.Cast(wFarmLocation.Position);
                }
            }
            var minionQ =
                MinionManager.GetMinions(
                    azir.Hero.Position,
                    azir.Spells.Q.Range,
                    MinionTypes.All,
                    MinionTeam.Neutral,
                    MinionOrderTypes.MaxHealth);

            if (minionQ == null || !useQ || !azir.SoldierManager.CheckQCastAtLaneClear(minionQ, azir))
            {
                return;
            }
            {
                var wFarmLocation = azir.Spells.Q.GetCircularFarmLocation(minionW,
                                                                          315);
                foreach (var objAiBase in minionQ)
                {
                    var minion         = (Obj_AI_Minion)objAiBase;
                    var closestSoldier = azir.SoldierManager.getClosestSolider(minion.ServerPosition);
                    if (closestSoldier == null)
                    {
                        continue;
                    }
                    if (!(minion.Distance(closestSoldier) > 315))
                    {
                        continue;
                    }
                    azir.Spells.Q.Cast(minion.Position);
                    break;
                }
            }
        }
Exemple #14
0
 public void flyToinsec(Vector3 position, AzirMain azir, AIHeroClient ts)
 {
     if (W.IsReady() && Q.IsReady() && E.IsReady())//&&R.IsReady())
     {
         W.Cast(HeroManager.Player.Position.LSExtend(position, 450));
         LeagueSharp.Common.Utility.DelayAction.Add(Game.Ping + 150, () => E.Cast(azir.soldierManager.Soldiers[azir.soldierManager.Soldiers.Count - 1].ServerPosition));
         LeagueSharp.Common.Utility.DelayAction.Add(Game.Ping + 200, () => Q.Cast(HeroManager.Player.Position.LSExtend(position, 1150)));
         LeagueSharp.Common.Utility.DelayAction.Add(Game.Ping + 400, () => EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, position.LSExtend(HeroManager.Player.Position, 300)));
         LeagueSharp.Common.Utility.DelayAction.Add(Game.Ping + 800, () => azir.Spells.R.Cast(position.LSExtend(ts.Position, 300)));
     }
 }
Exemple #15
0
        public override void Update(AzirMain azir)
        {
            base.Update(azir);


            if (Menu._jumpMenu["fleekey"].Cast <KeyBind>().CurrentValue)
            {
                azir.Orbwalk(Game.CursorPos);
                Jump(azir);
            }
        }
Exemple #16
0
        public override void Update(AzirMain azir)
        {
            base.Update(azir);
            if (azir.Menu.GetMenu.Item("fleekey").GetValue <KeyBind>().Active)
            {
                azir.Orbwalk(Game.CursorPos);
                Jump(azir);
            }

            RAllyTower(azir);
        }
Exemple #17
0
        /* if (Menu._jumpMenu["inseckey"].Cast<KeyBind>().CurrentValue)
         * {
         *   Insec(azir);
         * }
         * } */
        public void Insec(AzirMain azir)
        {
            var ts = TargetSelector.GetTarget(azir.Spells.Q.Range, DamageType.Magical);

            if (ts != null)
            {
                if (azir.Spells.R.IsReady())
                {
                    jump.insec(ts);
                }
            }
        }
Exemple #18
0
 public override void LoadMenu(AzirMain azir)
 {
     base.LoadMenu(azir);
     LoadLaneClearMenu();
     LoadHarashMenu();
     LoadComboMenu();
     LoadJungleClearMenu();
     LoadDrawings();
     LoadJumps();
     LoadMiscInterrupt(azir);
     LoadMiscMenu(azir);
 }
Exemple #19
0
        public override void Harash(AzirMain azir)
        {

            var wCount = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Ammo;
            var useQ = Menu._harashMenu["HQ"].Cast<CheckBox>().CurrentValue;
            var useW = Menu._harashMenu["HW"].Cast<CheckBox>().CurrentValue;
            var savew = Menu._harashMenu["HW2"].Cast<CheckBox>().CurrentValue;
            var nSoldiersToQ = Menu._harashMenu["hSoldiersToQ"].Cast<Slider>().CurrentValue;
            base.Harash(azir);
            var target = TargetSelector.GetTarget(900, DamageType.Magical);
            if (target != null)
            {


                if (target.Distance(azir.Hero.ServerPosition) < 450)
                {
                    var pred = azir.Spells.W.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.Medium)
                    {
                        if (savew && (wCount == 0))
                        {

                        }
                        else
                        {
                            if (useW)
                                azir.Spells.W.Cast(pred.CastPosition);
                        }
                    }
                }
                else
                {
                    if (azir.Spells.Q.Level > 0 && azir.Spells.Q.IsReady())
                        if ((!savew && (savew && (wCount > 0))))
                            if (useW)
                                azir.Spells.W.Cast(azir.Hero.Position.LSExtend(target.ServerPosition, 450));
                }
                azir.Spells.castQ(azir, target, useQ, nSoldiersToQ);
                if (Menu._comboMenu["CR"].Cast<CheckBox>().CurrentValue)
                {
                    if (target.Health < azir.Spells.R.GetDamage(target))
                    {
                        var pred = azir.Spells.R.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {

                            azir.Spells.R.Cast(pred.CastPosition);
                        }
                    }
                    azir.Spells.R.Cast(target);
                }
            }
        }
Exemple #20
0
        public override void Combo(AzirMain azir)
        {
            var useQ = AzirMenu._comboMenu["CQ"].Cast<CheckBox>().CurrentValue;
            var useW = AzirMenu._comboMenu["CW"].Cast<CheckBox>().CurrentValue;
            base.Combo(azir);
            var target = TargetSelector.GetTarget(900, DamageType.Magical);
            if (target == null) return;

            if (target.Distance(azir.Hero.ServerPosition) < 450)
            {
                if (target.IsRunningOfYou())
                {
                    var pos = LeagueSharp.Common.Prediction.GetPrediction(target, 0.5f).UnitPosition;
                    azir.Spells.W.Cast(pos);
                }
                else
                {
                    var pred = azir.Spells.W.GetPrediction(target);
                    if (pred.HitChance >= EloBuddy.SDK.Enumerations.HitChance.High)
                    {
                        if (useW)
                            azir.Spells.W.Cast(pred.CastPosition);
                    }
                }
            }
            else
            {
                if (azir.Spells.Q.Level > 0 && azir.Spells.Q.IsReady())
                    if (useW)
                        if (target.Distance(HeroManager.Player) <= 750)
                            azir.Spells.W.Cast(azir.Hero.Position.Extend(target.ServerPosition, 450));
            }
            //Qc casting
            var checksQ = azir.SoldierManager.ChecksToCastQ(azir, target);
            if (checksQ)
            {
                StaticSpells.CastQ(azir, target, useQ);
            }

            else if (azir.Spells.R.IsKillable(target))
            {
                if (!AzirMenu._comboMenu["CR"].Cast<CheckBox>().CurrentValue) return;
                if (!(target.Health < azir.Spells.R.GetDamage(target))) return;
                var pred = azir.Spells.R.GetPrediction(target);
                if (pred.HitChance >= EloBuddy.SDK.Enumerations.HitChance.High)
                {

                    azir.Spells.R.Cast(pred.CastPosition);
                }
                //      azir.Spells.R.Cast(target);
            }
        }
Exemple #21
0
        public override void Update(AzirMain azir)
        {

            base.Update(azir);



            if (Menu._jumpMenu["fleekey"].Cast<KeyBind>().CurrentValue)
            {
                azir.Orbwalk(Game.CursorPos);
                Jump(azir);
            }
        }
Exemple #22
0
        public override void Harash(AzirMain azir)
        {
            var wCount = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Ammo;
            var useQ   = AzirMenu._harashMenu["HQ"].Cast <CheckBox>().CurrentValue;
            var useW   = AzirMenu._harashMenu["HW"].Cast <CheckBox>().CurrentValue;
            var savew  = AzirMenu._harashMenu["HW2"].Cast <CheckBox>().CurrentValue;

            base.Harash(azir);
            var target = TargetSelector.GetTarget(900, DamageType.Magical);

            if (target != null)
            {
                if (target.Distance(azir.Hero.ServerPosition) < 450)
                {
                    var pred = azir.Spells.W.GetPrediction(target);
                    if (pred.HitChance >= EloBuddy.SDK.Enumerations.HitChance.Medium)
                    {
                        if (savew && (wCount == 1))
                        {
                        }
                        else
                        {
                            if (useW)
                            {
                                if (azir.Spells.W.IsReady())
                                {
                                    azir.Spells.W.Cast(pred.CastPosition);
                                }
                            }
                        }
                    }
                }
                else
                {
                    if (!savew || (wCount != 1))
                    {
                        if (useW)
                        {
                            azir.Spells.W.Cast(azir.Hero.Position.Extend(target.ServerPosition, 450));
                        }
                    }
                }
                var checksQ = azir.SoldierManager.ChecksToCastQ(azir, target);
                if (checksQ)
                {
                    StaticSpells.CastQ(azir, target, useQ);
                }
            }
        }
Exemple #23
0
        public override void Harash(AzirMain azir)
        {
            var wCount = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Ammo;
            var useQ   = azir.Menu.GetMenu.Item("HQ").GetValue <bool>();
            var useW   = azir.Menu.GetMenu.Item("HW").GetValue <bool>();
            var savew  = azir.Menu.GetMenu.Item("HW2").GetValue <bool>();

            base.Harash(azir);
            var target = TargetSelector.GetTarget(900, TargetSelector.DamageType.Magical);

            if (target != null)
            {
                if (target.Distance(azir.Hero.ServerPosition) < 450)
                {
                    var pred = azir.Spells.W.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.Medium)
                    {
                        if (savew && (wCount == 1))
                        {
                        }
                        else
                        {
                            if (useW)
                            {
                                if (azir.Spells.W.IsReady())
                                {
                                    azir.Spells.W.Cast(pred.CastPosition);
                                }
                            }
                        }
                    }
                }
                else
                {
                    if (!savew || (wCount != 1))
                    {
                        if (useW)
                        {
                            azir.Spells.W.Cast(azir.Hero.Position.Extend(target.ServerPosition, 450));
                        }
                    }
                }
                var checksQ = azir.SoldierManager.ChecksToCastQ(azir, target);
                if (checksQ)
                {
                    StaticSpells.CastQ(azir, target, useQ);
                }
            }
        }
Exemple #24
0
        public bool SoldiersAttacking(AzirMain azir)
        {
            foreach (Obj_AI_Minion m in azir.soldierManager.Soldiers)
            {
                foreach (AIHeroClient h in HeroManager.Enemies)
                {
                    if (m.LSDistance(h) > 315)
                    {
                        return(true);
                    }
                }
            }

            return(false);
        }
Exemple #25
0
        public bool SoldiersAttacking(AzirMain azir)
        {
            foreach (Obj_AI_Minion m in azir.soldierManager.Soldiers)
            {
                foreach (AIHeroClient h in HeroManager.Enemies)
                {
                    if (m.LSDistance(h) > 315)
                    {

                        return true;
                    }
                }
            }

            return false;
        }
Exemple #26
0
        public static float Nattacks(AzirMain azir, Vector3 point, AIHeroClient target)
        {
            const float azirSoldierRange = 315;
            var attacksS = 0f;
            foreach (var m in azir.soldierManager.Soldiers)
            {
                if (m.IsDead) continue;
                var spaceToDoQ = m.ServerPosition.LSDistance(point);
                var timeToDoIt = (spaceToDoQ / azir.Spells.Q.Speed);
                var posFinalTarget = Prediction.GetPrediction(target, timeToDoIt);
                var space = azirSoldierRange - posFinalTarget.UnitPosition.LSDistance(point);

                var time = space / target.MoveSpeed;
                attacksS += (time / azir.Hero.AttackDelay);
            }
            return attacksS;
        }
Exemple #27
0
        private void RAllyTower(AzirMain azir)
        {
            var useR   = AzirMenu._miscMenu["ARUT"].Cast <CheckBox>().CurrentValue;
            var target = TargetSelector.GetTarget(1100, DamageType.Magical);

            if (useR)
            {
                if (azir.Hero.Distance(target) < 220)
                {
                    var tower = ObjectManager.Get <Obj_AI_Turret>().FirstOrDefault(it => it.IsAlly && it.IsValidTarget(1000));
                    if (tower != null)
                    {
                        azir.Spells.R.Cast(tower.Position);
                    }
                }
            }
        }
Exemple #28
0
        public virtual void Update(AzirMain azir)
        {
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo(azir);
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                Harash(azir);
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                Laneclear(azir);
                Jungleclear(azir);
            }
        }
Exemple #29
0
        public virtual void Update(AzirMain azir)
        {
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo(azir);
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Harash(azir);
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                Laneclear(azir);
                Jungleclear(azir);
            }
        }
Exemple #30
0
        public virtual void Update(AzirMain azir)
        {
            if (PortAIO.OrbwalkerManager.isComboActive)
            {
                Combo(azir);
            }

            if (PortAIO.OrbwalkerManager.isHarassActive)
            {
                Harash(azir);
            }

            if (PortAIO.OrbwalkerManager.isLaneClearActive)
            {
                Laneclear(azir);
                Jungleclear(azir);
            }
        }
Exemple #31
0
        public override void Combo(AzirMain azir)
        {
            var useQ         = Menu._comboMenu["CQ"].Cast <CheckBox>().CurrentValue;
            var useW         = Menu._comboMenu["CW"].Cast <CheckBox>().CurrentValue;
            var nSoldiersToQ = Menu._comboMenu["SoldiersToQ"].Cast <Slider>().CurrentValue;

            base.Combo(azir);
            var target = TargetSelector.GetTarget(900, DamageType.Magical);

            if (target != null)
            {
                if (target.Distance(azir.Hero.ServerPosition) < 450)
                {
                    if (target.isRunningOfYou())
                    {
                        var pos = LeagueSharp.Common.Prediction.GetPrediction(target, 0.8f).UnitPosition;
                        azir.Spells.W.Cast(pos);
                    }
                    else
                    {
                        var pred = azir.Spells.W.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.Medium)
                        {
                            if (useW)
                            {
                                azir.Spells.W.Cast(pred.CastPosition);
                            }
                        }
                    }
                }
                else
                {
                    if (azir.Spells.Q.Level > 0 && azir.Spells.Q.IsReady())
                    {
                        if (useW)
                        {
                            azir.Spells.W.Cast(azir.Hero.Position.LSExtend(target.ServerPosition, 450));
                        }
                    }
                }
                azir.Spells.castQ(azir, target, useQ, nSoldiersToQ);
            }
        }
Exemple #32
0
 public void castQ(AzirMain azir, AIHeroClient target, bool useQ, int nSoldiersToQ)
 {
     if (target.isRunningOfYou())
     {
         if (azir.Spells.Q.IsKillable(target))
         {
             var pred = azir.Spells.Q.GetPrediction(target);
             if (pred.Hitchance >= HitChance.High)
             {
                 if (useQ)
                 {
                     azir.Spells.Q.Cast(pred.CastPosition.LSExtend(target.ServerPosition, 80));
                 }
             }
         }
     }
     if (!azir.soldierManager.SoldiersAttacking(azir) && azir.soldierManager.ActiveSoldiers.Count >= nSoldiersToQ)
     {
         if (target.isRunningOfYou())
         {
             var pos = Prediction.GetPrediction(target, 0.8f).UnitPosition;
             if (pos.LSDistance(HeroManager.Player.ServerPosition) <= azir.Spells.Q.Range)
             {
                 if (useQ)
                 {
                     azir.Spells.Q.Cast(pos);
                 }
             }
         }
         else
         {
             var pred = azir.Spells.Q.GetPrediction(target);
             if (pred.Hitchance >= HitChance.High)
             {
                 if (useQ)
                 {
                     azir.Spells.Q.Cast(pred.CastPosition);
                 }
             }
         }
     }
 }
Exemple #33
0
        private void RAllyTower(AzirMain azir)
        {
            var useR = azir.Menu.GetMenu.Item("ARUT").GetValue <bool>();

            if (useR)
            {
                var target = TargetSelector.GetTarget(1100, TargetSelector.DamageType.Magical);
                if (target != null)
                {
                    if (azir.Hero.Distance(target) < 220)
                    {
                        var tower =
                            ObjectManager.Get <Obj_AI_Turret>().FirstOrDefault(it => it.IsAlly && it.IsValidTarget(1000));
                        if (tower != null)
                        {
                            azir.Spells.R.Cast(tower.Position);
                        }
                    }
                }
            }
        }
Exemple #34
0
        public void castQ(AzirMain azir, AIHeroClient target, bool useQ, int nSoldiersToQ)
        {
            var points = Azir_Free_elo_Machine.Math.Geometry.PointsAroundTheTarget(target.ServerPosition, 320);
            List<Azir_Free_elo_Machine.Math.Points> pointsAttack = new List<Points>();
            foreach (Vector3 point in points)
            {
                if (point.LSDistance(azir.Hero.ServerPosition) <= azir.Spells.Q.Range)
                {

                    pointsAttack.Add(new Points(Azir_Free_elo_Machine.Math.Geometry.Nattacks(azir, point, target), point));
                    //    var spaceAzirQ =azir.Spells.Q.Speed*time;
                    //  var spacetargetpos = Prediction.GetPrediction(target, time);

                }
            }
            if (pointsAttack.MaxOrDefault(x => x.hits).hits > 0)
            {
                //    Game.PrintChat("Attacks : "+ pointsAttack.MaxOrDefault(x => x.hits).hits);
                Q.Cast(pointsAttack.MaxOrDefault(x => x.hits).point);
            }
        }
Exemple #35
0
        public static void CastQ(AzirMain azir, AIHeroClient target, bool useQ)
        {
            var pointsAttack = new Points[120];
            var points       = Azir_Free_elo_Machine.Math.Geometry.PointsAroundTheTarget(target.ServerPosition, 640, 80);
            var i            = 0;

            foreach (var point in points)
            {
                if (point.Distance(azir.Hero.ServerPosition) <= azir.Spells.Q.Range)
                {
                    _pointer.hits   = Azir_Free_elo_Machine.Math.Geometry.Nattacks(azir, point, target);
                    _pointer.point  = point;
                    pointsAttack[i] = _pointer;
                }
                i++;
            }
            if (pointsAttack.MaxOrDefault(x => x.hits).hits > 0)
            {
                azir.Spells.Q.Cast(pointsAttack.MaxOrDefault(x => x.hits).point);
            }
        }
        public bool CheckQCastAtLaneClear(List<Obj_AI_Base> minions ,AzirMain azir)
        {
            var nSoldiersToQ = AzirMenu._laneClearMenu["LQM"].Cast<Slider>().CurrentValue;
            const int attackRange=315;
            int x=0;
            foreach (var sol in azir.SoldierManager.Soldiers)
            {
                if(!sol.IsDead)
                foreach (var min in minions)
                {
                    if(!min.IsDead)
                    if (min.ServerPosition.Distance(sol.ServerPosition)<= attackRange) //estos estan atacando
                    {
                        x++;
                        break;
                    }
                }
            }
            int z=azir.SoldierManager.Soldiers.Count - x;

            return z >= nSoldiersToQ;
        }
        public bool ChecksToCastQ(AzirMain azir, AIHeroClient target)
        {
            if (!azir.Spells.Q.IsReady()) return false;
            int x = 0; // soldados no atacando

            var nSoldiersToQ = AzirMenu._comboMenu["SoldiersToQ"].Cast<Slider>().CurrentValue;
            if (!target.IsDead)
            foreach (Obj_AI_Minion me in azir.SoldierManager.Soldiers)
            {
                if (!me.IsDead)
                {

                        if (me.Distance(target) > 315)
                        {
                            x++;

                        }

                }
            }
            return x >= nSoldiersToQ;
        }
Exemple #38
0
        public override void Jungleclear(AzirMain azir)
        {
            var useW = Menu._JungleClearMenu["JW"].Cast <CheckBox>().CurrentValue;

            base.Jungleclear(azir);
            var minion = MinionManager.GetMinions(azir.Spells.Q.Range, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth).FirstOrDefault();

            if (minion != null)
            {
                if (azir.Spells.W.IsInRange(minion))
                {
                    var pred = azir.Spells.W.GetPrediction(minion);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        if (useW)
                        {
                            azir.Spells.W.Cast(pred.CastPosition);
                        }
                    }
                }
            }
        }
Exemple #39
0
 public void castQ(AzirMain azir, AIHeroClient target, bool useQ, int nSoldiersToQ)
 {
     //revisar entero
     if (target.LSDistance(HeroManager.Player) <= azir.Spells.Q.Range)
     {
         if (target.isRunningOfYou())
         {
             var predpos = Prediction.GetPrediction(target, 500f);
             if (azir.Hero.LSDistance(predpos.CastPosition) <= azir.Spells.Q.Range)
             {
                 azir.Spells.Q.Cast((predpos.CastPosition));
             }
         }
         else
         {
             var predq = Q.GetPrediction(target);
             if (predq.Hitchance >= HitChance.High)
             {
                 Q.Cast(predq.CastPosition);
             }
         }
     }
 }
Exemple #40
0
        public static void CastQ(AzirMain azir, AIHeroClient target, bool useQ, int nSoldiersToQ)
        {
            var pointsAttack = new Points[120];
            var points = Azir_Free_elo_Machine.Math.Geometry.PointsAroundTheTarget(target.ServerPosition, 640, 80);
            var i = 0;

            foreach (var point in points)
            {

                if (point.LSDistance(azir.Hero.ServerPosition) <= azir.Spells.Q.Range)
                {
                    _pointer.hits = Azir_Free_elo_Machine.Math.Geometry.Nattacks(azir, point, target);
                    _pointer.point = point;
                    pointsAttack[i] = _pointer;

                }
                i++;

            }
            if (pointsAttack.MaxOrDefault(x => x.hits).hits > 0)
            {
                azir.Spells.Q.Cast(pointsAttack.MaxOrDefault(x => x.hits).point);
            }
        }
Exemple #41
0
        private void RAllyTower(AzirMain azir)
        {
            var useR = AzirMenu._miscMenu["ARUT"].Cast<CheckBox>().CurrentValue;
            var target = TargetSelector.GetTarget(1100, DamageType.Magical);
            if(useR)
            if (azir.Hero.Distance(target) < 220)
            {

                           var tower = ObjectManager.Get<Obj_AI_Turret>().FirstOrDefault(it =>it.IsAlly&& it.IsValidTarget(1000));
                if (tower != null)
                {
                    azir.Spells.R.Cast(tower.Position);
                }
            }
        }
Exemple #42
0
        public override void Harash(AzirMain azir)
        {
            var wCount = ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Ammo;
            var useQ = AzirMenu._harashMenu["HQ"].Cast<CheckBox>().CurrentValue;
            var useW = AzirMenu._harashMenu["HW"].Cast<CheckBox>().CurrentValue;
            var savew = AzirMenu._harashMenu["HW2"].Cast<CheckBox>().CurrentValue;
            base.Harash(azir);
            var target = TargetSelector.GetTarget(900, DamageType.Magical);
            if (target != null)
            {
                if (target.Distance(azir.Hero.ServerPosition) < 450)
                {
                    var pred = azir.Spells.W.GetPrediction(target);
                    if (pred.HitChance >= EloBuddy.SDK.Enumerations.HitChance.Medium)
                    {
                        if (savew && (wCount == 1))
                        {

                        }
                        else
                        {
                            if (useW)
                                if (azir.Spells.W.IsReady())
                                    azir.Spells.W.Cast(pred.CastPosition);
                        }
                    }
                }
                else
                {
                    if (!savew || (wCount != 1))
                    {
                        if (useW)
                            azir.Spells.W.Cast(azir.Hero.Position.Extend(target.ServerPosition, 450));
                    }

                }
                var checksQ = azir.SoldierManager.ChecksToCastQ(azir, target);
                if (checksQ)
                    StaticSpells.CastQ(azir, target, useQ);

            }
        }
Exemple #43
0
        /*public void Insec(AzirMain azir)
        {
            var ts = TargetSelector.GetTarget(azir.Spells.Q.Range, DamageType.Magical);
            if (ts != null)
            {

                if (azir.Spells.R.IsReady())
                    jump.insec(ts);

            }
        }*/
        public void Jump(AzirMain azir)
        {
            jump.updateLogic(Game.CursorPos);

        }
Exemple #44
0
 public Events(AzirMain azir)
 {
     this.azir = azir;
     Obj_AI_Base.OnProcessSpellCast += Game_ProcessSpell;
     AntiGapcloser.OnEnemyGapcloser += OnGapClose;
 }
Exemple #45
0
        public override void Jungleclear(AzirMain azir)
        {
            var useW = Menu._JungleClearMenu["JW"].Cast<CheckBox>().CurrentValue;
            base.Jungleclear(azir);
            var minion = MinionManager.GetMinions(azir.Spells.Q.Range, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth).FirstOrDefault();
            if (minion != null)
            {
                if (azir.Spells.W.IsInRange(minion))
                {
                    var pred = azir.Spells.W.GetPrediction(minion);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        if (useW)
                            azir.Spells.W.Cast(pred.CastPosition);
                    }


                }
            }
        }
Exemple #46
0
 /*public void Insec(AzirMain azir)
  * {
  *  var ts = TargetSelector.GetTarget(azir.Spells.Q.Range, DamageType.Magical);
  *  if (ts != null)
  *  {
  *
  *      if (azir.Spells.R.IsReady())
  *          jump.insec(ts);
  *
  *  }
  * }*/
 public void Jump(AzirMain azir)
 {
     jump.updateLogic(Game.CursorPos);
 }
Exemple #47
0
#pragma warning restore 0649
        public AzirModes(AzirMain azir)
        {
            jump = new JumpLogic(azir);
        }
Exemple #48
0
 public override void Laneclear(AzirMain azir)
 {
     var useQ = Menu._laneClearMenu["LQ"].Cast<CheckBox>().CurrentValue;
     var useW = Menu._laneClearMenu["LW"].Cast<CheckBox>().CurrentValue;
     base.Laneclear(azir);
     var minion = MinionManager.GetMinions(azir.Spells.Q.Range, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.MaxHealth).FirstOrDefault();
     if (minion != null)
     {
         if (azir.Spells.W.IsInRange(minion))
         {
             var pred = azir.Spells.W.GetPrediction(minion);
             if (pred.Hitchance >= HitChance.High)
             {
                 if (useW)
                     azir.Spells.W.Cast(pred.CastPosition);
             }
             if (azir.soldierManager.SoldiersAttacking(azir) == false && azir.soldierManager.ActiveSoldiers.Count > 0)
             {
                 pred = azir.Spells.Q.GetPrediction(minion);
                 if (pred.Hitchance >= HitChance.High)
                 {
                     if (useQ)
                         azir.Spells.Q.Cast(pred.CastPosition);
                 }
             }
         }
     }
 }
        public bool ChecksToCastQHarrash(AzirMain azir, AIHeroClient target)
        {
            if (!azir.Spells.Q.IsReady()) return false;
            int x = 0; // soldados no atacando
            var nSoldiersToQ = AzirMenu._comboMenu["SoldiersToQ"].Cast<Slider>().CurrentValue;
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                nSoldiersToQ = AzirMenu._comboMenu["SoldiersToQ"].Cast<Slider>().CurrentValue;
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                nSoldiersToQ = AzirMenu._harashMenu["hSoldiersToQ"].Cast<Slider>().CurrentValue;
            }

            if (!target.IsDead)
                foreach (Obj_AI_Minion me in azir.SoldierManager.Soldiers)
                {
                    if (!me.IsDead)
                    {

                        if (me.Distance(target) > 315)
                        {
                            x++;

                        }

                    }
                }
            return x >= nSoldiersToQ;
        }
Exemple #50
0
        public override void Combo(AzirMain azir)
        {
            var useQ = azir.Menu.GetMenu.Item("CQ").GetValue <bool>();
            var useW = azir.Menu.GetMenu.Item("CW").GetValue <bool>();

            base.Combo(azir);
            var target = TargetSelector.GetTarget(900, TargetSelector.DamageType.Magical);

            if (target == null)
            {
                return;
            }

            if (target.Distance(azir.Hero.ServerPosition) < 450)
            {
                if (target.IsRunningOfYou())
                {
                    var pos = Prediction.GetPrediction(target, 0.5f).UnitPosition;
                    azir.Spells.W.Cast(pos);
                }
                else
                {
                    var pred = azir.Spells.W.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.VeryHigh)
                    {
                        if (useW)
                        {
                            azir.Spells.W.Cast(pred.CastPosition);
                        }
                    }
                }
            }
            else
            {
                if (azir.Spells.Q.Level > 0 && azir.Spells.Q.IsReady())
                {
                    if (useW)
                    {
                        if (target.Distance(HeroManager.Player) <= 750)
                        {
                            azir.Spells.W.Cast(azir.Hero.Position.Extend(target.ServerPosition, 450));
                        }
                    }
                }
            }
            //Qc casting
            var checksQ = azir.SoldierManager.ChecksToCastQ(azir, target);

            if (checksQ)
            {
                StaticSpells.CastQ(azir, target, useQ);
            }



            else if (azir.Spells.R.IsKillable(target))
            {
                if (!azir.Menu.GetMenu.Item("CR").GetValue <bool>())
                {
                    return;
                }
                if (!(target.Health < azir.Spells.R.GetDamage(target)))
                {
                    return;
                }
                var pred = azir.Spells.R.GetPrediction(target);
                if (pred.Hitchance >= HitChance.High)
                {
                    azir.Spells.R.Cast(pred.CastPosition);
                }
                //      azir.Spells.R.Cast(target);
            }
        }
Exemple #51
0
 #pragma warning restore 0649
 public AzirModes(AzirMain azir)
 {
     jump = new JumpLogic(azir);
 }
Exemple #52
0
 public virtual void Combo(AzirMain azir)
 {
 }
Exemple #53
0
        public override void Combo(AzirMain azir)
        {

            var useQ = Menu._comboMenu["CQ"].Cast<CheckBox>().CurrentValue;
            var useW = Menu._comboMenu["CW"].Cast<CheckBox>().CurrentValue;
            var nSoldiersToQ = Menu._comboMenu["SoldiersToQ"].Cast<Slider>().CurrentValue;
            base.Combo(azir);
            var target = TargetSelector.GetTarget(900, DamageType.Magical);
            if (target == null) return;

            if (target.Distance(azir.Hero.ServerPosition) < 450)
            {
                if (target.isRunningOfYou())
                {
                    var pos = LeagueSharp.Common.Prediction.GetPrediction(target, 0.5f).UnitPosition;
                    azir.Spells.W.Cast(pos);
                }
                else
                {
                    var pred = azir.Spells.W.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.VeryHigh)
                    {
                        if (useW)
                            azir.Spells.W.Cast(pred.CastPosition);
                    }
                }
            }
            else
            {
                if (azir.Spells.Q.Level > 0 && azir.Spells.Q.IsReady())
                    if (useW)
                        if (target.Distance(HeroManager.Player) <= 750)
                            azir.Spells.W.Cast(azir.Hero.Position.Extend(target.ServerPosition, 450));
            }
            //Q

            if (azir.Spells.Q.IsReady() && azir.soldierManager.Soldiers.Count > 0 && azir.soldierManager.SoldiersAttackingn(azir) >= nSoldiersToQ)
            {

                StaticSpells.CastQ(azir, target, useQ, nSoldiersToQ);
            }
            if (azir.Spells.Q.IsKillable(target) && useQ)
            {
                if (target.Health < azir.Spells.Q.GetDamage(target))
                {
                    var pred = azir.Spells.Q.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        //       Game.PrintChat("Killeable with q");
                        azir.Spells.Q.Cast(pred.CastPosition);
                    }
                }
            }
            else if (azir.Spells.R.IsKillable(target))
            {
                if (Menu._comboMenu["CR"].Cast<CheckBox>().CurrentValue)
                {
                    if (target.Health < azir.Spells.R.GetDamage(target))
                    {
                        var pred = azir.Spells.R.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {

                            azir.Spells.R.Cast(pred.CastPosition);
                        }
                    }
                    //      azir.Spells.R.Cast(target);

                }
            }
        }
Exemple #54
0
 public virtual void Harash(AzirMain azir)
 {
 }
Exemple #55
0
 public int SoldiersAttackingn(AzirMain azir)
 {
     var soldiersa = azir.soldierManager.Soldiers.Where(m => !m.IsDead).Count(m => HeroManager.Enemies.Where(h => !h.IsDead).Any(h => m.LSDistance(h) > 315));
     //    Game.PrintChat("soldiersa : " +soldiersa);
     return (int)(soldiersa);
 }
Exemple #56
0
 public virtual void Jungleclear(AzirMain azir)
 {
 }
Exemple #57
0
 public AzirModes(AzirMain azir)
 {
     _jump = new JumpLogic(azir);
     _insec = new Insec(azir);
 }
Exemple #58
0
 public virtual void Laneclear(AzirMain azir)
 {
 }
Exemple #59
0
 public JumpLogic(AzirMain azir)
 {
     this.azir = azir;
 }
Exemple #60
0
 public AzirModes(AzirMain azir)
 {
     _jump  = new JumpLogic(azir);
     _insec = new Insec(azir);
 }