Пример #1
0
        public override void Active()
        {
            if (user.IsDead)
            {
                return;
            }

            if (MiscMenu.keybind("flee"))
            {
                var target = TargetSelector.GetTarget(E.Range, DamageType.Magical);
                if (target != null)
                {
                    E.Cast(target);
                }

                Orbwalker.OrbwalkTo(Game.CursorPos);
            }

            if (MiscMenu.checkbox("autoECC"))
            {
                var ecc = EntityManager.Heroes.Enemies.FirstOrDefault(e => e.IsKillable(E.Range) && e.IsCC());
                if (ecc != null)
                {
                    E.Cast(ecc);
                }
            }

            ScrybingOrb();

            R.Range = (uint)(1925 + R.Level * 1200);

            if (HarassMenu.keybind("toggle"))
            {
                this.Harass();
            }

            Orbwalker.DisableAttacking = IsCastingR;
            Orbwalker.DisableMovement  = IsCastingR;
            RCharge.TapKeyPressed      = RMenu.keybind("Rtap");

            if (IsCastingR)
            {
                WhileCastingR();
                return;
            }

            if (R.IsReady() && MiscMenu.checkbox("Notifications") && Environment.TickCount - Common.lastNotification > 5000)
            {
                foreach (var enemy in
                         EntityManager.Heroes.Enemies.Where(h => h != null && h.IsKillable() && R.GetDamage(h) * 3 > h.Health))
                {
                    Common.ShowNotification(enemy.ChampionName + ": is killable R!!!", 4000);
                    Common.lastNotification = Environment.TickCount;
                }
            }
        }
Пример #2
0
Файл: Azir.cs Проект: jitart/adc
        public override void Active()
        {
            updatespells();

            if (NewInsec)
            {
                var rpos = user.ServerPosition.Extend(insectpos(), R.Range).To3D();

                var qtime = Game.Time - insecqtime;
                if ((qtime > 0.1f && qtime < 0.1) || TargetSelector.SelectedTarget != null && TargetSelector.SelectedTarget.IsKillable(R.Range - 75))
                {
                    R.Cast(rpos);
                }
            }

            if (HarassMenu.keybind("toggle"))
            {
                this.Harass();
            }

            if (JumperMenu.keybind("jump"))
            {
                Jump(Game.CursorPos);
            }

            if (JumperMenu.keybind("normal") && TargetSelector.SelectedTarget != null)
            {
                Normal(TargetSelector.SelectedTarget);
            }

            if (JumperMenu.keybind("new"))
            {
                New();
            }

            if (AutoMenu.checkbox("tower"))
            {
                var azirtower = ObjectManager.Get <GameObject>().FirstOrDefault(o => o != null && o.Name.ToLower().Contains("towerclicker") && user.Distance(o) < 500);
                if (azirtower != null && azirtower.CountEnemeis(800) >= AutoMenu.slider("Tenemy"))
                {
                    Player.UseObject(azirtower);
                }
            }

            NormalInsec = JumperMenu.keybind("normal");
            NewInsec    = JumperMenu.keybind("new");
        }