Esempio n. 1
0
        protected override void Combo()
        {
            bool useQ = RootMenu["combo"]["useq"];
            bool useW = RootMenu["combo"]["usew"];



            var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

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


            if (target.IsValidTarget(Q.Range) && useQ)
            {
                if (target != null)
                {
                    Q.Cast(target);
                }
            }
            if (target.IsValidTarget(W.Range) && useW)
            {
                if (target != null)
                {
                    W.CastOnUnit(target);
                }
            }
        }
Esempio n. 2
0
        protected override void SemiR()
        {
            if (RootMenu["combo"]["semir"].GetValue <MenuKeyBind>().Active)
            {
                var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range);

                if (!target.IsValidTarget())
                {
                    return;
                }
                if (target.IsValidTarget(R.Range) && target != null)
                {
                    R.Cast(target);
                }
            }
            if (RootMenu["misc"]["autoe"])
            {
                foreach (var target in GameObjects.EnemyHeroes.Where(
                             t => (t.HasBuffOfType(BuffType.Charm) || t.HasBuffOfType(BuffType.Stun) ||
                                   t.HasBuffOfType(BuffType.Fear) || t.HasBuffOfType(BuffType.Snare) ||
                                   t.HasBuffOfType(BuffType.Taunt) || t.HasBuffOfType(BuffType.Knockback) ||
                                   t.HasBuffOfType(BuffType.Suppression)) && t.IsValidTarget(E.Range)))
                {
                    E.Cast(target);
                }
            }
        }
Esempio n. 3
0
        protected override void Harass()
        {
            bool useQ = RootMenu["harass"]["useq"];
            bool useW = RootMenu["harass"]["usew"];
            bool useE = RootMenu["harass"]["usee"];



            var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range);

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


            if (target.IsValidTarget(E.Range) && useE)
            {
                if (target != null)
                {
                    var pred = E.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        E.Cast(pred.CastPosition, true);
                    }
                }
            }
            if (target.IsValidTarget(1000) && useQ)
            {
                if (target != null)
                {
                    if (RootMenu["harass"]["eq"])
                    {
                        if (target.HasBuff("leonazenithbladeroot"))
                        {
                            Q.Cast();
                        }
                    }
                    if (!RootMenu["harass"]["eq"])
                    {
                        Q.Cast();
                    }
                }
            }
            if (target.IsValidTarget(W.Range) && useW)
            {
                if (target != null)
                {
                    W.Cast();
                }
            }
        }
Esempio n. 4
0
        protected override void Combo()
        {
            bool  useQ    = RootMenu["combo"]["useq"];
            bool  useE    = RootMenu["combo"]["usee"];
            bool  useR    = RootMenu["combo"]["user"];
            float enemies = RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value;
            var   target  = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

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

            if (Q.IsReady() && useQ && target.IsValidTarget(Q.Range))
            {
                if (target != null && !RootMenu["black"][target.CharacterName.ToLower()])
                {
                    var pred = Q.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        Q.Cast(pred.CastPosition, true);
                    }
                }
            }
            if (E.IsReady() && useE)
            {
                if (target != null)
                {
                    if (!RootMenu["combo"]["eq"] && target.IsValidTarget(E.Range))
                    {
                        E.Cast();
                    }
                    if (RootMenu["combo"]["eq"])
                    {
                        if (target.HasBuff("rocketgrab2"))
                        {
                            E.Cast();
                        }
                    }
                }
            }

            if (R.IsReady() && useR && target.IsValidTarget(R.Range))
            {
                if (target != null && enemies <= Player.CountEnemyHeroesInRange(R.Range))
                {
                    R.Cast();
                }
            }
        }
Esempio n. 5
0
        protected override void Harass()
        {
            if (Player.ManaPercent >= RootMenu["harass"]["mana"].GetValue <MenuSlider>().Value)
            {
                bool useQ = RootMenu["harass"]["useq"];
                bool useW = RootMenu["harass"]["usew"];
                bool useE = RootMenu["harass"]["usee"];

                var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range);

                if (!target.IsValidTarget())
                {
                    return;
                }
                if (target.IsValidTarget(W.Range) && useW && (Q.IsReady() || E.IsReady()))
                {
                    if (target != null)
                    {
                        W.Cast(target);
                    }
                }

                if (target.IsValidTarget(Q.Range) && useQ)
                {
                    if (target != null)
                    {
                        if (Q.Cast(target))
                        {
                            if (target.IsValidTarget(W.Range) && useW)
                            {
                                W.Cast(target);
                            }
                        }
                    }
                }
                if (target.IsValidTarget(E.Range) && useE)
                {
                    if (target != null)
                    {
                        if (E.Cast(target))
                        {
                            if (target.IsValidTarget(W.Range) && useW)
                            {
                                W.Cast(target);
                            }
                        }
                    }
                }
            }
        }
Esempio n. 6
0
 protected override void SemiR()
 {
     if (RootMenu["combo"]["semir"].GetValue <MenuKeyBind>().Active)
     {
         if (Extensions.GetBestEnemyHeroTargetInRange(R.Range) != null)
         {
             if (RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value > 1)
             {
                 R.CastIfWillHit(Extensions.GetBestEnemyHeroTargetInRange(R.Range),
                                 RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value - 1);
             }
             if (RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value == 1)
             {
                 R.Cast(Extensions.GetBestEnemyHeroTargetInRange(R.Range));
             }
         }
     }
     if (RootMenu["misc"]["autoq"])
     {
         foreach (var target in GameObjects.EnemyHeroes.Where(
                      t => (t.HasBuffOfType(BuffType.Charm) || t.HasBuffOfType(BuffType.Stun) ||
                            t.HasBuffOfType(BuffType.Fear) || t.HasBuffOfType(BuffType.Snare) ||
                            t.HasBuffOfType(BuffType.Taunt) || t.HasBuffOfType(BuffType.Knockback) ||
                            t.HasBuffOfType(BuffType.Suppression)) && t.IsValidTarget(Q.Range)))
         {
             var pred = Q.GetPrediction(target);
             if (pred.Hitchance >= HitChance.High)
             {
                 Q.Cast(pred.CastPosition, true);
             }
         }
     }
     if (RootMenu["white"]["enable"])
     {
         foreach (var ally in GameObjects.AllyHeroes.Where(
                      x => x.Distance(Player) <= W.Range && x.IsAlly && !x.IsRecalling() &&
                      RootMenu["white"][x.CharacterName.ToLower() + "priority"].GetValue <MenuSlider>().Value != 0 &&
                      x.HealthPercent <= RootMenu["white"][x.CharacterName.ToLower() + "hp"].GetValue <MenuSlider>().Value)
                  .OrderByDescending(x => RootMenu["white"][x.CharacterName.ToLower() + "priority"].GetValue <MenuSlider>().Value)
                  .Where(x => x.Distance(Player) < W.Range).OrderBy(x => x.Health))
         {
             if (ally != null && !ally.IsDead)
             {
                 W.Cast(ally);
             }
         }
     }
 }
Esempio n. 7
0
        protected override void Combo()
        {
            bool  useQ    = RootMenu["combo"]["useq"];
            bool  useW    = RootMenu["combo"]["usew"];
            bool  useR    = RootMenu["combo"]["user"];
            float enemies = RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value;
            float hp      = RootMenu["combo"]["hp"].GetValue <MenuSlider>().Value;
            var   target  = Extensions.GetBestEnemyHeroTargetInRange(W.Range);

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

            if (W.IsReady() && Q.IsReady() && useW && target.IsValidTarget(W.Range) && Q.Mana + W.Mana <= Player.Mana)
            {
                if (target != null)
                {
                    W.CastOnUnit(target);
                }
            }
            if (target.IsValidTarget(Q.Range) && useQ)
            {
                if (target != null)
                {
                    Q.Cast();
                }
            }

            if (target.IsValidTarget(E.Range))
            {
                if (target != null)
                {
                    E.Cast();
                }
            }

            if (useR)
            {
                if (target != null && enemies <= Player.CountEnemyHeroesInRange(W.Range))
                {
                    if (hp >= Player.HealthPercent)
                    {
                        R.Cast();
                    }
                }
            }
        }
Esempio n. 8
0
        protected override void SemiR()
        {
            if (RootMenu["qset"]["autoq"])
            {
                var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

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

                if (Q.IsReady() && target.IsValidTarget(Q.Range))
                {
                    if (target != null)
                    {
                        var pred = Q.GetPrediction(target);
                        if (pred.Hitchance == HitChance.Immobile)
                        {
                            Q.Cast(pred.CastPosition);
                        }
                    }
                }
            }
            if (RootMenu["qset"]["grabq"].GetValue <MenuKeyBind>().Active)
            {
                var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

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

                if (Q.IsReady() && target.IsValidTarget(Q.Range))
                {
                    if (target != null)
                    {
                        var pred = Q.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            Q.Cast(pred.CastPosition, true);
                        }
                    }
                }
            }
        }
