private static void KillSteal() { if (getCheckBoxItem(miscMenu, "Q") && Q.IsReady()) { var target = Q.GetTarget(); if (target != null && Q.IsKillable(target) && Q.Cast(target, getCheckBoxItem(miscMenu, "Packet")).IsCasted()) { return; } } if (getCheckBoxItem(miscMenu, "E") && E.IsReady()) { var target = E.GetTarget(E.Width / 2); if (target != null && E.IsKillable(target) && E.Cast(target, getCheckBoxItem(miscMenu, "Packet")).IsCasted()) { return; } } if (getCheckBoxItem(miscMenu, "R") && R.IsReady()) { var target = R.GetTarget(); if (target != null && R.IsKillable(target)) { R.CastOnUnit(target, getCheckBoxItem(miscMenu, "Packet")); } } }
private static void Game_OnWndProc(WndEventArgs args) { if (args.Msg == 'Q') { var Qtarget = Q.GetTarget(0, Qignored); if (Qtarget != null && SpellQ.GetState() == QState.ThreshQ) { SpellQ.CastQ1(Qtarget); } else { args.Process = false; } } if (args.Msg == 'W') { var FurthestAlly = GetFurthestAlly(); if (FurthestAlly != null) { W.Cast(LeagueSharp.Common.Prediction.GetPrediction(FurthestAlly, W.Delay).CastPosition); } } if (args.Msg == 'E') { var Etarget = E.GetTarget(); if (Etarget != null) { ELogic(Etarget); } else { args.Process = false; } } }
private static void Fight() { if (getCheckBoxItem(comboMenu, "R") && R.IsReady()) { switch (getBoxItem(comboMenu, "RMode")) { case 0: if (R.GetTarget() != null && R.Cast()) { return; } break; case 1: if (Player.CountEnemiesInRange(R.Range) >= getSliderItem(comboMenu, "RCountA") && R.Cast()) { return; } break; } } if (HaveQ) { return; } if (getCheckBoxItem(comboMenu, "Q") && Q.IsReady() && Q.GetTarget(600) != null && ((getCheckBoxItem(comboMenu, "E") && E.IsReady() && E.GetTarget() == null) || !HaveW) && Q.Cast()) { return; } if (getCheckBoxItem(comboMenu, "E") && (!getCheckBoxItem(comboMenu, "EW") || HaveW) && E.CastOnBestTarget().IsCasted()) { return; } if (getCheckBoxItem(comboMenu, "W") && Q.GetTarget(100) != null) { W.Cast(); } }
private static void KillSteal() { if (ksIgnite && Ignite.IsReady()) { var target = TargetSelector.GetTarget(600, DamageType.True); if (target != null) { CastIgnite(target); return; } } if (ksSmite && (Helper.CurrentSmiteType == Helper.SmiteType.Blue || Helper.CurrentSmiteType == Helper.SmiteType.Red)) { var target = TargetSelector.GetTarget(760, DamageType.True); if (target != null) { CastSmite(target); return; } } if (ksQ && Q.IsReady()) { var target = Q.GetTarget(Q.Width / 2); if (target != null && Q.IsKillable(target)) { Q2.Cast(target); return; } } if (ksE && E.IsReady()) { var target = E.GetTarget(); if (target != null && E.IsKillable(target)) { E.Cast(target); } } }
private static bool CastSequence(string mode = null) { mode = string.IsNullOrEmpty(mode) ? Orbwalker.ActiveMode.ToString() : mode; foreach (var spell in Spells.Where(s => Player.Spellbook.GetSpell(s.Slot).IsReady())) { if (mode != "KS" && !Menu.Item(spell.Slot + mode, true).IsActive()) { continue; } if (!Player.Spellbook.GetSpell(spell.Slot).Name.ToLower().Equals(spell.SpellName.ToLower())) { continue; } var s = new Spell(spell.Slot, spell.Range); var collision = spell.CollisionObjects.Length > 1; var type = spell.SpellType.GetSkillshotType(); s.SetSkillshot(spell.Delay, spell.Width, spell.MissileSpeed, collision, type); var targ = s.GetTarget(); if (!targ.IsValidTarget()) { continue; } if ((mode != "KS" || s.IsKillable(targ)) && s.Cast(targ).IsCasted()) { return true; } } return false; }