示例#1
0
 public override void Laneclear()
 {
     var target = GetTarget(E);
     var minion = E.GetLaneMinion();
     if (LaneClearMenu.GetSliderValue(LaneMenuID + "mana") >= Player.Instance.ManaPercent) return;
     if (LaneClearMenu.GetCheckBoxValue(52))
     {
         if (HarassMenu.GetCheckBoxValue(HarassMenuID + "Q")) Q.TryCast(target);
         if (HarassMenu.GetCheckBoxValue(HarassMenuID + "W")) W.TryCast(target);
         if (HarassMenu.GetCheckBoxValue(HarassMenuID + "E") &&
             HarassMenu.GetSliderValue(49) <= Player.Instance.HealthPercent)
         {
             E.TryCast(target);
         }
     }
     else
     {
         if (LaneClearMenu.GetCheckBoxValue(LaneMenuID + "Q")) Q.TryCast(minion);
         if (LaneClearMenu.GetCheckBoxValue(LaneMenuID + "W")) W.TryCast(minion);
         if (LaneClearMenu.GetCheckBoxValue(LaneMenuID + "E") &&
             LaneClearMenu.GetSliderValue(51) <= Player.Instance.HealthPercent)
         {
             E.TryCast(minion);
         }
     }
 }
示例#2
0
        public override void Laneclear()
        {
            var target = GetTarget(W);
            var minion = W.GetLaneMinion();

            if (LaneClearMenu.GetSliderValue(LaneMenuID + "mana") >= Player.Instance.ManaPercent)
            {
                return;
            }
            if (LaneClearMenu.GetCheckBoxValue(50))
            {
                if (HarassMenu.GetCheckBoxValue(HarassMenuID + "Q"))
                {
                    Q.TryCast(target);
                }
                if (HarassMenu.GetCheckBoxValue(HarassMenuID + "W"))
                {
                    W.TryCast(target);
                }
            }
            else
            {
                if (LaneClearMenu.GetCheckBoxValue(LaneMenuID + "Q"))
                {
                    Q.TryCast(minion);
                }
                if (LaneClearMenu.GetCheckBoxValue(LaneMenuID + "W"))
                {
                    W.TryCast(minion);
                }
            }
        }
示例#3
0
        private static void Game_OnTick(EventArgs args)
        {
            var orbMode               = Orbwalker.ActiveModesFlags;
            var playerMana            = Player.Instance.ManaPercent;
            var harassSettingsType    = (Self.Level >= HarassMenu.GetSliderValue("lateGameLevelSlider")) ? "LateGame" : "";
            var laneClearSettingsType = (Self.Level >= LaneClearMenu.GetSliderValue("lateGameLevelSlider")) ? "LateGame" : "";

            Active.Execute();

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Harass) && playerMana > HarassMenu.GetSliderValue("manaSlider" + harassSettingsType))
            {
                Harass.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LaneClear) && playerMana > LaneClearMenu.GetSliderValue("manaSlider" + laneClearSettingsType))
            {
                LaneClear.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.JungleClear) && playerMana > JungleClearMenu.GetSliderValue("manaSlider"))
            {
                JungleClear.Execute();
            }
        }
示例#4
0
        private static void Game_OnTick(EventArgs args)
        {
            var orbMode    = Orbwalker.ActiveModesFlags;
            var playerMana = Player.Instance.ManaPercent;

            Active.Execute();

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Flee))
            {
                Flee.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LaneClear) && playerMana > LaneClearMenu.GetSliderValue("manaSlider"))
            {
                LaneClear.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.JungleClear) && playerMana > JungleClearMenu.GetSliderValue("manaSlider"))
            {
                JungleClear.Execute();
            }

            if (playerMana > AutoHarassMenu.GetSliderValue("manaSlider"))
            {
                AutoHarass.Execute();
            }
        }
示例#5
0
        /// <summary>
        /// Put in here what you want to do when the mode is running
        /// </summary>
        public static void Execute()
        {
            var minions =
                EntityManager.MinionsAndMonsters.GetLaneMinions().Where(m => m.IsValidTarget(W.Range)).ToArray();

            if (minions.Length == 0)
            {
                return;
            }
            var pos = EntityManager.MinionsAndMonsters.GetLineFarmLocation(minions, W.Width, (int)W.Range);

            if (pos.HitNumber >= LaneClearMenu.GetSliderValue("wSHIT"))
            {
                W.TryToCast(pos.CastPosition, LaneClearMenu);
            }
        }
示例#6
0
        private static void Game_OnTick(EventArgs args)
        {
            var orbMode    = Orbwalker.ActiveModesFlags;
            var playerMana = Player.Instance.ManaPercent;

            Active.Execute();

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo.Execute();
                Program.AAResetCombo();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LastHit) && playerMana > LasthitMenu.GetSliderValue("manaSlider"))
            {
                LastHit.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Flee))
            {
                Flee.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LaneClear) && playerMana > LaneClearMenu.GetSliderValue("manaSlider"))
            {
                LaneClear.Execute();
                Program.AAResetLane();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.JungleClear) && playerMana > JungleClearMenu.GetSliderValue("manaSlider"))
            {
                JungleClear.Execute();
                Program.AAResetLane();
            }

            AutoHarass.Execute();

            if (Program.check(MiscMenu, "skinhax"))
            {
                Program._player.SetSkinId((int)MiscMenu["skinID"].Cast <ComboBox>().CurrentValue);
            }
            if (Program.check(MiscMenu, "lvlup"))
            {
                Program.LevelUpSpells();
            }
        }
示例#7
0
        private static void Game_OnTick(EventArgs args)
        {
            var orbMode    = Orbwalker.ActiveModesFlags;
            var playerMana = Player.Instance.ManaPercent;

            if (UltimateFollower && Program.Champion.HasBuff("VelkozR"))
            {
                Program.UltFollowMode();
            }
            if (RoninVelkoz.Menus.StackMode)
            {
                Program.StackMode();
            }
            Active.Execute();

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Harass) && playerMana > HarassMenu.GetSliderValue("manaSlider"))
            {
                Harass.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LastHit) && playerMana > LasthitMenu.GetSliderValue("manaSlider"))
            {
                LastHit.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LaneClear) && playerMana > LaneClearMenu.GetSliderValue("manaSlider"))
            {
                LaneClear.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.JungleClear) && playerMana > JungleClearMenu.GetSliderValue("manaSlider"))
            {
                JungleClear.Execute();
            }

            if (playerMana > AutoHarassMenu.GetSliderValue("manaSlider") && AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            {
                AutoHarass.Execute();
            }
        }
示例#8
0
        public override void Laneclear()
        {
            if (!Q.IsReady() || !LaneClearMenu.GetCheckBoxValue(MenuIds.LaneclearUseQ) ||
                !(Player.Instance.ManaPercent >= LaneClearMenu.GetSliderValue("lane.mana")))
            {
                return;
            }
            var minion = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy,
                                                                         Player.Instance.ServerPosition, Q.Range).Where(t => t.Health <= QDamage(t)).ToArray();
            var lineFarmLocation       = EntityManager.MinionsAndMonsters.GetLineFarmLocation(minion, Q.Width, (int)Q.Range);
            var lineFarmLocationReturn = EntityManager.MinionsAndMonsters.GetLineFarmLocation(minion, Q.Width,
                                                                                              (int)Q.Range, lineFarmLocation.CastPosition.Extend(Player.Instance, Q.Range));

            if (lineFarmLocation.HitNumber >= 2 || lineFarmLocationReturn.HitNumber >= 2)
            {
                Q.Cast(lineFarmLocation.CastPosition);
            }
        }
示例#9
0
        private static void Game_OnTick(EventArgs args)
        {
            var orbMode    = Orbwalker.ActiveModesFlags;
            var playerMana = Player.Instance.ManaPercent;

            rRangeLevel.LevelRRange();
            Active.Defensive();
            Active.Defensive2();
            Active.Potions();

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo.Execute1();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo) && (playerMana > ComboMenu.GetSliderValue("manaSlider")))
            {
                Combo.ExecuteR();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo.ExecuteItems();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LastHit) &&
                (playerMana > LastHitMenu.GetSliderValue("manaSlider")))
            {
                LastHit.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LaneClear) &&
                (playerMana > LaneClearMenu.GetSliderValue("manaSlider")))
            {
                LaneClear.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Flee) && (playerMana > LastHitMenu.GetSliderValue("manaSlider")))
            {
                Flee.Execute();
            }
        }