Esempio n. 9
0
        protected override void Combo()
        {
            bool useQ = RootMenu["combo"]["useq"];

            bool useW = RootMenu["combo"]["usew"];
            bool useE = RootMenu["combo"]["usee"];

            var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

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

            if (target.IsValidTarget(E.Range) && useE)
            {
                if (target != null)
                {
                    E.CastOnUnit(target);
                }
            }
            if (target.IsValidTarget(Q.Range) && useQ)
            {
                if (target != null)
                {
                    var pred = Q.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        Q.Cast(pred.CastPosition, true);
                    }
                }
            }
            if (useW && target.IsValidTarget(Q.Range) && !Q.IsReady() && Player.Mana >= Q.Mana + W.Mana)
            {
                if (target != null)
                {
                    W.Cast();
                    var pred = Q.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        Q.Cast(pred.CastPosition, true);
                    }
                }
            }
        }
Esempio n. 10
0
        protected override void Harass()
        {
            if (Player.ManaPercent >= RootMenu["harass"]["mana"].GetValue <MenuSlider>().Value)
            {
                bool useQ = RootMenu["harass"]["useq"];

                bool useW = RootMenu["harass"]["usew"];

                var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

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

                if (target.IsValidTarget(Q.Range) && useQ)
                {
                    if (target != null)
                    {
                        var pred = Q.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            Q.Cast(pred.CastPosition, true);
                        }
                    }
                }
                if (useW && target.IsValidTarget(Q.Range))
                {
                    if (target != null && !Q.IsReady() && Player.Mana >= Q.Mana + W.Mana)
                    {
                        W.Cast();
                        var pred = Q.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            Q.Cast(pred.CastPosition, true);
                        }
                    }
                }
            }
        }
Esempio n. 11
0
        protected override void Harass()
        {
            if (RootMenu["harass"]["toggle"].GetValue <MenuKeyBind>().Active)
            {
                bool useQ = RootMenu["harass"]["useq"];

                bool useE = RootMenu["harass"]["usee"];

                var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range);

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

                if (target.IsValidTarget(E.Range) && useE)
                {
                    if (target != null)
                    {
                        var pred = E.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            E.Cast(pred.CastPosition, true);
                        }
                    }
                }
                if (target.IsValidTarget(Q.Range) && useQ)
                {
                    if (target != null)
                    {
                        var pred = Q.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            Q.Cast(pred.CastPosition, true);
                        }
                    }
                }
            }
        }
Esempio n. 12
0
 protected override void SemiR()
 {
     if (RootMenu["flashr"].GetValue <MenuKeyBind>().Active)
     {
         if (!Player.HasBuff("malzaharrsound"))
         {
             var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range + 410);
             var Flash  = ObjectManager.Player.GetSpellSlot("SummonerFlash");
             if (R.IsReady())
             {
                 if (Flash != SpellSlot.Unknown && ObjectManager.Player.Spellbook.GetSpell(Flash).IsReady)
                 {
                     Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter);
                     if (target.IsValidTarget())
                     {
                         if (target.Distance(Player) > R.Range)
                         {
                             if (R.Cast(target))
                             {
                                 ObjectManager.Player.Spellbook.CastSpell(Flash, (target.Position));
                             }
                         }
                     }
                 }
             }
         }
     }
     if (Player.HasBuff("malzaharrsound"))
     {
         Orbwalker.MovementState = false;
         Orbwalker.AttackState   = false;
     }
     if (!Player.HasBuff("malzaharrsound"))
     {
         Orbwalker.MovementState = true;
         Orbwalker.AttackState   = true;
     }
 }
Esempio n. 13
0
        protected override void SemiR()
        {
            if (RootMenu["insec"].GetValue <MenuKeyBind>().Active)
            {
                Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter);

                var Flash = ObjectManager.Player.GetSpellSlot("SummonerFlash");

                var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range + 410);
                if (R.IsReady())
                {
                    if (Flash != SpellSlot.Unknown && ObjectManager.Player.Spellbook.GetSpell(Flash).IsReady&& target.IsValidTarget())
                    {
                        if (target.IsValidTarget(380))
                        {
                            foreach (var ally in GameObjects.AllyHeroes)
                            {
                                if (ally != null && ally.Distance(Player) < 1000 && !ally.IsMe)
                                {
                                    if (ObjectManager.Player.Spellbook.CastSpell(Flash, (target.Position.Extend(ally.Position, -100))))
                                    {
                                        R.Cast();
                                    }
                                }
                            }
                            if (GameObjects.AllyHeroes.Where(x => x.Distance(Player) < E.Range)
                                .Count() == 1)
                            {
                                if (ObjectManager.Player.Spellbook.CastSpell(Flash, (target.Position.Extend(Player.Position, -100))))
                                {
                                    R.Cast();
                                }
                            }
                        }
                    }
                }
            }
        }
Esempio n. 14
0
        protected override void SemiR()
        {
            if (RootMenu["combo"]["semir"].GetValue <MenuKeyBind>().Active)
            {
                var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range);

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


                if (target != null &&
                    target.IsValidTarget(R.Range))
                {
                    var pred = R.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        R.Cast(pred.CastPosition, true);
                    }
                }
            }
        }
Esempio n. 15
0
        protected override void Combo()
        {
            bool useQ = RootMenu["combo"]["useq"];

            bool useE = RootMenu["combo"]["usee"];

            var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range);

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

            if (target.IsValidTarget(E.Range) && useE)
            {
                if (target != null)
                {
                    var pred = E.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        E.Cast(pred.CastPosition, true);
                    }
                }
            }
            if (target.IsValidTarget(Q.Range) && useQ)
            {
                if (target != null)
                {
                    var pred = Q.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        Q.Cast(pred.CastPosition, true);
                    }
                }
            }
        }
Esempio n. 16
0
        protected override void Combo()
        {
            bool useQ = RootMenu["combo"]["useq"];
            bool useR = RootMenu["combo"]["user"];
            bool useW = RootMenu["combo"]["usew"];
            bool useE = RootMenu["combo"]["usee"];

            var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range);

            if (!target.IsValidTarget())
            {
                return;
            }
            switch (RootMenu["combo"]["mode"].GetValue <MenuList>().Index)
            {
            case 0:
            {
                if (target.IsValidTarget(W.Range) && useW && (Q.IsReady() || E.IsReady()))
                {
                    if (target != null)
                    {
                        var pred = W.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            W.Cast(pred.CastPosition, true);
                        }
                    }
                }

                if (target.IsValidTarget(Q.Range) && useQ)
                {
                    if (target != null)
                    {
                        var pred = Q.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            if (Q.Cast(pred.CastPosition, true))
                            {
                                if (target.IsValidTarget(W.Range) && useW)
                                {
                                    pred = W.GetPrediction(target);
                                    if (pred.Hitchance >= HitChance.High)
                                    {
                                        W.Cast(pred.CastPosition, true);
                                    }
                                }
                            }
                        }
                    }
                }
                if (target.IsValidTarget(R.Range) && target != null && useR)
                {
                    switch (RootMenu["combo"]["rusage"].GetValue <MenuList>().Index)
                    {
                    case 0:
                        if (RootMenu["combo"]["rhit"].GetValue <MenuSlider>().Value <=
                            target.CountEnemyHeroesInRange(500))
                        {
                            R.Cast(target);
                        }
                        break;

                    case 1:
                        if (target.Health <= Player.GetSpellDamage(target, SpellSlot.Q) +
                            Player.GetSpellDamage(target, SpellSlot.W) +
                            Player.GetSpellDamage(target, SpellSlot.R))
                        {
                            R.Cast(target);
                        }
                        break;
                    }
                }
                if (target.IsValidTarget(E.Range) && useE)
                {
                    if (target != null)
                    {
                        if (E.Cast(target))
                        {
                            if (target.IsValidTarget(W.Range) && useW)
                            {
                                W.Cast(target);
                            }
                        }
                    }
                }
            }
            break;

            case 1:
            {
                if (target.IsValidTarget(W.Range) && useW && (Q.IsReady() || E.IsReady()))
                {
                    if (target != null)
                    {
                        W.Cast(target);
                    }
                }
                if (target.IsValidTarget(E.Range) && useE)
                {
                    if (target != null)
                    {
                        if (E.Cast(target))
                        {
                            if (target.IsValidTarget(W.Range) && useW)
                            {
                                W.Cast(target);
                            }
                        }
                    }
                }
                if (target.IsValidTarget(Q.Range) && useQ)
                {
                    if (target != null)
                    {
                        if (Q.Cast(target))
                        {
                            if (target.IsValidTarget(W.Range) && useW)
                            {
                                W.Cast(target);
                            }
                        }
                    }
                }
                if (target.IsValidTarget(R.Range) && target != null && useR)
                {
                    switch (RootMenu["combo"]["rusage"].GetValue <MenuList>().Index)
                    {
                    case 0:
                        if (RootMenu["combo"]["rhit"].GetValue <MenuSlider>().Value <=
                            target.CountEnemyHeroesInRange(500))
                        {
                            R.Cast(target);
                        }
                        break;

                    case 1:
                        if (target.Health <= Player.GetSpellDamage(target, SpellSlot.Q) +
                            Player.GetSpellDamage(target, SpellSlot.W) +
                            Player.GetSpellDamage(target, SpellSlot.R))
                        {
                            R.Cast(target);
                        }
                        break;
                    }
                }
            }
            break;
            }
        }
