Beispiel #1
0
        private static void OnUpdate(EventArgs args)
        {
            if (ObjectManager.Player.IsDead)
            {
                return;
            }

            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();
            }

            ManualCards.Execute();
            Automated.Execute();
        }
Beispiel #2
0
        private static void OnGameUpdate(EventArgs args)
        {
            switch (Orbwalker.ActiveModesFlags)
            {
            case Orbwalker.ActiveModes.Combo:
                Combo.Execute();
                break;

            case Orbwalker.ActiveModes.Harass:
                Harass.Execute();
                break;

            case Orbwalker.ActiveModes.LaneClear:
                Farming.ExecuteLaneClear();
                break;

            case Orbwalker.ActiveModes.JungleClear:
                Farming.ExecuteJungleClear();
                break;
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) &&
                Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                Farming.ExecuteLaneClear();
                Farming.ExecuteJungleClear();
            }
            if (GameMenu.ComboMenu["misayacombo"].Cast <KeyBind>().CurrentValue)
            {
                Combo.MisayaCombo();
            }
        }
Beispiel #3
0
        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))
            {
                Harass.Execute();
            }

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

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

            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 (Config.IsChecked("harass.q.auto"))
            {
                Harass.AutoQ();
            }
        }
Beispiel #5
0
        public static void OnTick(EntropyEventArgs args)
        {
            if (LocalPlayer.Instance.IsDead() || LocalPlayer.Instance.IsRecalling() || GameConsole.IsOpen)
            {
                return;
            }

            switch (Orbwalker.Mode)
            {
            case OrbwalkingMode.Combo:
                Combo.Execute();
                break;

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

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

            case OrbwalkingMode.Lasthit:
                LastHit.Execute();
                break;
            }
        }
Beispiel #6
0
        private static void OnUpdate(EventArgs args)
        {
            if (ObjectManager.Player.IsDead || CancelEverything)
            {
                return;
            }

            if (Config.IsChecked("misc.killsteal.q"))
            {
                Killsteal.Execute();
            }

            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();
            }

            AutoHarass.Execute();
        }
        private static void OnTick(EventArgs args)
        {
            if (Return.Activemode(Orbwalker.ActiveModes.Combo))
            {
                Combo.Execute();
            }

            if (Return.Activemode(Orbwalker.ActiveModes.Harass) || Return.HarassToggle)
            {
                Harass.Execute();
            }

            if (Return.Activemode(Orbwalker.ActiveModes.LaneClear))
            {
                Clear.Execute();
            }

            if (Return.Activemode(Orbwalker.ActiveModes.JungleClear))
            {
                Jungle.Execute();
            }

            if (Return.Activemode(Orbwalker.ActiveModes.LastHit))
            {
                Lasthit.Execute();
            }

            PermaActive.Execute();
        }
Beispiel #8
0
        private static void OnTick(EventArgs args)
        {
            if (Player.Instance.IsDead)
            {
                return;
            }

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

            if (Config.IsChecked(Config.AutoWMenu, "bW") && Spells.W.CanCast() &&
                Player.Instance.ManaPercent >= Config.GetSliderValue(Config.AutoWMenu, "minMana"))
            {
                AutoW.Execute();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) &&
                Player.Instance.ManaPercent >= Config.GetSliderValue(Config.HarassMenu, "minMana"))
            {
                Harass.Execute();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee))
            {
                Flee.Execute();
            }
        }
Beispiel #9
0
        private static void OnUpdate(EventArgs args)
        {
            if (ObjectManager.Player.IsDead)
            {
                return;
            }

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

            if (Config.IsChecked("bW") && Spells.W.CanCast() &&
                ObjectManager.Player.ManaPercent >= Config.GetSliderValue("AutoW.minMana"))
            {
                AutoW.Execute();
            }

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

            if (Config.IsKeyPressed("assistedR"))
            {
                AssistedR.Execute();
            }

            if (Config.IsKeyPressed("fleeBind"))
            {
                Orbwalking.MoveTo(Game.CursorPos);
                Flee.Execute();
            }
        }
Beispiel #10
0
        private static void OnUpdate(EventArgs args)
        {
            if (!ObjectManager.Player.IsActive(Spells.R))
            {
                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                {
                    Combo.Execute();
                }
                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
                {
                    Clear.Execute();
                }
                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
                {
                    Jungle.Execute();
                }
                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
                {
                    Harass.Execute();
                }
            }


            if (ObjectManager.Player.IsActive(Spells.R))
            {
                PortAIO.OrbwalkerManager.SetAttack(false);
                PortAIO.OrbwalkerManager.SetMovement(false);
            }
            else if (!ObjectManager.Player.IsActive(Spells.R))
            {
                PortAIO.OrbwalkerManager.SetAttack(true);
                PortAIO.OrbwalkerManager.SetMovement(true);
            }

            if (getKeyBindItem(Config.SemiManualUlt, "semi.manual.ult") && !ObjectManager.Player.IsActive(Spells.R))
            {
                Orbwalker.MoveTo(Game.CursorPos);
            }

            if (Spells.R.IsReady() && getKeyBindItem(Config.SemiManualUlt, "semi.manual.ult"))
            {
                Ultimate.Execute();
            }


            if (getCheckBoxItem(Config.itemMenu, "use.qss") && (Items.HasItem((int)ItemId.Quicksilver_Sash) && Items.CanUseItem((int)ItemId.Quicksilver_Sash) ||
                                                                Items.CanUseItem(3139) && Items.HasItem(3137)))
            {
                Qss.ExecuteQss();
            }

            if (getCheckBoxItem(Config.miscMenu, "auto.orb.buy") && ObjectManager.Player.Level >= getSliderItem(Config.miscMenu, "orb.level") &&
                !Items.HasItem((int)ItemId.Farsight_Alteration))
            {
                Shop.BuyItem(ItemId.Farsight_Alteration);
            }
        }
