Пример #1
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            SetMana();
            if (Program.LagFree(1) && Q.IsReady() && !Player.IsWindingUp)
            {
                LogicQ();
            }

            if (Program.LagFree(2) && R.IsReady() && Program.Combo && Config.Item("autoR").GetValue <bool>())
            {
                LogicR();
            }
            if (Program.LagFree(3) && Config.Item("forceW").GetValue <bool>() && W.IsReady())
            {
                var target = Orbwalker.GetTarget();
                var t      = TargetSelector.GetTarget(900, TargetSelector.DamageType.Physical);
                if (W.IsReady())
                {
                    if (Program.Combo && target is Obj_AI_Hero && Player.Mana > RMANA + WMANA)
                    {
                        Utility.DelayAction.Add(250, () => W.Cast());
                    }
                    else if (target is Obj_AI_Hero && Player.Mana > RMANA + WMANA + QMANA)
                    {
                        Utility.DelayAction.Add(250, () => W.Cast());
                    }
                    else if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear && Config.Item("farmW").GetValue <bool>() && Player.Mana > RMANA + WMANA + QMANA && (farmW() || t.IsValidTarget()))
                    {
                        Utility.DelayAction.Add(250, () => W.Cast());
                    }
                }
            }
        }
Пример #2
0
 private void LogicQ()
 {
     if (Program.Combo && Player.Mana > RMANA + QMANA)
     {
         if (Orbwalker.GetTarget() != null)
         {
             return;
         }
         var t = TargetSelector.GetTarget(Q.Range + Player.AttackRange, TargetSelector.DamageType.Physical);
         if (t.IsValidTarget())
         {
             var dashPos = Dash.CastDash();
             if (!dashPos.IsZero && dashPos.CountEnemiesInRange(500) > 0)
             {
                 E.Cast(dashPos);
             }
         }
     }
     if (Program.LaneClear && Player.ManaPercent > Config.Item("Mana", true).GetValue <Slider>().Value&& Config.Item("farmQ", true).GetValue <bool>() && Player.Mana > RMANA + QMANA)
     {
         var allMinionsQ = MinionManager.GetMinions(Player.ServerPosition, 400);
         if (allMinionsQ.Count >= Config.Item("LCminions", true).GetValue <Slider>().Value)
         {
             Q.Cast(Game.CursorPos);
         }
     }
 }
Пример #3
0
        private void LogicQ()
        {
            var t = Orbwalker.GetTarget() as Obj_AI_Hero;

            if (t != null && t.IsValidTarget())
            {
                if (Program.Combo && (Player.Mana > RMANA + QMANA || t.Health < 5 * Player.GetAutoAttackDamage(Player)))
                {
                    Q.Cast();
                }
                else if (Program.Farm && Player.Mana > RMANA + QMANA + WMANA && Config.Item("harasQ", true).GetValue <bool>() && Config.Item("haras" + t.ChampionName).GetValue <bool>())
                {
                    Q.Cast();
                }
            }
            else if (Program.LaneClear)
            {
                var minion = Orbwalker.GetTarget() as Obj_AI_Minion;
                if (minion != null && Player.ManaPercent > Config.Item("Mana", true).GetValue <Slider>().Value&& Config.Item("farmQ", true).GetValue <bool>() && Player.Mana > RMANA + QMANA)
                {
                    if (Cache.GetMinions(Player.ServerPosition, 600).Count >= Config.Item("LCminions", true).GetValue <Slider>().Value)
                    {
                        Q.Cast();
                    }
                }
            }
        }
Пример #4
0
 static void Orbwalking_BeforeAttack(LeagueSharp.Common.Orbwalking.BeforeAttackEventArgs args)
 {
     if (Config.Item("sup").GetValue <bool>() && (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed || Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LastHit))
     {
         if (((Obj_AI_Base)Orbwalker.GetTarget()).IsMinion)
         {
             args.Process = false;
         }
     }
 }
Пример #5
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            if (R.IsReady())
            {
                if (Config.Item("useR", true).GetValue <KeyBind>().Active)
                {
                    var t = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Physical);
                    if (t.IsValidTarget())
                    {
                        R.Cast(t);
                    }
                }
            }
            if (Program.LagFree(0))
            {
                SetMana();
                if (!CanCast)
                {
                    if (Game.Time - CastTime > 1)
                    {
                        CanCast = true;
                        return;
                    }
                    var t = Orbwalker.GetTarget() as Obj_AI_Base;
                    if (t.IsValidTarget())
                    {
                        if (OktwCommon.GetBuffCount(t, "varuswdebuff") < 3)
                        {
                            CanCast = true;
                        }
                    }
                    else
                    {
                        CanCast = true;
                    }
                }
            }

            if (Program.LagFree(1) && E.IsReady() && Config.Item("autoQ", true).GetValue <bool>() && !Player.IsWindingUp)
            {
                LogicE();
            }
            if (Program.LagFree(2) && Q.IsReady() && Config.Item("autoE", true).GetValue <bool>() && !Player.IsWindingUp)
            {
                LogicQ();
            }
            if (Program.LagFree(3) && R.IsReady() && Config.Item("autoR", true).GetValue <bool>())
            {
                LogicR();
            }
            if (Program.LagFree(4))
            {
                Farm();
            }
        }
