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(); } } }
public static void useItems() { var useBTRK = Misc.isChecked(ItemsMenu, "useBTRK"); var myHP = Misc.getSliderValue(ItemsMenu, "myHP"); var enemyHP = Misc.getSliderValue(ItemsMenu, "enemyHP"); var usePOT = Misc.isChecked(ItemsMenu, "usePOT"); if (Potion.IsReady() && !_Player.HasBuff("RegenerationPotion") && usePOT) { if (_Player.CountEnemiesInRange(700) > 0 && _Player.Health + 200 < _Player.MaxHealth) { Potion.Cast(); } else if (_Player.Health < _Player.MaxHealth * 0.6) { Potion.Cast(); } } if (BTRK.IsOwned() || BILGE.IsOwned()) { var t = TargetSelector.GetTarget(BTRK.Range, DamageType.Physical); if (t == null || !t.IsValidTarget()) { return; } if (useBTRK && _Player.HealthPercent <= myHP && t.HealthPercent <= enemyHP && (BTRK.IsReady() || BILGE.IsReady())) { BTRK.Cast(t); BILGE.Cast(t); } } }
private void PotionManagement() { if (!Player.InFountain() && !Player.HasBuff("Recall")) { if (ManaPotion.IsReady() && !Player.HasBuff("FlaskOfCrystalWater")) { if (Player.CountEnemiesInRange(1200) > 0 && Player.Mana < 200) { ManaPotion.Cast(); } } if (Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask")) { return; } if (Flask.IsReady()) { if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth) { Flask.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Flask.Cast(); } else if (Player.CountEnemiesInRange(1200) > 0 && Player.Mana < 200 && !Player.HasBuff("FlaskOfCrystalWater")) { Flask.Cast(); } return; } if (Potion.IsReady()) { if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth) { Potion.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Potion.Cast(); } return; } if (Biscuit.IsReady()) { if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth) { Biscuit.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Biscuit.Cast(); } return; } } }
private static void Misc() { var target = TargetSelector.GetTarget(1000, DamageType.Magical, Player.Instance.Position); // DragonLocation = new Vector3(9866, 4414, -71); // BaronLocation = new Vector3(4930, 10371, -71); if (check(misc, "skinhax")) { myhero.SetSkinId((int)misc["skinID"].Cast <ComboBox>().CurrentValue); } if (check(misc, "AUTOPOT") && (!myhero.HasBuff("RegenerationPotion") || !myhero.HasBuff("ItemMiniRegenPotion")) && 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(); } } if (target != null && !target.IsZombie && !target.IsInvulnerable && !target.HasUndyingBuff()) { var qpred = DemSpells.Q.GetPrediction(target); var rpred = DemSpells.R.GetPrediction(target); if (check(misc, "ksQ") && DemSpells.Q.CanCast(target) && !qpred.Collision && QDamage(target) > target.Health && slider(pred, "QPred") >= qpred.HitChancePercent) { DemSpells.Q.Cast(qpred.CastPosition); } if (check(misc, "ksR") && DemSpells.R.CanCast(target) && RDamage(target) > target.Health) { if (rpred.HitChancePercent >= slider(pred, "RPred") || rpred.HitChance == HitChance.Immobile || target.HasBuffOfType(BuffType.Stun)) { DemSpells.R.Cast(rpred.CastPosition); } } if (check(misc, "autoign") && ignt.IsReady() && target.IsValidTarget(ignt.Range) && myhero.GetSummonerSpellDamage(target, DamageLibrary.SummonerSpells.Ignite) > target.Health) { ignt.Cast(target); } } }
private static void Misc() { var Qtarget = TargetSelector.GetTarget(DemSpells.Q.Range, DamageType.Magical, Player.Instance.Position); if (Qtarget != null && Qtarget.ValidTarget((int)DemSpells.Q.Range) && key(qsett, "FORCEQ") && DemSpells.Q.IsReady() && check(qsett, "Q" + Qtarget.ChampionName)) { QDATA.Target = Qtarget; Prediction.Manager.PredictionOutput Qpred = Prediction.Manager.GetPrediction(QDATA); if (DemSpells.Q.Cast(Qpred.CastPosition)) { return; } } var target = TargetSelector.GetTarget(500, DamageType.Magical, Player.Instance.Position); if (target != null && target.ValidTarget(1000) && check(misc, "KSR") && DemSpells.R.CanCast(target) && target.Health < myhero.GetSpellDamage(target, SpellSlot.R) && Prediction.Health.GetPrediction(target, DemSpells.R.CastDelay) > 0 && DemSpells.R.Cast()) { 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 (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee) && check(misc, "WFLEE") && DemSpells.W.IsReady() && DemSpells.W.Cast()) { return; } if (check(misc, "skinhax")) { myhero.SetSkinId((int)misc["skinID"].Cast <ComboBox>().CurrentValue); } }
private static void Misc() { var target = TargetSelector.GetTarget(1000, DamageType.Magical, Player.Instance.Position); 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, "skinhax")) { myhero.SetSkinId((int)misc["skinID"].Cast <ComboBox>().CurrentValue); } if (target != null && target.IsValidTarget() && !target.IsInvulnerable) { if (check(misc, "ksQ") && myhero.Spellbook.GetSpell(SpellSlot.Q).IsReady&& Prediction.Health.GetPrediction(target, 250) > 0 && Prediction.Health.GetPrediction(target, 250) <= QDamage(target) && HasMount() ? DemSpells.Q1.CanCast(target) : DemSpells.Q2.CanCast(target)) { var qpred = HasMount() ? DemSpells.Q1.GetPrediction(target) : DemSpells.Q2.GetPrediction(target); if (HasMount() && qpred.CollisionObjects.Where(x => x.IsEnemy).Count() > 0) { return; } else if (qpred.HitChancePercent >= (HasMount() ? slider(pred, "Q1Pred") : slider(pred, "Q2Pred")) && DemSpells.Q1.Cast(qpred.CastPosition)) { return; } } if (Ignite != null && check(misc, "autoign") && Ignite.IsReady() && target.IsValidTarget(Ignite.Range) && myhero.GetSummonerSpellDamage(target, DamageLibrary.SummonerSpells.Ignite) > target.Health && Ignite.Cast(target)) { return; } } }
private static void Misc() { if (check(misc, "W") && DemSpells.W.IsReady()) { if (check(misc, "WCOMBO") && !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { return; } var Enemies = EntityManager.Heroes.Enemies.Where(x => !x.IsDead && x.IsValid() && x.Distance(myhero.Position) < 500 && !x.IsFleeing); if (Enemies != null && Enemies.Count() >= slider(misc, "WMINE") && myhero.HealthPercent <= slider(misc, "WMINH")) { DemSpells.W.Cast(); } } var target = TargetSelector.GetTarget(1000, DamageType.Magical, Player.Instance.Position); if (target != null && target.IsValidTarget() && !target.IsInvulnerable) { if (ignt != null && check(misc, "autoign") && ignt.IsReady() && target.IsValidTarget(ignt.Range) && myhero.GetSummonerSpellDamage(target, DamageLibrary.SummonerSpells.Ignite) > target.Health) { ignt.Cast(target); } } 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, "skinhax")) { myhero.SetSkinId((int)misc["skinID"].Cast <ComboBox>().CurrentValue); } }
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")); } }
private static void Potions() { if (Player.Instance.IsInFountain() || Player.Instance.IsRecalling() || Player.Instance.IsUsingPotion() || (!Hunter.IsOwned() && !Refillable.IsOwned() && !Potion.IsOwned() && !Biscuit.IsOwned() && !Corrupting.IsOwned()) || !Value.Use("activator.potions")) { return; } if (Player.Instance.HealthPercent < Value.Get("activator.potions.hp")) { if (Hunter.IsReady()) { Hunter.Cast(); } else if (Corrupting.IsReady()) { Corrupting.Cast(); } else if (Refillable.IsReady()) { Refillable.Cast(); } else if (Potion.IsReady()) { Potion.Cast(); } else if (Biscuit.IsReady()) { Biscuit.Cast(); } } if (Player.Instance.ManaPercent < Value.Get("activator.potions.mana")) { if (Hunter.IsReady()) { Hunter.Cast(); } else if (Corrupting.IsReady()) { Corrupting.Cast(); } } }
public static void Potions() { if (isChecked(MenuX.Misc, "UsePot") && !_Player.IsInShopRange() && !_Player.HasBuff("recall")) { if (Potion.IsReady() && !_Player.HasBuff("RegenerationPotion")) { if (_Player.CountEnemiesInRange(700) > 0 && _Player.Health + 200 < _Player.MaxHealth) { Potion.Cast(); } else if (_Player.Health < _Player.MaxHealth * 0.6) { Potion.Cast(); } } } }
private void PotionManagement() { if (Player.Health + 250 > Player.MaxHealth) { return; } if (Player.HealthPercent > 50 && Player.CountEnemyHeroesInRange(700) == 0) { return; } if (Player.HasBuff("RegenerationPotion") || Player.HasBuff("Item2010") || Player.HasBuff("ItemCrystalFlask") || Player.HasBuff("ItemCrystalFlaskJungle") || Player.HasBuff("ItemDarkCrystalFlask")) { return; } if (Refillable.IsReady) { Refillable.Cast(); } else if (Potion.IsReady) { Potion.Cast(); } else if (Biscuit.IsReady) { Biscuit.Cast(); } else if (Hunter.IsReady) { Hunter.Cast(); } else if (Corrupting.IsReady) { Corrupting.Cast(); } }
public static void UsePotions() { var usePOt = isChecked(ItemsMenu, "usePOT"); if (!_Player.IsInShopRange() && !_Player.HasBuff("recall") && usePOt) { if (Potion.IsReady() && !_Player.HasBuff("RegenerationPotion")) { if (_Player.CountEnemiesInRange(700) > 0 && _Player.Health + 200 < _Player.MaxHealth) { Potion.Cast(); } else if (_Player.Health < _Player.MaxHealth * 0.6) { Potion.Cast(); } } } }
private static void Misc() { var target = TargetSelector.GetTarget(1200, DamageType.Magical, Player.Instance.Position); 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(); } return; } if (target != null && target.ValidTarget(DamageType.Magical, 1000)) { if (check(misc, "KSE") && DemSpells.E.CanCast(target) && EDamage(target) > Prediction.Health.GetPrediction(target, DemSpells.E.CastDelay) && Prediction.Health.GetPrediction(target, DemSpells.E.CastDelay) > 0 && !target.HasBuff("bansheesveil") && DemSpells.E.Cast(target)) { return; } if (Ignite != null && check(misc, "autoign") && Ignite.IsReady() && target.IsValidTarget(Ignite.Range) && myhero.GetSummonerSpellDamage(target, DamageLibrary.SummonerSpells.Ignite) > target.Health && Ignite.Cast(target)) { return; } } }
private void PotionManagement() { if (Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlaskJungle") || Player.HasBuff("ItemDarkCrystalFlask")) { return; } if (Potion.IsReady()) { if (Player.Health + 200 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0) { Potion.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Potion.Cast(); } return; } else if (Biscuit.IsReady()) { if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0) { Biscuit.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Biscuit.Cast(); } return; } else if (Hunter.IsReady()) { if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0) { Hunter.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Hunter.Cast(); } return; } else if (Corrupting.IsReady()) { if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0) { Corrupting.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Corrupting.Cast(); } return; } else if (Refillable.IsReady()) { if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0) { Refillable.Cast(); } else if (Player.Health < Player.MaxHealth * 0.6) { Refillable.Cast(); } return; } }
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")); }
private static void Misc() { var target = TargetSelector.GetTarget(1000, DamageType.Magical, Player.Instance.Position); 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, "skinhax")) { myhero.SetSkinId((int)misc["skinID"].Cast <ComboBox>().CurrentValue); } if (target != null && target.IsValidTarget() && !target.IsInvulnerable) { var Qpred = DemSpells.Q.GetPrediction(target); if (check(misc, "ksQ") && QDamage(target) > target.Health && DemSpells.Q.CanCast(target) && !Qpred.Collision && Qpred.HitChancePercent >= slider(pred, "QPred")) { DemSpells.Q.Cast(Qpred.CastPosition); } if (check(misc, "autoign") && ignt.IsReady() && target.IsValidTarget(ignt.Range) && myhero.GetSummonerSpellDamage(target, DamageLibrary.SummonerSpells.Ignite) > target.Health) { ignt.Cast(target); } } if (check(misc, "WSAVE") && !myhero.HasWBuff() && DemSpells.W1.IsReady()) { var allies = EntityManager.Heroes.Allies.Where(x => !x.IsDead && x.IsAlly && !x.IsMe && x.Distance(myhero.Position) < DemSpells.W1.Range); var enemies = EntityManager.Heroes.Enemies.Where(x => !x.IsDead && x.IsEnemy && x.Distance(myhero.Position) < 1500); if (allies.Any() && enemies.Any()) { var ClosestAlly = allies.OrderBy(x => x.Distance(myhero.Position)).FirstOrDefault(); var ClosestEnemy = enemies.OrderBy(x => x.Distance(ClosestAlly.Position)).FirstOrDefault(); if (ClosestAlly != null && ClosestEnemy != null) { switch (myhero.CountAlliesInRange(DemSpells.W1.Range) > 1) { case false: if (ClosestAlly.Distance(myhero.Position) <= DemSpells.W1.Range && ClosestAlly.CountEnemiesInRange(800) >= slider(misc, "WMINE") && ClosestAlly.HealthPercent <= slider(misc, "WMINH") && DemSpells.W1.CanCast(ClosestAlly)) { DemSpells.W1.Cast(ClosestAlly); } break; case true: foreach (var ally in allies) { if (ally.Distance(myhero.Position) <= DemSpells.W1.Range && ally.CountEnemiesInRange(800) >= slider(misc, "WMINE") && ally.HealthPercent <= slider(misc, "WMINH") && DemSpells.W1.CanCast(ally)) { DemSpells.W1.Cast(ally); } } break; } } } } }
private static void Misc() { var target = TargetSelector.GetTarget(1000, DamageType.Magical, Player.Instance.Position); //var allies = EntityManager.Heroes.Allies.Where(x => !x.IsDead && x.IsAlly && !x.IsMe && x.Distance(Myhero.Position) < DemSpells.E.Range); var enemies = EntityManager.Heroes.Enemies.Where(x => !x.IsDead && x.IsEnemy && x.Distance(Myhero.Position) < 1500); if (Check(_misc, "skinhax")) { Myhero.SetSkinId(_misc["skinID"].Cast <ComboBox>().CurrentValue); } if (target != null && target.IsValidTarget() && !target.IsInvulnerable) { //var delay = Math.Max(0, target.Distance(Myhero.Position) - 365) / 1.2f - 25; if (Check(_misc, "KSQ") && DemSpells.Q.IsLearned && DemSpells.Q.IsReady() && target.IsValidTarget(DemSpells.Q.Range) && QDamage(target) > target.Health && !target.HasUndyingBuff() && !target.IsZombie && !target.IsInvulnerable) { DemSpells.Q.Cast(); } /* if (check(misc, "KSWQ") && (DemSpells.Q.IsLearned && DemSpells.W.IsLearned) && (DemSpells.Q.IsReady() && DemSpells.W.IsReady()) && * target.IsValidTarget(DemSpells.W.Range) && myhero.Mana >= WQcost() && * (QDamage(target) + WDamage(target)) > (target.Health + target.TotalMagicalDamage)) * { * if (DemSpells.Q.IsInRange(target.Position)) DemSpells.Q.Cast(); * * if (DemSpells.W.Cast(target)) * { * Core.DelayAction(() => DemSpells.Q.Cast(), (int)delay); * } * }*/ if (Check(_misc, "autoign") && Ignt.IsReady() && target.IsValidTarget(Ignt.Range) && Myhero.GetSummonerSpellDamage(target, DamageLibrary.SummonerSpells.Ignite) > target.Health) { Ignt.Cast(target); } } if (Check(_misc, "AUTOPOT") && (!Myhero.HasBuff("RegenerationPotion") || !Myhero.HasBuff("ItemMiniRegenPotion")) && 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(); } } if (Key(_misc, "RKEY") && Comb(_misc, "RMODE") == 0 && DemSpells.R.IsLearned && DemSpells.R.IsReady() && Myhero.HealthPercent <= Slider(_misc, "RMINH") && Myhero.CountEnemiesInRange(1000) > 0) { if (enemies.Count(x => x.Distance(Myhero.Position) < 500) >= Slider(_misc, "RMINE")) { DemSpells.R.Cast(); } } Insec(); }
private static void Misc() { var target = TargetSelector.GetTarget(1000, DamageType.Magical, Player.Instance.Position); if (target != null && target.ValidTarget(1000)) { if (check(misc, "KSQ") && DemSpells.Q.CanCast(target) && myhero.GetSpellDamage(target, SpellSlot.Q) > target.Health && Prediction.Health.GetPrediction(target, DemSpells.Q.CastDelay + (int)((target.Distance(myhero.Position) / DemSpells.Q.Speed) * 1000)) > 0) { QDATA.Target = target; var Qpred = Prediction.Manager.GetPrediction(QDATA); if (Qpred.HitChancePercent >= slider(pred, "QPred") && DemSpells.Q.Cast(Qpred.CastPosition)) { return; } } if (check(misc, "KSW") && DemSpells.W.CanCast(target) && myhero.GetSpellDamage(target, SpellSlot.W) > target.Health && Prediction.Health.GetPrediction(target, DemSpells.W.CastDelay) > 0) { WDATA.Target = target; var Wpred = Prediction.Manager.GetPrediction(WDATA); if (Wpred.RealHitChancePercent >= slider(pred, "WPred") && DemSpells.Q.Cast(Wpred.CastPosition)) { return; } } if (check(misc, "KSR") && DemSpells.R.IsReady() && DemSpells.R.CanCast(target) && RDamage(target) > target.Health && Prediction.Health.GetPrediction(target, 200) > 0 && !target.HasBuff("bansheesveil") && !target.HasBuff("fioraw")) { DemSpells.R.Cast(target); return; } if (Ignite != null && check(misc, "autoign") && Ignite.IsReady() && target.IsValidTarget(Ignite.Range) && myhero.GetSummonerSpellDamage(target, DamageLibrary.SummonerSpells.Ignite) > target.Health) { Ignite.Cast(target); } } if (check(misc, "KSJ") && DemSpells.W.IsLearned && DemSpells.W.IsReady() && EntityManager.MinionsAndMonsters.Monsters.Count(x => x.IsValidTarget(DemSpells.W.Range)) > 0) { foreach (var monster in EntityManager.MinionsAndMonsters.GetJungleMonsters().Where(x => !x.Name.ToLower().Contains("mini") && !x.IsDead && x.Health > 200 && x.IsValidTarget(DemSpells.W.Range) && Prediction.Health.GetPrediction(x, DemSpells.W.CastDelay + 100) > x.Health && (x.Name.ToLower().Contains("dragon") || x.Name.ToLower().Contains("baron") || x.Name.ToLower().Contains("herald")))) { WDATA.Target = monster; var Wpred = Prediction.Manager.GetPrediction(QDATA); if (monster.Name.ToLower().Contains("herald") && Wpred.HitChance == HitChance.High && DemSpells.W.Cast(Wpred.CastPosition)) { return; } else if (!monster.Name.ToLower().Contains("herald") && DemSpells.W.Cast(monster.Position)) { 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, "skinhax")) { myhero.SetSkinId((int)misc["skinID"].Cast <ComboBox>().CurrentValue); } }
private static void Misc() { AIHeroClient target = TargetSelector.GetTarget(1100, DamageType.Magical, Player.Instance.Position); if (target != null && target.ValidTarget(1100)) { if (check(misc, "KSQ") && DemSpells.Q.CanCast(target) && Prediction.Health.GetPrediction(target, DemSpells.Q.CastDelay) > 0f && target.Health < myhero.GetSpellDamage(target, SpellSlot.Q, DamageLibrary.SpellStages.Default) && DemSpells.Q.Cast()) { return; } if (check(misc, "KSE") && DemSpells.E.CanCast(target) && target.Health < myhero.GetSpellDamage(target, SpellSlot.E, DamageLibrary.SpellStages.Default) && Prediction.Health.GetPrediction(target, 1000 * (int)(target.Distance(myhero.Position, false) / DemSpells.E.Speed) + DemSpells.E.CastDelay) > 0f && DemSpells.E.GetPrediction(target).HitChancePercent >= slider(pred, "EPred") && DemSpells.E.Cast(DemSpells.E.GetPrediction(target).CastPosition)) { return; } if (Ignite != null && check(misc, "autoign") && Ignite.IsReady() && target.IsValidTarget(Ignite.Range) && myhero.GetSummonerSpellDamage(target, DamageLibrary.SummonerSpells.Ignite) > target.Health && Ignite.Cast(target)) { return; } } if (Smite != null && Smite.IsReady() && key(jungleclear, "SMITEKEY")) { IEnumerable <Obj_AI_Minion> Monsters = EntityManager.MinionsAndMonsters.GetJungleMonsters(myhero.Position, 500).Where(x => x.IsValidTarget(500) && !x.IsDead && !x.Name.ToLower().Contains("mini")); if (Monsters != null) { using (IEnumerator <Obj_AI_Minion> list = Monsters.GetEnumerator()) { Obj_AI_Minion monster = list.Current; if (Smite.CanCast(monster) && monster.Health < myhero.GetSummonerSpellDamage(monster, DamageLibrary.SummonerSpells.Smite) && Smite.Cast(monster)) { return; } } 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(); } } IEnumerable <Obj_AI_Minion> ValidCrystals = Crystals.Where(x => EntityManager.Heroes.Enemies.Where(y => y.Distance(x) < 230 && y.HasBuff("skarnerpassivecrystalbuffcooldown")) .Any()); if (check(misc, "PING") && !Pinged && ValidCrystals.Any()) { using (IEnumerator <Obj_AI_Minion> list = ValidCrystals.GetEnumerator()) { if (list.MoveNext()) { Obj_AI_Minion crystal = list.Current; TacticalMap.SendPing(PingCategory.Fallback, crystal.Position); Pinged = true; Core.DelayAction(() => { Pinged = false; }, slider(misc, "PINGDELAY") * 1000); return; } } return; } if (key(misc, "SHIELDKEY") && DemSpells.W.IsReady() && myhero.HealthPercent <= slider(misc, "SMINH") && myhero.ManaPercent >= slider(misc, "SMINM")) { IEnumerable <AIHeroClient> list = EntityManager.Heroes.Enemies.Where(x => x.Distance(myhero.Position) < 400); if (list.Any() && list.Count() >= slider(misc, "SMINE") && DemSpells.W.Cast()) { return; } } if (check(misc, "skinhax")) { myhero.SetSkinId((int)misc["skinID"].Cast <ComboBox>().CurrentValue); } }
private static void Misc() { var target = TargetSelector.GetTarget(1600, DamageType.Magical, Player.Instance.Position); if (target != null && target.IsValidTarget() && !target.IsInvulnerable) { if (check(misc, "ksQ") && !IsCougar() && DemSpells.Q1.IsReady() && target.IsValidTarget(DemSpells.Q1.Range) && QDamage(target) > target.Health) { var qpred = DemSpells.Q1.GetPrediction(target); if (qpred.HitChancePercent >= slider(pred, "QPred")) { DemSpells.Q1.Cast(qpred.CastPosition); } } if (ignt != null && check(misc, "autoign") && ignt.IsReady() && target.IsValidTarget(ignt.Range) && myhero.GetSummonerSpellDamage(target, DamageLibrary.SummonerSpells.Ignite) > target.Health) { ignt.Cast(target); } } if (key(misc, "EKEY") && !IsCougar() && DemSpells.E1.IsReady() && myhero.ManaPercent >= slider(misc, "EMINM") && !myhero.IsRecalling()) { var ClosestAlly = EntityManager.Heroes.Allies.Where(x => !x.IsDead && x.IsValidTarget(DemSpells.E1.Range) && x.HealthPercent <= slider(misc, "EMINA")) .OrderBy(x => x.Health) .FirstOrDefault(); switch (comb(misc, "EMODE")) { case 0: if (myhero.HealthPercent <= slider(misc, "EMINH")) { DemSpells.E1.Cast(myhero); } break; case 1: if (ClosestAlly != null) { DemSpells.E1.Cast(ClosestAlly.Position); } break; case 2: if (ClosestAlly != null) { switch (myhero.Health > ClosestAlly.Health) { case true: DemSpells.E1.Cast(ClosestAlly.Position); break; case false: if (myhero.HealthPercent <= slider(misc, "EMINH") && myhero.CountEnemiesInRange(1000) >= slider(misc, "EMINE")) { DemSpells.E1.Cast(myhero.Position); } break; } } else { goto case 0; } break; } } 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 (smite != null && smite.IsReady() && key(jungleclear, "SMITEKEY")) { var Monsters = EntityManager.MinionsAndMonsters.GetJungleMonsters(myhero.Position, 500).Where(x => x.IsValidTarget(500) && !x.IsDead && !x.Name.ToLower().Contains("mini")); if (Monsters != null) { foreach (var monster in Monsters) { var SmiteDamage = myhero.GetSummonerSpellDamage(monster, DamageLibrary.SummonerSpells.Smite); if (smite.CanCast(monster) && monster.Health < SmiteDamage && smite.Cast(monster)) { return; } } } } }
private static void Misc() { var target = TargetSelector.GetTarget(1100, DamageType.Magical, Player.Instance.Position); if (target != null && !target.IsInvulnerable) { if (check(misc, "KSQ") && DemSpells.Q.CanCast(target) && Prediction.Health.GetPrediction(target, DemSpells.Q.CastDelay) > 0 && target.Health < QDamage(target)) { var qpred = DemSpells.Q.GetPrediction(target); if (qpred.HitChancePercent >= slider(pred, "QPred")) { DemSpells.Q.Cast(qpred.CastPosition); } } if (check(misc, "KSW") && DemSpells.W.CanCast(target) && Prediction.Health.GetPrediction(target, DemSpells.W.CastDelay) > 0 && target.Health < WDamage(target)) { var wpred = DemSpells.W.GetPrediction(target); if (wpred.HitChancePercent >= slider(pred, "WPred")) { DemSpells.W.Cast(wpred.CastPosition); } } if (check(misc, "KSE")) { foreach (var enemy in EntityManager.Heroes.Enemies.Where(x => !x.IsDead && x.IsValid && DemSpells.E.CanCast(x) && target.Health < EDamage(target) && Prediction.Health.GetPrediction(target, DemSpells.E.CastDelay) > 0)) { DemSpells.E.Cast(enemy); } } if (check(misc, "KSR") && DemSpells.R.CanCast(target) && Prediction.Health.GetPrediction(target, DemSpells.R.CastDelay) > 0 && target.Health < RDamage(target) && (ComboDamage(target) - RDamage(target)) < target.Health) { DemSpells.R.Cast(target); } if (check(misc, "autoign") && Ignite.IsReady() && target.IsValidTarget(Ignite.Range) && ComboDamage(target) < target.Health && myhero.GetSummonerSpellDamage(target, DamageLibrary.SummonerSpells.Ignite) > target.Health) { Ignite.Cast(target); } } 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, "skinhax")) myhero.SetSkinId((int)misc["skinID"].Cast<ComboBox>().CurrentValue); }