Esempio n. 17
0
        protected override void SemiR()
        {
            if (RootMenu["combo"]["autor"])
            {
                if (Player.HasBuffOfType(BuffType.Charm) || Player.HasBuffOfType(BuffType.Stun) ||
                    Player.HasBuffOfType(BuffType.Fear) || Player.HasBuffOfType(BuffType.Snare) ||
                    Player.HasBuffOfType(BuffType.Taunt) || Player.HasBuffOfType(BuffType.Knockback) ||
                    Player.HasBuffOfType(BuffType.Suppression) && Player.CountEnemyHeroesInRange(W.Range) > 1)
                {
                    R.Cast();
                }
            }
            var Flash = ObjectManager.Player.GetSpellSlot("SummonerFlash");

            if (RootMenu["flashe"].GetValue <MenuKeyBind>().Active)
            {
                Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter);
                var target = Extensions.GetBestEnemyHeroTargetInRange(1300);
                if (Q.IsReady())
                {
                    if (Flash != SpellSlot.Unknown && ObjectManager.Player.Spellbook.GetSpell(Flash).IsReady&& target.IsValidTarget())
                    {
                        if (target.IsValidTarget(1300))
                        {
                            foreach (var en in GameObjects.EnemyMinions)
                            {
                                if (!en.IsDead && en.IsValidTarget(W.Range) && en.Distance(target) < 730)
                                {
                                    if (target.Distance(Player) > Q.Range && target != null)
                                    {
                                        W.CastOnUnit(en);
                                    }
                                    if (Q.IsReady())
                                    {
                                        if (Flash != SpellSlot.Unknown && ObjectManager.Player.Spellbook.GetSpell(Flash).IsReady&& target.IsValidTarget())
                                        {
                                            if (target.IsValidTarget(Q.Range + 410))
                                            {
                                                if (target.Distance(Player) > Q.Range && target != null)
                                                {
                                                    if (Q.Cast())
                                                    {
                                                        DelayAction.Add(200, () =>
                                                        {
                                                            ObjectManager.Player.Spellbook.CastSpell(Flash, target.Position);
                                                        });
                                                    }
                                                }
                                            }
                                        }
                                    }
                                    ;
                                }
                            }
                        }
                    }
                }
            }
            if (RootMenu["flashq"].GetValue <MenuKeyBind>().Active)
            {
                Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter);
                var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range + 380);
                if (Q.IsReady())
                {
                    if (Flash != SpellSlot.Unknown && ObjectManager.Player.Spellbook.GetSpell(Flash).IsReady&& target.IsValidTarget())
                    {
                        if (target.IsValidTarget(Q.Range + 410))
                        {
                            if (target.Distance(Player) > Q.Range && target != null)
                            {
                                if (Q.Cast())
                                {
                                    DelayAction.Add(200, () =>
                                    {
                                        ObjectManager.Player.Spellbook.CastSpell(Flash, target.Position);
                                    });
                                }
                            }
                        }
                    }
                }
            }
        }
Esempio n. 18
0
        protected override void Combo()
        {
            bool useQ = RootMenu["combo"]["useq"];
            bool useW = RootMenu["combo"]["usew"];
            bool useE = RootMenu["combo"]["usee"];
            bool useR = RootMenu["combo"]["user"];


            var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range);

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


            if (target.IsValidTarget(E.Range) && useE && RootMenu["whitelist"][target.CharacterName.ToLower()])
            {
                if (target != null)
                {
                    var pred = E.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        E.Cast(pred.CastPosition, true);
                    }
                }
            }
            if (target.IsValidTarget(300) && useQ)
            {
                if (target != null)
                {
                    if (RootMenu["combo"]["eq"])
                    {
                        if (target.HasBuff("leonazenithbladeroot"))
                        {
                            Q.Cast();
                        }
                    }
                    if (!RootMenu["combo"]["eq"])
                    {
                        Q.Cast();
                    }
                }
            }
            if (target.IsValidTarget(W.Range) && useW)
            {
                if (target != null)
                {
                    W.Cast();
                }
            }


            if (useR)
            {
                if (RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value > 1)
                {
                    if (target != null &&
                        target.CountEnemyHeroesInRange(300) >= RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value&&
                        target.IsValidTarget(R.Range))
                    {
                        var pred = R.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            R.Cast(pred.CastPosition, true);
                        }
                    }
                }
                if (RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value == 1)
                {
                    if (target != null &&

                        target.IsValidTarget(R.Range))
                    {
                        var pred = R.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            R.Cast(pred.CastPosition, true);
                        }
                    }
                }
            }
        }