Пример #6
0
        private static void Combo()
        {
            var target = Orbwalker.GetTarget() as AIHeroClient;

            if (target == null)
            {
                target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);
            }

            if (Menu.Item("GapcloseR").GetValue <bool>())
            {
                GapcloseCombo();
            }
            if (target != null && target.IsValidTarget())
            {
                /*var enemy = HeroManager.Enemies.OrderBy(e => e.Distance(target)).FirstOrDefault();
                 *  if(enemy != null)
                 *  {
                 *      foreach (var buff in enemy.Buffs)
                 *      {
                 *          Console.WriteLine(buff.Name);
                 *      }
                 *  }*/
                if (Menu.Item("ComboUseQ").GetValue <bool>() && target.IsValidTarget(Q.Range) && Q.CanCast(target) && Q.IsReady())
                {
                    Q.Cast(target);
                }

                if (Menu.Item("ComboUseR").GetValue <bool>() && R.IsReady())
                {
                    if (Menu.Item("NoTD").GetValue <bool>() && target.UnderTurret(true))
                    {
                        return;
                    }

                    if (Menu.Item("UseR" + target.ChampionName).GetValue <bool>())
                    {
                        if (!target.IsValidTarget(E.Range) && target.IsValidTarget(R.Range) && R.CanCast(target) && R.IsReady())
                        {
                            R.Cast(target);
                        }
                    }
                }


                /*
                 * if (Menu.Item("ComboUseW").GetValue<bool>() && target.IsValidTarget(700) && W.IsReady() && R.IsReady())
                 *  W.Cast(Game.CursorPos);
                 */
            }
        }
Пример #7
0
        public void Orbwalker_AfterAttack(AttackableUnit unit, AttackableUnit target)
        {
            if (!unit.IsMe && Orbwalker.GetTarget().IsValidTarget())
            {
                return;
            }

            if (W.IsReady())
            {
                var t = TargetSelector.GetTarget(800, TargetSelector.DamageType.Physical);
                if (Program.Combo && target is Obj_AI_Hero && Player.Mana > RMANA + WMANA)
                {
                    W.Cast();
                }
                else if (Config.Item("harasW", true).GetValue <bool>() && !Player.UnderTurret(true) && (target is Obj_AI_Hero || t.IsValidTarget()) && Player.Mana > RMANA + WMANA + QMANA)
                {
                    W.Cast();
                }
                else if (Config.Item("farmW", true).GetValue <bool>() && Program.Farm && Player.Mana > RMANA + WMANA + QMANA && !Player.UnderTurret(true))
                {
                    if (farmW() && Program.LaneClear)
                    {
                        W.Cast();
                    }
                    else if (Program.Farm)
                    {
                        var minions = MinionManager.GetMinions(Player.Position, Player.AttackRange, MinionTypes.All);

                        if (minions == null || minions.Count == 0)
                        {
                            return;
                        }

                        int countMinions = 0;

                        foreach (var minion in minions.Where(minion => minion.Health < Player.GetAutoAttackDamage(minion) + W.GetDamage(minion)))
                        {
                            countMinions++;
                        }

                        if (countMinions > 1)
                        {
                            W.Cast();
                        }
                    }
                }
            }
        }
Пример #8
0
        private void LogicE()
        {
            foreach (var enemy in Program.Enemies.Where(enemy => enemy.IsValidTarget(E.Range) && E.GetDamage(enemy) + Q.GetDamage(enemy) + W.GetDamage(enemy) > enemy.Health))
            {
                Program.CastSpell(E, enemy);
            }
            var t = Orbwalker.GetTarget() as Obj_AI_Hero;

            if (!t.IsValidTarget())
            {
                t = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical);
            }
            if (t.IsValidTarget())
            {
                if (Program.Combo && Player.Mana > RMANA + EMANA)
                {
                    Program.CastSpell(E, t);
                }
                if (Program.Farm && Config.Item("harrasE").GetValue <bool>() && Player.Mana > RMANA + EMANA + WMANA + EMANA)
                {
                    Program.CastSpell(E, t);
                }
                foreach (var enemy in Program.Enemies.Where(enemy => enemy.IsValidTarget(E.Range) && !OktwCommon.CanMove(enemy)))
                {
                    E.Cast(enemy);
                }
            }
        }
