Esempio n. 1
0
        private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
        {
            if (sender.IsEnemy && sender.IsValid)
            {
                if (AnnieMenu.CheckBox(AnnieMenu.Misc, "Interrupter"))
                {
                    if (HasStun())
                    {
                        if (Q.IsReady() && sender.IsValidTarget(Q.Range))
                        {
                            Q.Cast(sender);
                        }
                        else if (W.IsReady() && sender.IsValidTarget(W.Range))
                        {
                            W.Cast(sender);
                        }
                        else if (R.IsReady() && sender.IsValidTarget(R.Range))
                        {
                            if (e.DangerLevel == DangerLevel.High)
                            {
                                var RPred = R.GetPrediction(sender);

                                if (RPred.HitChancePercent >= AnnieMenu.Slider(AnnieMenu.Principal, "RPred"))
                                {
                                    R.Cast(RPred.UnitPosition);
                                }
                            }
                        }
                    }
                }
            }
        }
Esempio n. 2
0
        public static void Init()
        {
            if (Has())
            {
                switch (AnnieMenu.ComboBox(AnnieMenu.Combo, "Mode"))
                {
                case 0:

                    foreach (var Enemy in EntityManager.Heroes.Enemies.Where(x => x.Distance(Tibber.Position) <= 1100 && x.IsValid && !x.IsDead))
                    {
                        Player.IssueOrder(GameObjectOrder.MovePet, Enemy);
                    }

                    break;

                case 1:

                    foreach (var Enemy in EntityManager.Heroes.Enemies.Where(x => x.Distance(Tibber.Position) <= 1100 && x.IsValid && !x.IsDead).OrderBy(x => x.Health))
                    {
                        Player.IssueOrder(GameObjectOrder.MovePet, Enemy);
                    }

                    break;
                }
            }
        }
Esempio n. 3
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.Hero != Champion.Annie)
            {
                return;
            }

            AnnieMenu.Init();
            Annie.Init();
            Drawing.OnDraw += Drawing_OnDraw;
        }
Esempio n. 4
0
        public static void Init()
        {
            if (AnnieMenu.CheckBox(AnnieMenu.Misc, "SkinHack"))
            {
                Player.Instance.SetSkinId(AnnieMenu.Slider(AnnieMenu.Misc, "SkinID"));
            }

            if (AnnieMenu.Keybind(AnnieMenu.Misc, "Reset"))
            {
                Player.Instance.SetModel(Player.Instance.ChampionName);
            }

            foreach (var x in ObjectManager.Get <Obj_AI_Minion>().Where(x => x.Name.ToLower().Equals("tibbers") && x.IsValid && !x.IsDead))
            {
                x.SetSkinId(AnnieMenu.Slider(AnnieMenu.Misc, "SkinID"));
            }
        }
Esempio n. 5
0
        private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
        {
            if (sender.IsEnemy && sender.IsValid)
            {
                if (AnnieMenu.CheckBox(AnnieMenu.Misc, "Gapcloser"))
                {
                    if (HasStun())
                    {
                        if (Q.IsReady() && sender.IsValidTarget(Q.Range))
                        {
                            Q.Cast(sender);
                        }

                        if (W.IsReady() && sender.IsValidTarget(W.Range))
                        {
                            W.Cast(sender);
                        }
                    }
                }
            }
        }
Esempio n. 6
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (Annie.Q.IsReady() && AnnieMenu.CheckBox(AnnieMenu.Draw, "Q"))
            {
                Circle.Draw(Color.DarkBlue, Annie.Q.Range, Player.Instance.Position);
            }

            if (Annie.W.IsReady() && AnnieMenu.CheckBox(AnnieMenu.Draw, "W"))
            {
                Circle.Draw(Color.DarkBlue, Annie.W.Range, Player.Instance.Position);
            }

            if (Annie.R.IsReady() && AnnieMenu.CheckBox(AnnieMenu.Draw, "R"))
            {
                Circle.Draw(Color.DarkBlue, Annie.R.Range, Player.Instance.Position);
            }

            if (Annie.R.IsReady() && Annie.Flash.IsReady() && AnnieMenu.CheckBox(AnnieMenu.Draw, "Flash"))
            {
                Circle.Draw(Color.LimeGreen, Annie.Flash.Range + Annie.R.Range, Player.Instance.Position);
            }
        }
Esempio n. 7
0
        private static void Game_OnUpdate(EventArgs args)
        {
            if (Player.Instance.IsDead)
            {
                return;
            }

            SkinHack.Init();
            Tibbers.Init();

            if (AnnieMenu.Keybind(AnnieMenu.Combo, "Flash"))
            {
                var Target = TargetSelector.GetTarget(Flash.Range + R.Range, DamageType.Magical);

                if (Target != null)
                {
                    if (Flash.IsReady() && R.IsReady())
                    {
                        var RPred = R.GetPrediction(Target);

                        if (RPred.HitChancePercent >= AnnieMenu.Slider(AnnieMenu.Principal, "RPred"))
                        {
                            Flash.Cast(Player.Instance.Position.Extend(Target.Position, Flash.Range).To3D());

                            Core.DelayAction(() => R.Cast(RPred.UnitPosition), 150);
                        }
                    }
                }
            }

            if (AnnieMenu.CheckBox(AnnieMenu.Combo, "E"))
            {
                if (Player.Instance.IsRecalling())
                {
                    return;
                }

                if (!HasStun())
                {
                    if (E.IsReady())
                    {
                        E.Cast();
                    }
                }
            }

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

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                Modes.Laneclear.Init();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                Modes.Jungleclear.Init();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit))
            {
                Modes.Lasthit.Init();
            }
        }