Exemple #1
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"));
            }
        }
Exemple #2
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();
            }
        }