Пример #9
0
        public static void Drawing_OnDraw(EventArgs args)
        {
            if (Config.Item("DrawEGapCloseRange").GetValue <bool>())
            {
                Utility.DrawCircle(Player.Position, Config.Item("Gangplank.UseEtoGapDist").GetValue <Slider>().Value, (Player.CountEnemiesInRange(Config.Item("Gangplank.UseEtoGapDist").GetValue <Slider>().Value) > 0) ? Color.OrangeRed : Color.Green, 10, 10);
            }

            foreach (var spell in SpellList)
            {
                var menuItem = Config.Item(spell.Slot + "Range").GetValue <Circle>();
                if (menuItem.Active && (spell.Slot != SpellSlot.R || R.Level > 0))
                {
                    Render.Circle.DrawCircle(Player.Position, spell.Range, menuItem.Color);
                }
            }

            if (Config.Item("DrawOrbwalkTarget").GetValue <bool>())
            {
                var orbT = Orbwalker.GetTarget();
                if (orbT.IsValidTarget())
                {
                    Render.Circle.DrawCircle(orbT.Position, 100, System.Drawing.Color.Pink);
                }
            }
        }
Пример #10
0
 private static void Game_OnGameUpdate(EventArgs args)
 {
     ManaMenager();
     PotionMenager();
     if (Q.IsReady())
     {
         var t = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Physical);
         if (t.IsValidTarget())
         {
             var qDmg = W.GetDamage(t);
             if (qDmg * 2 > t.Health)
             {
                 Q.Cast(t, true);
             }
             else if (Orbwalker.ActiveMode.ToString() == "Combo" && ObjectManager.Player.Mana > RMANA + QMANA)
             {
                 Q.CastIfHitchanceEquals(t, HitChance.VeryHigh, true);
             }
             else if (((Orbwalker.ActiveMode.ToString() == "Mixed" || Orbwalker.ActiveMode.ToString() == "LaneClear")))
             {
                 if (ObjectManager.Player.Mana > RMANA + WMANA + QMANA + QMANA && t.Path.Count() > 1)
                 {
                     Qc.CastIfHitchanceEquals(t, HitChance.VeryHigh, true);
                 }
                 else if (ObjectManager.Player.Mana > ObjectManager.Player.MaxMana * 0.9)
                 {
                     Q.CastIfHitchanceEquals(t, HitChance.VeryHigh, true);
                 }
                 else if (ObjectManager.Player.Mana > RMANA + QMANA + WMANA)
                 {
                     foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsValidTarget(Q.Range)))
                     {
                         if (enemy.HasBuffOfType(BuffType.Stun) || enemy.HasBuffOfType(BuffType.Snare) ||
                             enemy.HasBuffOfType(BuffType.Charm) || enemy.HasBuffOfType(BuffType.Fear) ||
                             enemy.HasBuffOfType(BuffType.Taunt) || enemy.HasBuffOfType(BuffType.Slow) || enemy.HasBuff("Recall"))
                         {
                             Q.Cast(enemy, true);
                         }
                         else
                         {
                             Q.CastIfHitchanceEquals(enemy, HitChance.Immobile, true);
                         }
                     }
                 }
             }
         }
     }
     if (R.IsReady() && Orbwalker.ActiveMode.ToString() == "Combo" && Config.Item("autoR").GetValue <bool>())
     {
         var t = TargetSelector.GetTarget(800, TargetSelector.DamageType.Physical);
         if (ObjectManager.Player.CountEnemiesInRange(800f) > 2)
         {
             R.Cast();
         }
         else if (t.IsValidTarget() && Orbwalker.GetTarget() == null && Orbwalker.ActiveMode.ToString() == "Combo" && ObjectManager.Player.GetAutoAttackDamage(t) * 2 > t.Health && !Q.IsReady() && t.CountEnemiesInRange(800) < 3)
         {
             R.Cast();
         }
     }
 }
Пример #11
0
        private static void OnDraw(EventArgs args)
        {
            if (Config.Item("Draw_Disabled").GetValue <bool>())
            {
                return;
            }

            if (Config.Item("Qdraw").GetValue <bool>())
            {
                Render.Circle.DrawCircle(player.Position, Q.Range, System.Drawing.Color.White, 3);
            }
            if (Config.Item("Wdraw").GetValue <bool>())
            {
                Render.Circle.DrawCircle(player.Position, W.Range, System.Drawing.Color.White, 3);
            }
            if (Config.Item("Edraw").GetValue <bool>())
            {
                Render.Circle.DrawCircle(player.Position, E.Range, System.Drawing.Color.White, 3);
            }
            if (Config.Item("Rdraw").GetValue <bool>())
            {
                Render.Circle.DrawCircle(player.Position, R.Range, System.Drawing.Color.White, 3);
            }

            var orbtarget = Orbwalker.GetTarget();

            if (orbtarget == null)
            {
                return;
            }
            Render.Circle.DrawCircle(orbtarget.Position, 100, Color.DarkOrange, 10);
        }
