Exemplo n.º 1
0
        public static void Burst()
        {
            if (Spells.R.IsReady() && Spells.R.Instance.Name == IsSecondR)
            {
                BurstCastR2(Target);
            }
            else if (Spells.Flash.IsReady() && MenuConfig.AlwaysF)
            {
                if (SelectedTarget == null ||
                    !SelectedTarget.IsValidTarget(Player.AttackRange + 625) ||
                    Player.Distance(SelectedTarget.Position) < Player.AttackRange ||
                    (MenuConfig.Flash && SelectedTarget.Health > Dmg.GetComboDamage(SelectedTarget) && !Spells.R.IsReady() && Spells.R.Instance.Name != IsSecondR) ||
                    (!MenuConfig.Flash && !Spells.W.IsReady()))
                {
                    return;
                }

                Usables.CastYoumoo();
                Spells.E.Cast(SelectedTarget.Position);
                Spells.R.Cast();
                LeagueSharp.Common.Utility.DelayAction.Add(170, BackgroundData.FlashW);
            }
            else
            {
                Combo();
            }
        }
Exemplo n.º 2
0
        public static void DmgDraw(EventArgs args)
        {
            foreach (var enemy in EntityManager.Enemies.Where(ene => ene.IsInRange(Player.Instance, 1750) && ene.Type == Player.Instance.Type && ene.IsVisible))
            {
                if (!MenuConfig.Dind || ObjectManager.Player.IsDead)
                {
                    return;
                }

                var damage = Dmg.GetComboDamage(enemy) * .85;
                //Chat.Print(enemy.BaseSkinName);
                var tempOffset = 0;
                if (enemy.BaseSkinName == "Annie")
                {
                    tempOffset -= 12;
                }
                if (enemy.BaseSkinName == "Jhin")
                {
                    tempOffset -= 14;
                }

                var damagePercentage        = ((enemy.TotalShieldHealth() - 0.9 * damage) > 0 ? (enemy.TotalShieldHealth() - damage) : 0) / (enemy.MaxHealth + enemy.AllShield + enemy.AttackShield + enemy.MagicShield);
                var currentHealthPercentage = enemy.TotalShieldHealth() / (enemy.MaxHealth + enemy.AllShield + enemy.AttackShield + enemy.MagicShield);

                var startPoint = new Vector2((int)(enemy.HPBarPosition.X + BarOffset.X + damagePercentage * BarWidth), (int)(enemy.HPBarPosition.Y + BarOffset.Y + tempOffset) - 5);
                var endPoint   = new Vector2((int)(enemy.HPBarPosition.X + BarOffset.X + currentHealthPercentage * BarWidth) + 1, (int)(enemy.HPBarPosition.Y + BarOffset.Y + tempOffset) - 5);

                Drawing.DrawLine(startPoint, endPoint, LineThickness, System.Drawing.Color.Chartreuse);

                //Indicator.Unit = enemy;
                //Indicator.DrawDmg(Dmg.GetComboDamage(enemy),  enemy.Health <= Dmg.GetComboDamage(enemy) * .85 ? Color.LawnGreen : Color.Yellow);
            }
        }
Exemplo n.º 3
0
        public static void Burst()
        {
            var target = TargetSelector.SelectedTarget;

            if (target == null || !target.IsValidTarget(425 + Spells.W.Range) || target.IsInvulnerable)
            {
                return;
            }

            if (!Spells.Flash.IsReady())
            {
                return;
            }

            if (!(target.Health < Dmg.GetComboDamage(target)) && !MenuConfig.AlwaysF)
            {
                return;
            }

            if (!(Player.Distance(target.Position) >= 600))
            {
                return;
            }

            if (!Spells.R.IsReady() || !Spells.E.IsReady() || !Spells.W.IsReady() || Spells.R.Instance.Name != IsFirstR)
            {
                return;
            }

            Usables.CastYoumoo();
            Spells.E.Cast(target.Position);
            ForceR();
            Utility.DelayAction.Add(170 + Game.Ping / 2, FlashW);
            ForceItem();
        }
Exemplo n.º 4
0
        public static void Burst()
        {
            if (!MenuConfig.BurstKeyBind.Active)
            {
                return;
            }

            if (!MenuConfig.FnoR)
            {
                if (!Spells.R.IsReady() || !Spells.W.IsReady() || !Spells.Q.IsReady() ||
                    Spells.Flash == SpellSlot.Unknown || !Spells.Flash.IsReady())
                {
                    return;
                }
            }

            var target = Variables.TargetSelector.GetSelectedTarget();

            if (target == null || !target.IsValidTarget(425 + Spells.W.Range - 35) || target.Distance(Player) <= 375)
            {
                return;
            }

            if ((MenuConfig.Flash || MenuConfig.FnoR) && target.Health > Dmg.GetComboDamage(target))
            {
                return;
            }

            Spells.E.Cast(target.Position);
            Logic.ForceR();
            DelayAction.Add(190, () => Player.Spellbook.CastSpell(Spells.Flash, target));
            DelayAction.Add(191, () => Spells.W.Cast());
        }
Exemplo n.º 5
0
        public static void DmgDraw(EventArgs args)
        {
            if (!MenuConfig.Dind)
            {
                return;
            }

            foreach (var enemy in ObjectManager.Get <AIHeroClient>().Where(ene => ene.IsValidTarget(1500) && !ene.IsDead && ene.IsVisible))
            {
                Indicator.Unit = enemy;
                Indicator.DrawDmg(Dmg.GetComboDamage(enemy), Color.LawnGreen);
            }
        }
Exemplo n.º 6
0
 public static void DmgDraw(EventArgs args)
 {
     foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(ene => ene.IsValidTarget() && !ene.IsZombie))
     {
         if (MenuConfig.Dind)
         {
             var EasyKill = Spells.Q.IsReady() && Dmg.IsLethal(enemy)
                ? new ColorBGRA(0, 255, 0, 120)
                : new ColorBGRA(255, 255, 0, 120);
             Indicator.unit = enemy;
             Indicator.drawDmg(Dmg.GetComboDamage(enemy), EasyKill);
         }
     }
 }
Exemplo n.º 7
0
        public static void DmgDraw(EventArgs args)
        {
            foreach (var enemy in ObjectManager.Get <AIHeroClient>().Where(ene => ene.IsValidTarget(1500)))
            {
                if (!MenuConfig.Dind)
                {
                    continue;
                }

                Indicator.Unit = enemy;

                Indicator.DrawDmg(Dmg.GetComboDamage(enemy), enemy.Health <= Dmg.GetComboDamage(enemy) * 1.65 ? Color.LawnGreen : Color.Yellow);
            }
        }
Exemplo n.º 8
0
        public static void DmgDraw(EventArgs args)
        {
            foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(ene => ene.IsValidTarget(1750)))
            {
                if (!MenuConfig.Dind || ObjectManager.Player.IsDead)
                {
                    return;
                }

                Indicator.Unit = enemy;

                Indicator.DrawDmg(Dmg.GetComboDamage(enemy),
                                  enemy.Health <= Dmg.GetComboDamage(enemy) * .85
                   ? Color.LawnGreen
                   : Color.Yellow);
            }
        }
