Пример #1
0
        private static void Game_OnUpdate(EventArgs args)
        {
            if (combo.GetValue <MenuKeyBind>("ActiveCombo").Active)
            {
                Combo(GetEnemy);
            }
            if (combo.GetValue <MenuKeyBind>("TheLine").Active)
            {
                TheLine(GetEnemy);
            }
            if (harass.GetValue <MenuKeyBind>("ActiveHarass").Active)
            {
                Harass(GetEnemy);
            }
            if (lanefarm.GetValue <MenuKeyBind>("Activelane").Active)
            {
                Laneclear();
            }
            if (jungle.GetValue <MenuKeyBind>("Activejungle").Active)
            {
                JungleClear();
            }
            if (lasthit.GetValue <MenuKeyBind>("ActiveLast").Active)
            {
                LastHit();
            }
            if (misc.GetValue <MenuBool>("AutoE").Enabled)
            {
                CastE();
            }

            if (Environment.TickCount >= clockon && countdanger > countults)
            {
                _r.Cast(TargetSelector.GetTarget(640, DamageType.Physical));
                countults = countults + 1;
            }


            if (LastCast.GetLastCastedSpell(_player).Name.StartsWith("ZedR"))
            {
                AIMinionClient shadow;
                shadow = ObjectManager.Get <AIMinionClient>()
                         .FirstOrDefault(minion => minion.IsVisible && minion.IsAlly && minion.Name == "Shadow");

                rpos = shadow.Position;
            }


            _player = ObjectManager.Player;


            KillSteal();
        }
Пример #2
0
        private static void TheLine(AIHeroClient t)
        {
            var target = t;

            if (target == null)
            {
                ObjectManager.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
            }
            else
            {
                ObjectManager.Player.IssueOrder(GameObjectOrder.AttackUnit, target);
            }

            if (!_r.IsReady() || target.Distance(_player.Position) >= 640)
            {
                return;
            }
            if (UltStage == UltCastStage.First)
            {
                _r.Cast(target);
            }
            linepos = target.Position.Extend(_player.Position, -500);

            if (target != null && ShadowStage == ShadowCastStage.First && UltStage == UltCastStage.Second)
            {
                //UseItemes(target);

                if (!LastCast.GetLastCastedSpell(_player).SpellData.Name.StartsWith("ZedW"))
                {
                    _w.Cast(linepos);
                    CastE();
                    CastQ(target);


                    if (target != null && combo.GetValue <MenuBool>("UseIgnitecombo").Enabled&& _igniteSlot != SpellSlot.Unknown &&
                        _player.Spellbook.CanUseSpell(_igniteSlot) == SpellState.Ready)
                    {
                        _player.Spellbook.CastSpell(_igniteSlot, target);
                    }
                }
            }

            if (target != null && WShadow != null && UltStage == UltCastStage.Second && target.Distance(_player.Position) > 250 && (target.Distance(WShadow.Position) < target.Distance(_player.Position)))
            {
                _w.Cast();
            }
        }