Пример #12
0
        private void LogicQ()
        {
            var torb = Orbwalker.GetTarget();

            if (torb == null || torb.Type != GameObjectType.AIHeroClient)
            {
                if (Config.Item("Qminion", true).GetValue <bool>())
                {
                    var t = TargetSelector.GetTarget(Q.Range + 300, TargetSelector.DamageType.Physical);
                    if (t.IsValidTarget())
                    {
                        var minion = Cache.GetMinions(LeagueSharp.Common.Prediction.GetPrediction(t, 0.1f).CastPosition, 300).Where(minion2 => minion2.IsValidTarget(Q.Range)).OrderBy(x => x.Distance(t)).FirstOrDefault();
                        if (minion.IsValidTarget())
                        {
                            if (t.Health < GetQdmg(t))
                            {
                                Q.CastOnUnit(minion);
                            }
                            if (Program.Combo && Player.Mana > RMANA + EMANA)
                            {
                                Q.CastOnUnit(minion);
                            }
                            else if (Program.Farm && Config.Item("harrasQ", true).GetValue <bool>() && Player.Mana > RMANA + EMANA + WMANA + EMANA && Config.Item("harras" + t.ChampionName).GetValue <bool>())
                            {
                                Q.CastOnUnit(minion);
                            }
                        }
                    }
                }
            }
            else if (!Orbwalking.CanAttack() && !Player.Spellbook.IsAutoAttacking)
            {
                var t = torb as AIHeroClient;
                if (t.Health < GetQdmg(t) + GetWdmg(t))
                {
                    Q.CastOnUnit(t);
                }
                if (Program.Combo && Player.Mana > RMANA + QMANA)
                {
                    Q.CastOnUnit(t);
                }
                else if (Program.Farm && Config.Item("harrasQ", true).GetValue <bool>() && Player.Mana > RMANA + QMANA + WMANA + EMANA && Config.Item("harras" + t.ChampionName).GetValue <bool>())
                {
                    Q.CastOnUnit(t);
                }
            }
            if (Program.LaneClear && Player.ManaPercent > Config.Item("Mana", true).GetValue <Slider>().Value&& Config.Item("farmQ", true).GetValue <bool>())
            {
                var minionList = Cache.GetMinions(Player.ServerPosition, Q.Range);

                if (minionList.Count >= Config.Item("LCminions", true).GetValue <Slider>().Value)
                {
                    var minionAttack = minionList.FirstOrDefault(x => Q.GetDamage(x) > SebbyLib.HealthPrediction.GetHealthPrediction(x, 300));
                    if (minionAttack.IsValidTarget())
                    {
                        Q.CastOnUnit(minionAttack);
                    }
                }
            }
        }
Пример #13
0
 static void Orbwalking_BeforeAttack(LeagueSharp.Common.Orbwalking.BeforeAttackEventArgs args)
 {
     if (((Obj_AI_Base)Orbwalker.GetTarget()).IsMinion)
     {
         args.Process = false;
     }
 }
Пример #14
0
        private void OnUpdate(EventArgs args)
        {
            if (!CheckGuardians() || tibbers == null)
            {
                return;
            }

            var gameObjectStructure = orbwalker.GetTarget() as Obj_AI_Base;

            if (Target != null && !tibbers.UnderTurret(true))
            {
                EloBuddy.Player.IssueOrder(tibbers.Distance(Target) > tibbers.AttackRange
                ? GameObjectOrder.MovePet
                : GameObjectOrder.AttackUnit,
                                           Target);
            }
            else if (gameObjectStructure != null)
            {
                EloBuddy.Player.IssueOrder(tibbers.Distance(gameObjectStructure) > tibbers.AttackRange
                ? GameObjectOrder.MovePet
                : GameObjectOrder.AttackUnit,
                                           gameObjectStructure);
            }
            else if (Minion != null)
            {
                EloBuddy.Player.IssueOrder(tibbers.Distance(Minion) > tibbers.AttackRange
              ? GameObjectOrder.MovePet
              : GameObjectOrder.AttackUnit,
                                           Minion);
            }
        }
Пример #15
0
        private void LogicE()
        {
            var dashPosition = Player.Position.Extend(Game.CursorPos, E.Range);

            if (Game.CursorPos.Distance(Player.Position) > Player.AttackRange + Player.BoundingRadius * 2 && Program.Combo && Config.Item("nktdE").GetValue <bool>() && Player.Mana > RMANA + EMANA - 10)
            {
                if (!passRdy && !SpellLock)
                {
                    E.Cast(Game.CursorPos);
                }
                else if (!Orbwalker.GetTarget().IsValidTarget())
                {
                    E.Cast(Game.CursorPos);
                }
            }

            if (dashPosition.IsWall() || Player.Mana < RMANA + EMANA || !Config.Item("autoE").GetValue <bool>() || passRdy || SpellLock)
            {
                return;
            }
            foreach (var target in Program.Enemies.Where(target => target.IsValidTarget(270) && target.IsMeele))
            {
                if (target.Position.Distance(Game.CursorPos) > target.Position.Distance(Player.Position))
                {
                    E.Cast(dashPosition, true);
                }
            }
        }
Пример #16
0
 private void LogicW()
 {
     if (Program.Combo && R.IsReady() && Range && Orbwalker.GetTarget().IsValidTarget() && Orbwalker.GetTarget() is Obj_AI_Hero)
     {
         W.Cast();
     }
 }