Exemplo n.º 9
0
        public static void DmgDraw(EventArgs args)
        {
            var targeter = TargetSelector.GetTarget(Q.Range + 200, DamageType.Magical);

            if (targeter == null || targeter.IsInvulnerable || targeter.MagicImmune)
            {
                return;
            }
            if (Player.Instance.CountEnemiesInRange(1500) >= 2 && targeter.Type == Player.Instance.Type && targeter.IsValidTarget())
            {
                if (!MenuConfig.Dind || ObjectManager.Player.IsDead)
                {
                    return;
                }

                var damage = Dmg.GetComboDamage(targeter) * .85;
                //Chat.Print(enemy.BaseSkinName);
                var tempOffset = 0;
                if (targeter.BaseSkinName == "Annie")
                {
                    tempOffset -= 12;
                }
                if (targeter.BaseSkinName == "Jhin")
                {
                    tempOffset -= 14;
                }

                var damagePercentage        = ((targeter.TotalShieldHealth() - 0.9 * damage) > 0 ? (targeter.TotalShieldHealth() - damage) : 0) / (targeter.MaxHealth + targeter.AllShield + targeter.AttackShield + targeter.MagicShield);
                var currentHealthPercentage = targeter.TotalShieldHealth() / (targeter.MaxHealth + targeter.AllShield + targeter.AttackShield + targeter.MagicShield);

                var startPoint = new Vector2((int)(targeter.HPBarPosition.X + BarOffset.X + damagePercentage * BarWidth), (int)(targeter.HPBarPosition.Y + BarOffset.Y + tempOffset) - 5);
                var endPoint   = new Vector2((int)(targeter.HPBarPosition.X + BarOffset.X + currentHealthPercentage * BarWidth) + 1, (int)(targeter.HPBarPosition.Y + BarOffset.Y + tempOffset) - 5);

                Drawing.DrawLine(startPoint, endPoint, LineThickness, System.Drawing.Color.Chartreuse);

                //Indicator.Unit = enemy;
                //Indicator.DrawDmg(Dmg.GetComboDamage(enemy),  enemy.Health <= Dmg.GetComboDamage(enemy) * .85 ? Color.LawnGreen : Color.Yellow);
            }
        }
Exemplo n.º 10
0
        public static void Combo()
        {
            if (Target == null)
            {
                return;
            }

            if (Spells.R.IsReady() && Spells.R.Instance.Name == IsSecondR)
            {
                ComboCastR2(Target);
            }

            if (Spells.E.IsReady() && MenuConfig.Q3Wall && Qstack >= 3)
            {
                Q3Wall(Target);
            }

            if (Spells.E.IsReady())
            {
                Spells.E.Cast(Target.Position);
            }

            if (Spells.R.IsReady() &&
                Spells.R.Instance.Name == IsFirstR &&
                MenuConfig.UseR1 &&
                Target.Health > Dmg.GetComboDamage(Target) - Spells.R.GetDamage(Target))
            {
                Spells.R.Cast();
            }

            if (!Spells.W.IsReady() || !BackgroundData.InRange(Target))
            {
                return;
            }

            DoublecastWQ(Target);
        }
Exemplo n.º 11
0
        public static void Burst()
        {
            if (Spells.R.IsReady() && Spells.R.Instance.Name == IsSecondR)
            {
                BurstCastR2(Target);
            }

            if (Spells.Flash.IsReady() &&
                MenuConfig.AlwaysF &&
                SelectedTarget != null &&
                SelectedTarget.IsValidTarget(Player.AttackRange + 625) &&
                Player.Distance(SelectedTarget.Position) > 335 &&
                (SelectedTarget.Health < Dmg.GetComboDamage(SelectedTarget) || MenuConfig.Flash))
            {
                Usables.CastYoumoo();
                Spells.E.Cast(SelectedTarget.Position);
                Spells.R.Cast();
                LeagueSharp.Common.Utility.DelayAction.Add(170, BackgroundData.FlashW);
            }
            else
            {
                Combo();
            }
        }
Exemplo n.º 12
0
        public static void Burst()
        {
            if (Spells.Flash.IsReady() &&
                MenuConfig.AlwaysF)
            {
                var selectedTarget = TargetSelector.GetSelectedTarget();

                if (selectedTarget == null ||
                    !selectedTarget.IsValidTarget(Player.AttackRange + 625) ||
                    Player.Distance(selectedTarget.Position) < Player.AttackRange ||
                    (MenuConfig.Flash && selectedTarget.Health > Dmg.GetComboDamage(selectedTarget) && !Spells.R.IsReady()) ||
                    (!MenuConfig.Flash && (!Spells.R.IsReady() || !Spells.W.IsReady())))
                {
                    return;
                }

                Usables.CastYoumoo();
                Spells.E.Cast(selectedTarget.Position);
                Spells.R.Cast();
                Utility.DelayAction.Add(170, BackgroundData.FlashW);
            }
            else
            {
                var target = TargetSelector.GetTarget(Player.AttackRange + 360, TargetSelector.DamageType.Physical);

                if (target == null)
                {
                    return;
                }

                if (Spells.R.IsReady() && Spells.R.Instance.Name == IsSecondR && Qstack > 1)
                {
                    var pred = Spells.R.GetPrediction(
                        target,
                        true,
                        collisionable: new[] { CollisionableObjects.YasuoWall });

                    if (pred.Hitchance < HitChance.High)
                    {
                        return;
                    }

                    Spells.R.Cast(pred.CastPosition);
                }

                if (Spells.E.IsReady())
                {
                    Spells.E.Cast(target.Position);
                }

                if (Spells.R.IsReady() && Spells.R.Instance.Name == IsFirstR)
                {
                    Spells.R.Cast();
                }

                if (!Spells.W.IsReady() || !BackgroundData.InRange(target))
                {
                    return;
                }

                BackgroundData.CastW(target);
                BackgroundData.DoubleCastQ(target);
            }
        }
