예제 #1
0
        public static void OnUpdate()
        {
            if (Global.Player.IsDead)
            {
                return;
            }

            if (MenuConfig.Killsteal["E"].Enabled && SpellManager.E.Ready && GameObjects.EnemyHeroes.Any(x => x.HasBuff("kalistaexpungemarker")))
            {
                var t = GameObjects.EnemyHeroes.FirstOrDefault(x => x.Health <= Dmg.EDmg(x) && x.IsValidTarget(SpellManager.E.Range));
                if (t != null)
                {
                    SpellManager.E.Cast();
                }
            }

            if (MenuConfig.Killsteal["Q"].Enabled && SpellManager.Q.Ready && !Global.Orbwalker.IsWindingUp)
            {
                var t = GameObjects.EnemyHeroes.FirstOrDefault(x => x.Health < Global.Player.GetSpellDamage(x, SpellSlot.Q) && x.IsValidTarget(SpellManager.Q.Range));
                if (t == null)
                {
                    return;
                }
                SpellManager.CastQ(t);
            }
        }
예제 #2
0
        public static void OnUpdate()
        {
            try
            {
                if (Global.Player.IsRecalling())
                {
                    return;
                }

                if (SpellManager.E.Ready)
                {
                    if (MenuConfig.Misc["E"].Enabled && GameObjects.EnemyHeroes.Any(x => x.HasBuff(KalistaBuffName)))
                    {
                        var m = GameObjects.EnemyMinions.FirstOrDefault(x => x.HasBuff(KalistaBuffName) && x.Health < Dmg.EDmg(x) && x.IsValidTarget(SpellManager.E.Range));
                        if (m != null)
                        {
                            SpellManager.E.Cast();
                        }
                    }

                    if (GameObjects.Jungle.Count(x => x.HasBuff(KalistaBuffName) && Dmg.EDmg(x) > x.Health &&
                                                 x.GetJungleType() != GameObjects.JungleType.Small) >= 1 && MenuConfig.JungleClear["E"].Enabled &&
                        !(Global.Player.Level == 1 && Global.Player.CountAllyHeroesInRange(2000) >= 1))
                    {
                        SpellManager.E.Cast();
                    }

                    if (Global.HealthPrediction.GetPrediction(Global.Player, Game.Ping + 1000) <= 0)
                    {
                        SpellManager.E.Cast();
                    }
                }

                if (SpellManager.R.Ready && MenuConfig.Misc["R"].Enabled)
                {
                    var soulBound = GameObjects.AllyHeroes.FirstOrDefault(x => x.NetworkId != Global.Player.NetworkId && x.HasBuff("kalistacoopstrikeally"));

                    if (soulBound == null || soulBound.CountAllyHeroesInRange(1500) == 0)
                    {
                        return;
                    }

                    if (soulBound.HealthPercent() <= MenuConfig.Misc["R"].Value ||
                        soulBound.ChampionName == "Blitzcrank" && GameObjects.EnemyHeroes.Any(x => x.HasBuff("rocketgrab2")))
                    {
                        SpellManager.R.Cast();
                    }
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }
예제 #3
0
파일: Program.cs 프로젝트: riwalry1/AIO
 private static void Drawing_OnEndScene(EventArgs args)
 {
     foreach (var enemy in ObjectManager.Get <AIHeroClient>().Where(ene => ene.LSIsValidTarget() && !ene.IsZombie))
     {
         if (MenuConfig.dind)
         {
             var EasyFuckingKill = Spells.Q.IsReady() && Dmg.EasyFuckingKillKappa(enemy)
                 ? new ColorBGRA(0, 255, 0, 120)
                 : new ColorBGRA(255, 255, 0, 120);
             HpBarDraw.unit = enemy;
             HpBarDraw.drawDmg(Dmg.EDmg(enemy) + Dmg.QDmg(enemy) + Dmg.WDmg(enemy), EasyFuckingKill);
         }
     }
 }
예제 #4
0
        public static void OnPresent()
        {
            if (Global.Player.IsDead)
            {
                return;
            }

            if (!Global.Player.HasBuff("TwitchHideInShadows") && MenuConfig.Drawings["Map"].Enabled && SpellManager.Q.Ready)
            {
                Geometry.DrawCircleOnMinimap(Global.Player.ServerPosition,
                                             new[]
                {
                    10,
                    11,
                    12,
                    13,
                    14
                }[Global.Player.SpellBook.GetSpell(SpellSlot.Q).Level - 1] *Global.Player.MoveSpeed,
                                             Color.DeepPink,
                                             5);
            }

            if (!MenuConfig.Drawings["Dmg"].Enabled)
            {
                return;
            }

            foreach (var target in GameObjects.EnemyHeroes.Where(x => !x.IsDead && x.IsFloatingHealthBarActive && x.IsVisible))
            {
                var damage = Dmg.EDmg(target);

                Global.DamageIndicator.Unit = target;
                Global.DamageIndicator.DrawDmg((float)damage, Color.FromArgb(153, 12, 177, 28));
                RenderEDamage(target, damage);
            }

            foreach (var mob in GameObjects.Jungle.Where(x => !x.IsDead && x.IsVisible && x.GetJungleType() != GameObjects.JungleType.Small))
            {
                RenderEDamage(mob, Dmg.EDmg(mob));
            }
        }
예제 #5
0
        public static void OnPresent()
        {
            if (Global.Player.IsDead || !MenuConfig.Drawings["Dmg"].Enabled)
            {
                return;
            }

            foreach (var target in GameObjects.EnemyHeroes.Where(x => !x.IsDead && x.IsFloatingHealthBarActive && x.IsVisible))
            {
                var damage = Dmg.EDmg(target);

                Global.DamageIndicator.Unit = target;
                Global.DamageIndicator.DrawDmg((float)damage, Color.FromArgb(153, 12, 177, 28));
                RenderEDamage(target, damage);
            }

            foreach (var mob in GameObjects.Jungle.Where(x => !x.IsDead && x.IsVisible && x.GetJungleType() != GameObjects.JungleType.Small))
            {
                RenderEDamage(mob, Dmg.EDmg(mob));
            }
        }
예제 #6
0
        public static void OnUpdate()
        {
            if (Global.Player.IsDead)
            {
                return;
            }

            if (MenuConfig.Killsteal["E"].Enabled && SpellManager.E.Ready)
            {
                var t = GameObjects.EnemyHeroes.FirstOrDefault(x => x.Health <= Dmg.EDmg(x) && x.IsValidTarget(SpellManager.E.Range));
                if (t != null)
                {
                    SpellManager.CastE(t);
                }
            }

            if (Global.Orbwalker.IsWindingUp)
            {
                return;
            }

            switch (Global.Orbwalker.Mode)
            {
            case OrbwalkingMode.Combo:
                Combo.OnUpdate();
                break;

            case OrbwalkingMode.Mixed:
                Harass.OnUpdate();
                break;

            case OrbwalkingMode.Laneclear:
                LaneClear.OnUpdate();
                JungleClear.OnUpdate();
                break;
            }
        }
예제 #7
0
        public static void OnUpdate()
        {
            if (MenuConfig.LaneClear["Check"].Enabled && Global.Player.CountEnemyHeroesInRange(1500) != 0 || Global.Player.ManaPercent() <= 30)
            {
                return;
            }

            if (SpellManager.E.Ready && GameObjects.EnemyMinions.Count(x => x.IsValidTarget(SpellManager.E.Range) && Dmg.EDmg(x) > x.Health) >= MenuConfig.LaneClear["E"].Value &&
                MenuConfig.LaneClear["E"].Enabled)
            {
                SpellManager.E.Cast();
            }

            if (MenuConfig.LaneClear["W"].Enabled && SpellManager.W.Ready)
            {
                var minion = GameObjects.EnemyMinions.FirstOrDefault(x => x.IsValidTarget(SpellManager.W.Range));
                if (minion != null)
                {
                    SpellManager.W.Cast(minion, true, MenuConfig.LaneClear["W"].Value);
                }
            }
        }
예제 #8
0
        public static void Test()
        {
            try
            {
                if (Global.Player.IsRecalling())
                {
                    return;
                }
                switch (Global.Orbwalker.Mode)
                {
                case OrbwalkingMode.Lasthit:
                case OrbwalkingMode.Laneclear:
                    if (SpellManager.E.Ready && GameObjects.EnemyMinions.Any(x => x.HasBuff(KalistaBuffName) && x.IsValidTarget(SpellManager.E.Range) && Dmg.EDmg(x) > x.Health) &&
                        MenuConfig.LaneClear["E"].Enabled)
                    {
                        SpellManager.E.Cast();
                    }
                    break;

                case OrbwalkingMode.Combo:
                    var m = GameObjects.EnemyMinions.FirstOrDefault(x => x.Distance(Global.Player) <= 2000);
                    if (m != null && Global.Orbwalker.CanAttack() && Global.Player.CountEnemyHeroesInRange(Global.Player.AttackRange) <= 0 && MenuConfig.Combo["Minions"].Enabled &&
                        m.IsValidAutoRange())
                    {
                        Global.Orbwalker.Attack(m);
                    }
                    break;

                case OrbwalkingMode.None:
                    if (SpellManager.W.Ready && MenuConfig.Misc["W"].Enabled && Global.Player.CountEnemyHeroesInRange(1800) <= 0)
                    {
                        SpellManager.CastW();
                    }
                    break;
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }