Exemplo n.º 1
0
        private static void OnDraw(EventArgs Args)
        {
            if (!Me.IsDead && !MenuGUI.IsShopOpen && !MenuGUI.IsChatOpen && !MenuGUI.IsScoreboardOpen)
            {
                if (Menu.Item("DrawQ", true).GetValue <bool>() && Q.Level > 0)
                {
                    Render.Circle.DrawCircle(Me.Position, Q.Range, System.Drawing.Color.FromArgb(253, 164, 17), 1);
                }

                if (Menu.Item("DrawW", true).GetValue <bool>() && W.Level > 0)
                {
                    Render.Circle.DrawCircle(Me.Position, W.Range, System.Drawing.Color.FromArgb(9, 253, 242), 1);
                }

                if (Menu.Item("DrawE", true).GetValue <bool>() && E.Level > 0)
                {
                    Render.Circle.DrawCircle(Me.Position, E.Range, System.Drawing.Color.FromArgb(143, 16, 146), 1);
                }

                if (Menu.Item("DrawDamage", true).GetValue <bool>())
                {
                    foreach (
                        var x in ObjectManager.Get <Obj_AI_Hero>().Where(e => e.IsValidTarget() && !e.IsDead && !e.IsZombie))
                    {
                        HpBarDraw.Unit = x;
                        HpBarDraw.DrawDmg(ComboDamage(x), new ColorBGRA(255, 204, 0, 170));
                    }
                }

                if (Menu.Item("DrawKillSteal", true).GetValue <bool>())
                {
                    Drawing.DrawText(Drawing.Width - 150, Drawing.Height - 500, System.Drawing.Color.Yellow, "Ult Kill Target: ");

                    var targets = new List <Obj_AI_Hero>();

                    foreach (var ult in EnemyTracker.enemyInfo)
                    {
                        if (ult.target.IsDead)
                        {
                            continue;
                        }

                        if (ult.target.IsZombie)
                        {
                            continue;
                        }

                        if (ult.target.HasBuff("KindredRNoDeathBuff"))
                        {
                            continue;
                        }

                        if (ult.target.HasBuff("UndyingRage") && ult.target.GetBuff("UndyingRage").EndTime - Game.Time > 0.3)
                        {
                            continue;
                        }

                        if (ult.target.HasBuff("JudicatorIntervention"))
                        {
                            continue;
                        }

                        if (ult.target.HasBuff("ChronoShift") && ult.target.GetBuff("ChronoShift").EndTime - Game.Time > 0.3)
                        {
                            continue;
                        }

                        if (ult.target.HasBuff("FioraW"))
                        {
                            continue;
                        }

                        if (!Menu.Item("KillStealR" + ult.target.ChampionName.ToLower(), true).GetValue <bool>())
                        {
                            continue;
                        }

                        if (ult.target.IsVisible &&
                            R.GetDamage(ult.target) >
                            ult.target.Health + ult.target.MagicalShield + ult.target.HPRegenRate * 2)
                        {
                            targets.Add(ult.target);
                        }

                        if (!ult.target.IsVisible && Utils.TickCount > ult.LastSeen + 5000 &&
                            R.GetDamage(ult.target) > EnemyTracker.GetTargetHealth(ult, R.Delay))
                        {
                            targets.Add(ult.target);
                        }

                        if (!ult.target.IsVisible && Utils.TickCount < ult.LastSeen + 5000 && targets.Contains(ult.target))
                        {
                            targets.Remove(ult.target);
                        }
                    }

                    if (targets.Count > 0)
                    {
                        for (var i = 0; i <= targets.Count; i++)
                        {
                            Drawing.DrawText(Drawing.Width - 150, Drawing.Height - 470 + i * 30, System.Drawing.Color.Red, "   " + targets.ElementAt(i).ChampionName);
                        }
                    }
                }
            }
        }
Exemplo n.º 2
0
        private static void KillStealRLogic()
        {
            if (Menu.Item("KillStealR", true).GetValue <bool>() && R.IsReady())
            {
                var targets = new List <Obj_AI_Hero>();

                foreach (var ult in EnemyTracker.enemyInfo)
                {
                    if (ult.target.IsDead)
                    {
                        continue;
                    }

                    if (ult.target.IsZombie)
                    {
                        continue;
                    }

                    if (ult.target.HasBuff("KindredRNoDeathBuff"))
                    {
                        continue;
                    }

                    if (ult.target.HasBuff("UndyingRage") && ult.target.GetBuff("UndyingRage").EndTime - Game.Time > 0.3)
                    {
                        continue;
                    }

                    if (ult.target.HasBuff("JudicatorIntervention"))
                    {
                        continue;
                    }

                    if (ult.target.HasBuff("ChronoShift") && ult.target.GetBuff("ChronoShift").EndTime - Game.Time > 0.3)
                    {
                        continue;
                    }

                    if (ult.target.HasBuff("FioraW"))
                    {
                        continue;
                    }

                    if (!Menu.Item("KillStealR" + ult.target.ChampionName.ToLower(), true).GetValue <bool>())
                    {
                        continue;
                    }

                    if (ult.target.IsVisible &&
                        R.GetDamage(ult.target) >
                        ult.target.Health + ult.target.MagicalShield + ult.target.HPRegenRate * 2)
                    {
                        targets.Add(ult.target);
                    }

                    if (!ult.target.IsVisible && Utils.TickCount > ult.LastSeen + 5000 &&
                        R.GetDamage(ult.target) > EnemyTracker.GetTargetHealth(ult, R.Delay))
                    {
                        targets.Add(ult.target);
                    }

                    if (!ult.target.IsVisible && Utils.TickCount < ult.LastSeen + 5000 && targets.Contains(ult.target))
                    {
                        targets.Remove(ult.target);
                    }
                }

                if (targets.Count >= Menu.Item("KillStealRCount", true).GetValue <Slider>().Value)
                {
                    if (!Me.IsZombie && Me.CountEnemiesInRange(800) > 0)
                    {
                        return;
                    }

                    R.Cast();
                }
            }
        }