Exemplo n.º 1
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (Player.IsDead)
            {
                return;
            }
            var heropos    = Drawing.WorldToScreen(ObjectManager.Player.Position);
            var end        = Player.ServerPosition.LSExtend(Game.CursorPos, Spells._q.Range);
            var IsWallDash = FleeLOGIC.IsWallDash(end, Spells._q.Range);

            var Eend      = Player.ServerPosition.LSExtend(Game.CursorPos, Spells._e.Range);
            var WallE     = FleeLOGIC.GetFirstWallPoint(Player.ServerPosition, Eend);
            var WallPoint = FleeLOGIC.GetFirstWallPoint(Player.ServerPosition, end);

            if (IsWallDash && MenuConfig.FleeSpot)
            {
                if (WallPoint.LSDistance(Player.ServerPosition) <= 600)
                {
                    Render.Circle.DrawCircle(WallPoint, 60, System.Drawing.Color.White);
                    Render.Circle.DrawCircle(end, 60, System.Drawing.Color.Green);
                }
            }
            if (_qstack != 1 && MenuConfig.DrawTimer1)
            {
                Timer.text = "Q Expiry =>  " + ((double)(Logic._lastQ - Utils.GameTimeTickCount + 3800) / 1000).ToString("0.0") +
                             "s";
                Timer.OnEndScene();
            }

            if (Player.HasBuff("RivenFengShuiEngine") && MenuConfig.DrawTimer2)
            {
                Timer2.text = "R Expiry =>  " + (((double)Logic._lastR - Utils.GameTimeTickCount + 15000) / 1000).ToString("0.0") + "s";
                Timer2.OnEndScene();
            }

            if (MenuConfig.DrawCb)
            {
                Render.Circle.DrawCircle(Player.Position, 250 + Player.AttackRange + 70,
                                         Spells._e.IsReady() ? System.Drawing.Color.FromArgb(120, 0, 170, 255) : System.Drawing.Color.IndianRed);
            }
            if (MenuConfig.DrawBt && Flash != SpellSlot.Unknown)
            {
                Render.Circle.DrawCircle(Player.Position, 750,
                                         Spells._r.IsReady() && Flash.IsReady()
                        ? System.Drawing.Color.FromArgb(120, 0, 170, 255)
                        : System.Drawing.Color.IndianRed);
            }

            if (MenuConfig.DrawFh)
            {
                Render.Circle.DrawCircle(Player.Position, 450 + Player.AttackRange + 70,
                                         Spells._e.IsReady() && Spells._q.IsReady()
                        ? System.Drawing.Color.FromArgb(120, 0, 170, 255)
                        : System.Drawing.Color.IndianRed);
            }
            if (MenuConfig.DrawHs)
            {
                Render.Circle.DrawCircle(Player.Position, 400,
                                         Spells._q.IsReady() && Spells._w.IsReady()
                        ? System.Drawing.Color.FromArgb(120, 0, 170, 255)
                        : System.Drawing.Color.IndianRed);
            }

            if (MenuConfig.DrawAlwaysR)
            {
                Drawing.DrawText(heropos.X - 15, heropos.Y + 20, System.Drawing.Color.DodgerBlue, "Force R  (     )");
                Drawing.DrawText(heropos.X + 53, heropos.Y + 20, MenuConfig.AlwaysR ? System.Drawing.Color.LimeGreen : System.Drawing.Color.Red, MenuConfig.AlwaysR ? "On" : "Off");
            }

            if (MenuConfig.ForceFlash)
            {
                Drawing.DrawText(heropos.X - 15, heropos.Y + 40, System.Drawing.Color.DodgerBlue, "Force Flash  (     )");
                Drawing.DrawText(heropos.X + 76, heropos.Y + 40, MenuConfig.AlwaysF ? System.Drawing.Color.LimeGreen : System.Drawing.Color.Red, MenuConfig.AlwaysF ? "On" : "Off");
            }

            Drawing.DrawText(heropos.X - 15, heropos.Y + 60, System.Drawing.Color.DodgerBlue, "Force Burst  (     )");
            Drawing.DrawText(heropos.X + 75, heropos.Y + 60, MenuConfig.burst ? System.Drawing.Color.LimeGreen : System.Drawing.Color.Red, MenuConfig.burst ? "On" : "Off");

            Drawing.DrawText(heropos.X - 15, heropos.Y + 80, System.Drawing.Color.DodgerBlue, "Force Fast Harass  (     )");
            Drawing.DrawText(heropos.X + 119, heropos.Y + 80, MenuConfig.fastHar ? System.Drawing.Color.LimeGreen : System.Drawing.Color.Red, MenuConfig.fastHar ? "On" : "Off");
        }
Exemplo n.º 2
0
        public static void FleeLogic()
        {
            if (!MenuConfig.WallFlee)
            {
                return;
            }

            var end        = Player.ServerPosition.LSExtend(Game.CursorPos, Spells._q.Range);
            var IsWallDash = FleeLOGIC.IsWallDash(end, Spells._q.Range);

            var Eend      = Player.ServerPosition.LSExtend(Game.CursorPos, Spells._e.Range);
            var WallE     = FleeLOGIC.GetFirstWallPoint(Player.ServerPosition, Eend);
            var WallPoint = FleeLOGIC.GetFirstWallPoint(Player.ServerPosition, end);

            if (Spells._q.IsReady() && _qstack < 3)
            {
                Spells._q.Cast(Game.CursorPos);
            }


            if (IsWallDash && _qstack == 3 && WallPoint.LSDistance(Player.ServerPosition) <= 800)
            {
                EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, WallPoint);
                if (WallPoint.LSDistance(Player.ServerPosition) <= 600)
                {
                    EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, WallPoint);
                    if (WallPoint.LSDistance(Player.ServerPosition) < 55)
                    {
                        if (Spells._e.IsReady())
                        {
                            Spells._e.Cast(WallE);
                        }
                        if (_qstack == 3)
                        {
                            EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, WallPoint);
                            Spells._q.Cast(WallPoint);
                        }
                    }
                }
            }

            if (!IsWallDash && !MenuConfig.WallFlee)
            {
                var enemy =
                    HeroManager.Enemies.Where(
                        hero =>
                        hero.LSIsValidTarget(Program.Player.HasBuff("RivenFengShuiEngine")
                         ? 70 + 195 + Program.Player.BoundingRadius
                         : 70 + 120 + Program.Player.BoundingRadius) && Spells._w.IsReady());
                var x           = Program.Player.Position.LSExtend(Game.CursorPos, 300);
                var objAiHeroes = enemy as AIHeroClient[] ?? enemy.ToArray();
                if (Spells._q.IsReady() && !Program.Player.LSIsDashing())
                {
                    Spells._q.Cast(Game.CursorPos);
                }
                if (Spells._w.IsReady() && objAiHeroes.Any())
                {
                    foreach (var target in objAiHeroes)
                    {
                        if (Logic.InWRange(target))
                        {
                            Spells._w.Cast();
                        }
                    }
                }
                if (Spells._e.IsReady() && !Player.LSIsDashing())
                {
                    Spells._e.Cast(x);
                }
            }
        }