Esempio n. 19
0
        protected override void Harass()
        {
            bool useQ = RootMenu["harass"]["useq"];
            bool useE = RootMenu["harass"]["usee"];

            bool useEQ = RootMenu["harass"]["useeq"];

            if (useEQ)
            {
                if (Q.IsReady())
                {
                    foreach (var ally in GameObjects.AllyHeroes.Where(x => x.IsValidTarget(E.Range, true)))
                    {
                        if (ally != null && !ally.IsMe)
                        {
                            var enemyInBounceRange =
                                GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range,
                                                                                            false, ally.Position));
                            if (enemyInBounceRange != null && enemyInBounceRange.Distance(Player) > Q.Range)
                            {
                                if (ally.Distance(enemyInBounceRange) < Q.Range)
                                {
                                    E.CastOnUnit(ally);
                                }
                            }
                        }
                    }
                    foreach (var minion in GameObjects.EnemyMinions.Where(x => x.IsValidTarget(E.Range, true)))
                    {
                        if (minion != null)
                        {
                            var enemyInBounceRange =
                                GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range,
                                                                                            false, minion.Position));
                            if (enemyInBounceRange != null && enemyInBounceRange.Distance(Player) > Q.Range)
                            {
                                if (minion.Distance(enemyInBounceRange) < Q.Range)
                                {
                                    E.CastOnUnit(minion);
                                }
                            }
                        }
                    }
                    foreach (var target in GameObjects.EnemyHeroes.Where(x => x.IsValidTarget(E.Range, true)))
                    {
                        if (target != null)
                        {
                            var enemyInBounceRange =
                                GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range,
                                                                                            false, target.Position));
                            if (enemyInBounceRange != null && enemyInBounceRange.Distance(Player) > Q.Range)
                            {
                                if (target.Distance(enemyInBounceRange) < Q.Range)
                                {
                                    E.CastOnUnit(target);
                                }
                            }
                        }
                    }
                }


                foreach (var pixs in GameObjects.AllGameObjects)
                {
                    if (pixs.Name == "RobotBuddy" && pixs.IsValid && pixs != null && !pixs.IsDead && pixs.Team == Player.Team)
                    {
                        foreach (var pix in GameObjects.AllyHeroes)
                        {
                            var enemyInBounceRange =
                                GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range,
                                                                                            false, pix.Position));
                            if (enemyInBounceRange != null)
                            {
                                if (pix.IsValidTarget(1800, true) && pix != null && pix.Distance(Player) < 1800 &&
                                    pix.HasBuff("lulufaerieattackaid") && pix.Distance(enemyInBounceRange) < Q.Range)
                                {
                                    Q.From = pix.Position;
                                    var pred = Q.GetPrediction(enemyInBounceRange);
                                    if (pred.Hitchance >= HitChance.High)
                                    {
                                        Q.Cast(pred.CastPosition, true);
                                    }
                                }
                            }
                        }
                        foreach (var pix in GameObjects.EnemyHeroes)
                        {
                            var enemyInBounceRange =
                                GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range,
                                                                                            false, pix.Position));
                            if (enemyInBounceRange != null)
                            {
                                if (pix.IsValidTarget(1800) && pix != null && pix.Distance(Player) < 1800 &&
                                    pix.HasBuff("lulufaerieburn") && pix.Distance(enemyInBounceRange) < Q.Range)
                                {
                                    Q.From = pix.Position;
                                    var pred = Q.GetPrediction(enemyInBounceRange);
                                    if (pred.Hitchance >= HitChance.High)
                                    {
                                        Q.Cast(pred.CastPosition, true);
                                    }
                                }
                            }
                        }
                        foreach (var pix in GameObjects.EnemyMinions)
                        {
                            var enemyInBounceRange =
                                GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range,
                                                                                            false, pix.Position));
                            if (enemyInBounceRange != null)
                            {
                                if (pix.IsValidTarget(1800) && pix != null && pix.Distance(Player) < 1800 &&
                                    (pix.HasBuff("lulufaerieburn") || pix.HasBuff("lulufaerieattackaid") ||
                                     pix.HasBuff("luluevision")) && pix.Distance(enemyInBounceRange) < Q.Range)
                                {
                                    Q.From = pix.Position;
                                    var pred = Q.GetPrediction(enemyInBounceRange);
                                    if (pred.Hitchance >= HitChance.High)
                                    {
                                        Q.Cast(pred.CastPosition, true);
                                    }
                                }
                            }
                        }
                    }
                }
            }
            if (useE)
            {
                var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range);
                if (target.IsValidTarget(E.Range) && target != null)
                {
                    if (target != null)
                    {
                        E.CastOnUnit(target);
                    }
                }
            }
            if (useQ)
            {
                var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                if (target.IsValidTarget(Q.Range) && target != null)
                {
                    if (target != null)
                    {
                        foreach (var pixs in GameObjects.AllGameObjects)
                        {
                            if (pixs.Name == "RobotBuddy" && pixs.IsValid && pixs != null && !pixs.IsDead && pixs.Team == Player.Team)
                            {
                                if (pixs.Distance(target) < Player.Distance(target))
                                {
                                    Q.From = pixs.Position;
                                    var pred = Q.GetPrediction(target);
                                    if (pred.Hitchance >= HitChance.High)
                                    {
                                        Q.Cast(pred.CastPosition, true);
                                    }
                                }
                                if (pixs.Distance(target) > Player.Distance(target))
                                {
                                    Q.From = Player.Position;
                                    var pred = Q.GetPrediction(target);
                                    if (pred.Hitchance >= HitChance.High)
                                    {
                                        Q.Cast(pred.CastPosition, true);
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
Esempio n. 20
0
        protected override void Harass()
        {
            bool useQ   = RootMenu["harass"]["useq"];
            bool useE   = RootMenu["harass"]["logic"];
            var  target = Extensions.GetBestEnemyHeroTargetInRange(E.Range + W.Range);

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

            if (useE)
            {
                foreach (var en in ObjectManager.Get <AIBaseClient>())
                {
                    if (!en.IsDead)
                    {
                        if (en.Distance(Player) < E.Range + W.Range && en.IsAlly && !en.IsMe)
                        {
                            if (target != null && target.Distance(en) <= 580)
                            {
                                if (en.Distance(Player) < E.Range)
                                {
                                    if (E.Mana + W.Mana < Player.Mana)
                                    {
                                        if (en != null && delayyyyyyyyy <= Variables.TickCount)
                                        {
                                            E.CastOnUnit(en);
                                        }
                                        if (Player.HasBuff("rakanerecast"))
                                        {
                                            if (target.IsValidTarget(W.Range))
                                            {
                                                var pred = W.GetPrediction(target);
                                                if (pred.Hitchance >= HitChance.High)
                                                {
                                                    W.Cast(pred.CastPosition, true);
                                                }
                                            }
                                        }
                                        if (en.HasBuff("RakanEShield") && delayyyyyyyyy <= Variables.TickCount)
                                        {
                                            E.CastOnUnit(en);
                                        }
                                    }
                                }

                                if (en.Distance(Player) > E.Range)
                                {
                                    if (E.Mana + W.Mana < Player.Mana)
                                    {
                                        if (target.IsValidTarget(W.Range))
                                        {
                                            var pred = W.GetPrediction(target);
                                            if (pred.Hitchance >= HitChance.High)
                                            {
                                                W.Cast(pred.CastPosition, true);
                                            }
                                        }
                                        if (en.Distance(Player) < E.Range && delayyyyyyyyy <= Variables.TickCount)
                                        {
                                            E.CastOnUnit(en);
                                            if (en.HasBuff("RakanEShield"))
                                            {
                                                E.CastOnUnit(en);
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            if (target.IsValidTarget(Q.Range) && useQ)
            {
                if (target != null)
                {
                    var pred = Q.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        Q.Cast(pred.CastPosition, true);
                    }
                }
            }
        }
Esempio n. 21
0
        protected override void Combo()
        {
            bool useQ = RootMenu["combo"]["useq"];
            bool useW = RootMenu["combo"]["usew"];



            var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range + W.Range);

            if (!target.IsValidTarget())
            {
                return;
            }
            if (target.IsValidTarget(Q.Range) && useQ)
            {
                if (target != null)
                {
                    var pred = Q.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        Q.Cast(pred.CastPosition, true);
                    }
                }
            }
            if (useW)
            {
                foreach (var en in ObjectManager.Get <AIBaseClient>())
                {
                    if (!en.IsDead)
                    {
                        if (en.Distance(Player) < E.Range + W.Range && en.IsAlly && !en.IsMe)
                        {
                            if (target != null && target.Distance(en) <= 580)
                            {
                                if (en.Distance(Player) < E.Range)
                                {
                                    if (E.Mana + W.Mana < Player.Mana)
                                    {
                                        if (en.Distance(Player) < E.Range)
                                        {
                                            if (!Player.HasBuff("rakanerecast") && meowdelay <= Variables.TickCount)
                                            {
                                                if (en.Distance(target) < Player.Distance(target))
                                                {
                                                    E.CastOnUnit(en);
                                                }
                                            }
                                        }
                                        if (Player.HasBuff("rakanerecast"))
                                        {
                                            if (target.IsValidTarget(W.Range))
                                            {
                                                if (W.Cast(target))
                                                {
                                                    meowdelay = Variables.TickCount + 1500;
                                                }
                                            }
                                        }
                                    }
                                }
                                if (en.Distance(Player) > E.Range)
                                {
                                    if (E.Mana + W.Mana < Player.Mana)
                                    {
                                        if (target.IsValidTarget(W.Range))
                                        {
                                            if (W.Cast(target))
                                            {
                                                meowdelay = Variables.TickCount + 1500;
                                            }
                                        }
                                        if (en.Distance(Player) < E.Range)
                                        {
                                            if (!Player.HasBuff("rakanerecast") && meowdelay < Variables.TickCount)
                                            {
                                                if (en.Distance(target) < Player.Distance(target))
                                                {
                                                    E.CastOnUnit(en);
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                            else if (target.Distance(en) > 580)
                            {
                                if (target.IsValidTarget(W.Range))
                                {
                                    if (W.Cast(target))
                                    {
                                        meowdelay = Variables.TickCount + 1500;
                                    }
                                }
                            }
                        }
                        else if (en.Distance(target) > W.Range + E.Range)
                        {
                            if (target.IsValidTarget(W.Range))
                            {
                                if (W.Cast(target))
                                {
                                    meowdelay = Variables.TickCount + 1500;
                                }
                            }
                        }
                    }
                }
                if (!E.IsReady())
                {
                    if (target.IsValidTarget(W.Range))
                    {
                        if (W.Cast(target))
                        {
                            meowdelay = Variables.TickCount + 1500;
                        }
                    }
                }
            }
            if (RootMenu["combo"]["user"])
            {
                if (target != null && Player.CountEnemyHeroesInRange(1000) >=
                    RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value)
                {
                    if (target.HealthPercent <= RootMenu["combo"]["hp"].GetValue <MenuSlider>().Value)
                    {
                        R.Cast();
                    }
                }
            }
        }
Esempio n. 22
0
        protected override void SemiR()
        {
            if (RootMenu["combo"]["wflash"].GetValue <MenuKeyBind>().Active)
            {
                var target = Extensions.GetBestEnemyHeroTargetInRange(W.Range + 410);
                var Flash  = ObjectManager.Player.GetSpellSlot("SummonerFlash");
                if (W.IsReady())
                {
                    if (Flash != SpellSlot.Unknown && ObjectManager.Player.Spellbook.GetSpell(Flash).IsReady)
                    {
                        var ummm = W.GetPrediction(target);
                        Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter);
                        if (target.IsValidTarget())
                        {
                            if (target.Distance(Player) > W.Range)
                            {
                                if (ObjectManager.Player.Spellbook.CastSpell(Flash, (target.Position)))
                                {
                                    W.Cast(ummm.CastPosition);
                                }
                            }
                        }
                    }
                }
            }

            if (RootMenu["combo"]["engage"].GetValue <MenuKeyBind>().Active)
            {
                Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter);
                var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range + W.Range);

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

                foreach (var en in ObjectManager.Get <AIBaseClient>())
                {
                    if (!en.IsDead)
                    {
                        if (en.Distance(Player) < E.Range + W.Range && en.IsAlly && !en.IsMe)
                        {
                            if (target != null && target.Distance(en) <= 580)
                            {
                                if (en.Distance(Player) < E.Range)
                                {
                                    if (E.Mana + W.Mana < Player.Mana)
                                    {
                                        if (en != null && delayyyyyyyyy <= Variables.TickCount)
                                        {
                                            E.CastOnUnit(en);
                                        }
                                        if (Player.HasBuff("rakanerecast"))
                                        {
                                            if (target.IsValidTarget(W.Range))
                                            {
                                                var pred = W.GetPrediction(target);
                                                if (pred.Hitchance >= HitChance.High)
                                                {
                                                    W.Cast(pred.CastPosition, true);
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            var bestAllies = GameObjects.AllyHeroes
                             .Where(t =>
                                    t.Distance(ObjectManager.Player) < Z.aio.Common.Champion.E.Range)
                             .OrderBy(o => o.Health);

            foreach (var ally in bestAllies)
            {
                if (E.IsReady() &&
                    ally.IsValidTarget(E.Range) &&
                    ally.CountEnemyHeroesInRange(800f) > 0 &&
                    HealthPrediction.GetPrediction(ally, 250 + Game.Ping) <=
                    ally.MaxHealth / 4)
                {
                    E.CastOnUnit(ally);
                }
            }
            if (RootMenu["flee"]["key"].GetValue <MenuKeyBind>().Active)
            {
                Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter);
                if (RootMenu["flee"]["user"])
                {
                    R.Cast();
                }
                if (RootMenu["flee"]["usee"])
                {
                    foreach (var en in ObjectManager.Get <AIBaseClient>())
                    {
                        if (!en.IsDead)
                        {
                            if (en.Distance(Game.CursorPosCenter) < 200 && en.IsAlly && !en.IsMe &&
                                en.Distance(Player) <= E.Range)
                            {
                                E.CastOnUnit(en);
                            }
                        }
                    }
                }
            }
        }
Esempio n. 23
0
        protected override void Combo()
        {
            bool useQ  = RootMenu["combo"]["useq"];
            bool useW  = RootMenu["combo"]["wset"]["usew"];
            bool useR  = RootMenu["combo"]["rset"]["user"];
            bool useEQ = RootMenu["combo"]["useeq"];

            if (useEQ)
            {
                if (Q.IsReady())
                {
                    foreach (var ally in GameObjects.AllyHeroes.Where(x => x.IsValidTarget(E.Range, true)))
                    {
                        if (ally != null && !ally.IsMe)
                        {
                            var enemyInBounceRange =
                                GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range,
                                                                                            false, ally.Position));
                            if (enemyInBounceRange != null && enemyInBounceRange.Distance(Player) > Q.Range)
                            {
                                if (ally.Distance(enemyInBounceRange) < Q.Range)
                                {
                                    E.CastOnUnit(ally);
                                }
                            }
                        }
                    }
                    foreach (var minion in GameObjects.EnemyMinions.Where(x => x.IsValidTarget(E.Range, true)))
                    {
                        if (minion != null)
                        {
                            var enemyInBounceRange =
                                GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range,
                                                                                            false, minion.Position));
                            if (enemyInBounceRange != null && enemyInBounceRange.Distance(Player) > Q.Range)
                            {
                                if (minion.Distance(enemyInBounceRange) < Q.Range)
                                {
                                    E.CastOnUnit(minion);
                                }
                            }
                        }
                    }
                    foreach (var target in GameObjects.EnemyHeroes.Where(x => x.IsValidTarget(E.Range, true)))
                    {
                        if (target != null)
                        {
                            var enemyInBounceRange =
                                GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range,
                                                                                            false, target.Position));
                            if (enemyInBounceRange != null && enemyInBounceRange.Distance(Player) > Q.Range)
                            {
                                if (target.Distance(enemyInBounceRange) < Q.Range)
                                {
                                    E.CastOnUnit(target);
                                }
                            }
                        }
                    }
                }


                foreach (var pixs in GameObjects.AllGameObjects)
                {
                    if (pixs.Name == "RobotBuddy" && pixs.IsValid && pixs != null && !pixs.IsDead && pixs.Team == Player.Team)
                    {
                        foreach (var pix in GameObjects.AllyHeroes)
                        {
                            var enemyInBounceRange =
                                GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range,
                                                                                            false, pix.Position));
                            if (enemyInBounceRange != null)
                            {
                                if (pix.IsValidTarget(1800, true) && pix != null && pix.Distance(Player) < 1800 &&
                                    pix.HasBuff("lulufaerieattackaid") && pix.Distance(enemyInBounceRange) < Q.Range)
                                {
                                    Q.From = pix.Position;
                                    var pred = Q.GetPrediction(enemyInBounceRange);
                                    if (pred.Hitchance >= HitChance.High)
                                    {
                                        Q.Cast(pred.CastPosition, true);
                                    }
                                }
                            }
                        }
                        foreach (var pix in GameObjects.EnemyHeroes)
                        {
                            var enemyInBounceRange =
                                GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range,
                                                                                            false, pix.Position));
                            if (enemyInBounceRange != null)
                            {
                                if (pix.IsValidTarget(1800) && pix != null && pix.Distance(Player) < 1800 &&
                                    pix.HasBuff("lulufaerieburn") && pix.Distance(enemyInBounceRange) < Q.Range)
                                {
                                    Q.From = pix.Position;
                                    var pred = Q.GetPrediction(enemyInBounceRange);
                                    if (pred.Hitchance >= HitChance.High)
                                    {
                                        Q.Cast(pred.CastPosition, true);
                                    }
                                }
                            }
                        }
                        foreach (var pix in GameObjects.EnemyMinions)
                        {
                            var enemyInBounceRange =
                                GameObjects.EnemyHeroes.FirstOrDefault(x => x.IsValidTarget(Q.Range,
                                                                                            false, pix.Position));
                            if (enemyInBounceRange != null)
                            {
                                if (pix.IsValidTarget(1800) && pix != null && pix.Distance(Player) < 1800 &&
                                    (pix.HasBuff("lulufaerieburn") || pix.HasBuff("lulufaerieattackaid") ||
                                     pix.HasBuff("luluevision")) && pix.Distance(enemyInBounceRange) < Q.Range)
                                {
                                    Q.From = pix.Position;
                                    var pred = Q.GetPrediction(enemyInBounceRange);
                                    if (pred.Hitchance >= HitChance.High)
                                    {
                                        Q.Cast(pred.CastPosition, true);
                                    }
                                }
                            }
                        }
                    }
                }
            }
            if (E.IsReady())
            {
                var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range);
                if (target.IsValidTarget(E.Range) && target != null)
                {
                    if (target != null)
                    {
                        switch (RootMenu["combo"]["emode"].GetValue <MenuList>().Index)
                        {
                        case 0:
                            E.CastOnUnit(target);
                            break;

                        case 1:

                            if (Player.CountAllyHeroesInRange(E.Range) == 0 ||
                                target.HealthPercent < 5 && Player.HealthPercent > 20)
                            {
                                E.CastOnUnit(target);
                            }
                            break;

                        case 2:

                            break;
                        }
                    }
                }
            }
            if (useR)
            {
                foreach (var ally in GameObjects.AllyHeroes.Where(x => x.IsValidTarget(R.Range, true)))
                {
                    if (ally != null)
                    {
                        if (ally.HealthPercent <= RootMenu["combo"]["rset"]["hp"].GetValue <MenuSlider>().Value)
                        {
                            if (ally.CountEnemyHeroesInRange(350) >= RootMenu["combo"]["rset"]["hitr"].GetValue <MenuSlider>().Value)
                            {
                                R.CastOnUnit(ally);
                            }
                        }
                    }
                }
            }
            if (useW)
            {
                var target = Extensions.GetBestEnemyHeroTargetInRange(W.Range);
                if (target.IsValidTarget(W.Range) && target != null)
                {
                    if (target != null)
                    {
                        foreach (var enemy in GameObjects.EnemyHeroes.Where(
                                     x => x.Distance(Player) <= W.Range &&
                                     RootMenu["combo"]["wset"]["enemy"][x.CharacterName.ToLower() + "priority"]
                                     .GetValue <MenuSlider>() != 0)
                                 .OrderByDescending(
                                     x => RootMenu["combo"]["wset"]["enemy"][x.CharacterName.ToLower() + "priority"]
                                     .GetValue <MenuSlider>()))
                        {
                            W.CastOnUnit(enemy);
                        }
                    }
                }
            }
            if (useQ)
            {
                var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                if (target.IsValidTarget(Q.Range) && target != null)
                {
                    if (target != null)
                    {
                        foreach (var pixs in GameObjects.AllGameObjects)
                        {
                            if (pixs.Name == "RobotBuddy" && pixs.IsValid && pixs != null && !pixs.IsDead && pixs.Team == Player.Team)
                            {
                                if (pixs.Distance(target) < Player.Distance(target))
                                {
                                    Q.From = pixs.Position;
                                    var pred = Q.GetPrediction(target);
                                    if (pred.Hitchance >= HitChance.High)
                                    {
                                        Q.Cast(pred.CastPosition, true);
                                    }
                                }
                                if (pixs.Distance(target) > Player.Distance(target))
                                {
                                    Q.From = Player.Position;
                                    var pred = Q.GetPrediction(target);
                                    if (pred.Hitchance >= HitChance.High)
                                    {
                                        Q.Cast(pred.CastPosition, true);
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
Esempio n. 24
0
        protected override void Combo()
        {
            bool useQ = RootMenu["combo"]["useq"];



            var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range);

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

            if (target.IsValidTarget(Q.Range) && useQ)
            {
                if (target != null)
                {
                    var pred = Q.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        Q.Cast(pred.CastPosition, true);
                    }
                }
            }

            if (RootMenu["combo"]["user"])
            {
                if (Extensions.GetBestEnemyHeroTargetInRange(R.Range) != null)
                {
                    if (RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value > 1)
                    {
                        R.CastIfWillHit(Extensions.GetBestEnemyHeroTargetInRange(R.Range),
                                        RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value - 1);
                    }
                    if (RootMenu["combo"]["hitr"].GetValue <MenuSlider>().Value == 1)
                    {
                        R.Cast(Extensions.GetBestEnemyHeroTargetInRange(R.Range));
                    }
                }
            }
            var targets = Extensions.GetBestEnemyHeroTargetInRange(W.Range);

            switch (RootMenu["combo"]["wmode"].GetValue <MenuList>().Index)
            {
            case 0:
            {
                return;
            }

            case 1:
                if (targets.IsValidTarget(W.Range) && targets != null)
                {
                    if (targets.CountAllyHeroesInRange(690) >= 0)
                    {
                        W.CastOnUnit(target);
                    }
                }
                break;

            case 2:
                foreach (var ally in GameObjects.AllyHeroes.Where(
                             x => x.IsValidTarget(W.Range, true) && x.Distance(Player) < W.Range && !x.IsDead))
                {
                    foreach (var targeto in GameObjects.EnemyHeroes.Where(
                                 x => x.Distance(ally) < W.Range && x != null && !x.IsDead))
                    {
                        if (ally.Distance(targeto) < 690 && ally.IsAlly)
                        {
                            if (ally.CountEnemyHeroesInRange(690) > 0)
                            {
                                W.CastOnUnit(ally);
                            }
                        }
                    }
                }
                break;
            }
        }
Esempio n. 25
0
        protected override void Combo()
        {
            if (Player.HasBuff("malzaharrsound"))
            {
                return;
            }

            bool useQ = RootMenu["combo"]["useq"];
            bool useW = RootMenu["combo"]["usew"];
            bool useE = RootMenu["combo"]["usee"];

            switch (RootMenu["combo"]["combomode"].GetValue <MenuList>().Index)
            {
            case 0:
                if (useQ)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(Q.Range))
                        {
                            var pred = Q.GetPrediction(target);
                            if (pred.Hitchance >= HitChance.High)
                            {
                                Q.Cast(pred.CastPosition, true);
                            }
                        }
                    }
                }
                if (useW)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(Q.Range))
                        {
                            W.Cast(target.Position);
                        }
                    }
                }
                if (useE)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(E.Range))
                        {
                            E.CastOnUnit(target);
                        }
                    }
                }
                if (RootMenu["combo"]["user"])
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range);

                    if (target.IsValidTarget() && !W.IsReady() && !Q.IsReady())
                    {
                        if (target != null && target.IsValidTarget(R.Range))
                        {
                            switch (RootMenu["combo"]["rmode"].GetValue <MenuList>().Index)
                            {
                            case 0:
                                if (target.Health < Player.GetSpellDamage(target, SpellSlot.Q) +
                                    Player.GetSpellDamage(target, SpellSlot.W) +
                                    Player.GetSpellDamage(target, SpellSlot.E) +
                                    Player.GetSpellDamage(target, SpellSlot.R) +
                                    Player.GetSpellDamage(target, SpellSlot.R,
                                                          DamageStage.DamagePerSecond))
                                {
                                    R.Cast(target);
                                }
                                break;

                            case 1:
                                if (target.HealthPercent < RootMenu["combo"]["health"].GetValue <MenuSlider>().Value)
                                {
                                    R.Cast(target);
                                }
                                break;
                            }
                        }
                    }
                }
                break;

            case 1:
                if (useQ)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(Q.Range))
                        {
                            var pred = Q.GetPrediction(target);
                            if (pred.Hitchance >= HitChance.High)
                            {
                                Q.Cast(pred.CastPosition, true);
                            }
                        }
                    }
                }
                if (useE)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(E.Range))
                        {
                            E.CastOnUnit(target);
                        }
                    }
                }
                if (useW)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(Q.Range))
                        {
                            W.Cast(target.Position);
                        }
                    }
                }
                if (RootMenu["combo"]["user"])
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range);

                    if (target.IsValidTarget() && !W.IsReady() && !Q.IsReady())
                    {
                        if (target != null && target.IsValidTarget(R.Range))
                        {
                            switch (RootMenu["combo"]["rmode"].GetValue <MenuList>().Index)
                            {
                            case 0:
                                if (target.Health < Player.GetSpellDamage(target, SpellSlot.Q) +
                                    Player.GetSpellDamage(target, SpellSlot.W) +
                                    Player.GetSpellDamage(target, SpellSlot.E) +
                                    Player.GetSpellDamage(target, SpellSlot.R) +
                                    Player.GetSpellDamage(target, SpellSlot.R,
                                                          DamageStage.DamagePerSecond))
                                {
                                    R.Cast(target);
                                }
                                break;

                            case 1:
                                if (target.HealthPercent < RootMenu["combo"]["health"].GetValue <MenuSlider>().Value)
                                {
                                    R.Cast(target);
                                }
                                break;
                            }
                        }
                    }
                }

                break;

            case 2:
                if (RootMenu["combo"]["user"])
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(R.Range))
                        {
                            switch (RootMenu["combo"]["rmode"].GetValue <MenuList>().Index)
                            {
                            case 0:
                                if (target.Health < Player.GetSpellDamage(target, SpellSlot.Q) +
                                    Player.GetSpellDamage(target, SpellSlot.W) +
                                    Player.GetSpellDamage(target, SpellSlot.E) +
                                    Player.GetSpellDamage(target, SpellSlot.R) +
                                    Player.GetSpellDamage(target, SpellSlot.R,
                                                          DamageStage.DamagePerSecond))
                                {
                                    if (R.Cast(target))
                                    {
                                        hewwo = 300 + Variables.TickCount;
                                    }
                                }
                                break;

                            case 1:
                                if (target.HealthPercent < RootMenu["combo"]["health"].GetValue <MenuSlider>().Value)
                                {
                                    if (R.Cast(target))
                                    {
                                        hewwo = 300 + Variables.TickCount;
                                    }
                                }
                                break;
                            }
                        }
                    }
                }
                if (hewwo < Variables.TickCount)
                {
                    if (useW)
                    {
                        var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                        if (target.IsValidTarget())
                        {
                            if (target != null && target.IsValidTarget(Q.Range))
                            {
                                W.Cast(target.Position);
                            }
                        }
                    }
                    if (useQ)
                    {
                        var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                        if (target.IsValidTarget())
                        {
                            if (target != null && target.IsValidTarget(Q.Range))
                            {
                                var pred = Q.GetPrediction(target);
                                if (pred.Hitchance >= HitChance.High)
                                {
                                    Q.Cast(pred.CastPosition, true);
                                }
                            }
                        }
                    }
                    if (useE)
                    {
                        var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range);

                        if (target.IsValidTarget())
                        {
                            if (target != null && target.IsValidTarget(E.Range))
                            {
                                E.CastOnUnit(target);
                            }
                        }
                    }
                }
                break;

            case 3:
                if (useE)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(E.Range))
                        {
                            E.CastOnUnit(target);
                        }
                    }
                }
                if (useW)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(Q.Range))
                        {
                            W.Cast(target.Position);
                        }
                    }
                }
                if (useQ)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(Q.Range))
                        {
                            var pred = Q.GetPrediction(target);
                            if (pred.Hitchance >= HitChance.High)
                            {
                                Q.Cast(pred.CastPosition, true);
                            }
                        }
                    }
                }
                if (RootMenu["combo"]["user"])
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(R.Range);

                    if (target.IsValidTarget() && !W.IsReady() && !Q.IsReady())
                    {
                        if (target != null && target.IsValidTarget(R.Range))
                        {
                            switch (RootMenu["combo"]["rmode"].GetValue <MenuList>().Index)
                            {
                            case 0:
                                if (target.Health < Player.GetSpellDamage(target, SpellSlot.Q) +
                                    Player.GetSpellDamage(target, SpellSlot.W) +
                                    Player.GetSpellDamage(target, SpellSlot.E) +
                                    Player.GetSpellDamage(target, SpellSlot.R) +
                                    Player.GetSpellDamage(target, SpellSlot.R,
                                                          DamageStage.DamagePerSecond))
                                {
                                    R.Cast(target);
                                }
                                break;

                            case 1:
                                if (target.HealthPercent < RootMenu["combo"]["health"].GetValue <MenuSlider>().Value)
                                {
                                    R.Cast(target);
                                }
                                break;
                            }
                        }
                    }
                }
                break;
            }
        }
