Exemplo n.º 1
0
        static void Misc()
        {
            if (misc.check("QKS") && Q1.IsReady())
            {
                var target = TargetSelector.GetTarget(Q1.Range, DamageType.Physical);

                if (target != null && Q1.GetDamage(target) > target.Health)
                {
                    Q1.CastIfHitchanceMinimum(target, hitchance);
                }
            }

            if (misc.check("AUTOPOT") && !myhero.HasBuffOfType(BuffType.Heal) && myhero.HealthPercent <= slider(misc, "POTMIN") && !myhero.InShop())
            {
                if (Items.CanUseItem(myhero, Potion.Id))
                {
                    Potion.Cast();
                }

                else if (Items.CanUseItem(myhero, Biscuit.Id))
                {
                    Biscuit.Cast();
                }

                else if (Items.CanUseItem(myhero, RPotion.Id))
                {
                    RPotion.Cast();
                }

                else if (Items.CanUseItem(myhero, CPotion.Id))
                {
                    CPotion.Cast();
                }
            }
        }
Exemplo n.º 2
0
        private static void Misc()
        {
            if (menu.check("usee") && E.IsReady()) // Spaghetti shield
            {
                var closee = GameObjects.EnemyHeroes.Where(x => myhero.InAARangeOf(x) && (x.IsFacing(myhero) || x.GetWaypoints().LastOrDefault().DistanceToPlayer() < 100f));

                if (gotAggro && !closee.Any())
                {
                    gotAggro = false;
                }
                else if (gotAggro && closee.Any())
                {
                    E.Cast();
                }
            }

            if (!myhero.HasBuffOfType(BuffType.Heal) && myhero.HealthPercent <= slider(menu, "autopm")) // auto pot
            {
                if (Items.CanUseItem(myhero, Potion.Id))
                {
                    Potion.Cast();
                }

                else if (Items.CanUseItem(myhero, Biscuit.Id))
                {
                    Biscuit.Cast();
                }

                else if (Items.CanUseItem(myhero, RPotion.Id))
                {
                    RPotion.Cast();
                }

                else if (Items.CanUseItem(myhero, CPotion.Id))
                {
                    CPotion.Cast();
                }
            }

            if (menu.check("wks") && W.IsReady() && myhero.CountEnemyHeroesInRange(W.Range) > 0)
            {
                foreach (var target in GameObjects.EnemyHeroes.Where(x => x.IsValidTarget() && W.CanCast(x) && W.GetDamage(x) > x.Health))
                {
                    W.CastIfHitchanceMinimum(target, HitChance.Medium);
                }
            }

            if (skinchange)
            {
                myhero.SetSkin(comb(menu, "skin"));
                skinchange = false;
            }

            menu["autopm"].GetValue <MenuSlider>().Visible = menu["autop"].GetValue <MenuBool>().Enabled;
        }
Exemplo n.º 3
0
        private static void Misc()
        {
            var target = TargetSelector.GetTarget(1000, DamageType.Magical, Player.Instance.Position);

            if (target != null && target.ValidTarget((int)DemSpells.W.Range))
            {
                if (check(misc, "ksE") && DemSpells.E.CanCast(target) && EDamage(target) > target.Health && DemSpells.E.Cast(target.Position))
                {
                    return;
                }

                if (check(misc, "ksW") && DemSpells.W.IsReady() && DemSpells.W.Name.ToLower() == "mordekaisercreepingdeath2" &&
                    TotalWDamage(target, true) > target.Health && DemSpells.W.Cast())
                {
                    return;
                }

                if (check(misc, "autoign") && Ignite.IsReady() && target.IsValidTarget(Ignite.Range) &&
                    myhero.GetSummonerSpellDamage(target, DamageLibrary.SummonerSpells.Ignite) > target.Health && Ignite.Cast(target))
                {
                    return;
                }
            }

            if (check(misc, "AUTOPOT") && (!myhero.HasBuff("RegenerationPotion") && !myhero.HasBuff("ItemMiniRegenPotion") && !myhero.HasBuff("ItemCrystalFlask")) &&
                myhero.HealthPercent <= slider(misc, "POTMIN"))
            {
                if (Item.HasItem(Potion.Id) && Item.CanUseItem(Potion.Id))
                {
                    Potion.Cast();
                }

                else if (Item.HasItem(Biscuit.Id) && Item.CanUseItem(Biscuit.Id))
                {
                    Biscuit.Cast();
                }

                else if (Item.HasItem(RPotion.Id) && Item.CanUseItem(RPotion.Id))
                {
                    RPotion.Cast();
                }
            }

            if (check(misc, "skinhack"))
            {
                myhero.SetSkinId((int)comb(misc, "skinID"));
            }
        }
Exemplo n.º 4
0
        private static void Misc()
        {
            if (misc.check("KSR") && R.IsReady())
            {
                foreach (var hero in GameObjects.EnemyHeroes.Where(x => x.GetRealHealth(DamageType.Magical) < myhero.GetSpellDamage(x, SpellSlot.R) && R.CanCast(x) && !x.HaveSpellShield()).OrderByDescending(x => x.ChampionsKilled))
                {
                    if (hero != null)
                    {
                        R.Cast(hero);
                    }
                }
            }

            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

            if (target != null && target.IsValidTarget())
            {
                if (misc.check("KSQ") && Q.CanCast(target) && QDamage(target) > target.Health)
                {
                    var pred = Q.GetSPrediction(target);

                    //if (pred.HitChance >= hitQ) Q.Cast(pred.CastPosition);
                    Q.Cast(pred.CastPosition);
                }

                if (misc.check("KSW") && W.CanCast(target) && WDamage(target) > target.Health)
                {
                    var pred = W.GetSPrediction(target);

                    if (pred.HitChance >= hitW)
                    {
                        W.Cast(pred.CastPosition);
                    }
                }



                if (Ignite != null && misc.check("autoign") && Ignite.IsReady() && target.IsValidTarget(Ignite.Range) &&
                    myhero.GetSummonerSpellDamage(target, SummonerSpell.Ignite) > target.Health)
                {
                    Ignite.Cast(target);
                }
            }

            if (misc.check("KSJ") && W.IsReady() && GameObjects.JungleLegendary.Any())
            {
                var lmob = GameObjects.JungleLegendary.Where(x => x.IsValidTarget(W.Range) && HealthPrediction.GetPrediction(x, 1000) > 0 && myhero.GetSpellDamage(x, SpellSlot.W) > HealthPrediction.GetPrediction(x, 1000)).FirstOrDefault();

                if (lmob != null && W.IsInRange(lmob.Position))
                {
                    W.Cast(lmob.Position);
                }
            }

            if (misc.check("AUTOPOT") && !myhero.HasBuffOfType(BuffType.Heal) && myhero.HealthPercent <= slider(misc, "POTMIN"))
            {
                if (Items.CanUseItem(myhero, Potion.Id))
                {
                    Potion.Cast();
                }

                else if (Items.CanUseItem(myhero, Biscuit.Id))
                {
                    Biscuit.Cast();
                }

                else if (Items.CanUseItem(myhero, RPotion.Id))
                {
                    RPotion.Cast();
                }

                else if (Items.CanUseItem(myhero, CPotion.Id))
                {
                    CPotion.Cast();
                }
            }
            //myhero.SetSkin(comb(misc, "skinID"));
        }