Пример #17
0
        private void LogicQ()
        {
            foreach (var enemy in Program.Enemies.Where(enemy => enemy.IsValidTarget(Q.Range) && E.GetDamage(enemy) + Q.GetDamage(enemy) + BonusDmg(enemy) > enemy.Health))
            {
                CastQ(enemy);
                return;
            }

            var t = Orbwalker.GetTarget() as Obj_AI_Hero;

            if (!t.IsValidTarget())
            {
                t = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);
            }
            if (t.IsValidTarget() && Config.Item("Qon" + t.ChampionName).GetValue <bool>())
            {
                if (Program.Combo && Player.Mana > RMANA + QMANA)
                {
                    CastQ(t);
                }
                else if (Program.Farm && Config.Item("harrasQ", true).GetValue <bool>() && Config.Item("harras" + t.ChampionName).GetValue <bool>() && Player.Mana > RMANA + EMANA + WMANA + EMANA)
                {
                    CastQ(t);
                }
                else if (OktwCommon.GetKsDamage(t, Q) > t.Health)
                {
                    CastQ(t);
                }

                foreach (var enemy in Program.Enemies.Where(enemy => enemy.IsValidTarget(Q.Range) && !OktwCommon.CanMove(enemy)))
                {
                    CastQ(enemy);
                }
            }
        }
Пример #18
0
        private void LogicQ()
        {
            foreach (var enemy in Program.Enemies.Where(enemy => enemy.IsValidTarget(Q.Range) && Q.GetDamage(enemy) + W.GetDamage(enemy) + E.GetDamage(enemy) > enemy.Health))
            {
                Program.CastSpell(Q, enemy);
            }
            var t = Orbwalker.GetTarget() as Obj_AI_Hero;

            if (!t.IsValidTarget())
            {
                t = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Physical);
            }
            if (t.IsValidTarget() && (!W.IsReady() || t.HasBuff("brandablaze")))
            {
                if (Program.Combo && Player.Mana > RMANA + QMANA)
                {
                    Program.CastSpell(Q, t);
                }
                if (Program.Farm && Config.Item("harrasE").GetValue <bool>() && Player.Mana > RMANA + EMANA + WMANA + EMANA)
                {
                    Program.CastSpell(Q, t);
                }
                foreach (var enemy in Program.Enemies.Where(enemy => enemy.IsValidTarget(Q.Range) && !OktwCommon.CanMove(enemy)))
                {
                    Q.Cast(enemy);
                }
            }
        }
Пример #19
0
        private void LogicQ()
        {
            if (Config.Item("autoQ", true).GetValue <bool>() && Program.Combo && Orbwalker.GetTarget().IsValid <AIHeroClient>() && Player.Mana > RMANA + QMANA)
            {
                Q.Cast();
            }

            if (Config.Item("countQ", true).GetValue <Slider>().Value == 0 || Player.Mana < RMANA + QMANA)
            {
                return;
            }

            var count = 0;

            foreach (var enemy in HeroManager.Enemies.Where(enemy => enemy.IsValidTarget(3000)))
            {
                List <Vector2> waypoints = enemy.GetWaypoints();

                if (Player.Distance(waypoints.Last().To3D()) < 600)
                {
                    count++;
                }
            }

            if (count >= Config.Item("countQ", true).GetValue <Slider>().Value)
            {
                Q.Cast();
            }
        }
Пример #20
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            if (Config.Item("PingLH").GetValue <bool>())
            {
                foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(h => h.IsValidTarget() && ComboDamage(h) > h.Health))
                {
                    Ping(enemy.Position.To2D());
                }
            }

            var combo = Config.Item("Combo").GetValue <KeyBind>().Active;

            //Select cards.
            if (Config.Item("SelectYellow").GetValue <KeyBind>().Active ||
                combo)
            {
                CardSelector.StartSelecting(Cards.Yellow);
            }

            if (Config.Item("SelectBlue").GetValue <KeyBind>().Active)
            {
                CardSelector.StartSelecting(Cards.Blue);
            }

            if (Config.Item("SelectRed").GetValue <KeyBind>().Active)
            {
                CardSelector.StartSelecting(Cards.Red);
            }

            if (CardSelector.Status == SelectStatus.Selected && combo)
            {
                var target = SOW.GetTarget();
                if (target.IsValidTarget() && target is Obj_AI_Hero && Items.HasItem("DeathfireGrasp") && ComboDamage((Obj_AI_Hero)target) >= target.Health)
                {
                    Items.UseItem("DeathfireGrasp", (Obj_AI_Hero)target);
                }
            }


            //Auto Q
            var autoQI = Config.Item("AutoQI").GetValue <bool>();
            var autoQD = Config.Item("AutoQD").GetValue <bool>();


            if (ObjectManager.Player.Spellbook.CanUseSpell(SpellSlot.Q) == SpellState.Ready && (autoQD || autoQI))
            {
                foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>())
                {
                    if (enemy.IsValidTarget(Q.Range * 2))
                    {
                        var pred = Q.GetPrediction(enemy);
                        if ((pred.Hitchance == HitChance.Immobile && autoQI) ||
                            (pred.Hitchance == HitChance.Dashing && autoQD))
                        {
                            CastQ(enemy, pred.UnitPosition.To2D());
                        }
                    }
                }
            }
        }
