Esempio n. 1
0
        /// <summary>
        /// The on update.
        /// </summary>
        /// <param name="args">
        /// The args.
        /// </param>
        private static void OnUpdate(EventArgs args)
        {
            switch (Variables.Orbwalker.ActiveMode)
            {
            case OrbwalkingMode.Combo:
                Combo.Execute();
                break;

            case OrbwalkingMode.Hybrid:
                Harass.Execute();
                break;

            case OrbwalkingMode.LaneClear:
                LaneClear.Execute();
                JungleClear.Execute();
                break;
            }

            KillSteal.Execute();
            CD();
            SkinChanger();
        }
Esempio n. 2
0
        private static void OnUpdate(EventArgs args)
        {
            if (Config.SkinChanger && Player.Instance.SkinId != Config.SkinId)
            {
                Player.Instance.SetSkinId(Config.SkinId);
            }

            var currentModes = Orbwalker.ActiveModesFlags.ToString();

            if (currentModes.Contains(Orbwalker.ActiveModes.Combo.ToString()))
            {
                Combo.Execute();
            }

            if (currentModes.Contains(Orbwalker.ActiveModes.Harass.ToString()) || Config.HarassToggle)
            {
                Harass.Execute();
            }

            if (currentModes.Contains(Orbwalker.ActiveModes.LastHit.ToString()))
            {
                Lasthit.Execute();
            }

            if (currentModes.Contains(Orbwalker.ActiveModes.LaneClear.ToString()))
            {
                LaneClear.Execute();
            }

            if (currentModes.Contains(Orbwalker.ActiveModes.JungleClear.ToString()))
            {
                JungleClear.Execute();
            }

            Active.Initialize();
        }
        private static void OnUpdate(EventArgs args)
        {
            if (Player.Instance.IsDead)
            {
                return;
            }

            PermaActive.Execute();

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

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) ||
                MenuDesigner.HarassUi.Get <KeyBind>("HarassToggle").CurrentValue)
            {
                Harass.Execute();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) &&
                Player.Instance.Mana > MenuDesigner.ClearUi.Get <Slider>("ClearLanaMana").CurrentValue)
            {
                LaneClear.Execute();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit))
            {
                LastHit.Execute();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                JungleClear.Execute();
            }
        }
Esempio n. 4
0
        private static void OnUpdate(EventArgs args)
        {
            if (ObjectManager.Player.IsDead)
            {
                return;
            }

            if (Config.IsKeyPressed("xinsecKey"))
            {
                Orbwalking.MoveTo(Game.CursorPos);
                Xinsec.Execute();
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                Combo.Execute();
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear &&
                ObjectManager.Player.ManaPercent >= Config.GetSliderValue("jcMana"))
            {
                JungleClear.Execute();
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed &&
                ObjectManager.Player.ManaPercent >= Config.GetSliderValue("harassMana"))
            {
                Harass.Execute();
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear &&
                ObjectManager.Player.ManaPercent >= Config.GetSliderValue("lcMana"))
            {
                LaneClear.Execute();
            }
        }
Esempio n. 5
0
 public void OnLaneClear()
 {
     laneClear.Execute();
 }
