示例#1
0
        private static void Game_OnTick(EventArgs args)
        {
            //Core.DelayAction(() => Game_OnTick(args), Menu["mGobalDelay"].Cast<Slider>().CurrentValue);

            var _Target = TargetSelector.GetTarget(1500, DamageType.Magical);

            if (DrawMenu["dDrawComboIndicator"].Cast <CheckBox>().CurrentValue)
            {
                Indicator.Update("Combo",
                                 new SpellData((int)Damage.GetComboDamage(_Target), DamageType.Magical, Color.Lime));
            }
            OrbManager.ItemManager();
            OrbManager.KillSteal();
            OrbManager.AutoIgnite();

            Mana.ManaManager();

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                OrbManager.Combo();
            }
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                OrbManager.Harass();
            }
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                OrbManager.LaneClear();
            }
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit))
            {
                OrbManager.LastHit();
            }
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee))
            {
                OrbManager.Flee();
            }
        }
示例#2
0
        public static void Drawing_OnDraw(EventArgs args)
        {
            var _ComboTarget = TargetSelector.GetTarget(1500, DamageType.Magical);

            if (_ComboTarget != null && _ComboTarget.IsValid)
            {
                if (_ComboTarget.Health <= Damage.GetComboDamage(_ComboTarget))
                {
                    new Circle()
                    {
                        BorderWidth = 1, Color = Color.Lime, Radius = _ComboTarget.BoundingRadius
                    }.Draw(
                        _ComboTarget.Position);
                }
                else
                {
                    new Circle()
                    {
                        BorderWidth = 1, Color = Color.Red, Radius = _ComboTarget.BoundingRadius
                    }.Draw(
                        _ComboTarget.Position);
                }
            }
            if (Orbwalker.ValidAzirSoldiers.Count > 0)
            {
                if (Program.DrawMenu["dDrawQ"].Cast <CheckBox>().CurrentValue)
                {
                    if (Program._Q.IsReady())
                    {
                        new Circle()
                        {
                            BorderWidth = 1, Color = Color.Lime, Radius = Program._Q.Range
                        }.Draw(
                            Program._Player.Position);
                    }
                    else
                    {
                        new Circle()
                        {
                            BorderWidth = 1, Color = Color.Red, Radius = Program._Q.Range
                        }.Draw(
                            Program._Player.Position);
                    }
                }
                foreach (var soldier in Orbwalker.ValidAzirSoldiers)
                {
                    new Circle()
                    {
                        BorderWidth = 1, Color = Color.FromArgb(150, Color.Yellow), Radius = Orbwalker.AzirSoldierAutoAttackRange
                    }.Draw(
                        soldier.Position);
                }
            }
            if (Program.DrawMenu["dDrawW"].Cast <CheckBox>().CurrentValue)
            {
                if (Program._W.IsReady())
                {
                    new Circle()
                    {
                        BorderWidth = 1, Color = Color.Lime, Radius = Program._W.Range
                    }.Draw(
                        Program._Player.Position);
                }
                else
                {
                    new Circle()
                    {
                        BorderWidth = 1, Color = Color.Red, Radius = Program._W.Range
                    }.Draw(
                        Program._Player.Position);
                }
            }

            if (Orbwalker.ValidAzirSoldiers.Count > 0)
            {
                if (Program.DrawMenu["dDrawE"].Cast <CheckBox>().CurrentValue)
                {
                    if (Program._Q.IsReady())
                    {
                        new Circle()
                        {
                            BorderWidth = 1, Color = Color.Lime, Radius = Program._E.Range
                        }.Draw(
                            Program._Player.Position);
                    }
                    else
                    {
                        new Circle()
                        {
                            BorderWidth = 1, Color = Color.Red, Radius = Program._E.Range
                        }.Draw(
                            Program._Player.Position);
                    }
                }
            }
            if (Program.DrawMenu["dDrawR"].Cast <CheckBox>().CurrentValue)
            {
                if (Program._Q.IsReady())
                {
                    new Circle()
                    {
                        BorderWidth = 1, Color = Color.Lime, Radius = Program._R.Range + 25
                    }.Draw(
                        Program._Player.Position);
                }
                else
                {
                    new Circle()
                    {
                        BorderWidth = 1, Color = Color.Red, Radius = Program._R.Range + 25
                    }.Draw(
                        Program._Player.Position);
                }
            }
            if (_ComboTarget != null && _ComboTarget.IsValid)
            {
                if (Program.DrawMenu["dDrawLines"].Cast <CheckBox>().CurrentValue)
                {
                    Drawing.DrawLine(ObjectManager.Player.Position.WorldToScreen(),
                                     _ComboTarget.Position.WorldToScreen(), 1,
                                     Color.White);

                    foreach (var soldier in Orbwalker.ValidAzirSoldiers)
                    {
                        Drawing.DrawLine(soldier.Position.WorldToScreen(),
                                         _ComboTarget.Position.WorldToScreen(), 1,
                                         Color.FromArgb(150, System.Drawing.Color.Yellow));
                    }
                }
            }
            if (Program.DrawMenu["dDrawWRange"].Cast <CheckBox>().CurrentValue)
            {
                foreach (var soldier in Orbwalker.ValidAzirSoldiers)
                {
                    if (soldier != null && soldier.IsValid)
                    {
                        new Circle()
                        {
                            BorderWidth = 1, Color = Color.FromArgb(150, System.Drawing.Color.Yellow), Radius = 825
                        }.Draw(soldier.Position);
                    }
                }
            }
            if (Program.DrawMenu["dDrawWCommandRange"].Cast <CheckBox>().CurrentValue)
            {
                foreach (var soldier in Orbwalker.ValidAzirSoldiers)
                {
                    if (soldier != null && soldier.IsValid)
                    {
                        new Circle()
                        {
                            BorderWidth = 1, Color = Color.FromArgb(150, System.Drawing.Color.Yellow), Radius = 800
                        }.Draw(soldier.Position);
                    }
                }
            }
            if (Program.DrawMenu["dDrawText"].Cast <CheckBox>().CurrentValue)
            {
                if (Program._Q.IsReady() && Program._W.IsReady() && Program._E.IsReady() && Program._R.IsReady())
                {
                    Drawing.DrawText(Drawing.WorldToScreen(Player.Instance.Position) - new Vector2(0, 0), Color.White, "Full Combo Is Ready", 2);
                }
                else
                {
                    Drawing.DrawText(Drawing.WorldToScreen(Player.Instance.Position) - new Vector2(0, 0), Color.White, "Full Combo Is NOT Ready", 2);
                }
                if (Program.DrawMenu["dDrawManaUsage"].Cast <CheckBox>().CurrentValue)
                {
                    Drawing.DrawText(Drawing.WorldToScreen(Player.Instance.Position) - new Vector2(0, 10), Color.LightBlue, Mana.GetComboMana().ToString(), 2);
                }
            }
        }