Пример #21
0
 static void Orbwalking_BeforeAttack(LeagueSharp.Common.Orbwalking.BeforeAttackEventArgs args)
 {
     if (Getallies(1000) > 0 && ((Obj_AI_Base)_orbwalker.GetTarget()).IsMinion && /*args.Unit.IsMinion &&*/ _config.Item("support").GetValue <bool>())
     {
         args.Process = false;
     }
 }
Пример #22
0
        private void Clear()
        {
            if (!useclear)
            {
                return;
            }

            var target = orbwalker.GetTarget();

            if (target.IsValidTarget(kiburst.Range) && jungleminions.Any(name => target.Name.StartsWith(name)))
            {
                if (kiburst.IsReady() && config.Item("jungleW").GetValue <bool>())
                {
                    kiburst.Cast();
                }
            }

            else if (target.IsValidTarget(wings.Range) && target.Name.StartsWith("Minion"))
            {
                if (!valor.IsReady() || !config.Item("farmE").GetValue <bool>())
                {
                    return;
                }
                if (wings.IsReady() && cleavecount >= 1)
                {
                    valor.Cast(Game.CursorPos);
                }
            }

            if (kiburst.IsReady() && config.Item("farmW").GetValue <bool>())
            {
                var minions = ObjectManager.Get <Obj_AI_Minion>().Where(m => m.IsValidTarget(kiburst.Range)).ToList();

                if (minions.Count() > 2)
                {
                    if (Items.HasItem(3077) && Items.CanUseItem(3077))
                    {
                        Items.UseItem(3077);
                    }
                    if (Items.HasItem(3074) && Items.CanUseItem(3074))
                    {
                        Items.UseItem(3074);
                    }
                    kiburst.Cast();
                }
            }
        }
Пример #23
0
        static void Drawing_OnDraw(EventArgs args)
        {
            if (Player.IsDead)
            {
                return;
            }

            //part of marksman

            var drawMinionLastHit  = Menu.Item("drawMinionLastHit").GetValue <Circle>();
            var drawMinionNearKill = SharpShooter.Menu.Item("drawMinionNearKill").GetValue <Circle>();

            if (drawMinionLastHit.Active || drawMinionNearKill.Active)
            {
                var xMinions =
                    MinionManager.GetMinions(Player.Position, Player.AttackRange + Player.BoundingRadius + 300, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.MaxHealth);

                foreach (var xMinion in xMinions)
                {
                    if (drawMinionLastHit.Active && Player.GetAutoAttackDamage(xMinion, true) >= xMinion.Health)
                    {
                        Render.Circle.DrawCircle(xMinion.Position, xMinion.BoundingRadius, drawMinionLastHit.Color, 5);
                    }
                    else if (drawMinionNearKill.Active && Player.GetAutoAttackDamage(xMinion, true) * 2 >= xMinion.Health)
                    {
                        Render.Circle.DrawCircle(xMinion.Position, xMinion.BoundingRadius, drawMinionNearKill.Color, 5);
                    }
                }
            }

            if (Game.MapId == (GameMapId)11 && Menu.Item("JunglePosition").GetValue <Boolean>())
            {
                const float circleRange = 100f;

                Render.Circle.DrawCircle(new Vector3(7461.018f, 3253.575f, 52.57141f), circleRange, Color.Blue, 5);   // blue team :red
                Render.Circle.DrawCircle(new Vector3(3511.601f, 8745.617f, 52.57141f), circleRange, Color.Blue, 5);   // blue team :blue
                Render.Circle.DrawCircle(new Vector3(7462.053f, 2489.813f, 52.57141f), circleRange, Color.Blue, 5);   // blue team :golems
                Render.Circle.DrawCircle(new Vector3(3144.897f, 7106.449f, 51.89026f), circleRange, Color.Blue, 5);   // blue team :wolfs
                Render.Circle.DrawCircle(new Vector3(7770.341f, 5061.238f, 49.26587f), circleRange, Color.Blue, 5);   // blue team :wariaths

                Render.Circle.DrawCircle(new Vector3(10930.93f, 5405.83f, -68.72192f), circleRange, Color.Yellow, 5); // Dragon

                Render.Circle.DrawCircle(new Vector3(7326.056f, 11643.01f, 50.21985f), circleRange, Color.Red, 5);    // red team :red
                Render.Circle.DrawCircle(new Vector3(11417.6f, 6216.028f, 51.00244f), circleRange, Color.Red, 5);     // red team :blue
                Render.Circle.DrawCircle(new Vector3(7368.408f, 12488.37f, 56.47668f), circleRange, Color.Red, 5);    // red team :golems
                Render.Circle.DrawCircle(new Vector3(10342.77f, 8896.083f, 51.72742f), circleRange, Color.Red, 5);    // red team :wolfs
                Render.Circle.DrawCircle(new Vector3(7001.741f, 9915.717f, 54.02466f), circleRange, Color.Red, 5);    // red team :wariaths
            }

            if (SharpShooter.Menu.Item("drawingTarget").GetValue <Boolean>())
            {
                var target = Orbwalker.GetTarget();

                if (target != null)
                {
                    Render.Circle.DrawCircle(target.Position, target.BoundingRadius + 15, Color.Red, 6);
                }
            }
        }
