예제 #1
0
파일: Events.cs 프로젝트: JelloBeans/SAC
        /// <summary>
        /// Invokes before attack event
        /// </summary>
        /// <param name="instance">Orbwalker instance</param>
        /// <param name="target">Target</param>
        /// <returns></returns>
        public static BeforeAttackArgs FireBeforeAttack(Orbwalker instance, AttackableUnit target)
        {
            BeforeAttackArgs args = new BeforeAttackArgs();
            args.Instance = instance;
            args.Target = target;

            if (BeforeAttack != null)
                BeforeAttack(args);

            return args;
        }
예제 #2
0
        public ConfigMenu(Orbwalker instance, Menu menuToAttach)
        {
            m_orbInstance = instance;
            m_Menu = new Menu("Orbwalking", "Orbwalking.Root");
            m_Menu.AddItem(new MenuItem("Orbwalking.Root.iExtraWindup", "Extra Windup Time").SetValue(new Slider(40, 0, 100)));
            m_Menu.AddItem(new MenuItem("Orbwalking.Root.iMovementDelay", "Movement Delay").SetValue(new Slider(30, 0, 1000)));
            m_Menu.AddItem(new MenuItem("Orbwalking.Root.iHoldPosition", "Hold Area Radius").SetValue(new Slider(30, 30, 250)));
            m_Menu.AddItem(new MenuItem("Orbwalking.Root.blLastHit", "Last Hit").SetValue(new KeyBind('X', KeyBindType.Press)));
            m_Menu.AddItem(new MenuItem("Orbwalking.Root.blHarass", "Harass").SetValue(new KeyBind('C', KeyBindType.Press)));
            m_Menu.AddItem(new MenuItem("Orbwalking.Root.blLaneClear", "Lane Clear").SetValue(new KeyBind('V', KeyBindType.Press)));
            m_Menu.AddItem(new MenuItem("Orbwalking.Root.blCombo", "Combo").SetValue(new KeyBind(32, KeyBindType.Press)));

            Menu misc = new Menu("Misc", "Orbwalking.Misc");
            misc.AddItem(new MenuItem("Orbwalking.Misc.blAttackStructures", "Attack Structures").SetValue(true));
            misc.AddItem(new MenuItem("Orbwalking.Misc.blSupportMode", "Support Mode").SetValue(false));
            misc.AddItem(new MenuItem("Orbwalking.Misc.blDontAttackChampWhileLaneClear", "Dont attack champions while Lane Clear").SetValue(false));
            misc.AddItem(new MenuItem("Orbwalking.Misc.blDontMoveMouseOver", "Mouse over hero to stop move").SetValue(false));
            misc.AddItem(new MenuItem("Orbwalking.Misc.blMagnetMelee", "Magnet Target (Only Melee)").SetValue(false)).ValueChanged +=
                (s, ar) =>
                {
                    var it = misc.Item("Orbwalking.Misc.iStickRange");
                    if (it != null)
                        it.Show(ar.GetNewValue<bool>());
                };
            misc.AddItem(new MenuItem("Orbwalking.Misc.iStickRange", "Stick Range").SetValue(new Slider(300, 0, 500))).Show(misc.Item("Orbwalking.Misc.blMagnetMelee").GetValue<bool>());
            misc.AddItem(new MenuItem("Orbwalking.Misc.blDontMoveInRange", "Dont move if enemy in AA range").SetValue(false));
            misc.AddItem(new MenuItem("Orbwalking.Misc.blLegitMode", "Legit Mode").SetValue(false)).ValueChanged +=
                (s, ar) =>
                {
                    var it = misc.Item("Orbwalking.Misc.iLegitPercent");
                    if (it != null)
                        it.Show(ar.GetNewValue<bool>());
                };
            misc.AddItem(new MenuItem("Orbwalking.Misc.iLegitPercent", "Make Me Legit %").SetValue(new Slider(20, 0, 100))).Show(misc.Item("Orbwalking.Misc.blLegitMode").GetValue<bool>());

            Menu drawings = new Menu("Drawings", "Orbwalking.Drawings");
            drawings.AddItem(new MenuItem("Orbwalking.Drawings.SelfAACircle", "Self AA Circle").SetValue(new Circle(true, Color.FromArgb(155, 255, 255, 0))));
            drawings.AddItem(new MenuItem("Orbwalking.Drawings.EnemyAACircle", "Enemy AA Circle").SetValue(new Circle(false, Color.FromArgb(155, 255, 255, 0))));
            drawings.AddItem(new MenuItem("Orbwalking.Drawings.LastHitMinion", "Last Hitable Minion").SetValue(new Circle(true, Color.FromArgb(155, 255, 255, 0))));
            drawings.AddItem(new MenuItem("Orbwalking.Drawings.HoldZone", "Hold Zone").SetValue(new Circle(false, Color.FromArgb(155, 255, 255, 0))));
            drawings.AddItem(new MenuItem("Orbwalking.Drawings.iLineWidth", "Line Width").SetValue(new Slider(2, 1, 6)));

            m_Menu.AddSubMenu(drawings);
            m_Menu.AddSubMenu(misc);
            menuToAttach.AddSubMenu(m_Menu);

            CustomEvents.Game.OnGameLoad += Game_OnGameLoad;
        }