Esempio n. 26
0
        protected override void Combo()
        {
            bool useQ = RootMenu["combo"]["useq"];
            bool useW = RootMenu["combo"]["usew"];
            bool useE = RootMenu["combo"]["usee"];



            var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

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

            switch (RootMenu["combo"]["combomode"].GetValue <MenuList>().Index)
            {
            case 0:
                if (R.IsReady() && Q.IsReady())
                {
                    if (target.IsValidTarget(Q.Range) && useQ)
                    {
                        if (target != null)
                        {
                            var pred = Q.GetPrediction(target);
                            if (pred.Hitchance >= HitChance.High)
                            {
                                R.Cast();
                                DelayAction.Add(200, () =>
                                {
                                    Q.Cast(pred.CastPosition, true);
                                });
                            }
                        }
                    }
                }
                if (target.IsValidTarget(W.Range) && useW && !Player.HasBuff("KarmaMantra"))
                {
                    if (target != null)
                    {
                        W.CastOnUnit(target);
                    }
                }
                if (target.IsValidTarget(W.Range) && useE && !Player.HasBuff("KarmaMantra"))
                {
                    if (target != null)
                    {
                        E.Cast();
                    }
                }
                break;

            case 1:
                if (R.IsReady() && W.IsReady())
                {
                    if (target.IsValidTarget(W.Range) && useQ)
                    {
                        if (target != null)
                        {
                            R.Cast();
                        }
                    }
                }
                if (target.IsValidTarget(W.Range) && useW)
                {
                    if (target != null)
                    {
                        W.CastOnUnit(target);
                    }
                }
                if ((!R.IsReady() || !W.IsReady()) && useQ && Q.IsReady() && !Player.HasBuff("KarmaMantra"))
                {
                    if (target.IsValidTarget(Q.Range))
                    {
                        var pred = Q.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            Q.Cast(pred.CastPosition, true);
                        }
                    }
                }


                if (target.IsValidTarget(W.Range) && useE && !Player.HasBuff("KarmaMantra"))
                {
                    if (target != null)
                    {
                        E.Cast();
                    }
                }
                break;

            case 2:
                if (R.IsReady() && E.IsReady())
                {
                    if (target.IsValidTarget(Q.Range - 50) && useE)
                    {
                        if (target != null)
                        {
                            R.Cast();
                        }
                    }
                }

                if (target.IsValidTarget(W.Range) && useE)
                {
                    if (target != null)
                    {
                        E.Cast();
                    }
                }

                if (useQ && Q.IsReady() && !Player.HasBuff("KarmaMantra"))
                {
                    if (target.IsValidTarget(Q.Range))
                    {
                        var pred = Q.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            Q.Cast(pred.CastPosition, true);
                        }
                    }
                }
                if (target.IsValidTarget(W.Range) && useW && !Player.HasBuff("KarmaMantra"))
                {
                    if (target != null)
                    {
                        W.CastOnUnit(target);
                    }
                }
                break;
            }
        }