Пример #24
0
 private static void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
 {
     if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
     {
         if (((Obj_AI_Base)Orbwalker.GetTarget()).IsMinion)
         {
             args.Process = false;
         }
     }
     if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && Config.Item("combo.disable.aa").GetValue <bool>())
     {
         if (((AIHeroClient)Orbwalker.GetTarget()).IsEnemy)
         {
             args.Process = false;
         }
     }
 }
Пример #25
0
        private static void OnDraw(EventArgs args)
        {
            {
            }

            //Draw Skill Cooldown on Champ
            var pos = Drawing.WorldToScreen(ObjectManager.Player.Position);

            if (Config.Item("UseR").GetValue <KeyBind>().Active)
            {
                Drawing.DrawText(pos.X - 50, pos.Y + 50, Color.Gold, "[R] Finisher is Enabled!");
            }


            if (Config.Item("Draw_Disabled").GetValue <bool>())
            {
                return;
            }

            if (Config.Item("Qdraw").GetValue <Circle>().Active)
            {
                if (Q.Level > 0)
                {
                    Render.Circle.DrawCircle(ObjectManager.Player.Position, Q.Range, Q.IsReady() ? Config.Item("Qdraw").GetValue <Circle>().Color : Color.Red);
                }
            }


            if (Config.Item("Wdraw").GetValue <Circle>().Active)
            {
                if (W.Level > 0)
                {
                    Render.Circle.DrawCircle(ObjectManager.Player.Position, W.Range, W.IsReady() ? Config.Item("Wdraw").GetValue <Circle>().Color : Color.Red);
                }
            }

            if (Config.Item("Edraw").GetValue <Circle>().Active)
            {
                if (E.Level > 0)
                {
                    Render.Circle.DrawCircle(ObjectManager.Player.Position, E.Range - 1,
                                             E.IsReady() ? Config.Item("Edraw").GetValue <Circle>().Color : Color.Red);
                }
            }

            if (Config.Item("Rdraw").GetValue <Circle>().Active)
            {
                if (R.Level > 0)
                {
                    Render.Circle.DrawCircle(ObjectManager.Player.Position, R.Range - 2,
                                             R.IsReady() ? Config.Item("Rdraw").GetValue <Circle>().Color : Color.Red);
                }
            }

            var orbtarget = Orbwalker.GetTarget();

            Render.Circle.DrawCircle(orbtarget.Position, 100, Color.DarkOrange, 10);
        }
Пример #26
0
        public static void farmQ()
        {
            var allMinionsQ = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, Q.Range, MinionTypes.All);
            var t           = TargetSelector.GetTarget(Q.Range + 300, TargetSelector.DamageType.Physical);
            var mobs        = MinionManager.GetMinions(Player.ServerPosition, 800, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth);

            foreach (var minion in allMinionsQ)
            {
                float predictedHealth = HealthPrediction.GetHealthPrediction(minion, (int)(Q.Delay + (Player.Distance(minion.ServerPosition) / Q.Speed) * 1000));
                if (predictedHealth < 5)
                {
                    return;
                }
                if (!Orbwalking.InAutoAttackRange(minion) && predictedHealth < Q.GetDamage(minion))
                {
                    Q.Cast(minion);
                }

                else if (Game.Time - OverFarm > 0.4 &&
                         Orbwalker.ActiveMode.ToString() == "LaneClear" &&
                         ObjectManager.Player.Mana > RMANA + EMANA + WMANA + QMANA * 3 &&
                         predictedHealth > ObjectManager.Player.GetAutoAttackDamage(minion) &&
                         predictedHealth < Q.GetDamage(minion) &&
                         (!t.IsValidTarget() || ObjectManager.Player.UnderTurret(false)) &&
                         Orbwalker.GetTarget() != minion)
                {
                    Q.Cast(minion);
                }
                else if (
                    Orbwalker.ActiveMode.ToString() == "LaneClear" &&
                    ObjectManager.Player.UnderTurret(false) &&
                    predictedHealth < Q.GetDamage(minion) &&
                    ObjectManager.Player.Mana > RMANA + EMANA + WMANA + QMANA &&
                    predictedHealth > ObjectManager.Player.GetAutoAttackDamage(minion) &&
                    Orbwalker.GetTarget() != minion)
                {
                    Q.Cast(minion);
                }
            }
            if (mobs.Count > 0 && Q.IsReady() && Orbwalker.ActiveMode.ToString() == "LaneClear")
            {
                var mob = mobs[0];
                Q.Cast(mob, true);
            }
        }
