示例#1
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (DravenMenu.CheckBox(DravenMenu.Draw, "Axes"))
            {
                var Axe = AxesManager.Axes.Where(x => x.Axe.IsValid).FirstOrDefault();

                if (Axe != null)
                {
                    Circle.Draw(Color.Lime, 120, Axe.Axe.Position);
                }
            }

            if (Draven.E.IsReady() && DravenMenu.CheckBox(DravenMenu.Draw, "E"))
            {
                Circle.Draw(Color.DarkBlue, Draven.E.Range, Player.Instance.Position);
            }

            if (DravenMenu.CheckBox(DravenMenu.Draw, "Catch"))
            {
                if (DravenMenu.ComboBox(DravenMenu.Axes, "Mode") == 0)
                {
                    Circle.Draw(Color.LimeGreen, DravenMenu.Slider(DravenMenu.Axes, "Range"), Game.CursorPos);
                }
                else if (DravenMenu.ComboBox(DravenMenu.Axes, "Mode") == 1)
                {
                    Circle.Draw(Color.LimeGreen, DravenMenu.Slider(DravenMenu.Axes, "Range"), Player.Instance.Position);
                }
            }
        }
示例#2
0
        public static void Init()
        {
            switch (DravenMenu.ComboBox(DravenMenu.Axes, "Mode"))
            {
            case 0:

                var Axe1 = Axes.Where(x => x.Axe.Distance(Game.CursorPos) <= DravenMenu.Slider(DravenMenu.Axes, "Range")).OrderBy(x => x.Axe.Position.Distance(Player.Instance.ServerPosition)).ThenBy(x => x.Axe.Distance(Game.CursorPos)).ThenBy(x => x.Expire).FirstOrDefault();

                if (Axe1 != null && Axe1.Axe.Position.Distance(Player.Instance.ServerPosition) > 80)
                {
                    if (DravenMenu.ComboBox(DravenMenu.Axes, "Pick") == 0)
                    {
                        if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                        {
                            Core.DelayAction(() => Orbwalker.MoveTo(Axe1.Axe.Position), DravenMenu.Slider(DravenMenu.Axes, "Delay"));
                        }
                    }
                    else if (DravenMenu.ComboBox(DravenMenu.Axes, "Pick") == 1)
                    {
                        Core.DelayAction(() => Orbwalker.MoveTo(Axe1.Axe.Position), DravenMenu.Slider(DravenMenu.Axes, "Delay"));
                    }
                }

                break;

            case 1:

                var Axe2 = Axes.Where(x => x.Axe.Distance(Player.Instance.ServerPosition) <= DravenMenu.Slider(DravenMenu.Axes, "Range")).OrderBy(x => x.Axe.Position.Distance(Player.Instance.ServerPosition)).ThenBy(x => x.Axe.Distance(Game.CursorPos)).ThenBy(x => x.Expire).FirstOrDefault();

                if (Axe2 != null && Axe2.Axe.Position.Distance(Player.Instance.ServerPosition) > 80)
                {
                    if (DravenMenu.ComboBox(DravenMenu.Axes, "Pick") == 0)
                    {
                        if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                        {
                            Core.DelayAction(() => Orbwalker.MoveTo(Axe2.Axe.Position), DravenMenu.Slider(DravenMenu.Axes, "Delay"));
                        }
                    }
                    else if (DravenMenu.ComboBox(DravenMenu.Axes, "Pick") == 1)
                    {
                        Core.DelayAction(() => Orbwalker.MoveTo(Axe2.Axe.Position), DravenMenu.Slider(DravenMenu.Axes, "Delay"));
                    }
                }

                break;
            }
        }