示例#1
0
        /// <summary>
        ///     Every tick update
        /// </summary>
        /// <param name="args"></param>
        #region On Update
        private static void OnGameUpdate(EventArgs args)
        {
            /*
             * foreach (var buff in Player.Buffs)
             * {
             *  if (buff.Name.ToLower() != "odinplayerbuff"
             || buff.Name.ToLower() != "kalistacoopstrikeally"
             || buff.Name != "pyromania_marker")
             ||     Game.PrintChat(buff.Name.ToLower());
             ||}
             */

            if (Player.LSIsRecalling())
            {
                return;
            }

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

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

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

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                Laneclear();
            }

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

            var target = TargetSelector.GetTarget(Q.Range + 200, DamageType.Magical);

            if (target != null)
            {
                if (Player.LSDistance(target) > Q.Range &&
                    ((!Q.IsReady() || !W.IsReady() || !R.IsReady())))
                {
                    PortAIO.OrbwalkerManager.SetAttack(false);
                }
                else
                {
                    PortAIO.OrbwalkerManager.SetAttack(true);
                }
            }

            Parostack();
            KillSteal();

            if (!GlobalManager.getKeyBindItem(tibbersMenu, "tibmove"))
            {
                Tibbers.Tibbersmove();
            }
            else if (GlobalManager.getKeyBindItem(tibbersMenu, "tibmove"))
            {
                MoveTibbers();
            }

            if (GlobalManager.getKeyBindItem(flashMenu, "comboMenu.flashmenu.flashr") ||
                GlobalManager.getKeyBindItem(flashMenu, "comboMenu.flashmenu.flasher"))
            {
                TibbersFlash();
            }
        }
示例#2
0
文件: Annie.cs 项目: wade1990/PortAIO
        /// <summary>
        ///     Every tick update
        /// </summary>
        /// <param name="args"></param>
        #region On Update
        private static void OnGameUpdate(EventArgs args)
        {
            /*
             * foreach (var buff in Player.Buffs)
             * {
             *  if (buff.Name.ToLower() != "odinplayerbuff"
             || buff.Name.ToLower() != "kalistacoopstrikeally"
             || buff.Name != "pyromania_marker")
             ||     Chat.Print(buff.Name.ToLower());
             ||}
             */

            Orbwalker.SetAttack(true);
            //if (Player.IsRecalling())
            //    return;

            switch (Orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                LastHit();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Mixed();
                break;
            }
            var target = TargetSelector.GetTarget(Q.Range + 200, TargetSelector.DamageType.Magical);

            if (target != null)
            {
                if (Player.Distance(target) > Q.Range &&
                    ((!Q.IsReady() || !W.IsReady() || !R.IsReady())))
                {
                    Orbwalker.SetAttack(false);
                }
                else
                {
                    Orbwalker.SetAttack(true);
                }
            }
            Parostack();
            KillSteal();

            if (!Config.Item("tibmove").GetValue <KeyBind>().Active)
            {
                Tibbers.Tibbersmove();
            }
            else if (Config.Item("tibmove").GetValue <KeyBind>().Active)
            {
                MoveTibbers();
            }

            if (Config.Item("comboMenu.flashmenu.flashr").GetValue <KeyBind>().Active ||
                Config.Item("comboMenu.flashmenu.flasher").GetValue <KeyBind>().Active)
            {
                TibbersFlash();
            }
        }
示例#3
0
 public static void Main()
 {
     Annie.Load();
     Tibbers.OnLoad();
 }