예제 #1
0
        public static void OnUpdate(EventArgs args)
        {
            if (Environment.TickCount - _lastUpdate < 150)
            {
                return;
            }
            _lastUpdate = Environment.TickCount;

            var player = Heroes.Player;

            if (Decisions.ImSoLonely())
            {
                return;
            }

            if (Program.options["autosharp.options.healup"].Cast <CheckBox>().CurrentValue&& Decisions.HealUp())
            {
                return;
            }

            if (player.UnderTurret(true) && Wizard.GetClosestEnemyTurret().CountNearbyAllyMinions(700) <= 3 && Wizard.GetClosestEnemyTurret().CountAlliesInRange(700) == 0)
            {
                Orbwalker.ActiveModesFlags = Orbwalker.ActiveModes.Harass;
                Player.IssueOrder(GameObjectOrder.MoveTo, player.Position.LSExtend(HeadQuarters.AllyHQ.Position.RandomizePosition(), 800));
                return;
            }

            if (Heroes.Player.InFountain())
            {
                Shopping.Shop();
                Wizard.AntiAfk();
            }

            if (Decisions.Farm())
            {
                return;
            }
            Decisions.Fight();

            if (Orbwalker.OrbwalkPosition.IsZero || Orbwalker.OrbwalkPosition == Game.CursorPos)
            {
                Decisions.ImSoLonely();
            }

            //if (Orbwalker.GetOrbwalkingPoint().IsZero || Orbwalker.GetOrbwalkingPoint() == Game.CursorPos)
            //{
            //Decisions.ImSoLonely();
            //}
        }
예제 #2
0
        public static void OnTick(EventArgs args)
        {
            if (Environment.TickCount - _lastUpdate < 150)
            {
                return;
            }
            _lastUpdate = Environment.TickCount;

            var player = Heroes.Player;

            if (Heroes.Player.InFountain())
            {
                Shopping.Shop();
                Wizard.AntiAfk();
            }
        }
예제 #3
0
        public static void OnUpdate(EventArgs args)
        {
            if (Environment.TickCount - _lastUpdate < 150)
            {
                return;
            }
            _lastUpdate = Environment.TickCount;

            var player = Heroes.Player;

            if (Decisions.ImSoLonely())
            {
                return;
            }

            //if (Program.Config.Item("autosharp.options.healup").GetValue<bool>() && Decisions.HealUp())
            if (Decisions.HealUp())
            {
                return;
            }

            if (player.UnderTurret(true) && Wizard.GetClosestEnemyTurret().CountNearbyAllyMinions(700) <= 3 && Wizard.GetClosestEnemyTurret().Position.CountAlliesInRange(700) == 0)
            {
                //Program.Orbwalker.ActiveMode = MyOrbwalker.OrbwalkingMode.Mixed;
                Orbwalker.ActiveModesFlags = Orbwalker.ActiveModes.Harass;
                Player.IssueOrder(GameObjectOrder.MoveTo, player.Position.Extend(HeadQuarters.AllyHQ.Position.RandomizePosition(), 800).To3D());
                return;
            }

            if (Heroes.Player.InFountain())
            {
                Shopping.Shop();
                Wizard.AntiAfk();
            }

            if (Decisions.Farm())
            {
                return;
            }
            Decisions.Fight();


            if (GetOrbPos == Game.CursorPos)
            {
                Decisions.ImSoLonely();
            }
        }