Beispiel #11
0
        private static void OnUpdate(EventArgs args)
        {
            switch (Orbwalker.ActiveMode)
            {
            case OrbwalkingMode.Combo:
                Combo.Execute();
                break;

            case OrbwalkingMode.LaneClear:
                Jungle.Execute();
                Clear.Execute();
                break;

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

            if (ObjectManager.Player.IsActive(Spells.R))
            {
                Orbwalker.AttackState   = false;
                Orbwalker.MovementState = false;
                Orbwalker.Enabled       = false;
            }
            else if (!ObjectManager.Player.IsActive(Spells.R))
            {
                Orbwalker.AttackState   = true;
                Orbwalker.MovementState = true;
                Orbwalker.Enabled       = true;
            }

            if (Config.SemiManualUlt.Active && !ObjectManager.Player.IsActive(Spells.R))
            {
                Orbwalker.Move(Game.CursorPos);
            }

            if (Config.SemiManualUlt.Active && Spells.R.IsReady())
            {
                Ultimate.Execute();
            }


            if (Config.Menu["activator.settings"]["use.qss"] && (Items.HasItem((int)ItemId.Quicksilver_Sash) && Items.CanUseItem((int)ItemId.Quicksilver_Sash) ||
                                                                 Items.CanUseItem(3139) && Items.HasItem(3137)))
            {
                Qss.ExecuteQss();
            }

            if (Config.Menu["misc.settings"]["auto.orb.buy"] && ObjectManager.Player.Level >= Config.Menu["misc.settings"]["orb.level"] &&
                !Items.HasItem((int)ItemId.Farsight_Alteration))
            {
                Shop.BuyItem(ItemId.Farsight_Alteration);
            }
        }
Beispiel #12
0
        private static void Game_OnTick(EventArgs args)
        {
            if (Player.Instance.IsDead || MenuGUI.IsChatOpen)
            {
                return;
            }

            Combo.Execute();

            Harass.Execute();

            Clear.Execute();

            Utility.Smite.Execute();
            Utility.KillSteal.Execute();
        }
Beispiel #13
0
        private static void OnUpdate(EventArgs args)
        {
            if (ObjectManager.Player.IsDead)
            {
                return;
            }

            if (Config.IsChecked("autoR") && Spells.R.IsReady())
            {
                HealBotR.Execute();
            }

            if (Config.IsChecked("autoAssistKS") && Spells.R.IsReady())
            {
                AssistKs.Execute();
            }

            if (Spells.W.IsReady() && Config.IsChecked("autoW"))
            {
                HealBotW.Execute();
            }

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

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

            if (Config.IsChecked("autoQHarass"))
            {
                AutoHarass.AutoQ();
            }

            if (Config.IsChecked("autoEHarass"))
            {
                AutoHarass.AutoE();
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
            {
                LaneClear.Execute();
            }
        }
Beispiel #14
0
        private static void Game_OnTick(EventArgs args)
        {
            if (Player.Instance.IsDead)
            {
                return;
            }

            if (Config.IsChecked(Config.AutoRMenu, "autoR") && Spells.R.CanCast())
            {
                Computed.AutoR();
            }

            if (Config.IsChecked(Config.AssistKs, "autoAssistKS") && Spells.R.CanCast())
            {
                Computed.AssistKs();
            }

            if (Spells.W.CanCast() && Config.IsChecked(Config.AutoWMenu, "autoW"))
            {
                Computed.HealBotW();
            }

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

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

            if (Config.IsChecked(Config.Harass, "autoQHarass"))
            {
                AutoHarass.AutoQ();
            }

            if (Config.IsChecked(Config.Harass, "autoEHarass"))
            {
                AutoHarass.AutoE();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                LaneClear.Execute();
            }
        }
Beispiel #15
0
        private static void OnGameUpdate(EventArgs args)
        {
            switch (Orbwalker.ActiveModesFlags)
            {
            case Orbwalker.ActiveModes.Combo:
                Combo.Execute();
                break;

            case Orbwalker.ActiveModes.Harass:
                Harass.Execute();
                break;
            }

            if (GameMenu.ComboMenu["qrcombo"].Cast <KeyBind>().CurrentValue)
            {
                Combo.QRCombo();
            }
        }
Beispiel #16
0
        private static void Game_OnTick(EventArgs args)
        {
            var orbMode    = Orbwalker.ActiveModesFlags;
            var playerMana = Player.Instance.ManaPercent;

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

            if (orbMode.HasFlag(Orbwalker.ActiveModes.LaneClear) && playerMana > LlaneClear["LMana"].Cast <Slider>().CurrentValue)
            {
                LaneClear.Execute();
            }
        }
Beispiel #17
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();
        }
Beispiel #18
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();
            }
        }
Beispiel #20
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();
            }
        }
        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
        }
Beispiel #22
0
 public void OnHarass()
 {
     harass.Execute();
 }
Beispiel #23
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();
            }
        }
Beispiel #24
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
        }
Beispiel #25
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
        }
        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
        }