예제 #3
0
파일: Events.cs 프로젝트: JelloBeans/SAC
        /// <summary>
        /// Invokes after attack event
        /// </summary>
        /// <param name="instance">Orbwalker instance</param>
        /// <param name="target">Target</param>
        /// <returns></returns>
        public static AfterAttackArgs FireAfterAttack(Orbwalker instance, AttackableUnit target)
        {
            if (instance != null)
                instance.ForcedTarget = null;

            AfterAttackArgs args = new AfterAttackArgs();
            args.Instance = instance;
            args.Target = target;

            if (AfterAttack != null)
                AfterAttack(args);

            if (args.ResetAATimer)
                instance.ResetAATimer();

            return args;
        }
예제 #4
0
        public ConfigMenu(Orbwalker instance, Menu menuToAttach)
        {
            m_orbInstance = instance;
            m_Menu = new Menu("Orbwalking", "Orbwalking.Root");
            m_Menu.AddItem(new MenuItem("Orbwalking.Root.iExtraWindup", "Extra Windup Time").SetValue(new Slider(0, 0, 100)));
            m_Menu.AddItem(new MenuItem("Orbwalking.Root.iMovementDelay", "Movement Delay").SetValue(new Slider(0, 0, 1000)));
            m_Menu.AddItem(new MenuItem("Orbwalking.Root.iHoldPosition", "Hold Area Radius").SetValue(new Slider(0, 0, 250)));
            m_Menu.AddItem(new MenuItem("Orbwalking.Root.blLastHit", "Last Hit").SetValue(new KeyBind('X', KeyBindType.Press)));
            m_Menu.AddItem(new MenuItem("Orbwalking.Root.blHarass", "Harass").SetValue(new KeyBind('C', KeyBindType.Press)));
            m_Menu.AddItem(new MenuItem("Orbwalking.Root.blLaneClear", "Lane Clear").SetValue(new KeyBind('V', KeyBindType.Press)));
            m_Menu.AddItem(new MenuItem("Orbwalking.Root.blCombo", "Combo").SetValue(new KeyBind(32, KeyBindType.Press)));

            Menu misc = new Menu("Misc", "Orbwalking.Misc");
            misc.AddItem(new MenuItem("Orbwalking.Misc.blAttackStructures", "Attack Structures").SetValue(true));
            misc.AddItem(new MenuItem("Orbwalking.Misc.blFocusNormalWhileTurret", "Focus Last hit minion that not targetted from turret while under turret").SetTooltip("if this option enabled, orbwalker first try to last hit minions which they are not attacked from turret and targetted by ally minions").SetValue(true));
            misc.AddItem(new MenuItem("Orbwalking.Misc.blSupportMode", "Support Mode").SetTooltip("if this option enabled, orbwalker wont lasthit minions").SetValue(false));
            misc.AddItem(new MenuItem("Orbwalking.Misc.blDontAttackChampWhileLaneClear", "Dont attack champions while Lane Clear").SetTooltip("if this option enabled, orbwalker wont attack champions while pressing laneclear key").SetValue(false));
            misc.AddItem(new MenuItem("Orbwalking.Misc.blDisableAA", "Disable AutoAttack").SetTooltip("if this option enabled, orbwalker wont do auto attack enemy champions").SetValue(false));
            misc.AddItem(new MenuItem("Orbwalking.Misc.blDontMoveMouseOver", "Mouse over hero to stop move").SetTooltip("if this option enabled, your hero wont move while your cursor on it").SetValue(false));
            misc.AddItem(new MenuItem("Orbwalking.Misc.blMagnetMelee", "Magnet Target (Only Melee)").SetValue(true)).ValueChanged += (s, ar) => m_Menu.Item("Orbwalking.Misc.iStickRange").Show(ar.GetNewValue<bool>());
            misc.AddItem(new MenuItem("Orbwalking.Misc.iStickRange", "Stick Range").SetValue(new Slider(390, 0, 600))).Show(misc.Item("Orbwalking.Misc.blMagnetMelee").GetValue<bool>());
            misc.AddItem(new MenuItem("Orbwalking.Misc.blDontMoveInRange", "Dont move if enemy in AA range").SetTooltip("if this option enabled, your hero wont move while there are enemies in aa range").SetValue(false));
            misc.AddItem(new MenuItem("Orbwalking.Misc.blLegitMode", "Legit Mode").SetTooltip("this feature makes your orbwalk slower & human like").SetValue(false)).ValueChanged += (s, ar) => m_Menu.Item("Orbwalking.Misc.iLegitPercent").Show(ar.GetNewValue<bool>());
            misc.AddItem(new MenuItem("Orbwalking.Misc.iLegitPercent", "Make Me Legit %").SetValue(new Slider(20, 0, 100))).Show(misc.Item("Orbwalking.Misc.blLegitMode").GetValue<bool>());

            Menu drawings = new Menu("Drawings", "Orbwalking.Drawings");
            drawings.AddItem(new MenuItem("Orbwalking.Drawings.SelfAACircle", "Self AA Circle").SetValue(new Circle(true, Color.FromArgb(155, 255, 255, 0))));
            drawings.AddItem(new MenuItem("Orbwalking.Drawings.EnemyAACircle", "Enemy AA Circle").SetValue(new Circle(false, Color.FromArgb(155, 255, 255, 0))));
            drawings.AddItem(new MenuItem("Orbwalking.Drawings.LastHitMinion", "Last Hitable Minion").SetValue(new Circle(false, Color.FromArgb(155, 255, 255, 0))));
            drawings.AddItem(new MenuItem("Orbwalking.Drawings.HoldZone", "Hold Zone").SetValue(new Circle(false, Color.FromArgb(155, 255, 255, 0))));
            drawings.AddItem(new MenuItem("Orbwalking.Drawings.iLineWidth", "Line Width").SetValue(new Slider(2, 1, 6)));

            m_Menu.AddSubMenu(drawings);
            m_Menu.AddSubMenu(misc);
            menuToAttach.AddSubMenu(m_Menu);
        }
