Exemple #1
0
        /// <summary>
        /// Called when game updates.
        /// </summary>
        /// <param name="args">The Args.</param>
        private static void Game_OnUpdate(EventArgs args)
        {
            if (!Player.Instance.IsRecalling() && !Player.Instance.IsInShopRange())
            {
                var useY = Essentials.CardSelectorMenu["useY"].Cast <KeyBind>().CurrentValue;
                var useB = Essentials.CardSelectorMenu["useB"].Cast <KeyBind>().CurrentValue;
                var useR = Essentials.CardSelectorMenu["useR"].Cast <KeyBind>().CurrentValue;

                if (useY)
                {
                    CardSelector.StartSelecting(Cards.Yellow);
                }

                if (useB)
                {
                    CardSelector.StartSelecting(Cards.Blue);
                }

                if (useR)
                {
                    CardSelector.StartSelecting(Cards.Red);
                }
            }

            if (Essentials.MiscMenu["autoQ"].Cast <CheckBox>().CurrentValue)
            {
                StateManager.AutoQ();
            }

            if (Essentials.KillStealMenu["useQ"].Cast <CheckBox>().CurrentValue)
            {
                StateManager.KillSteal();
            }

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

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

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                StateManager.JungleClear();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                StateManager.Harass();
            }
        }
Exemple #2
0
        private static void Obj_AI_Base_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (!sender.IsMe)
            {
                return;
            }

            if (args.SData.Name.ToLower() == "gate" && Essentials.MiscMenu["autoY"].Cast <CheckBox>().CurrentValue)
            {
                CardSelector.StartSelecting(Cards.Yellow);
            }
        }
Exemple #3
0
        /// <summary>
        /// Selects a Card
        /// </summary>
        /// <param name="t">The Target</param>
        /// <param name="selectedCard">The Card that is selected.</param>
        public static void SelectCard(Obj_AI_Base t, Cards selectedCard)
        {
            if (t == null)
            {
                return;
            }

            if (selectedCard == Cards.Red)
            {
                CardSelector.StartSelecting(Cards.Red);
            }
            else if (selectedCard == Cards.Yellow)
            {
                CardSelector.StartSelecting(Cards.Yellow);
            }
            else if (selectedCard == Cards.Blue)
            {
                CardSelector.StartSelecting(Cards.Blue);
            }
        }
Exemple #4
0
        /// <summary>
        /// Called on Spell Cast
        /// </summary>
        /// <param name="sender">The Person who casted a spell</param>
        /// <param name="args">The Args</param>
        private static void Obj_AI_Base_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (!sender.IsMe)
            {
                return;
            }

            var target = args.Target as AIHeroClient;

            if (target != null && args.SData.Name == "goldcardpreattack" &&
                Essentials.MiscMenu["autoQ"].Cast <CheckBox>().CurrentValue)
            {
                var pred = Q.GetPrediction(target);

                if (pred != null && pred.HitChancePercent >= Essentials.MiscMenu["qPred"].Cast <Slider>().CurrentValue)
                {
                    Q.Cast(pred.CastPosition);
                }
            }

            if (target != null && args.SData.Name == "goldcardpreattack" &&
                Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) &&
                Essentials.ComboMenu["useQStun"].Cast <CheckBox>().CurrentValue)
            {
                var pred = Q.GetPrediction(target);

                if (pred != null && pred.HitChancePercent >= Essentials.ComboMenu["qPred"].Cast <Slider>().CurrentValue)
                {
                    Q.Cast(pred.CastPosition);
                }
            }

            if (args.SData.Name == "gate" && Essentials.MiscMenu["autoY"].Cast <CheckBox>().CurrentValue)
            {
                CardSelector.StartSelecting(Cards.Yellow);
            }
        }