Exemplo n.º 13
0
        public static void Harass()
        {
            var target = TargetSelector.GetTarget(360, TargetSelector.DamageType.Physical);

            if (target == null)
            {
                return;
            }

            if (Spells.Q.IsReady() && Spells.W.IsReady() && Qstack == 1)
            {
                BackgroundData.CastQ(target);
            }

            if (Spells.W.IsReady() && BackgroundData.InRange(target))
            {
                BackgroundData.CastW(target);
            }

            if (!Spells.Q.IsReady() ||
                !Spells.E.IsReady() ||
                Qstack != 3 ||
                Orbwalking.CanAttack() ||
                !Orbwalking.CanMove(0))
            {
                return;
            }

            Spells.E.Cast(Game.CursorPos);

            if (Spells.R.IsReady() && Spells.R.Instance.Name == IsFirstR && MenuConfig.UltHarass && target.Health < Dmg.GetComboDamage(target) * 1.2)
            {
                Spells.R.Cast(target);
            }

            LeagueSharp.Common.Utility.DelayAction.Add(190, () => Spells.Q.Cast(target.Position));
        }
Exemplo n.º 14
0
        public static void Burst()
        {
            if (Player.Spellbook.CanUseSpell(Spells.Flash) == SpellState.Ready && MenuConfig.AlwaysF)
            {
                var selectedTarget = TargetSelector.GetTarget(Player.AttackRange + 625, DamageType.Physical);

                if (selectedTarget == null ||
                    Player.Distance(selectedTarget.Position) > (Player.AttackRange + 625) ||
                    Player.Distance(selectedTarget.Position) < Player.AttackRange ||
                    (MenuConfig.Flash && selectedTarget.Health > Dmg.GetComboDamage(selectedTarget) && !Spells.R.IsReady()) ||
                    (!MenuConfig.Flash || (!Spells.R.IsReady() || !Spells.W.IsReady()))
                    )
                {
                    return;
                }

                Usables.CastYoumoo();
                BackgroundData.CastE(selectedTarget);

                Player.Spellbook.CastSpell(SpellSlot.R, selectedTarget);
                EloBuddy.SDK.Core.DelayAction(() => BackgroundData.FlashW(selectedTarget), 170);
            }
            else
            {
                var target = TargetSelector.GetTarget(Player.AttackRange + 360, DamageType.Physical);

                if (target == null)
                {
                    return;
                }

                if (!MenuConfig.AlwaysF)
                {
                    Usables.CastYoumoo();
                }

                if (Spells.R.IsReady() && Spells.R.Name == IsSecondR && Qstack > 1)
                {
                    var pred = Spells.R.GetPrediction(target);

                    if (pred.HitChance == EloBuddy.SDK.Enumerations.HitChance.High)
                    {
                        Player.Spellbook.CastSpell(SpellSlot.R, pred.CastPosition);
                    }
                }

                if (Spells.E.IsReady())
                {
                    BackgroundData.CastE(target);
                    EloBuddy.SDK.Core.DelayAction(Usables.CastHydra, 10);
                    //Spells.E.Cast(target.Position);
                }

                if (Spells.R.IsReady() && Spells.R.Name == IsFirstR)
                {
                    Player.Spellbook.CastSpell(SpellSlot.R, target);
                    //Spells.R.Cast(target);
                }

                if (!Spells.W.IsReady() || !BackgroundData.InRange(target))
                {
                    return;
                }

                BackgroundData.CastW(target);
                BackgroundData.DoubleCastQ(target);
            }
        }
