private static void Combo() { var target2 = TargetSelector.GetTarget(R.Range, DamageType.Magical); var QTarget = TargetSelector.GetTarget(Q.Range, DamageType.Mixed); var ETarget = TargetSelector.GetTarget(E.Range, DamageType.Mixed); var item = SpellMenu["item"].Cast <CheckBox>().CurrentValue; if (ETarget == null) { return; } { var useE = SpellMenu["ComboE"].Cast <CheckBox>().CurrentValue; if (E.IsInRange(ETarget) && E.IsReady() && useE && ObjectManager.Player.IsInAutoAttackRange(ETarget)) { E.Cast(); } } if (SpellMenu["ComboQ"].Cast <CheckBox>().CurrentValue&& Q.IsReady() && QTarget.IsValidTarget(Q.Range)) { Q.Cast(QTarget); } if (SpellMenu["ComboR"].Cast <CheckBox>().CurrentValue&& R.IsReady() && target2.IsValidTarget(R.Range)) { R.Cast(target2); } if (Player.Instance.HealthPercent <= 50 || ETarget.HealthPercent < 50 && item && Botrk.IsReady() && Botrk.IsOwned()) { Botrk.Cast(ETarget); } }
public override void AIHeroClient_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (Player.Instance.IsDead || !sender.IsEnemy || !(sender is AIHeroClient) || !misc.IsActive("interrupter")) { return; } if (DodgeSpells.Any(it => it == args.SData.Name)) { if (args.SData.Name == "KatarinaR") { if (Q.IsReady() && Q.IsInRange(sender)) { Q.Cast(); } else if (W.IsReady() && W.IsInRange(sender)) { W.Cast(sender); } return; } if (args.SData.Name == "AbsoluteZero") { if (Q.IsReady() && Q.IsInRange(sender)) { Q.Cast(); } else if (W.IsReady() && W.IsInRange(sender)) { W.Cast(sender); } return; } if (args.SData.Name == "EzrealtrueShotBarrage") { if (Q.IsReady() && Q.IsInRange(sender)) { Q.Cast(); } else if (W.IsReady() && W.IsInRange(sender)) { W.Cast(sender); } return; } if (Q.IsReady() && Q.IsInRange(sender)) { Q.Cast(); return; } if (W.IsReady() && sender.Distance(Player.Instance) <= 300) { W.Cast(sender); return; } } return; }
public override void Combo() { var Target = TargetSelector.GetTarget(Q.Range, DamageType.Magical); if (Target == null || !Target.IsValidTarget()) { return; } if (!EBuff()) { if (E.IsReady() && E.IsInRange(Target) && combo.IsActive("e")) { E.Cast(); } if (Q.IsReady() && Q.IsInRange(Target) && combo.IsActive("q")) { Q.HitChanceCast(Target, combo.Value("q.hitchance%")); } } if (R.IsReady() && Player.CountEnemiesInRange(R.Range) >= combo.Value("r.minenemies") && combo.IsActive("r")) { R.Cast(); } if (W.IsReady() && W.IsInRange(Target) && Target.HasBuff("kennenmarkofstorm") && combo.IsActive("w")) { W.Cast(); } return; }
//-------------------------------------Obj_AI_Base_OnProcessSpellCast-------------------------------------- static void AIHeroClient_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (DodgeSpells.Any(el => el == args.SData.Name) && Menu[args.SData.Name].Cast <CheckBox>().CurrentValue) { if (args.SData.Name == "KatarinaR") { if (Q.IsReady() && Q.IsInRange(sender)) { Q.Cast(); } else if (W.IsReady() && W.IsInRange(sender)) { W.Cast(sender); } return; } if (args.SData.Name == "AbsoluteZero") { if (Q.IsReady() && Q.IsInRange(sender)) { Q.Cast(); } else if (W.IsReady() && W.IsInRange(sender)) { W.Cast(sender); } return; } if (args.SData.Name == "EzrealtrueShotBarrage") { if (Q.IsReady() && Q.IsInRange(sender)) { Q.Cast(); } else if (W.IsReady() && W.IsInRange(sender)) { W.Cast(sender); } return; } if (Q.IsReady() && Q.IsInRange(sender)) { Q.Cast(); return; } if (W.IsReady() && sender.Distance(Player) <= 300) { W.Cast(sender); return; } } return; }
void Harass () { var target = TargetSelector.GetTarget(650, DamageType.Magical); Orbwalker.OrbwalkTo(MousePos); if (HarassMenu["useQHarass"].Cast <CheckBox>().CurrentValue&& Q.IsReady()) { if (Q.IsInRange(target)) { Q.Cast(); } } }
private static void RaperinoCasterino(Obj_AI_Base victim) { try { //Orbwalker.SetAttacks(!Q.IsReady() && !E.IsReady() && player.Distance(victim) < 800f); Orbwalker.ForcedTarget = victim; foreach (var item in player.InventoryItems) { switch ((int)item.Id) { case 3144: if (player.Spellbook.CanUseSpell((SpellSlot)item.Slot) == SpellState.Ready) { item.Cast(victim); } break; case 3146: if (player.Spellbook.CanUseSpell((SpellSlot)item.Slot) == SpellState.Ready) { item.Cast(victim); } break; case 3128: if (player.Spellbook.CanUseSpell((SpellSlot)item.Slot) == SpellState.Ready) { item.Cast(victim); } break; } } if (Q.IsReady() && Q.IsInRange(victim)) { Q.Cast(victim); } if (E.IsReady() && E.IsInRange(victim)) { E.Cast(); } if (W.IsReady() && Combo["useW"].Cast <CheckBox>().CurrentValue&& W.IsInRange(victim.Position) && !(hasBuff(victim, "AkaliMota") && player.Distance(victim) > ObjectManager.Player.GetAutoAttackDamage(player))) { W.Cast(victim);//(V2E(player.Position, victim.Position, player.Distance(victim) + W.Width * 2 - 20)); } if (R.IsReady() && R.IsInRange(victim)) { R.Cast(victim); } if (IgniteSlot != SpellSlot.Unknown && EloBuddy.Player.Instance.Spellbook.CanUseSpell(IgniteSlot) == SpellState.Ready) { Player.Instance.Spellbook.CastSpell(IgniteSlot, victim); } } catch (Exception ex) { Console.WriteLine(ex.Message); } }
public static void JungleClear() { var useQ = JungleClearMenu["QJungle"].Cast <CheckBox>().CurrentValue; var useE = JungleClearMenu["EJungle"].Cast <CheckBox>().CurrentValue; var useW = JungleClearMenu["WJungle"].Cast <CheckBox>().CurrentValue; var mana = JungleClearMenu["JungleMana"].Cast <Slider>().CurrentValue; var jungleMonsters = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(j => j.Health).FirstOrDefault(j => j.IsValidTarget(R.Range)); if (Player.Instance.ManaPercent <= mana) { return; } if (jungleMonsters != null) { if (useQ && Q.IsReady() && Q.IsInRange(jungleMonsters)) { Q.Cast(); } if (useE && E.IsReady() && jungleMonsters.IsValidTarget(800)) { E.Cast(); } if (useW && W.IsReady() && jungleMonsters.IsValidTarget(W.Range)) { W.Cast(); } } }
static void AutoHarass() { var _target = TargetSelector.GetTarget(Q.Range, EloBuddy.DamageType.Magical); if (_target == null || !_target.IsValidTarget()) { return; } if (Q.IsReady() && Misc["Auto Q"].Cast <CheckBox>().CurrentValue&& _target.IsValidTarget(Q.Range)) { Q.Cast(_target); } else if (Q.IsInRange(_target)) { Q.Cast(_target); } if (W.IsReady() && Misc["Auto W"].Cast <CheckBox>().CurrentValue&& _target.IsValidTarget(W.Range)) { W.Cast(); } else if (W.IsInRange(_target)) { W.Cast(); } }
public void laneClear() { var minions = ObjectManager.Get <Obj_AI_Minion>().Where(m => m.IsValidTarget(Q.Range)); if (Q.IsReady() && Q.IsInRange(minions.FirstOrDefault().Position) && Q.GetPrediction(minions.FirstOrDefault()).HitChance >= HitChance.Low) { Q.Cast(minions.FirstOrDefault().Position); } if (W.IsReady()) { W.Cast(Player.Instance); } if (E.IsReady() && E.IsInRange(minions.FirstOrDefault().Position)) { E.Cast(); } }
public static void LastHit() { var useQ = LaneClearMenu["LHQ"].Cast <CheckBox>().CurrentValue; var useW = LaneClearMenu["LHW"].Cast <CheckBox>().CurrentValue; var minions = ObjectManager.Get <Obj_AI_Base>().OrderBy(m => m.Health).Where(m => m.IsMinion && m.IsEnemy && !m.IsDead); foreach (var minion in minions) { if (useQ && Q.IsReady() && Q.IsInRange(minion) && Player.Instance.GetSpellDamage(minion, SpellSlot.Q) >= minion.TotalShieldHealth()) { Q.Cast(); } if (useW && W.IsReady() && minion.IsValidTarget(325) && Player.Instance.GetSpellDamage(minion, SpellSlot.W) >= minion.TotalShieldHealth()) { W.Cast(); } } }
private static void WaveClear() { var useQ = waveClearMenu["waveclearQ"].Cast <CheckBox>().CurrentValue; var useQKillable = waveClearMenu["waveclearQKillable"].Cast <CheckBox>().CurrentValue; var useW = waveClearMenu["waveclearW"].Cast <CheckBox>().CurrentValue; var useR = waveClearMenu["waveclearR"].Cast <CheckBox>().CurrentValue; var reqMana = waveClearMenu["waveclearMana"].Cast <Slider>().CurrentValue; var waitTime = farmingMenu["gatotsuTime"].Cast <Slider>().CurrentValue; var dontQUnderTower = lastHitMenu["noQMinionTower"].Cast <CheckBox>().CurrentValue; if (Player.ManaPercent < reqMana) { return; } if (useQ && Q.IsReady() && Environment.TickCount - gatotsuTick >= waitTime) { if (useQKillable) { var minion = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Q.Range) .FirstOrDefault( x => Player.GetSpellDamage(x, SpellSlot.Q) > x.Health && (!dontQUnderTower || !x.IsUnderTurret())); if (minion != null) { Q.Cast(minion); } } else { Q.Cast(EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Q.Range).FirstOrDefault()); } } if (useW && W.IsReady()) { if (Orbwalker.ForcedTarget is Obj_AI_Minion && W.IsInRange(Orbwalker.ForcedTarget.Position)) { W.Cast(); } } if ((!useR || !R.IsReady()) && (!R.IsReady() || !UltActivated || Player.CountEnemiesInRange(R.Range + 100) != 0)) { return; } // Get best position for ult // var pos = R.GetLineFarmLocation(MinionManager.GetMinions(R.Range)); var posAAA = EntityManager.MinionsAndMonsters.GetLineFarmLocation(entities, R.Width, (int)R.Range, Player.Position.To2D()); R.Cast(posAAA.CastPosition); }
private static void AAResetLane() { var Qmin = EntityManager.MinionsAndMonsters.GetLaneMinions().OrderByDescending(m => m.Health).FirstOrDefault(m => m.IsValidTarget(Q.Range)); if (LaneclearMenu["QLC"].Cast <CheckBox>().CurrentValue&& Q.IsReady() && Q.IsInRange(Qmin) && !LaneclearMenu["Q2LC"].Cast <CheckBox>().CurrentValue) { Q.Cast(Qmin); Orbwalker.ResetAutoAttack(); } if (LaneclearMenu["QLC"].Cast <CheckBox>().CurrentValue&& Q.IsReady() && Q.IsInRange(Qmin) && LaneclearMenu["Q2LC"].Cast <CheckBox>().CurrentValue&& !User.HasBuff("CamilleQPrimingStart")) { Q.Cast(Qmin); Orbwalker.ResetAutoAttack(); } if (LaneclearMenu["QLC"].Cast <CheckBox>().CurrentValue&& Q.IsReady() && Q.IsInRange(Qmin) && LaneclearMenu["Q2LC"].Cast <CheckBox>().CurrentValue&& User.HasBuff("CamilleQPrimingComplete")) { Q.Cast(Qmin); Orbwalker.ResetAutoAttack(); } var Imin = EntityManager.MinionsAndMonsters.GetLaneMinions().OrderByDescending(m => m.Health).FirstOrDefault(m => m.IsValidTarget(200)); if (ItemMenu["tialc"].Cast <CheckBox>().CurrentValue&& Item.HasItem(tiamat.Id) && Item.CanUseItem(tiamat.Id)) { tiamat.Cast(Imin); Orbwalker.ResetAutoAttack(); } if (ItemMenu["hydralc"].Cast <CheckBox>().CurrentValue&& Item.HasItem(hydra.Id) && Item.CanUseItem(hydra.Id)) { hydra.Cast(Imin); Orbwalker.ResetAutoAttack(); } if (ItemMenu["titaniclc"].Cast <CheckBox>().CurrentValue&& Item.HasItem(titanic.Id) && Item.CanUseItem(titanic.Id)) { titanic.Cast(Imin); Orbwalker.ResetAutoAttack(); } }
public static void Combo() { var useQ = ComboMenu["ComboQ"].Cast <CheckBox>().CurrentValue; var useW = ComboMenu["ComboW"].Cast <CheckBox>().CurrentValue; var useE = ComboMenu["ComboE"].Cast <CheckBox>().CurrentValue; var useR = ComboMenu["ComboR"].Cast <CheckBox>().CurrentValue; var MinR = ComboMenu["MinR"].Cast <Slider>().CurrentValue; var MinE = ComboMenu["MinEC"].Cast <Slider>().CurrentValue; foreach (var target in EntityManager.Heroes.Enemies.Where(e => e.IsValidTarget(E.Range) && !e.IsDead && !e.IsZombie)) { if (useQ && Q.IsReady() && target.IsValidTarget(W.Range)) { Q.Cast(); } if (useW && W.IsReady() && !QCasting && target.IsValidTarget(W.Range) && _Player.Distance(target) > Player.Instance.GetAutoAttackRange(target)) { var pred = W.GetPrediction(target); if (pred.HitChance >= HitChance.Medium) { W.Cast(pred.CastPosition); } } if (useE && E.IsReady() && E.IsInRange(target) && target.HasBuff("twitchdeadlyvenom")) { if (ComboMenu["combo" + target.ChampionName].Cast <CheckBox>().CurrentValue&& Stack(target) >= MinE) { E.Cast(); } } if (useR && R.IsReady() && _Player.Position.CountEnemiesInRange(E.Range) >= MinR) { R.Cast(); } } }
public static void Interupt(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs i) { var Inter = Misc["inter"].Cast <CheckBox>().CurrentValue; if (!sender.IsEnemy || !(sender is AIHeroClient) || Player.Instance.IsRecalling()) { return; } if (Inter && R.IsReady() && i.DangerLevel == DangerLevel.High && R.IsInRange(sender)) { R.Cast(); } }
private static void Obj_AI_Hero_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (sender.IsMe && !(miscMenu["stopULT"].Cast <CheckBox>().CurrentValue)) { return; } //Chat.Print(args.SData.Name); if (args.SData.Name.Equals("LuxMaliceCannon") || args.SData.Name.Equals("LuxMaliceCannonMis") && miscMenu["stopULTLux"].Cast <CheckBox>().CurrentValue) { if (Q.IsReady() && Q.IsInRange(sender)) { Q.Cast(); } } else if (args.SData.Name.Equals("EzrealTrueshotBarrage") && miscMenu["stopULTEzreal"].Cast <CheckBox>().CurrentValue) { if (Q.IsReady() && Q.IsInRange(sender)) { Q.Cast(); } else if (W.IsReady() && W.IsInRange(sender)) { W.Cast(sender); } } else if (args.SData.Name.Equals("KatarinaR") && miscMenu["stopULTEKatarina"].Cast <CheckBox>().CurrentValue) { if (Q.IsReady() && Q.IsInRange(sender)) { Q.Cast(); } else if (W.IsReady() && W.IsInRange(sender)) { W.Cast(sender); } } }
public override void Combo() { var Target = TargetSelector.GetTarget(R.Range, DamageType.Magical); if (Target == null || !Target.IsValidTarget()) { return; } if (R.IsInRange(Target) && R.IsReady()) { var PosAndHits = GetBestRPos(Target.ServerPosition.To2D()); if (combo.IsActive("r") && PosAndHits.First().Value >= combo.Value("r.minenemies")) { R.Cast(PosAndHits.First().Key.To3D()); } } if (Q.IsReady() && Q.IsInRange(Target) && combo.IsActive("q")) { Q.Cast(Target); } if (E.IsReady() && E.IsInRange(Target) && combo.IsActive("e")) { E.Cast(); } if (W.IsReady() && Player.Distance(Target) <= Player.GetAutoAttackRange() - 50 && combo.IsActive("w")) { W.Cast(); } return; return; }
public static void LastHit() { var useQ = LaneClearMenu["LHQ"].Cast <CheckBox>().CurrentValue; var useW = LaneClearMenu["LHW"].Cast <CheckBox>().CurrentValue; var minions = ObjectManager.Get <Obj_AI_Base>().OrderBy(m => m.Health).Where(m => m.IsMinion && m.IsEnemy && !m.IsDead); foreach (var minion in minions) { if (useQ && Q.IsReady() && Q.IsInRange(minion) && QDamage(minion) >= minion.TotalShieldHealth()) { Q.Cast(); } if (useW && W.IsReady() && minion.IsValidTarget(275) && minion.IsInAutoAttackRange(Player.Instance) && Player.Instance.Distance(minion.ServerPosition) <= 225f && WDamage(minion) * 2 + Player.Instance.GetAutoAttackDamage(minion) >= minion.TotalShieldHealth()) { W.Cast(); Player.IssueOrder(GameObjectOrder.AttackUnit, minion); } } }
public static void KillSteal() { var KsQ = KillStealMenu["KsQ"].Cast <CheckBox>().CurrentValue; var KsR = KillStealMenu["KsR"].Cast <CheckBox>().CurrentValue; var KsE = KillStealMenu["KsE"].Cast <CheckBox>().CurrentValue; foreach (var target in EntityManager.Heroes.Enemies.Where(e => e.IsValidTarget(R.Range) && !e.HasBuff("JudicatorIntervention") && !e.HasBuff("kindredrnodeathbuff") && !e.HasBuff("Undying Rage") && !e.IsDead && !e.IsZombie)) { if (KsQ && Q.IsReady() && target.IsValidTarget(Q.Range)) { if (target.Health + target.AttackShield <= QDamage(target)) { Q.Cast(target); } } if (KsR && R.IsReady() && target.IsValidTarget(R.Range)) { if (target.Health + target.AttackShield <= RDamage(target)) { var pred1 = R.GetPrediction(target); if (pred1.HitChance >= HitChance.High) { R.Cast(pred1.CastPosition); } } } if (KsE && E.IsReady() && E.IsInRange(target)) { if (target.Health + target.AttackShield <= EDamage(target) * 2 && !EActive) { E.Cast(); } if (target.Health + target.AttackShield <= EDamage(target) && EActive) { E.Cast(); } } if (Ignite != null && KillStealMenu["ign"].Cast <CheckBox>().CurrentValue&& Ignite.IsReady()) { if (target.Health < _Player.GetSummonerSpellDamage(target, DamageLibrary.SummonerSpells.Ignite)) { Ignite.Cast(target); } } } }
public static void Combo() { var target = TargetSelector.GetTarget(W.Range, DamageType.Magical); var useQ = ComboMenu["ComboQ"].Cast <CheckBox>().CurrentValue; var useW = ComboMenu["ComboW"].Cast <CheckBox>().CurrentValue; var useE = ComboMenu["ComboE"].Cast <CheckBox>().CurrentValue; var useR = ComboMenu["ComboR"].Cast <CheckBox>().CurrentValue; var MinR = ComboMenu["MinR"].Cast <Slider>().CurrentValue; var MinE = ComboMenu["MinEC"].Cast <Slider>().CurrentValue; if (target != null) { if (useQ && Q.IsReady() && W.IsInRange(target)) { Q.Cast(); } if (useW && W.IsReady() && W.IsInRange(target)) { var Wpred = W.GetPrediction(target); if (Wpred.HitChance >= HitChance.Medium) { W.Cast(Wpred.CastPosition); } } if (useE && E.IsReady() && E.IsInRange(target) && target.HasBuff("twitchdeadlyvenom")) { if (ComboMenu["combo" + target.ChampionName].Cast <CheckBox>().CurrentValue&& Stack(target) >= MinE) { E.Cast(); } } if (useR && R.IsReady() && _Player.Position.CountEnemiesInRange(W.Range) >= MinR) { R.Cast(); } } }
private static void Combo() { var useQ = ComboMenu["useQ"].Cast <CheckBox>().CurrentValue; var useW = ComboMenu["useW"].Cast <CheckBox>().CurrentValue; var useE = ComboMenu["useE"].Cast <CheckBox>().CurrentValue; var useR = ComboMenu["useR"].Cast <CheckBox>().CurrentValue; var hpPercent = ComboMenu["hpPercent"].Cast <Slider>().CurrentValue; if (Q.IsReady() && useQ) { if (Me.ManaPercent <= ComboMenu["manaM"].Cast <Slider>().CurrentValue) { return; } var targetQ = TargetSelector.GetTarget(Me.GetAutoAttackRange(), DamageType.Physical); if (targetQ.IsValidTarget(Q.Range) && Q.IsInRange(targetQ)) { Q.Cast(); } } if (W.IsReady() && useW) { var targetW = TargetSelector.GetTarget(W.Range, DamageType.Physical); if (targetW.IsValidTarget(W.Range) && !targetW.IsFacing(Me)) { W.Cast(targetW); } } if (E.IsReady() && useE) { var targetE = TargetSelector.GetTarget(E.Range, DamageType.Magical); var predE = E.GetPrediction(targetE); if (targetE.IsValidTarget(E.Range) && predE.HitChance >= HitChance.Medium) { E.Cast(predE.CastPosition); } } if (R.IsReady() && useR && Me.HealthPercent <= hpPercent) { R.Cast(); } }
private static void AntiGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (!e.Sender.IsValidTarget() || e.Sender.Type != Player.Type || !e.Sender.IsEnemy) { return; } if (E.IsReady() && E.IsInRange(sender) && FappadredMenu.gapcloserE()) { E.Cast(sender); } if (W.IsReady() && W.IsInRange(sender) && FappadredMenu.gapcloserW()) { W.Cast(); } }
private static void AntiGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (!e.Sender.IsValidTarget() || e.Sender.Type != Player.Type || !e.Sender.IsEnemy) { return; } if (R.IsReady() && R.IsInRange(sender) && MariagiospaldaMenu.gapcloserR()) { R.Cast(sender); } if (W.IsReady() && W.IsInRange(sender) && MariagiospaldaMenu.gapcloserW()) { W.Cast(); } }
private void Game_OnUpdate(System.EventArgs args) { var target = EntityManager.Heroes.Enemies.OrderBy(x => x.Health).ThenBy(x => x.Distance(Player.Instance)).FirstOrDefault(); if (target == null) { return; } if (_E.State == SpellState.Ready && _E.IsInRange(target)) { _E.Cast(); } if (_Q.State == SpellState.Ready && _Q.IsInRange(target)) { _Q.Cast(target); } }
public void Survi() { var nearestTarget = EntityManager.Heroes.Enemies.OrderBy(x => x.Distance(Player.Instance)).FirstOrDefault(); if (nearestTarget == null || nearestTarget.Distance(Player.Instance) > GetSData(SpellSlot.R).CastRangeDisplayOverride) { return; } if (!UltIsActive && _R.State == SpellState.Ready && Player.Instance.ManaPercent >= 50 && nearestTarget != null && nearestTarget.Distance(Player.Instance) < GetSData(SpellSlot.R).CastRangeDisplayOverride) { _R.Cast(nearestTarget.ServerPosition); } else if (_W.State == SpellState.Ready && _W.IsInRange(nearestTarget)) { _W.Cast(nearestTarget.ServerPosition.Extend(Player.Instance, nearestTarget.BoundingRadius + 50).To3DWorld()); } }
public override void Combo() { if (Target == null || !Target.IsValidTarget()) { return; } if (E.IsReady() && W.IsReady() && combo.IsActive("e") && combo.IsActive("w")) { if (Player.IsInRange(Target, E.Range + W.Range - 60)) { _order = new List <ComboSpell>() { ComboSpell.E, ComboSpell.W }; PCombo(Target); } } else { if (E.IsReady() && combo.IsActive("e")) { E.Cast(Vectors.CorrectSpellRange(Target.ServerPosition, E.Range)); } if (W.IsReady() && combo.IsActive("w") && W.IsInRange(Target)) { W.Cast(); } } if (R.IsReady() && combo.IsActive("r")) { if (!r2Actived && combo.Value("r.minenemies") >= Player.CountEnemiesInRange(600) && Player.IsInRange(Target, E.Range)) { R1.Cast(); } else if (r2Actived && R.IsInRange(Target) && GetRDamage(Target) >= Target.Health) { if (combo.IsActive("r.noprediction")) { R.Cast(Target.ServerPosition); } else { R.HitChanceCast(Target, HitChance.Low); } } } return; }
private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e) { if (!sender.IsValidTarget(Q.Range) || e.DangerLevel != DangerLevel.High || e.Sender.Type != Player.Type || !e.Sender.IsEnemy) { return; } if (R.IsReady() && E.IsInRange(sender) && SanJuanniMenu.interruptR()) { R.Cast(sender); } else if (Q.IsReady() && SanJuanniMenu.interruptQ() && Prediction.Position.PredictLinearMissile( sender, Q.Range, Q.Width, Q.CastDelay, Q.Speed, int.MaxValue).HitChance >= HitChance.Low) { Q.Cast(sender); } }
public void Combo(AIHeroClient target) { if (target.IsChilled()) { if (_E.State == SpellState.Ready && _E.IsInRange(target)) { _E.Cast(target); } } else { if (_Q.State == SpellState.Ready && _Q.IsInRange(target)) { _Q.CastMinimumHitchance(target, HitChance.High); } else if (!UltIsActive && _R.State == SpellState.Ready && _R.IsInRange(target)) { _R.Cast(target.ServerPosition); } } }
public override void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e) { if (e.DangerLevel == DangerLevel.High && sender.IsValidTarget(Q.Range) && sender.GetBuffCount("kennenmarkofstorm") >= 1) { if (Q.IsReady()) { Q.HitChanceCast(sender, 75); } if (!W.IsOnCooldown && W.IsInRange(sender)) { W.Cast(); } if (R.IsReady() && R.IsInRange(sender)) { R.Cast(); } } return; }
public static void JungleClear() { var useW = JungleClearMenu["WJungle"].Cast <CheckBox>().CurrentValue; var mana = JungleClearMenu["MnJungle"].Cast <Slider>().CurrentValue; var useE = JungleClearMenu["EJungle"].Cast <CheckBox>().CurrentValue; var MinE = JungleClearMenu["mineJ"].Cast <Slider>().CurrentValue; var jungleMonsters = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(j => j.Health).FirstOrDefault(j => j.IsValidTarget(W.Range)); if (jungleMonsters != null) { if (useW && W.IsReady() && W.IsInRange(jungleMonsters) && Player.Instance.ManaPercent >= mana) { W.Cast(jungleMonsters); } if (useE && E.IsReady() && E.IsInRange(jungleMonsters) && Player.Instance.ManaPercent >= mana && jungleMonsters.HasBuff("twitchdeadlyvenom")) { if (Stack(jungleMonsters) >= MinE) { E.Cast(); } } } }
private static void LaneClear() { var farmq = ComboMenu["farmq"].Cast <CheckBox>().CurrentValue; var farmw = ComboMenu["farmw"].Cast <CheckBox>().CurrentValue; var farme = ComboMenu["farme"].Cast <CheckBox>().CurrentValue; var minion = EntityManager.MinionsAndMonsters.EnemyMinions.OrderBy(a => a.Health).FirstOrDefault( a => a.Distance(Player.Instance) < _player.GetAutoAttackRange() && !a.IsDead && !a.IsInvulnerable); if (Q.IsReady() && Q.IsInRange(minion) && farmq) { if (Player.HasBuff("Lightslinger")) { return; } Q.Cast(minion); } if (W.IsReady() && W.IsInRange(minion) && farmw) { if (Player.HasBuff("Lightslinger")) { return; } W.Cast(minion); } if (E.IsReady() && farme && E.IsInRange(minion)) { if (Player.HasBuff("Lightslinger")) { return; } E.Cast(Game.CursorPos); } }
public override void Init() { try { try { #region Spells // Defining Spells _q = new Spell.Targeted(SpellSlot.Q, 675); _w = new Spell.Active(SpellSlot.W, 375); _e = new Spell.Targeted(SpellSlot.E, 700); _r = new Spell.Active(SpellSlot.R, 550); #endregion } catch (Exception e) { Console.WriteLine(e); Chat.Print("<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code SPELL)</font>"); } try { #region Menu var combo = MainMenu._combo; string[] s = { "QEWR", "EQWR" }; combo.AddStringList("combo.mode", "Mode: ", s, 1); MainMenu.ComboKeys(true, true, true, true); MainMenu.HarassKeys(true, true, true, true); MainMenu._harass.Add("harass.autow", new CheckBox("Use Auto W")); MainMenu._harass.Add("harass.donteunderturret", new CheckBox("Dont E Under Turret")); MainMenu.FleeKeys(false, false, true, false); MainMenu._flee.Add("flee.ward", new CheckBox("Use Wardjump")); MainMenu.LaneKeys(true, true, true, false); MainMenu._lane.Add("lane.donteunderturret", new CheckBox("Dont E Under Turret")); MainMenu.LastHitKeys(true, true, true, false); MainMenu._lasthit.Add("lasthit.donteunderturret", new CheckBox("Dont E Under Turret")); MainMenu.KsKeys(true, true, true, true); MainMenu._ks.Add("killsteal.ignite", new CheckBox("Use Ignite")); MainMenu._ks.Add("killsteal.donteunderturret", new CheckBox("Dont E Under Turret")); MainMenu.DamageIndicator(); MainMenu.DrawKeys(true, true, true, true); MainMenu._draw.AddSeparator(); MainMenu._draw.AddGroupLabel("Flash Settings"); MainMenu._draw.Add("draw.flash", new CheckBox("Draw flash")); MainMenu._draw.AddColorItem("color.flash"); MainMenu._draw.AddWidthItem("width.flash"); MainMenu._draw.AddSeparator(); MainMenu._draw.AddGroupLabel("Ignite Settings"); MainMenu._draw.Add("draw.ignite", new CheckBox("Draw ignite")); MainMenu._draw.AddColorItem("color.ignite"); MainMenu._draw.AddWidthItem("width.ignite"); _humanizerMenu = MainMenu._menu.AddSubMenu("Humanizer Menu"); _humanizerMenu.AddGroupLabel("Q Settings"); _humanizerMenu.Add("min.q", new Slider("Min Q Delay", 0, 0, 50)); _humanizerMenu.Add("max.q", new Slider("Max Q Delay", 0, 0, 50)); _humanizerMenu.AddSeparator(10); _humanizerMenu.AddGroupLabel("W Settings"); _humanizerMenu.Add("min.w", new Slider("Min W Delay", 0, 0, 50)); _humanizerMenu.Add("max.w", new Slider("Max W Delay", 0, 0, 50)); _humanizerMenu.AddSeparator(10); _humanizerMenu.AddGroupLabel("E Settings"); _humanizerMenu.Add("min.e", new Slider("Min E Delay", 0, 0, 50)); _humanizerMenu.Add("max.e", new Slider("Max E Delay", 0, 0, 50)); _humanizerMenu.AddSeparator(10); _humanizerMenu.AddGroupLabel("R Settings"); _humanizerMenu.Add("min.r", new Slider("Min R Delay", 4, 0, 50)); _humanizerMenu.Add("max.r", new Slider("Max R Delay", 4, 0, 50)); _humanizerMenu.AddSeparator(10); #endregion } catch (Exception e) { Console.WriteLine(e); Chat.Print("<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code MENU)</font>"); } #region UtilityInit DamageIndicator.DamageToUnit = GetActualRawComboDamage; Value.Init(); Value.MenuList.Add(_humanizerMenu); Drawing.OnDraw += DrawRanges; #region MenuValueChange _humanizerMenu["min.q"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["min.q"].Cast<Slider>().CurrentValue > _humanizerMenu["max.q"].Cast<Slider>().CurrentValue) _humanizerMenu["min.q"].Cast<Slider>().CurrentValue = _humanizerMenu["max.q"].Cast<Slider>().CurrentValue; }; _humanizerMenu["max.q"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["max.q"].Cast<Slider>().CurrentValue < _humanizerMenu["min.q"].Cast<Slider>().CurrentValue) _humanizerMenu["max.q"].Cast<Slider>().CurrentValue = _humanizerMenu["min.q"].Cast<Slider>().CurrentValue; }; _humanizerMenu["min.w"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["min.w"].Cast<Slider>().CurrentValue > _humanizerMenu["max.w"].Cast<Slider>().CurrentValue) _humanizerMenu["min.w"].Cast<Slider>().CurrentValue = _humanizerMenu["max.w"].Cast<Slider>().CurrentValue; }; _humanizerMenu["max.w"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["max.w"].Cast<Slider>().CurrentValue < _humanizerMenu["min.w"].Cast<Slider>().CurrentValue) _humanizerMenu["max.w"].Cast<Slider>().CurrentValue = _humanizerMenu["min.w"].Cast<Slider>().CurrentValue; }; _humanizerMenu["min.e"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["min.e"].Cast<Slider>().CurrentValue > _humanizerMenu["max.e"].Cast<Slider>().CurrentValue) _humanizerMenu["min.e"].Cast<Slider>().CurrentValue = _humanizerMenu["max.e"].Cast<Slider>().CurrentValue; }; _humanizerMenu["max.e"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["max.e"].Cast<Slider>().CurrentValue < _humanizerMenu["min.e"].Cast<Slider>().CurrentValue) _humanizerMenu["max.e"].Cast<Slider>().CurrentValue = _humanizerMenu["min.e"].Cast<Slider>().CurrentValue; }; _humanizerMenu["min.r"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["min.r"].Cast<Slider>().CurrentValue > _humanizerMenu["max.r"].Cast<Slider>().CurrentValue) _humanizerMenu["min.r"].Cast<Slider>().CurrentValue = _humanizerMenu["max.r"].Cast<Slider>().CurrentValue; }; _humanizerMenu["max.r"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["max.r"].Cast<Slider>().CurrentValue < _humanizerMenu["min.r"].Cast<Slider>().CurrentValue) _humanizerMenu["max.r"].Cast<Slider>().CurrentValue = _humanizerMenu["min.r"].Cast<Slider>().CurrentValue; }; #endregion #endregion } catch (Exception e) { Console.WriteLine(e); Chat.Print("<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code 503)</font>"); } Game.OnUpdate += delegate { try { #region AutoW if (MainMenu._harass["harass.autow"].Cast<CheckBox>().CurrentValue) { var e = EntityManager.Heroes.Enemies.Where(ee => !ee.IsDead && ee.IsValid); foreach (var enemy in e) { if (_w.IsInRange(enemy) && _w.IsReady() && !_isUlting) { _w.Cast(); } } } #endregion KillSteal(); } catch (Exception e) { Console.WriteLine(e); Chat.Print("<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> san error ocurred. (Code 5)</font>"); } //KillSteal(); }; }