示例#10
0
        /// <summary>
        /// This event is triggered every tick of the game
        /// </summary>
        /// <param name="args"></param>
        private static void Game_OnTick(EventArgs args)
        {
            var orbMode    = Orbwalker.ActiveModesFlags;
            var playerMana = Player.Instance.ManaPercent;

            Active.Execute();

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Harass) && playerMana > HarassMenu.GetSliderValue("manaSlider"))
            {
                Harass.Execute();
            }

            //if (orbMode.HasFlag(Orbwalker.ActiveModes.LastHit) && playerMana > LasthitMenu.GetSliderValue("manaSlider"))
            //{
            //    LastHit.Execute();
            //}

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LaneClear) && playerMana > LaneClearMenu.GetSliderValue("manaSlider"))
            {
                LaneClear.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.JungleClear) && playerMana > JungleClearMenu.GetSliderValue("manaSlider"))
            {
                JungleClear.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Flee))
            {
                Flee.Execute();
            }

            //if (playerMana > AutoHarassMenu.GetSliderValue("manaSlider") && AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            //{
            //    AutoHarass.Execute();
            //}
        }
示例#11
0
        /// <summary>
        /// This event is triggered every tick of the game
        /// </summary>
        /// <param name="args"></param>
        private static void Game_OnTick(EventArgs args)
        {
            var orbMode    = Orbwalker.ActiveModesFlags;
            var playerMana = Azir.ManaPercent;

            Active.Execute();

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Harass) && playerMana > HarassMenu.GetSliderValue("manaSlider"))
            {
                Harass.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LastHit) && playerMana > LasthitMenu.GetSliderValue("manaSlider"))
            {
                LastHit.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LaneClear) && playerMana > LaneClearMenu.GetSliderValue("manaSlider"))
            {
                LaneClear.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.JungleClear) && playerMana > JungleClearMenu.GetSliderValue("manaSlider"))
            {
                JungleClear.Execute();
            }

            if (AutoHarassMenu.GetKeyBindValue("autoHarassKey"))
            {
                if (Orbwalker.AzirSoldiers.Count >= 1 && AutoHarassMenu.GetCheckBoxValue("attack"))
                {
                    var target = TargetSelector.GetTarget(1250, DamageType.Magical);
                    if (target == null)
                    {
                        return;
                    }
                    SoldierAttack(target);
                }
                if (playerMana > AutoHarassMenu.GetSliderValue("manaSlider"))
                {
                    AutoHarass.Execute();
                }
            }
            if (FleeMenu.GetKeyBindValue("insect"))
            {
                InSec.Normal();
            }

            if (FleeMenu.GetKeyBindValue("insected"))
            {
                InSec.New();
            }

            if (FleeMenu.GetKeyBindValue("flee"))
            {
                Flee.Execute();
            }
            KillSteal.Execute();
        }
示例#12
0
        public static void Execute()
        {
            // 2-Leveled settings
            var settingsType = (Self.Level >= HarassMenu.GetSliderValue("lateGameLevelSlider")) ? "LateGame" : "";

            // Get close minions
            var target = Targeting.Minions();

            // Check if target/self are valid for spells
            if (!States.SpellReady(target))
            {
                return;
            }

            // Farm with E
            if (E.IsReady() && LaneClearMenu.GetCheckBoxValue("eUse" + settingsType) &&
                Self.EnemiesWithinRange(ScanRange) == 0)
            {
                var postDashCursor = Dash.PostPosition(MousePosition);
                var postDashTarget = Dash.PostPosition(target.ServerPosition);

                // Only dash if no enemies close
                if (postDashTarget.EnemiesWithinRange(ScanRange) == 0 &&
                    postDashCursor.EnemiesWithinRange(ScanRange) == 0)
                {
                    // Check if should E to mouse or target
                    if (target.WithinRange(postDashCursor, EffectiveAttackRange))
                    {
                        Player.CastSpell(SpellSlot.E, MousePosition);
                    }
                    else if (target.WithinRange(postDashTarget, EffectiveAttackRange))
                    {
                        Player.CastSpell(SpellSlot.E, target);
                    }
                }
            }

            // Farm with Q
            if (Q.IsReady() && LaneClearMenu.GetCheckBoxValue("qUse" + settingsType))
            {
                var qMinions =
                    EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy,
                                                                    Self.ServerPosition, Q.Range);
                var aiMinions = qMinions as Obj_AI_Minion[] ?? qMinions.ToArray();

                foreach (var m in from m in aiMinions
                         let p = new Geometry.Polygon.Rectangle(Self.ServerPosition.To2D(), Self.ServerPosition.Extend(m.ServerPosition, QExtended.Range), 65)
                                 where aiMinions.Count(x => p.IsInside(x.ServerPosition)) >= LaneClearMenu.GetSliderValue("minQHits" + settingsType)
                                 select m)
                {
                    Q.Cast(m);
                    break;
                }
            }

            // Farm with W
            if (W.IsReady() && LaneClearMenu.GetCheckBoxValue("wUse" + settingsType))
            {
                var wMinions =
                    EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy,
                                                                    ObjectManager.Player.Position, AttackRange)
                    .FirstOrDefault(x => x.IsValidTarget(AttackRange));
                if (wMinions != null)
                {
                    W.Cast(wMinions);
                }
            }
        }