Пример #27
0
        private static void ObjAIBase_OnSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (!sender.IsMe || !Orbwalking.IsAutoAttack(args.SData.Name))
            {
                return;
            }
            if (args.Target == null || !args.Target.IsValid)
            {
                return;
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo ||
                Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
            {
                if (Orbwalker.GetTarget() == null)
                {
                    return;
                }

                if (allowQAfterAA && !(args.Target is Obj_AI_Turret || args.Target is Obj_Barracks || args.Target is Obj_BarracksDampener || args.Target is Obj_Building) && spells[Spells.Q].IsReady())
                {
                    LeagueSharp.Common.Utility.DelayAction.Add(50, () =>
                    {
                        spells[Spells.Q].Cast();
                        Orbwalking.ResetAutoAttackTimer();
                    });
                    return;
                }
                if (allowItemsAfterAA && IsActive("FastTrundle.Items.Titanic") && Items.HasItem(3748) && Items.CanUseItem(3748)) // Titanic
                {
                    LeagueSharp.Common.Utility.DelayAction.Add(50, () =>
                    {
                        Items.UseItem(3748);
                        Orbwalking.ResetAutoAttackTimer();
                    });
                    return;
                }
                if (allowItemsAfterAA && IsActive("FastTrundle.Items.Hydra") && Items.HasItem(3077) && Items.CanUseItem(3077))
                {
                    LeagueSharp.Common.Utility.DelayAction.Add(50, () =>
                    {
                        Items.UseItem(3077);
                        Orbwalking.ResetAutoAttackTimer();
                    });
                    return;
                }
                if (allowItemsAfterAA && IsActive("FastTrundle.Items.Hydra") && Items.HasItem(3074) && Items.CanUseItem(3074))
                {
                    LeagueSharp.Common.Utility.DelayAction.Add(50, () =>
                    {
                        Items.UseItem(3074);
                        Orbwalking.ResetAutoAttackTimer();
                    });
                    return;
                }
            }
        }
Пример #28
0
        private void LogicQ()
        {
            var torb = Orbwalker.GetTarget();

            if (torb == null || torb.Type != GameObjectType.obj_AI_Hero)
            {
                if (Config.Item("Qminion", true).GetValue <bool>())
                {
                    var t = TargetSelector.GetTarget(Q.Range + 400, TargetSelector.DamageType.Physical);
                    if (t.IsValidTarget())
                    {
                        var minion = Cache.GetMinions(Prediction.GetPrediction(t, 0.4f).CastPosition, 350).Where(minion2 => minion2.IsValidTarget(Q.Range)).FirstOrDefault();
                        if (minion.IsValidTarget())
                        {
                            if (t.Health < GetQdmg(t))
                            {
                                Q.CastOnUnit(minion);
                            }
                            if (Program.Combo && Player.Mana > RMANA + EMANA)
                            {
                                Q.CastOnUnit(minion);
                            }
                            else if (Program.Farm && Config.Item("harrasQ", true).GetValue <bool>() && Player.Mana > RMANA + EMANA + WMANA + EMANA && Config.Item("harras" + t.ChampionName).GetValue <bool>())
                            {
                                Q.CastOnUnit(minion);
                            }
                        }
                    }
                }
            }
            else if (!Orbwalking.CanAttack() && !Player.IsWindingUp)
            {
                var t = torb as Obj_AI_Hero;
                if (t.Health < GetQdmg(t) + GetWdmg(t))
                {
                    Q.CastOnUnit(t);
                }
                if (Program.Combo && Player.Mana > RMANA + QMANA)
                {
                    Q.CastOnUnit(t);
                }
                else if (Program.Farm && Config.Item("harrasQ", true).GetValue <bool>() && Player.Mana > RMANA + QMANA + WMANA + EMANA && Config.Item("harras" + t.ChampionName).GetValue <bool>())
                {
                    Q.CastOnUnit(t);
                }
            }
            if (Program.LaneClear && Player.ManaPercent > Config.Item("Mana", true).GetValue <Slider>().Value&& Config.Item("farmQ", true).GetValue <bool>())
            {
                var minionList = Cache.GetMinions(Player.ServerPosition, Q.Range);

                if (minionList.Count > Config.Item("LCminions", true).GetValue <Slider>().Value)
                {
                    Q.CastOnUnit(minionList[0]);
                }
            }
        }
Пример #29
0
 private static void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
 {
     if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
     {
         if (((Obj_AI_Base)Orbwalker.GetTarget()).IsMinion)
         {
             args.Process = false;
         }
     }
 }
Пример #30
0
        private void LogicQ()
        {
            if (Orbwalker.GetTarget() == null)
            {
                return;
            }
            var target = Orbwalker.GetTarget();

            if (target.IsValid && target is Obj_AI_Hero)
            {
                if (Program.Combo && (Player.Mana > RMANA + QMANA || target.Health < 5 * Player.GetAutoAttackDamage(Player)))
                {
                    Q.Cast();
                }
                else if (Program.Farm && (Player.Mana > RMANA + QMANA + WMANA) && Config.Item("harasQ", true).GetValue <bool>())
                {
                    Q.Cast();
                }
            }
        }