Esempio n. 6
0
        public static void OnTick(EventArgs args)
        {
            if (Player.Instance.IsDead || Player.Instance.IsRecalling())
            {
                return;
            }

            PermaActive.Execute();
            var flags = Orbwalker.ActiveModesFlags;

            #region Flags checker
            if (flags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                try
                {
                    Combo.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                try
                {
                    Harass.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.LastHit))
            {
                try
                {
                    LastHit.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                try
                {
                    LaneClear.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                try
                {
                    JungleClear.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.Flee))
            {
                try
                {
                    Flee.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            #endregion
        }
Esempio n. 7
0
        public static void OnTick(EventArgs args)
        {
            if (Player.Instance.IsDead || Player.Instance.IsRecalling())
            {
                return;
            }

            PermaActive.Execute();
            var flags = Orbwalker.ActiveModesFlags;

            #region Flags checker
            if (flags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                try
                {
                    Combo.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                try
                {
                    Harass.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.LastHit))
            {
                try
                {
                    LastHit.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                try
                {
                    LaneClear.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                try
                {
                    JungleClear.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (Config.Combo.Menu.GetKeyBindValue("Config.Combo.R.Force"))
            {
                if (SpellManager.R.IsReady() || Player.Instance.HasBuff("AhriTumble"))
                {
                    var position = Player.Instance.Position.Distance(Game.CursorPos) < SpellManager.R.Range ? Game.CursorPos : Player.Instance.Position.Extend(Game.CursorPos, SpellManager.R.Range).To3D();
                    SpellManager.R.Cast(position);
                }
            }
            #endregion
        }
Esempio n. 8
0
        public static void OnTick(EventArgs args)
        {
            if (Player.Instance.IsDead || Player.Instance.IsRecalling())
            {
                return;
            }

            PermaActive.Execute();
            var flags = Orbwalker.ActiveModesFlags;

            #region Flags checker
            if (flags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                try
                {
                    Combo.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                try
                {
                    Harass.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.LastHit))
            {
                try
                {
                    LastHit.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                try
                {
                    LaneClear.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                try
                {
                    JungleClear.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (Config.Combo.Menu.GetKeyBindValue("Config.Combo.R.Force"))
            {
                if (!Player.Instance.HasBuff("WarwickR") && Config.Combo.Menu.GetCheckBoxValue("Config.Combo.R.OrbWalk"))
                {
                    Orbwalker.OrbwalkTo(Game.CursorPos);
                }
                Other.ForceRUsage();
            }
            #endregion
        }
Esempio n. 9
0
        private static void OnUpdate(EventArgs args)
        {
            if (ObjectManager.Player.IsDead)
            {
                return;
            }

            if (Config.IsKeyPressed("assistedR"))
            {
                AssistedR.Execute();
            }
            if (Config.IsChecked("eKillSteal"))
            {
                Automated.EKillSteal();
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                Combo.Execute();
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
            {
                Harass.Execute();
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
            {
                JungleClear.Execute();
                LaneClear.Execute();
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LastHit)
            {
                LastHit.Execute();
            }

            if (Config.IsChecked("autoEHarass") &&
                ObjectManager.Player.ManaPercent >= Config.GetSliderValue("manaToAutoHarass"))
            {
                Automated.AutoE();
            }

            if (Config.IsChecked("autoQHarass") &&
                ObjectManager.Player.ManaPercent >= Config.GetSliderValue("manaToAutoHarass"))
            {
                Automated.AutoQ();
            }

            if (Config.IsChecked("autoWHarass") &&
                ObjectManager.Player.ManaPercent >= Config.GetSliderValue("manaToAutoHarass"))
            {
                Automated.AutoW();
            }

            if (Config.IsChecked("clearE") && ObjectManager.Player.ManaPercent >= Config.GetSliderValue("manaClearE") &&
                Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Combo)
            {
                Automated.AutoClearE();
            }

            if (Config.IsChecked("tearStackQ") &&
                ObjectManager.Player.ManaPercent >= Config.GetSliderValue("manaTearStack") && Computed.HasTear() &&
                Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.None)
            {
                Automated.TearStack();
            }
        }
Esempio n. 10
0
        public static void OnTick(EventArgs args)
        {
            if (Player.Instance.IsDead || Player.Instance.IsRecalling())
            {
                return;
            }

            if (Core.GameTickCount - LastAttack > 5000)
            {
                Other.SetSpikes(false);
            }

            PermaActive.Execute();
            var flags = Orbwalker.ActiveModesFlags;

            #region Flags checker
            if (flags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                try
                {
                    Combo.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                try
                {
                    Harass.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.LastHit))
            {
                try
                {
                    LastHit.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                try
                {
                    LaneClear.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (flags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                try
                {
                    JungleClear.Execute();
                }
                catch (Exception e)
                {
                    Console.WriteLine("{0} Exception caught.", e);
                }
            }
            if (Config.Combo.Menu.GetKeyBindValue("Config.Combo.R.FlashR"))
            {
                if (SpellManager.R.IsReady() && SpellManager.Flash.IsReady())
                {
                    foreach (var e in EntityManager.Heroes.Enemies.Where(h => h.IsValid && h.IsAlive() && !h.IsInvulnerable))
                    {
                        if (!e.HasSpellshield() && e.IsInRange(Player.Instance, SpellManager.R.Range + 200))
                        {
                            Other.FlashR(e);
                            break;
                        }
                    }
                }
            }
            #endregion
        }