Esempio n. 27
0
        protected override void Combo()
        {
            bool useQ = RootMenu["combo"]["useq"];
            bool useW = RootMenu["combo"]["usew"];
            bool useE = RootMenu["combo"]["usee"];
            bool useR = RootMenu["combo"]["user"];

            var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

            if (!target.IsValidTarget())
            {
                return;
            }
            switch (RootMenu["combo"]["combomode"].GetValue <MenuList>().Index)
            {
            case 1:

                if (target.IsValidTarget(E.Range) && useE)
                {
                    if (target != null)
                    {
                        E.CastOnUnit(target);
                    }
                }
                if (target.IsValidTarget(Q.Range) && useQ)
                {
                    if (target != null)
                    {
                        switch (RootMenu["combo"]["qmode"].GetValue <MenuList>().Index)
                        {
                        case 0:
                            var pred = Q.GetPrediction(target);
                            if (pred.Hitchance >= HitChance.High)
                            {
                                Q.Cast(pred.CastPosition, true);
                            }
                            break;

                        case 1:
                            if (target.HasBuff("brandablaze"))
                            {
                                pred = Q.GetPrediction(target);
                                if (pred.Hitchance >= HitChance.High)
                                {
                                    Q.Cast(pred.CastPosition, true);
                                }
                            }
                            break;
                        }
                    }
                }
                if (target.IsValidTarget(W.Range) && useW)
                {
                    if (target != null)
                    {
                        var pred = W.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            W.Cast(pred.CastPosition, true);
                        }
                    }
                }
                break;

            case 0:
                if (target.IsValidTarget(E.Range) && useE)
                {
                    if (target != null)
                    {
                        E.CastOnUnit(target);
                    }
                }
                if (target.IsValidTarget(W.Range) && useW)
                {
                    if (target != null)
                    {
                        var pred = W.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            W.Cast(pred.CastPosition, true);
                        }
                    }
                }
                if (target.IsValidTarget(Q.Range) && useQ)
                {
                    if (target != null)
                    {
                        switch (RootMenu["combo"]["qmode"].GetValue <MenuList>().Index)
                        {
                        case 0:
                            var pred = Q.GetPrediction(target);
                            if (pred.Hitchance >= HitChance.High)
                            {
                                Q.Cast(pred.CastPosition, true);
                            }
                            break;

                        case 1:
                            if (target.HasBuff("brandablaze"))
                            {
                                pred = Q.GetPrediction(target);
                                if (pred.Hitchance >= HitChance.High)
                                {
                                    Q.Cast(pred.CastPosition, true);
                                }
                            }
                            break;
                        }
                    }
                }

                break;

            case 3:
                if (target.IsValidTarget(W.Range) && useW)
                {
                    if (target != null)
                    {
                        var pred = W.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            W.Cast(pred.CastPosition, true);
                        }
                    }
                }
                if (target.IsValidTarget(E.Range) && useE)
                {
                    if (target != null)
                    {
                        E.CastOnUnit(target);
                    }
                }

                if (target.IsValidTarget(Q.Range) && useQ)
                {
                    if (target != null)
                    {
                        switch (RootMenu["combo"]["qmode"].GetValue <MenuList>().Index)
                        {
                        case 0:
                            var pred = Q.GetPrediction(target);
                            if (pred.Hitchance >= HitChance.High)
                            {
                                Q.Cast(pred.CastPosition, true);
                            }
                            break;

                        case 1:
                            if (target.HasBuff("brandablaze"))
                            {
                                pred = Q.GetPrediction(target);
                                if (pred.Hitchance >= HitChance.High)
                                {
                                    Q.Cast(pred.CastPosition, true);
                                }
                            }
                            break;
                        }
                    }
                }

                break;

            case 2:
                if (target.IsValidTarget(W.Range) && useW)
                {
                    if (target != null)
                    {
                        var pred = W.GetPrediction(target);
                        if (pred.Hitchance >= HitChance.High)
                        {
                            W.Cast(pred.CastPosition, true);
                        }
                    }
                }

                if (target.IsValidTarget(Q.Range) && useQ)
                {
                    if (target != null)
                    {
                        switch (RootMenu["combo"]["qmode"].GetValue <MenuList>().Index)
                        {
                        case 0:
                            var pred = Q.GetPrediction(target);
                            if (pred.Hitchance >= HitChance.High)
                            {
                                Q.Cast(pred.CastPosition, true);
                            }
                            break;

                        case 1:
                            if (target.HasBuff("brandablaze"))
                            {
                                pred = Q.GetPrediction(target);
                                if (pred.Hitchance >= HitChance.High)
                                {
                                    Q.Cast(pred.CastPosition, true);
                                }
                            }
                            break;
                        }
                    }
                }
                if (target.IsValidTarget(E.Range) && useE)
                {
                    if (target != null)
                    {
                        E.CastOnUnit(target);
                    }
                }


                break;
            }
            if (useR)
            {
                switch (RootMenu["combo"]["rmode"].GetValue <MenuList>().Index)
                {
                case 0:
                    if (target != null)
                    {
                        if (!RootMenu["combo"]["minion"])
                        {
                            if (target.IsValidTarget(R.Range) && target.CountEnemyHeroesInRange(750) >=
                                RootMenu["combo"]["bounce"].GetValue <MenuSlider>().Value&& target.HealthPercent <=
                                RootMenu["combo"]["hp"].GetValue <MenuSlider>().Value)
                            {
                                R.CastOnUnit(target);
                            }
                        }
                        if (RootMenu["combo"]["minion"])
                        {
                            if (target.IsValidTarget(R.Range) &&
                                (target.CountEnemyHeroesInRange(750) +
                                 GameObjects.EnemyMinions.Count(h => h.IsValidTarget(750, false,
                                                                                     target.Position)) >=
                                 RootMenu["combo"]["bounce"].GetValue <MenuSlider>().Value) && target.HealthPercent <=
                                RootMenu["combo"]["hp"].GetValue <MenuSlider>().Value)
                            {
                                R.CastOnUnit(target);
                            }
                        }
                    }
                    break;

                case 1:
                    if (target != null)
                    {
                        if (!RootMenu["combo"]["minion"])
                        {
                            if (target.IsValidTarget(R.Range) && target.CountEnemyHeroesInRange(750) >=
                                RootMenu["combo"]["bounce"].GetValue <MenuSlider>().Value&& target.Health <=
                                Player.GetSpellDamage(target, SpellSlot.Q) +
                                Player.GetSpellDamage(target, SpellSlot.W) +
                                Player.GetSpellDamage(target, SpellSlot.E) +
                                Player.GetSpellDamage(target, SpellSlot.R))
                            {
                                R.CastOnUnit(target);
                            }
                        }
                        if (RootMenu["combo"]["minion"])
                        {
                            if (target.IsValidTarget(R.Range) &&
                                (target.CountEnemyHeroesInRange(750) +
                                 GameObjects.EnemyMinions.Count(h => h.IsValidTarget(750, false,
                                                                                     target.Position)) >=
                                 RootMenu["combo"]["bounce"].GetValue <MenuSlider>().Value) && target.Health <=
                                Player.GetSpellDamage(target, SpellSlot.Q) +
                                Player.GetSpellDamage(target, SpellSlot.W) +
                                Player.GetSpellDamage(target, SpellSlot.E) +
                                Player.GetSpellDamage(target, SpellSlot.R))
                            {
                                R.CastOnUnit(target);
                            }
                        }
                    }
                    break;
                }
            }
        }
