Esempio n. 1
0
        public override void Execute()
        {
            var minMana = getSliderValue(JungleClearMenu, "jMana");
            var useW    = isChecked(JungleClearMenu, "juseW");
            var useE    = isChecked(JungleClearMenu, "juseE");
            var m       =
                EntityManager.MinionsAndMonsters.GetJungleMonsters(_Player.Position, W.Range)
                .OrderByDescending(x => x.Health)
                .ToList();

            if (!m.Any())
            {
                return;
            }

            if (W.IsReady() && _Player.ManaPercent >= minMana && useW)
            {
                W.Cast(m.First().ServerPosition);
            }
            if (E.IsReady() && useE)
            {
                var mk = m.Where(x => x.Health + (x.PercentHealingAmountMod / 2) < DmgLib.EDamage(x));
                if (mk.Any())
                {
                    E.Cast();
                }
            }
        }
Esempio n. 2
0
        public override void Execute()
        {
            var useW    = isChecked(LaneClearMenu, "luseW");
            var useE    = isChecked(LaneClearMenu, "luseE");
            var minE    = getSliderValue(LaneClearMenu, "lminE");
            var minMana = getSliderValue(LaneClearMenu, "lMana");
            var minions = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, _Player.Position,
                                                                          W.Range);

            if (W.IsReady() && useW &&
                _Player.ManaPercent >= minMana)
            {
                var wfarm = Misc.GetBestCircularFarmLocation(minions.Where(x => x.Distance(_Player) <= W.Range).Select(xm => xm.ServerPosition.To2D()).ToList(), W.Width, W.Range);
                if (wfarm.MinionsHit >= 3)
                {
                    W.Cast(wfarm.Position.To3D());
                }
            }
            if (E.IsReady() && useE)
            {
                var eminions = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy,
                                                                               _Player.Position, E.Range);
                var count = eminions.Count(m => DmgLib.EDamage(m) >= m.Health);
                if (count >= minE)
                {
                    E.Cast();
                }
            }
        }
Esempio n. 3
0
            private void Drawing_OnDraw(EventArgs args)
            {
                // adiciona o check aqui
                if (!isChecked(DrawingsMenu, "drawE"))
                {
                    return;
                }

                foreach (var aiHeroClient in EntityManager.Heroes.Enemies)
                {
                    if (!aiHeroClient.IsHPBarRendered)
                    {
                        continue;
                    }

                    var pos = new Vector2(aiHeroClient.HPBarPosition.X + _xOffset,
                                          aiHeroClient.HPBarPosition.Y + _yOffset);

                    var fullbar = (_barLength) * (aiHeroClient.HealthPercent / 100);
                    var damage  = (_barLength) *
                                  ((DmgLib.EDamage(aiHeroClient) / aiHeroClient.MaxHealth) > 1
                                     ? 1
                                     : (DmgLib.EDamage(aiHeroClient) / aiHeroClient.MaxHealth));
                    Line.DrawLine(Color.FromArgb(100, Color.Aqua), 9f, new Vector2(pos.X, pos.Y),
                                  new Vector2((float)(pos.X + (damage > fullbar ? fullbar : damage)), pos.Y));
                    Line.DrawLine(Color.Black, 3, new Vector2((float)(pos.X + (damage > fullbar ? fullbar : damage) + 1), pos.Y - 4), new Vector2((float)(pos.X + (damage > fullbar ? fullbar : damage) + 1), pos.Y + 5));
                }
            }
Esempio n. 4
0
        public override void Execute()
        {
            var use = isChecked(MiscMenu, "stealM");
            /* Mob Steal*/
            var mob =
                EntityManager.MinionsAndMonsters.Minions.Where(x => x.Distance(_Player) <= E.Range)
                .OrderByDescending(x => x.Health).FirstOrDefault();

            if (mob == null || !use)
            {
                return;
            }
            if (E.IsReady())
            {
                if ((mob.BaseSkinName.Contains("Dragon") ||
                     mob.BaseSkinName.Contains("Baron") ||
                     mob.BaseSkinName.Contains("SRU_Blue") ||
                     mob.BaseSkinName.Contains("SRU_Red")) &&
                    mob.Health + 50 + (mob.PercentBaseHPRegenMod / 2) <= DmgLib.EDamage(mob) &&
                    mob.HasBuff("twitchdeadlyvenom"))
                {
                    E.Cast();
                }
            }
            /* Pot Usage */
            ItemManager.UsePotions();
        }
Esempio n. 5
0
        public override void Execute()
        {
            var t = AdvancedTargetSelector.GetTarget(RActive ? R.Range : W.Range, DamageType.Physical);

            if (t == null || !t.IsValidTarget())
            {
                return;
            }

            Orbwalker.ForcedTarget = t;

            var useW    = isChecked(HarassMenu, "harassW");
            var useE    = isChecked(HarassMenu, "harassE");
            var hMode   = getSliderValue(HarassMenu, "hMode");
            var minMana = getSliderValue(HarassMenu, "harassMana");

            if (W.IsReady() && useW &&
                _Player.ManaPercent >= minMana)
            {
                var pred = W.GetPrediction(t);
                if (pred.HitChance >= HitChance.High)
                {
                    W.Cast(pred.CastPosition);
                }
            }

            if (E.IsReady() && useE)
            {
                switch (hMode)
                {
                case 0:
                    if (CanCastE)
                    {
                        E.Cast();
                    }
                    return;

                case 1:
                    foreach (
                        var enemy in
                        EntityManager.Heroes.Enemies.Where(e => e.IsValidTarget(E.Range) && e.IsEnemy &&
                                                           e.IsVisible && !e.IsZombie && !e.IsDead &&
                                                           e.HasBuff("twitchdeadlyvenom")))
                    {
                        if (DmgLib.EDamage(enemy) >= enemy.Health)
                        {
                            E.Cast();
                        }
                    }
                    return;
                }
            }
        }
Esempio n. 6
0
        public override void Execute()
        {
            var t = AdvancedTargetSelector.GetTarget(RActive ? R.Range : W.Range, DamageType.Physical);

            if (t == null || !t.IsValidTarget())
            {
                return;
            }

            Orbwalker.ForcedTarget = t;

            var useW = isChecked(ComboMenu, "comboW");
            var useE = isChecked(ComboMenu, "comboE");
            var useR = isChecked(ComboMenu, "comboR");
            var minR = getSliderValue(ComboMenu, "comboMinR");

            ItemManager.UseYomu();
            ItemManager.UseBtrk(t);

            if (W.IsReady() && useW)
            {
                var pred = W.GetPrediction(t);
                if (pred.HitChance >= HitChance.High)
                {
                    W.Cast(pred.CastPosition);
                }
            }

            if (E.IsReady() && useE)
            {
                foreach (var enemy in EntityManager.Heroes.Enemies.Where(e => e.IsValidTarget(E.Range) && e.IsEnemy &&
                                                                         e.IsVisible && !e.IsZombie && !e.IsDead &&
                                                                         e.HasBuff("twitchdeadlyvenom")))
                {
                    if (DmgLib.EDamage(enemy) >= enemy.Health)
                    {
                        E.Cast();
                    }
                }
            }

            if (R.IsReady() && _Player.CountEnemiesInRange(R.Range) >= minR && useR)
            {
                R.Cast();
            }
        }