예제 #5
0
파일: Events.cs 프로젝트: JelloBeans/SAC
        /// <summary>
        /// Invokes on attack event
        /// </summary>
        /// <param name="instance">Orbwalker instance</param>
        /// <param name="target">Target</param>
        /// <returns></returns>
        public static OnAttackArgs FireOnAttack(Orbwalker instance, AttackableUnit target)
        {
            OnAttackArgs args = new OnAttackArgs();
            args.Instance = instance;
            args.Target = target;

            if (OnAttack != null)
                OnAttack(args);

            if (args.Cancel)
                ObjectManager.Player.IssueOrder(GameObjectOrder.Stop, ObjectManager.Player);

            return args;
        }
예제 #6
0
        /// <summary>
        /// Invokes after attack event
        /// </summary>
        /// <param name="instance">Orbwalker instance</param>
        /// <param name="target">Target</param>
        /// <returns></returns>
        public static AfterAttackArgs FireAfterAttack(Orbwalker instance, AttackableUnit target)
        {
            AfterAttackArgs args = new AfterAttackArgs();
            args.Instance = instance;
            args.Target = target;

            if (instance.ActiveMode == Orbwalker.Mode.None)
                return args;

            if (AfterAttack != null)
                AfterAttack(args);

            if (args.ResetAATimer)
                instance.ResetAATimer();

            return args;
        }
예제 #7
0
파일: Drawings.cs 프로젝트: JelloBeans/SAC
 /// <summary>
 /// Drawings constructor
 /// </summary>
 /// <param name="instance">The orbwalker instance.</param>
 public Drawings(Orbwalker instance)
 {
     m_Instance = instance;
     Drawing.OnDraw += Drawing_OnDraw;
 }