Esempio n. 28
0
        protected override void Harass()
        {
            bool useQ = RootMenu["harass"]["useq"];
            bool useW = RootMenu["harass"]["usew"];
            bool useE = RootMenu["harass"]["usee"];

            switch (RootMenu["harass"]["harassmode"].GetValue <MenuList>().Index)
            {
            case 0:
                if (useQ)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(Q.Range))
                        {
                            var pred = Q.GetPrediction(target);
                            if (pred.Hitchance >= HitChance.High)
                            {
                                Q.Cast(pred.CastPosition, true);
                            }
                        }
                    }
                }
                if (useW)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(Q.Range))
                        {
                            W.Cast(target.Position);
                        }
                    }
                }
                if (useE)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(E.Range))
                        {
                            E.CastOnUnit(target);
                        }
                    }
                }
                break;

            case 1:
                if (useQ)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(Q.Range))
                        {
                            var pred = Q.GetPrediction(target);
                            if (pred.Hitchance >= HitChance.High)
                            {
                                Q.Cast(pred.CastPosition, true);
                            }
                        }
                    }
                }
                if (useE)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(E.Range))
                        {
                            E.CastOnUnit(target);
                        }
                    }
                }
                if (useW)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(Q.Range))
                        {
                            W.Cast(target.Position);
                        }
                    }
                }

                break;

            case 2:
                if (useW)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(Q.Range))
                        {
                            W.Cast(target.Position);
                        }
                    }
                }
                if (useQ)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(Q.Range))
                        {
                            var pred = Q.GetPrediction(target);
                            if (pred.Hitchance >= HitChance.High)
                            {
                                Q.Cast(pred.CastPosition, true);
                            }
                        }
                    }
                }
                if (useE)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(E.Range))
                        {
                            E.CastOnUnit(target);
                        }
                    }
                }


                break;

            case 3:
                if (useE)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(E.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(E.Range))
                        {
                            E.CastOnUnit(target);
                        }
                    }
                }
                if (useW)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(Q.Range))
                        {
                            W.Cast(target.Position);
                        }
                    }
                }
                if (useQ)
                {
                    var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                    if (target.IsValidTarget())
                    {
                        if (target != null && target.IsValidTarget(Q.Range))
                        {
                            var pred = Q.GetPrediction(target);
                            if (pred.Hitchance >= HitChance.High)
                            {
                                Q.Cast(pred.CastPosition, true);
                            }
                        }
                    }
                }

                break;
            }
        }
Esempio n. 29
0
        protected override void Harass()
        {
            if (Player.ManaPercent >= RootMenu["harass"]["mana"].GetValue <MenuSlider>().Value)
            {
                bool useQ = RootMenu["harass"]["useq"];
                bool useW = RootMenu["harass"]["usew"];
                bool useE = RootMenu["harass"]["usee"];

                var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                if (!target.IsValidTarget())
                {
                    return;
                }
                switch (RootMenu["harass"]["harassmode"].GetValue <MenuList>().Index)
                {
                case 1:

                    if (target.IsValidTarget(E.Range) && useE)
                    {
                        if (target != null)
                        {
                            E.CastOnUnit(target);
                        }
                    }
                    if (target.IsValidTarget(Q.Range) && useQ)
                    {
                        if (target != null)
                        {
                            switch (RootMenu["harass"]["qmode"].GetValue <MenuList>().Index)
                            {
                            case 0:
                                var pred = Q.GetPrediction(target);
                                if (pred.Hitchance >= HitChance.High)
                                {
                                    Q.Cast(pred.CastPosition, true);
                                }
                                break;

                            case 1:
                                if (target.HasBuff("brandablaze"))
                                {
                                    pred = Q.GetPrediction(target);
                                    if (pred.Hitchance >= HitChance.High)
                                    {
                                        Q.Cast(pred.CastPosition, true);
                                    }
                                }
                                break;
                            }
                        }
                    }
                    if (target.IsValidTarget(W.Range) && useW)
                    {
                        if (target != null)
                        {
                            W.Cast(target);
                        }
                    }
                    break;

                case 0:
                    if (target.IsValidTarget(E.Range) && useE)
                    {
                        if (target != null)
                        {
                            E.CastOnUnit(target);
                        }
                    }
                    if (target.IsValidTarget(W.Range) && useW)
                    {
                        if (target != null)
                        {
                            W.Cast(target);
                        }
                    }
                    if (target.IsValidTarget(Q.Range) && useQ)
                    {
                        if (target != null)
                        {
                            switch (RootMenu["harass"]["qmode"].GetValue <MenuList>().Index)
                            {
                            case 0:
                                var pred = Q.GetPrediction(target);
                                if (pred.Hitchance >= HitChance.High)
                                {
                                    Q.Cast(pred.CastPosition, true);
                                }
                                break;

                            case 1:
                                if (target.HasBuff("brandablaze"))
                                {
                                    pred = Q.GetPrediction(target);
                                    if (pred.Hitchance >= HitChance.High)
                                    {
                                        Q.Cast(pred.CastPosition, true);
                                    }
                                }
                                break;
                            }
                        }
                    }

                    break;

                case 3:
                    if (target.IsValidTarget(W.Range) && useW)
                    {
                        if (target != null)
                        {
                            W.Cast(target);
                        }
                    }
                    if (target.IsValidTarget(E.Range) && useE)
                    {
                        if (target != null)
                        {
                            E.CastOnUnit(target);
                        }
                    }

                    if (target.IsValidTarget(Q.Range) && useQ)
                    {
                        if (target != null)
                        {
                            switch (RootMenu["harass"]["qmode"].GetValue <MenuList>().Index)
                            {
                            case 0:
                                var pred = Q.GetPrediction(target);
                                if (pred.Hitchance >= HitChance.High)
                                {
                                    Q.Cast(pred.CastPosition, true);
                                }
                                break;

                            case 1:
                                if (target.HasBuff("brandablaze"))
                                {
                                    pred = Q.GetPrediction(target);
                                    if (pred.Hitchance >= HitChance.High)
                                    {
                                        Q.Cast(pred.CastPosition, true);
                                    }
                                }
                                break;
                            }
                        }
                    }

                    break;

                case 2:
                    if (target.IsValidTarget(W.Range) && useW)
                    {
                        if (target != null)
                        {
                            W.Cast(target);
                        }
                    }

                    if (target.IsValidTarget(Q.Range) && useQ)
                    {
                        if (target != null)
                        {
                            switch (RootMenu["harass"]["qmode"].GetValue <MenuList>().Index)
                            {
                            case 0:
                                var pred = Q.GetPrediction(target);
                                if (pred.Hitchance >= HitChance.High)
                                {
                                    Q.Cast(pred.CastPosition, true);
                                }
                                break;

                            case 1:
                                if (target.HasBuff("brandablaze"))
                                {
                                    pred = Q.GetPrediction(target);
                                    if (pred.Hitchance >= HitChance.High)
                                    {
                                        Q.Cast(pred.CastPosition, true);
                                    }
                                }
                                break;
                            }
                        }
                    }
                    if (target.IsValidTarget(E.Range) && useE)
                    {
                        if (target != null)
                        {
                            E.CastOnUnit(target);
                        }
                    }


                    break;
                }
            }
        }
Esempio n. 30
0
        protected override void SemiR()
        {
            if (RootMenu["rq"].GetValue <MenuKeyBind>().Active)
            {
                Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter);
                if (R.Cast())
                {
                    Q.Cast(Game.CursorPosCenter);
                }
            }
            if (RootMenu["combo"]["save"].GetValue <MenuKeyBind>().Active)
            {
                Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter);
                var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

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

                if (R.IsReady() && target.Distance(Player) < W.Range)
                {
                    R.Cast();
                }
                if (W.IsReady() && target.Distance(Player) < W.Range)
                {
                    W.CastOnUnit(target);
                }
                if (E.IsReady() && target.Distance(Player) < W.Range && !Player.HasBuff("KarmaMantra"))
                {
                    E.Cast();
                }
                if (Q.IsReady() && target.Distance(Player) < Q.Range && !Player.HasBuff("KarmaMantra"))
                {
                    var pred = Q.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        Q.Cast(pred.CastPosition, true);
                    }
                }
            }
            if (RootMenu["combo"]["chase"].GetValue <MenuKeyBind>().Active)
            {
                Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter);
                var target = Extensions.GetBestEnemyHeroTargetInRange(Q.Range);

                if (!target.IsValidTarget())
                {
                    return;
                }
                if (E.IsReady() && target.Distance(Player) < W.Range && !Player.HasBuff("KarmaMantra"))
                {
                    E.Cast();
                }
                if (W.IsReady() && target.Distance(Player) < W.Range)
                {
                    W.CastOnUnit(target);
                }
                if (R.IsReady() && target.Distance(Player) < Q.Range)
                {
                    R.Cast();
                }
                if (Q.IsReady() && target.Distance(Player) < Q.Range && Player.HasBuff("KarmaMantra"))
                {
                    var pred = Q.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        Q.Cast(pred.CastPosition, true);
                    }
                }
                if (Q.IsReady() && target.Distance(Player) < Q.Range && !Player.HasBuff("KarmaMantra") && !R.IsReady())
                {
                    var pred = Q.GetPrediction(target);
                    if (pred.Hitchance >= HitChance.High)
                    {
                        Q.Cast(pred.CastPosition, true);
                    }
                }
            }
        }