示例#13
0
        public static void Game_OnTick(EventArgs args)
        {
            if (player.IsDead || MenuGUI.IsChatOpen || player.IsRecalling())
            {
                return;
            }

            var orbMode    = Orbwalker.ActiveModesFlags;
            var playerMana = Player.Instance.ManaPercent;

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo) && ComboMenu["wGapCloser"].Cast <CheckBox>().CurrentValue&&
                ComboMenu["W"].Cast <CheckBox>().CurrentValue&& (playerMana > ComboMenu.GetSliderValue("manaSlider")))
            {
                wGapCloser();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Harass) && (playerMana > HarassMenu.GetSliderValue("GapCloserManaSlider")) &&
                HarassMenu["wGapCloser"].Cast <CheckBox>().CurrentValue&& HarassMenu["W"].Cast <CheckBox>().CurrentValue)
            {
                Harass.wGapCloser();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Harass) && (playerMana > HarassMenu.GetSliderValue("manaSlider")))
            {
                Harass.ExecuteHarass();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo) && (Player.Instance.CountEnemiesInRange(1100) >= 1))
            {
                ExecuteCombo();
            }


            if (orbMode.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                JungleClear.Execute();
            }

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LaneClear) &&
                (playerMana > LaneClearMenu.GetSliderValue("manaSlider")))
            {
                LaneClear.Execute();
            }


            var HealBuff = Player.HasBuff("RegenerationPotion") ||
                           Player.HasBuff("ItemMiniRegenPotion") ||
                           Player.HasBuff("ItemCrystalFlask") ||
                           Player.HasBuff("ItemDarkCrystalFlask") ||
                           Player.HasBuff("ItemCrystalFlaskJungle") ||
                           Player.Instance.IsRecalling();

            //Health Potion
            if (JungleClearMenu["usePotions"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Health.IsOwned() && Health.IsReady())
                {
                    if (Player.Instance.HealthPercent <= JungleClearMenu["PotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Health.Cast();
                    }
                }
            }
            //Hunters Potion
            if (JungleClearMenu["usePotions"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Hunters.IsOwned() && Hunters.IsReady())
                {
                    if (Player.Instance.HealthPercent <= JungleClearMenu["PotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Hunters.Cast();
                    }
                }
            }

            //Biscuit
            if (JungleClearMenu["usePotions"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }
                if (Biscuit.IsOwned() && Biscuit.IsReady())
                {
                    if (Player.Instance.HealthPercent <= JungleClearMenu["PotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Biscuit.Cast();
                    }
                }
            }

            //Refillable
            if (JungleClearMenu["usePotions"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Refillable.IsOwned() && Refillable.IsReady())
                {
                    if (Player.Instance.HealthPercent <= JungleClearMenu["PotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Refillable.Cast();
                    }
                }
            }

            //Corrupting
            if (JungleClearMenu["usePotions"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDead || HealBuff)
                {
                    return;
                }

                if (Corrupting.IsOwned() && Corrupting.IsReady())
                {
                    if (Player.Instance.HealthPercent <= JungleClearMenu["PotionHp"].Cast <Slider>().CurrentValue)
                    {
                        Corrupting.Cast();
                    }
                }
            }
        }