Example #1
0
        public override void useSpells()
        {
            var tar = ARAMTargetSelector.getBestTarget(W.Range);

            if (tar != null)
            {
                useW(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(Q.Range);
            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(E.Range);
            if (tar != null)
            {
                useE(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(R.Range);
            if (tar != null)
            {
                useR(tar);
            }
            if (Tibbers != null && tar != null)
            {
                tar = ARAMTargetSelector.getBestTarget(1500);
                if (Tibbers.Distance(tar.Position) > 200)
                {
                    Player.IssueOrder(GameObjectOrder.MovePet, tar);
                }
                else
                {
                    if (!Orbwalker.IsAutoAttacking || Orbwalker.GetTarget() != tar)
                    {
                        Player.IssueOrder(GameObjectOrder.AttackUnit, tar);
                    }
                }
            }
        }
Example #2
0
        public override void useSpells()
        {
            var tar = ARAMTargetSelector.getBestTarget(W.Range);

            if (tar != null)
            {
                useW(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(Q.Range);
            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(E.Range);
            if (tar != null)
            {
                useE(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(R.Range);
            if (tar != null)
            {
                useR(tar);
            }
            if (Tibbers != null && tar != null)
            {
                tar = ARAMTargetSelector.getBestTarget(1500);
                if (Tibbers.Distance(tar.Position) > 200)
                {
                    EloBuddy.Player.IssueOrder(GameObjectOrder.MovePet, tar);
                }
                else
                {
                    EloBuddy.Player.IssueOrder(GameObjectOrder.AutoAttackPet, tar);
                }
            }
        }
Example #3
0
        protected override void Game_OnGameUpdate(EventArgs args)
        {
            if (Player.IsDead)
            {
                return;
            }

            if (menu.Item("FlashKILL", true).GetValue <KeyBind>().Active)
            {
                Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
                FlashStunRawr();
            }
            if (menu.Item("ComboActive", true).GetValue <KeyBind>().Active)
            {
                Combo();
            }
            else
            {
                //ks check
                if (menu.Item("smartKS", true).GetValue <bool>())
                {
                    SmartKs();
                }

                R_MEC(false);
                W_MEC();

                if (menu.Item("LastHitQ", true).GetValue <KeyBind>().Active || menu.Item("LastHitQToggle", true).GetValue <KeyBind>().Active)
                {
                    LastHit();
                }

                if (menu.Item("LaneClearActive", true).GetValue <KeyBind>().Active)
                {
                    Farm();
                }

                if (menu.Item("HarassActive", true).GetValue <KeyBind>().Active)
                {
                    Harass();
                }

                if (menu.Item("HarassActiveT", true).GetValue <KeyBind>().Active)
                {
                    Harass();
                }

                Charge();
            }

            int mode   = menu.Item("R_Mode", true).GetValue <StringList>().SelectedIndex;
            var target = TargetSelector.GetTarget(2000, TargetSelector.DamageType.Magical);

            if (Tibbers == null || !Tibbers.IsValid || Tibbers.IsDead || Tibbers.Health < 0)
            {
                return;
            }

            if (mode == 0 && target.IsValidTarget(2000))
            {
                Player.IssueOrder(
                    Tibbers.Distance(target) > 210 ? GameObjectOrder.MovePet : GameObjectOrder.AutoAttackPet, target);
            }
            else if (mode == 1)
            {
                Player.IssueOrder(GameObjectOrder.MovePet, Player);
            }
        }