コード例 #1
0
        void OnDraw(EventArgs args)
        {
            if (getCheckBoxItem(draw, "Drawings.Disable") || Khazix.IsDead || Khazix.IsRecalling())
            {
                return;
            }
            if (getCheckBoxItem(debug, "Debugon"))
            {
                var isolatedtargs = GetIsolatedTargets();
                foreach (var x in isolatedtargs)
                {
                    var heroposwts = Drawing.WorldToScreen(x.Position);
                    Drawing.DrawText(heroposwts.X, heroposwts.Y, System.Drawing.Color.White, "Isolated");
                }
            }

            if (getCheckBoxItem(djump, "jumpdrawings") && Jumping)
            {
                var PlayerPosition = Drawing.WorldToScreen(Khazix.Position);
                var Jump1          = Drawing.WorldToScreen(Jumppoint1).To3D();
                var Jump2          = Drawing.WorldToScreen(Jumppoint2).To3D();
                Render.Circle.DrawCircle(Jump1, 250, System.Drawing.Color.White);
                Render.Circle.DrawCircle(Jump2, 250, System.Drawing.Color.White);
                Drawing.DrawLine(PlayerPosition.X, PlayerPosition.Y, Jump1.X, Jump1.Y, 10, System.Drawing.Color.DarkCyan);
                Drawing.DrawLine(Jump1.X, Jump1.Y, Jump2.X, Jump2.Y, 10, System.Drawing.Color.DarkCyan);
            }

            var drawq = getCheckBoxItem(draw, "DrawQ");
            var draww = getCheckBoxItem(draw, "DrawW");
            var drawe = getCheckBoxItem(draw, "DrawE");

            if (drawq)
            {
                Render.Circle.DrawCircle(Khazix.Position, Q.Range, System.Drawing.Color.White);
            }
            if (draww)
            {
                Render.Circle.DrawCircle(Khazix.Position, W.Range, System.Drawing.Color.Red);
            }

            if (drawe)
            {
                Render.Circle.DrawCircle(Khazix.Position, E.Range, System.Drawing.Color.Green);
            }
        }
コード例 #2
0
ファイル: Khazix.cs プロジェクト: qazji3/LeagueSharp-5
        void OnUpdate(EventArgs args)
        {
            if (Khazix.IsDead || Khazix.IsRecalling())
            {
                return;
            }

            EvolutionCheck();

            AutoEscape();

            if (Config.GetBool("Kson"))
            {
                KillSteal();
            }

            if (Config.GetKeyBind("Harass.Key"))
            {
                Harass();
            }

            switch (Config.Orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Mixed();
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                Waveclear();
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                LH();
                break;

            case Orbwalking.OrbwalkingMode.Assasination:
                jumpManager.Assasinate();
                break;
            }
        }
コード例 #3
0
        void OnUpdate(EventArgs args)
        {
            if (Khazix.IsDead || Khazix.IsRecalling())
            {
                return;
            }

            EvolutionCheck();

            if (getCheckBoxItem(ks, "Kson"))
            {
                KillSteal();
            }

            if (getKeyBindItem(harass, "Harass.Key"))
            {
                Harass();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                Mixed();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                Waveclear();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit))
            {
                LH();
            }
        }
コード例 #4
0
        void DoubleJump(EventArgs args)
        {
            if (!E.IsReady() || !EvolvedE || !getCheckBoxItem(djump, "djumpenabled") || Khazix.IsDead || Khazix.IsRecalling())
            {
                return;
            }

            var Targets = HeroList.Where(x => x.IsValidTarget() && !x.IsInvulnerable && !x.IsZombie);

            if (Q.IsReady() && E.IsReady())
            {
                var CheckQKillable = Targets.FirstOrDefault(x => Vector3.Distance(Khazix.ServerPosition, x.ServerPosition) < Q.Range - 25 && GetQDamage(x) > x.Health);

                if (CheckQKillable != null)
                {
                    Jumping    = true;
                    Jumppoint1 = GetJumpPoint(CheckQKillable);
                    E.Cast(Jumppoint1);
                    Q.Cast(CheckQKillable);
                    var oldpos = Khazix.ServerPosition;
                    LeagueSharp.Common.Utility.DelayAction.Add(getSliderItem(djump, "JEDelay") + Game.Ping, () =>
                    {
                        if (E.IsReady())
                        {
                            Jumppoint2 = GetJumpPoint(CheckQKillable, false);
                            E.Cast(Jumppoint2);
                        }
                        Jumping = false;
                    });
                }
            }
        }
コード例 #5
0
ファイル: Khazix.cs プロジェクト: qazji3/LeagueSharp-5
        void DoubleJump(EventArgs args)
        {
            if (!E.IsReady() || !EvolvedE || !Config.GetBool("djumpenabled") || Khazix.IsDead || Khazix.IsRecalling() || jumpManager.MidAssasination)
            {
                return;
            }

            var Targets = HeroList.Where(x => x.IsValidTarget() && !x.IsInvulnerable && !x.IsZombie);

            if (Q.IsReady() && E.IsReady())
            {
                var CheckQKillable = Targets.FirstOrDefault(x => Vector3.Distance(Khazix.ServerPosition, x.ServerPosition) < Q.Range - 25 && GetQDamage(x) > x.Health);

                if (CheckQKillable != null)
                {
                    Jumping    = true;
                    Jumppoint1 = GetDoubleJumpPoint(CheckQKillable);
                    E.Cast(Jumppoint1.To2D());
                    Q.Cast(CheckQKillable);
                    var oldpos = Khazix.ServerPosition;
                    Utility.DelayAction.Add(Config.GetSlider("JEDelay") + Game.Ping, () =>
                    {
                        if (E.IsReady())
                        {
                            Jumppoint2 = GetDoubleJumpPoint(CheckQKillable, false);
                            E.Cast(Jumppoint2.To2D());
                        }
                        Jumping = false;
                    });
                }
            }
        }