private static bool _2Chainz() { var chainable = TargetSelector.SelectedTarget ?? TargetSelector.GetTarget(E.Range, DamageType.Magical); if (chainable != null) { if (E.IsReady()) { if (ObjectManager.Player.LSDistance(chainable) < E.Range) { var predA = E.GetPrediction(chainable); if (predA.Hitchance >= HitChance.High) { E.Cast(chainable); } } } else if (R.IsReady() && ObjectManager.Player.Spellbook.GetSpell(SpellSlot.R).Name == "LeblancSoulShackleM") { if (ObjectManager.Player.LSDistance(chainable) < E.Range) { var pred = ER.GetPrediction(chainable); if (pred.Hitchance >= HitChance.High) { ER.Cast(chainable); Console.WriteLine("2Chainz: Cast R(E)"); } } return(true); } return(false); } if (!getCheckBoxItem(comboMenu, "2W") || !W.IsReady() || !W.IsFirstW() || !E.IsReady()) { return(false); } chainable = TargetSelector.SelectedTarget ?? TargetSelector.GetTarget(W.Range + E.Range, DamageType.Magical); if (!chainable.LSIsValidTarget(W.Range + E.Range) || chainable.HasEBuff()) { return(false); } var pos = Player.ServerPosition.LSExtend(chainable.ServerPosition, W.Range + 10); Console.WriteLine("2Chainz: Cast Gapclose W"); return(W.Cast(pos)); }
public static void Combo() { if (MenuManager.ComboMenu["R"].GetValue <MenuBool>().Enabled&& SpellManager.R.IsReady()) { if (MenuManager.ComboMenu["QUpgradeHits"].GetValue <MenuSliderButton>().Enabled&& QR.IsReady()) { var target = TargetSelector.GetTarget(500); if (target != null) { if (target.IsValidTarget(QR.Range) && objPlayer.Position.CountEnemyHeroesInRange(550) >= MenuManager.ComboMenu["QUpgradeHits"].GetValue <MenuSliderButton>().Value&& objPlayer.HasBuff("HeimerdingerR")) { SpellManager.Q.Cast(objPlayer.Position.Extend(target.Position, +280)); } else if (!objPlayer.HasBuff("HeimerdingerR") && objPlayer.Position.CountEnemyHeroesInRange(550) <= MenuManager.ComboMenu["QUpgradeHits"].GetValue <MenuSliderButton>().Value) { SpellManager.R.Cast(); } } } switch (MenuManager.ComboMenu["RMode"].GetValue <MenuList>().SelectedValue) { case "E-R-W": var target = TargetSelector.GetTarget(WR.Range); if (target.Health < DamageManager.GetDamageByChampion(target)) { if (target.IsValidTarget(SpellManager.E.Range) && MenuManager.ComboMenu["E"].GetValue <MenuBool>().Enabled) { var getPrediction = SpellManager.E.GetPrediction(target); if (getPrediction.Hitchance >= HitChance.High) { SpellManager.E.Cast(getPrediction.CastPosition); } } if (target.IsValidTarget(WR.Range) && SpellManager.W.IsReady() && objPlayer.HasBuff("HeimerdingerR")) { var getPrediction = WR.GetPrediction(target); if (getPrediction.Hitchance >= HitChance.Immobile && Variables.TickCount - SpellManager.E.LastCastAttemptT > 500) { WR.Cast(getPrediction.CastPosition); } } else if (!objPlayer.HasBuff("HeimerdingerR") && !SpellManager.E.IsReady()) { if (SpellManager.E.IsReady() && !SpellManager.W.IsReady()) { return; } SpellManager.R.Cast(); } } break; case "W-R-E": target = TargetSelector.GetTarget(ER.Range); if (target.IsValidTarget(SpellManager.W.Range) && MenuManager.ComboMenu["W"].GetValue <MenuBool>().Enabled) { var getPrediction = SpellManager.W.GetPrediction(target); if (getPrediction.Hitchance >= HitChance.High) { SpellManager.W.Cast(getPrediction.CastPosition); } } if (target.IsValidTarget(ER.Range) && SpellManager.E.IsReady() && objPlayer.HasBuff("HeimerdingerR")) { var getPrediction = ER.GetPrediction(target); if (getPrediction.Hitchance >= HitChance.Immobile) { ER.Cast(getPrediction.CastPosition); } } else if (!objPlayer.HasBuff("HeimerdingerR") && !SpellManager.W.IsReady()) { SpellManager.R.Cast(); } break; } } if (MenuManager.ComboMenu["E"].GetValue <MenuBool>().Enabled&& SpellManager.E.IsReady() && !objPlayer.HasBuff("HeimerdingerR")) { var target = TargetSelector.GetTarget(SpellManager.E.Range); if (target.IsValidTarget(SpellManager.E.Range) && target != null) { var getPrediction = SpellManager.E.GetPrediction(target); SpellManager.E.Cast(getPrediction.CastPosition); } } if (MenuManager.ComboMenu["Q"].GetValue <MenuBool>().Enabled&& SpellManager.Q.IsReady() && !objPlayer.HasBuff("HeimerdingerR")) { var target = TargetSelector.GetTarget(SpellManager.Q.Range + 300); if (target.IsValidTarget(SpellManager.Q.Range + 300) && target != null) { SpellManager.Q.Cast(objPlayer.Position.Extend(target.Position, +300)); } } if (MenuManager.ComboMenu["W"].GetValue <MenuBool>().Enabled&& SpellManager.W.IsReady() && !objPlayer.HasBuff("HeimerdingerR") && !SpellManager.E.IsReady()) { var target = TargetSelector.GetTarget(SpellManager.W.Range); if (target.IsValidTarget(SpellManager.W.Range) && target != null) { var getPrediction = SpellManager.W.GetPrediction(target); SpellManager.W.Cast(getPrediction.CastPosition); } } }
private void OnCombo() { var target = GetBestEnemyHeroTargetInRange(1500); bool useR = Menu["combo"]["user"].Enabled; if (!target.IsValidTarget()) { return; } bool useQ = Menu["combo"]["useq"].Enabled; if (Q.Ready && target.IsValidTarget(650) && useQ && !Player.HasBuff("HeimerdingerR")) { Q.Cast(Player.Position.Extend(target.Position, +300)); } bool useW = Menu["combo"]["usew"].Enabled; if (W.Ready && useW && target.IsValidTarget(W.Range) && !Player.HasBuff("HeimerdingerR")) { W.Cast(target); } bool useE = Menu["combo"]["usee"].Enabled; if (E.Ready && useE && target.IsValidTarget(E.Range) && !Player.HasBuff("HeimerdingerR")) { E.Cast(target); } if (R.Ready) { switch (Menu["combo"]["ro"].As <MenuList>().Value) { case 0: float hitQR = Menu["combo"]["useqhit"].As <MenuSlider>().Value; if (target.IsValidTarget(QR.Range) && Q.Ready && Player.CountEnemyHeroesInRange(550) >= hitQR && Player.HasBuff("HeimerdingerR")) { Q.Cast(Player.Position.Extend(target.Position, +300)); } else if (!Player.HasBuff("HeimerdingerR") && useR) { R.Cast(); } break; case 1: if (target.IsValidTarget(WR.Range) && W.Ready && Player.HasBuff("HeimerdingerR")) { W.Cast(target); } else if (!Player.HasBuff("HeimerdingerR") && useR) { R.Cast(); } break; case 2: if (target.IsValidTarget(ER.Range) && E.Ready && Player.HasBuff("HeimerdingerR")) { ER.Cast(target); } else if (!Player.HasBuff("HeimerdingerR") && useR) { R.Cast(); } break; } } }