Esempio n. 1
0
        private static void Draw()
        {
            if (!getCheckBoxItem(InitMenu.wardjumpMenu, "escapeMode") ||
                !getCheckBoxItem(InitMenu.drawMenu, "ElLeeSin.Draw.Escape"))
            {
                return;
            }

            if (active && Program.spells[Program.Spells.Q].IsReady() &&
                getCheckBoxItem(InitMenu.drawMenu, "ElLeeSin.Draw.Q.Width"))
            {
                rect.Draw(Color.White);
            }
            foreach (var pos in JunglePos)
            {
                if (rect != null)
                {
                    if (pos.LSDistance(Player.Position) < 2000)
                    {
                        Render.Circle.DrawCircle(
                            pos,
                            100,
                            rect.IsOutside(pos.LSTo2D()) ? Color.White : Color.DeepSkyBlue);
                    }
                }
                else
                {
                    if (pos.LSDistance(Player.Position) < 2000)
                    {
                        Render.Circle.DrawCircle(pos, 100, Color.White);
                    }
                }
            }
        }
Esempio n. 2
0
        private static void Draw()
        {
            if (!InitMenu.Menu.Item("escapeMode").GetValue <bool>() || !InitMenu.Menu.Item("ElLeeSin.Draw.Escape").GetValue <bool>())
            {
                return;
            }

            if (active && Program.spells[Program.Spells.Q].IsReady() && InitMenu.Menu.Item("ElLeeSin.Draw.Q.Width").GetValue <bool>())
            {
                rect.Draw(Color.White);
            }
            foreach (var pos in JunglePos)
            {
                if (rect != null)
                {
                    if (pos.Distance(Player.Position) < 2000)
                    {
                        Render.Circle.DrawCircle(
                            pos,
                            100,
                            (rect.IsOutside(pos.To2D()) ? Color.White : Color.DeepSkyBlue));
                    }
                }
                else
                {
                    if (pos.Distance(Player.Position) < 2000)
                    {
                        Render.Circle.DrawCircle(pos, 100, Color.White);
                    }
                }
            }
        }
Esempio n. 3
0
        private static void Draw()
        {
            if (!Misc.GetMenuItem("escapeMode") ||
                !Misc.GetMenuItem("ElLeeSin.Draw.Escape"))
            {
                return;
            }

            if (active && LeeSin.spells[LeeSin.Spells.Q].IsReady() &&
                Misc.GetMenuItem("ElLeeSin.Draw.Q.Width"))
            {
                rect.Draw(Color.White);
            }
            foreach (var pos in JunglePos)
            {
                if (rect != null)
                {
                    if (pos.Distance(ObjectManager.Player.Position) < 2000)
                    {
                        Render.Circle.DrawCircle(pos, 100, rect.IsOutside(pos.To2D()) ? Color.White : Color.DeepSkyBlue);
                    }
                }
                else
                {
                    if (pos.Distance(ObjectManager.Player.Position) < 2000)
                    {
                        Render.Circle.DrawCircle(pos, 100, Color.White);
                    }
                }
            }
        }
Esempio n. 4
0
        private static void Drawing_RKickWaveForKillableEnemy(EventArgs args)
        {
            if (Config.Item("Insec").GetValue<KeyBind>().Active || Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Combo)
            {
                return;
            }

            if (!MenuCombo.Item("Combo.R.UseRKickWaveForKill").GetValue<bool>() || !R.IsReady())
            {
                return;
            }

            Obj_AI_Hero t =
                HeroManager.Enemies.Find(
                    e =>
                        e.IsValidTarget(Q.Range + W.Range) && !e.IsDead && !e.IsZombie &&
                        e.Distance(Game.CursorPos) < e.Distance(ObjectManager.Player.Position) &&
                        /*if I'm fallowing the enemy*/
                        !e.IsValidTarget(Orbwalking.GetRealAutoAttackRange(null) + 65) && e.Health < e.MaxHealth*0.14);
                    //.OrderByDescending(o => o.MaxHealth)
                    //.FirstOrDefault();
            if (t == null)
            {
                return;
            }

            foreach (var enemy in HeroManager.Enemies.Where(e => e.Distance(t.Position) < 800 && e.NetworkId != t.NetworkId && ObjectManager.Player.Distance(e) < ObjectManager.Player.Distance(t)))
            {
                toPolygon = new Geometry.Rectangle(t.Position.To2D(), t.Position.To2D().Extend(ObjectManager.Player.Position.To2D(), 800), 100).ToPolygon();
                toPolygon.Draw(Color.Blue, 3);

                if (toPolygon.IsInside(enemy.Position.To2D()))
                {
                        //Render.Circle.DrawCircle(enemy.Position, 150f, Color.Black);
                        R.CastOnUnit(enemy);
                }
            }

        }
        static void Drawing_OnDraw(EventArgs args)
        {
            var line1 = MainMenu.Item("LineOne").GetValue <Circle>();
            var line2 = MainMenu.Item("LineTwo").GetValue <Circle>();
            var line3 = MainMenu.Item("LineThree").GetValue <Circle>();
            var line4 = MainMenu.Item("LineFour").GetValue <Circle>();
            var line5 = MainMenu.Item("LineFive").GetValue <Circle>();

            try
            {
                if (line1.Active)
                {
                    if (MainMenu.Item("LineOneClosed").GetValue <bool>())
                    {
                        LineOne.Draw(line1.Color);
                    }
                    else
                    {
                        DrawOpenedPolygone(LineOne, line1.Color);
                    }
                }
            }
            catch
            {
                // ignored
            }

            try
            {
                if (line2.Active)
                {
                    if (MainMenu.Item("LineTwoClosed").GetValue <bool>())
                    {
                        LineTwo.Draw(line2.Color);
                    }
                    else
                    {
                        DrawOpenedPolygone(LineTwo, line2.Color);
                    }
                }
            }
            catch
            {
                // ignored
            }

            try
            {
                if (line3.Active)
                {
                    if (MainMenu.Item("LineThreeClosed").GetValue <bool>())
                    {
                        LineThree.Draw(line3.Color);
                    }
                    else
                    {
                        DrawOpenedPolygone(LineThree, line3.Color);
                    }
                }
            }
            catch
            {
                // ignored
            }

            try
            {
                if (line4.Active)
                {
                    if (MainMenu.Item("LineFourClosed").GetValue <bool>())
                    {
                        LineFour.Draw(line4.Color);
                    }
                    else
                    {
                        DrawOpenedPolygone(LineFour, line4.Color);
                    }
                }
            }
            catch
            {
                // ignored
            }

            try
            {
                if (line5.Active)
                {
                    if (MainMenu.Item("LineFiveClosed").GetValue <bool>())
                    {
                        LineFive.Draw(line5.Color);
                    }
                    else
                    {
                        DrawOpenedPolygone(LineFive, line5.Color);
                    }
                }
            }
            catch
            {
                // ignored
            }
        }