Exemplo n.º 15
0
        public static void Combo()
        {
            var target = TargetSelector.GetTarget(Player.AttackRange + 310, TargetSelector.DamageType.Physical);

            if (target == null || target.IsDead || !target.IsValidTarget() || target.IsInvulnerable)
            {
                return;
            }

            if (Spells.R.IsReady() && Spells.R.Instance.Name == IsSecondR)
            {
                var pred = Spells.R.GetPrediction(target);

                if (Qstack > 1 && !MenuConfig.OverKillCheck)
                {
                    Spells.R.Cast(pred.CastPosition);
                }

                if (MenuConfig.OverKillCheck && !Spells.Q.IsReady() && Qstack == 1)
                {
                    Spells.R.Cast(pred.CastPosition);
                }
            }

            if (Spells.E.IsReady() && !InWRange(target))
            {
                Spells.E.Cast(target.Position);
            }

            if (Spells.W.IsReady() && Spells.R.IsReady() && Spells.R.Instance.Name == IsFirstR && (MenuConfig.AlwaysR || Dmg.GetComboDamage(target) > target.Health))
            {
                if (InWRange(target))
                {
                    return;
                }

                Spells.E.Cast(target.Position);
                ForceR();
                Utility.DelayAction.Add(190, ForceW);
            }

            else if (Spells.W.IsReady() && Spells.Q.IsReady() && Spells.E.IsReady())
            {
                Usables.CastYoumoo();

                Utility.DelayAction.Add(10, ForceItem);
                Utility.DelayAction.Add(190, () => Spells.W.Cast());
            }

            else if (Spells.W.IsReady() && InWRange(target))
            {
                ForceW();
            }
        }
Exemplo n.º 16
0
        public static void Combo()
        {
            var target = Variables.TargetSelector.GetTarget(Player.AttackRange + 310, DamageType.Physical);

            if (target == null || !target.IsValid)
            {
                return;
            }

            if (Spells.R.IsReady() &&
                Spells.R.Instance.Name == IsFirstR &&
                MenuConfig.ForceR &&
                (Spells.Q.IsReady() || Spells.E.IsReady()))
            {
                Logic.ForceR();
            }

            if (Spells.R.IsReady() && Spells.R.Instance.Name == IsSecondR)
            {
                var pred = Spells.R.GetPrediction(target);

                if (pred.Hitchance > HitChance.High)
                {
                    if (Qstack > 2 && !MenuConfig.RKillable)
                    {
                        Spells.R.Cast(pred.CastPosition);
                    }
                    if (MenuConfig.RKillable && Qstack == 1 && !Spells.Q.IsReady())
                    {
                        Spells.R.Cast(pred.CastPosition);
                    }
                }
            }

            if (Spells.W.IsReady() && Spells.Q.IsReady() && Spells.E.IsReady())
            {
                Spells.E.Cast(target.ServerPosition);
                Logic.CastYomu();

                if (Spells.R.IsReady() &&
                    Spells.R.Instance.Name == IsFirstR &&
                    MenuConfig.ForceR &&
                    !(Dmg.GetComboDamage(target) < target.Health))
                {
                    Logic.ForceR();
                }

                DelayAction.Add(30, Logic.ForceItem);

                //if (Logic.InWRange(target) && Qstack >= 2)
                //{
                //    DelayAction.Add(130, () => Spells.W.Cast());
                //}


                //if (Qstack != 1)
                //{
                //    return;
                //}
                //    DelayAction.Add(160, () => Logic.ForceCastQ(target));
                //{
                //    return;
                //}
            }

            if (Spells.E.IsReady())
            {
                var epred = Spells.E.GetPrediction(target);

                Spells.E.Cast(epred.CastPosition);
            }

            if (Spells.Q.IsReady() && Player.Level == 1 && MenuConfig.EngageQ)
            {
                if (Qstack != 1)
                {
                    return;
                }

                Logic.ForceCastQ(target);
            }

            if (Spells.W.IsReady() && Logic.InWRange(target) && Qstack > 1)
            {
                Spells.W.Cast(target);
            }
        }