private void LogicR() { bool enemyLowHp = MainMenu.Item("enemyLowHp", true).GetValue <bool>(); var rCount = MainMenu.Item("rCount", true).GetValue <Slider>().Value; if (R.IsReady() && Program.Combo) { foreach (var enemy in HeroManager.Enemies.Where(enemy => enemy.IsValidTarget(R.Range) && OktwCommon.ValidUlt(enemy))) { if (enemy.IsValidTarget(R.Range)) { var poutput = R.GetPrediction(enemy, true); if (enemyLowHp && enemy.HealthPercent <= 20) { Program.CastSpell(R, enemy); } var aoeCount = poutput.AoeTargetsHitCount; if (aoeCount >= rCount && rCount > 0) { R.Cast(poutput.CastPosition); } } } } }
private void LogicR() { var rCount = Config.Item("rCount", true).GetValue<Slider>().Value; foreach (var t in HeroManager.Enemies.Where(t => t.IsValidTarget(R.Range) && OktwCommon.ValidUlt(t)).OrderBy(t => t.Health)) { int Rmode = Config.Item("Rmode" + t.ChampionName, true).GetValue<StringList>().SelectedIndex; if (Rmode == 2) continue; else if (Rmode == 1) Program.CastSpell(R, t); if (rCount > 0) R.CastIfWillHit(t, rCount); if (Config.Item("rCc", true).GetValue<bool>() && !OktwCommon.CanMove(t) && t.HealthPercent > 20 * t.CountAlliesInRange(500) ) Utility.DelayAction.Add(800 - (int)(Player.Distance(t.Position) / 2) , () => CastRtime(t)); if (Config.Item("rCombo", true).GetValue<bool>() && Program.Combo) { Program.CastSpell(R, t); return; } } }
private static void LogicR() { var bounceRange = 430; var t2 = TargetSelector.GetTarget(R.Range + bounceRange, DamageType.Magical); if (t2.IsValidTarget(R.Range) && t2.CountEnemiesInRange(bounceRange) >= getSliderItem(rMenu, "rCount") && getSliderItem(rMenu, "rCount") > 0) { R.Cast(t2); } if (t2.IsValidTarget() && OktwCommon.ValidUlt(t2)) { if (t2.CountAlliesInRange(550) == 0 || Player.HealthPercent < 50 || t2.CountEnemiesInRange(bounceRange) > 1) { var prepos = R.GetPrediction(t2).CastPosition; var dmgR = R.GetDamage(t2); if (t2.Health < dmgR * 3) { var totalDmg = dmgR; var minionCount = CountMinionsInRange(bounceRange, prepos); if (t2.IsValidTarget(R.Range)) { if (prepos.CountEnemiesInRange(bounceRange) > 1) { if (minionCount > 2) { totalDmg = dmgR * 2; } else { totalDmg = dmgR * 3; } } else if (minionCount > 0) { totalDmg = dmgR * 2; } if (W.IsReady()) { totalDmg += W.GetDamage(t2); } if (E.IsReady()) { totalDmg += E.GetDamage(t2); } if (Q.IsReady()) { totalDmg += Q.GetDamage(t2); } totalDmg += BonusDmg(t2); totalDmg += OktwCommon.GetEchoLudenDamage(t2); if (Items.HasItem(3155, t2)) { totalDmg = totalDmg - 250; } if (Items.HasItem(3156, t2)) { totalDmg = totalDmg - 400; } if (totalDmg > t2.Health - OktwCommon.GetIncomingDamage(t2) && Player.GetAutoAttackDamage(t2) * 2 < t2.Health) { R.CastOnUnit(t2); } } else if (t2.Health - OktwCommon.GetIncomingDamage(t2) < dmgR * 2 + BonusDmg(t2)) { if (Player.CountEnemiesInRange(R.Range) > 0) { foreach (var t in Program.Enemies.Where(enemy => enemy.IsValidTarget(R.Range) && enemy.LSDistance(prepos) < bounceRange)) { R.CastOnUnit(t); } } else { var minions = Cache.GetMinions(Player.Position, R.Range); foreach (var minion in minions.Where(minion => minion.IsValidTarget(R.Range) && minion.LSDistance(prepos) < bounceRange)) { R.CastOnUnit(minion); } } } } } } }
private void LogicR() { if (Player.UnderTurret(true) && Config.Item("Rturrent", true).GetValue <bool>()) { return; } if (Config.Item("autoR", true).GetValue <bool>() && Player.CountEnemiesInRange(800) == 0 && Game.Time - OverKill > 0.6) { R.Range = Config.Item("MaxRangeR", true).GetValue <Slider>().Value; foreach (var target in HeroManager.Enemies.Where(target => target.IsValidTarget(R.Range) && OktwCommon.ValidUlt(target))) { double predictedHealth = target.Health - OktwCommon.GetIncomingDamage(target); if (Config.Item("Rcc", true).GetValue <bool>() && target.IsValidTarget(Q.Range + E.Range) && target.Health < Player.MaxHealth && !OktwCommon.CanMove(target)) { R.Cast(target, true, true); } double Rdmg = R.GetDamage(target); if (Rdmg > predictedHealth) { Rdmg = getRdmg(target); } if (Rdmg > predictedHealth && target.CountAlliesInRange(500) == 0 && Player.Distance(target) > Config.Item("MinRangeR", true).GetValue <Slider>().Value) { Program.CastSpell(R, target); Program.debug("R normal"); } if (Program.Combo && Player.CountEnemiesInRange(1200) == 0) { R.CastIfWillHit(target, Config.Item("Raoe", true).GetValue <Slider>().Value, true); } } } }
private void LogicR() { foreach (var target in HeroManager.Enemies.Where(target => target.IsValidTarget(R1.Range) && OktwCommon.ValidUlt(target))) { double rDmg = OktwCommon.GetKsDamage(target, R); if (rDmg < target.Health) { continue; } if (Config.Item("overkillR", true).GetValue <bool>() && target.Health < Player.Health) { if (SebbyLib.Orbwalking.InAutoAttackRange(target)) { continue; } if (target.CountAlliesInRange(400) > 0) { continue; } } double rDmg2 = rDmg * 0.8; if (target.IsValidTarget(R.Range) && !OktwCommon.IsSpellHeroCollision(target, R) && rDmg > target.Health) { Program.CastSpell(R, target); Program.debug("Rdmg"); } else if (rDmg2 > target.Health) { if (!OktwCommon.IsSpellHeroCollision(target, R1)) { Program.CastSpell(R1, target); Program.debug("Rdmg2"); } else if (target.IsValidTarget(1200)) { Program.CastSpell(R1, target); Program.debug("Rdmg2 collision"); } } } }
private void LogicR() { Obj_AI_Hero bestEnemy = null; float pushDistance = 400 + (R.Level * 200); foreach (var enemy in Program.Enemies.Where(enemy => enemy.IsValidTarget(R.Range) && OktwCommon.ValidUlt(enemy))) { if (bestEnemy == null) { bestEnemy = enemy; } else if (Player.Distance(enemy.Position) < Player.Distance(bestEnemy.Position)) { bestEnemy = enemy; } if (OktwCommon.GetKsDamage(enemy, R) + GetEDmg(enemy) > enemy.Health && GetEDmg(enemy) < enemy.Health && Config.Item("autoR", true).GetValue <bool>()) { R.Cast(enemy); Program.debug("R ks"); } var prepos = Prediction.GetPrediction(enemy, 0.4f); var finalPosition = prepos.CastPosition.Extend(Player.Position, -pushDistance); if (Config.Item("turrentR", true).GetValue <bool>()) { if (!finalPosition.UnderTurret(true) && finalPosition.UnderTurret(false) && !Player.UnderTurret(false)) { R.Cast(enemy); Program.debug("R turrent"); } } if (Config.Item("allyR", true).GetValue <bool>() && finalPosition.CountAlliesInRange(500) > 1 && enemy.CountAlliesInRange(350) == 0) { Program.debug("R ally"); R.Cast(enemy); } if (Player.HealthPercent < Config.Item("RgapHP", true).GetValue <Slider>().Value&& enemy.IsValidTarget(270) && enemy.IsMelee && Config.Item("GapCloser" + enemy.ChampionName).GetValue <bool>()) { R.Cast(enemy); Program.debug("R Meele"); } } if (Config.Item("useR", true).GetValue <KeyBind>().Active&& bestEnemy != null) { R.Cast(bestEnemy); } }
private void LogicR() { if (Config.Item("useR", true).GetValue <KeyBind>().Active) { var t = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Physical); if (t.IsValidTarget()) { R.CastIfWillHit(t, 2, true); R.Cast(t, true, true); } } if (Config.Item("autoR", true).GetValue <bool>()) { foreach (var target in HeroManager.Enemies.Where(target => target.IsValidTarget(R.Range) && OktwCommon.ValidUlt(target) && target.CountAlliesInRange(500) == 0)) { float predictedHealth = target.Health - (float)OktwCommon.GetIncomingDamage(target); double Rdmg = CalculateR(target); if (Rdmg * 2 > predictedHealth && Config.Item("Rdmg", true).GetValue <StringList>().SelectedIndex == 1) { Rdmg = Rdmg + getRdmg(target); } var qDmg = Q.GetDamage(target); var eDmg = E.GetDamage(target); if (Rdmg > predictedHealth && !Orbwalking.InAutoAttackRange(target)) { castR(target); Program.debug("R normal"); } else if (Program.Combo && Config.Item("comboR", true).GetValue <bool>() && Orbwalking.InAutoAttackRange(target) && Rdmg * 2 + Player.GetAutoAttackDamage(target) > predictedHealth) { castR(target); Program.debug("R normal"); } else if (Config.Item("Rcc", true).GetValue <bool>() && Rdmg * 2 > predictedHealth && !OktwCommon.CanMove(target) && target.IsValidTarget(E.Range)) { R.Cast(target); Program.debug("R normal"); } else if (Program.Combo && Config.Item("Raoe", true).GetValue <bool>()) { R.CastIfWillHit(target, 3, true); } else if (target.IsValidTarget(E.Range) && Rdmg * 2 + qDmg + eDmg > predictedHealth && Config.Item("Raoe", true).GetValue <bool>()) { R.CastIfWillHit(target, 2, true); } } } }
private void LogicR() { var r = Config[Player.CharacterName]["RConfig"]; if (Player.IsUnderEnemyTurret() && r.GetValue <MenuBool>("Rturret").Enabled) { return; } if (Game.Time - WCastTime > 0.9 && r.GetValue <MenuBool>("autoR").Enabled) { foreach (var target in GameObjects.EnemyHeroes.Where(target => target.IsValidTarget(R.Range) && OktwCommon.ValidUlt(target))) { var predictedHealth = target.Health - OktwCommon.GetIncomingDamage(target); var Rdmg = R.GetDamage(target); if (Rdmg > predictedHealth && !OktwCommon.IsSpellHeroCollision(target, R) && GetRealDistance(target) > bonusRange() + 200) { if (GetRealDistance(target) > bonusRange() + 300 + target.BoundingRadius && target.CountAllyHeroesInRange(500) == 0 && Player.CountEnemyHeroesInRange(400) == 0) { CastSpell(R, target); } else if (target.CountEnemyHeroesInRange(200) > 2) { R.Cast(target, true, false, true); } } } } }
private static void Game_OnGameUpdate(EventArgs args) { if (Player.HasBuff("Recall")) { return; } HaveStun = Player.HasBuff("pyromania_particle"); SetMana(); if (R.IsReady() && (SebbyLib.Program.LagFree(1) || SebbyLib.Program.LagFree(3)) && !HaveTibers) { var realRange = R.Range; if (flash.IsReady()) { realRange = FR.Range; } foreach ( var enemy in SebbyLib.Program.Enemies.Where( enemy => enemy.LSIsValidTarget(realRange) && OktwCommon.ValidUlt(enemy))) { if (enemy.LSIsValidTarget(R.Range)) { var Rmode = getSliderItem(RMenu, "UM" + enemy.NetworkId); if (Rmode == 2) { continue; } var poutput = R.GetPrediction(enemy, true); var aoeCount = poutput.AoeTargetsHitCount; if (Rmode == 1) { R.Cast(enemy); } if (Rmode == 3 && HaveStun) { R.Cast(enemy); } if (aoeCount >= getSliderItem(RMenu, "rCount") && getSliderItem(RMenu, "rCount") > 0) { R.Cast(enemy); } else if (SebbyLib.Program.Combo && HaveStun && getCheckBoxItem(RMenu, "autoRcombo")) { R.Cast(enemy); } else if (getCheckBoxItem(RMenu, "autoRks")) { var comboDmg = OktwCommon.GetKsDamage(enemy, R); if (W.IsReady() && RMANA + WMANA < Player.Mana) { comboDmg += W.GetDamage(enemy); } if (Q.IsReady() && RMANA + WMANA + QMANA < Player.Mana) { comboDmg += Q.GetDamage(enemy); } if (enemy.Health < comboDmg) { R.Cast(poutput.CastPosition); } } } else if (HaveStun && flash.IsReady()) { var poutputFlas = FR.GetPrediction(enemy, true); var aoeCountFlash = poutputFlas.AoeTargetsHitCount; if (HaveStun && aoeCountFlash >= getSliderItem(RMenu, "rCountFlash") && getSliderItem(RMenu, "rCountFlash") > 0) { Player.Spellbook.CastSpell(flash, poutputFlas.CastPosition); R.Cast(poutputFlas.CastPosition); } } } } var t = TargetSelector.GetTarget(Q.Range, DamageType.Magical); if (t.LSIsValidTarget() && SebbyLib.Program.LagFree(2)) { if (Q.IsReady() && getCheckBoxItem(QMenu, "autoQ")) { if (SebbyLib.Program.Combo && RMANA + WMANA < Player.Mana) { Q.Cast(t); } else if (SebbyLib.Program.Farm && RMANA + WMANA + QMANA < Player.Mana && getCheckBoxItem(QMenu, "harrasQ")) { Q.Cast(t); } else { var qDmg = OktwCommon.GetKsDamage(t, Q); var wDmg = W.GetDamage(t); if (qDmg > t.Health) { Q.Cast(t); } else if (qDmg + wDmg > t.Health && Player.Mana > QMANA + WMANA) { Q.Cast(t); } } } if (W.IsReady() && SebbyLib.Program.LagFree(2) && getCheckBoxItem(WMenu, "autoW") && t.LSIsValidTarget(W.Range)) { var poutput = W.GetPrediction(t, true); if (SebbyLib.Program.Combo && RMANA + WMANA < Player.Mana) { W.Cast(poutput.CastPosition); } else if (SebbyLib.Program.Farm && RMANA + WMANA + QMANA < Player.Mana && getCheckBoxItem(WMenu, "harrasW")) { W.Cast(poutput.CastPosition); } else { var wDmg = OktwCommon.GetKsDamage(t, W); var qDmg = Q.GetDamage(t); if (wDmg > t.Health) { W.Cast(poutput.CastPosition); } else if (qDmg + wDmg > t.Health && Player.Mana > QMANA + WMANA) { W.Cast(poutput.CastPosition); } } } } else if (Q.IsReady() || W.IsReady()) { if (getCheckBoxItem(FarmMenu, "farmQ")) { if (SebbyLib.Program.getCheckBoxItem("supportMode")) { if (SebbyLib.Program.LaneClear && Player.Mana > RMANA + QMANA) { farm(); } } else { if ((!HaveStun || SebbyLib.Program.LaneClear) && SebbyLib.Program.Farm) { farm(); } } } } if (SebbyLib.Program.LagFree(3)) { if (!HaveStun) { if (E.IsReady() && !SebbyLib.Program.LaneClear && getCheckBoxItem(EMenu, "autoE") && Player.Mana > RMANA + EMANA + QMANA + WMANA) { E.Cast(); } else if (W.IsReady() && Player.InFountain()) { W.Cast(Player.Position); } } if (R.IsReady()) { if (getCheckBoxItem(RMenu, "tibers") && HaveTibers && Tibbers != null && Tibbers.IsValid) { var enemy = SebbyLib.Program.Enemies.Where( x => x.LSIsValidTarget() && Tibbers.LSDistance(x.Position) < 1000 && !x.UnderTurret(true)) .OrderBy(x => x.LSDistance(Tibbers)) .FirstOrDefault(); if (enemy != null) { EloBuddy.Player.IssueOrder(Tibbers.LSDistance(enemy.Position) > 200 ? GameObjectOrder.MovePet : GameObjectOrder.AutoAttackPet, enemy); } else { var annieTarget = Orbwalker.LastTarget as Obj_AI_Base; if (annieTarget != null) { EloBuddy.Player.IssueOrder( Tibbers.LSDistance(annieTarget.Position) > 200 ? GameObjectOrder.MovePet : GameObjectOrder.AutoAttackPet, annieTarget); } else if (Tibbers.UnderTurret(true)) { EloBuddy.Player.IssueOrder(GameObjectOrder.MovePet, Player); } } } else { Tibbers = null; } } } }
private static void LogicE() { foreach ( var enemy in Program.Enemies.Where(enemy => enemy.LSIsValidTarget(E.Range) && enemy.HasBuff("TwitchDeadlyVenom") && OktwCommon.ValidUlt(enemy))) { if (getCheckBoxItem(eMenu, "Eks") && EDamage(enemy) > enemy.Health + enemy.AttackShield) { E.Cast(); } if (Player.Mana > RMANA + EMANA) { var buffNum = getEBuffCount(enemy); if (getCheckBoxItem(eMenu, "5e") && buffNum == 6) { E.Cast(); } var buffTime = OktwCommon.GetPassiveTime(enemy, "twitchdeadlyvenom"); if (!Orbwalking.InAutoAttackRange(enemy) && (Player.ServerPosition.LSDistance(enemy.ServerPosition) > 950 || buffTime < 1) && 0 < getSliderItem(eMenu, "countE") && buffNum >= getSliderItem(eMenu, "countE")) { E.Cast(); } } } JungleE(); }
private void LogicR() { if (Player.UnderTurret(true) && Config.Item("Rturrent", true).GetValue <bool>()) { return; } if (Game.Time - WCastTime > 0.9 && Config.Item("autoR", true).GetValue <bool>()) { foreach (var target in HeroManager.Enemies.Where(target => target.IsValidTarget(R.Range) && OktwCommon.ValidUlt(target))) { var predictedHealth = target.Health - OktwCommon.GetIncomingDamage(target); var Rdmg = R.GetDamage(target, 1); if (Rdmg > predictedHealth && !OktwCommon.IsSpellHeroCollision(target, R) && GetRealDistance(target) > bonusRange() + 200) { if (GetRealDistance(target) > bonusRange() + 300 + target.BoundingRadius && target.CountAlliesInRange(500) == 0 && Player.CountEnemiesInRange(400) == 0) { Program.CastSpell(R, target); } else if (target.CountEnemiesInRange(200) > 2) { R.Cast(target, true, true); } } } } }
private void LogicR() { if (Config.Item("autoR", true).GetValue <bool>() && Sheen()) { var target = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical); if (target.IsValidTarget(R.Range) && target.HealthPercent < Config.Item("RmaxHp", true).GetValue <Slider>().Value&& OktwCommon.ValidUlt(target)) { if (Config.Item("Raa", true).GetValue <bool>() && Orbwalking.InAutoAttackRange(target)) { return; } var harasStack = Config.Item("harasStack", true).GetValue <Slider>().Value; var comboStack = Config.Item("comboStack", true).GetValue <Slider>().Value; var countR = GetRStacks(); var Rdmg = R.GetDamage(target); Rdmg = Rdmg + target.CountAlliesInRange(500) * Rdmg; if (R.GetDamage(target) > target.Health - OktwCommon.GetIncomingDamage(target)) { Program.CastSpell(R, target); } else if (Program.Combo && Rdmg * 2 > target.Health && Player.Mana > RMANA * 3) { Program.CastSpell(R, target); } else if (countR < comboStack + 2 && Player.Mana > RMANA * 3) { foreach (var enemy in HeroManager.Enemies.Where(enemy => enemy.IsValidTarget(R.Range) && !OktwCommon.CanMove(enemy))) { R.Cast(enemy, true); } } if (target.HasBuffOfType(BuffType.Slow) && Config.Item("Rslow", true).GetValue <bool>() && countR < comboStack + 1 && Player.Mana > RMANA + WMANA + EMANA + QMANA) { Program.CastSpell(R, target); } else if (Program.Combo && countR < comboStack && Player.Mana > RMANA + WMANA + EMANA + QMANA) { Program.CastSpell(R, target); } else if (Program.Harass && countR < harasStack && Player.Mana > RMANA + WMANA + EMANA + QMANA) { Program.CastSpell(R, target); } } } }
private void LogicR() { if (Config.Item("autoR", true).GetValue <bool>()) { foreach (var target in HeroManager.Enemies.Where(target => target.IsValidTarget(2000) && OktwCommon.ValidUlt(target))) { var rDmg = OktwCommon.GetKsDamage(target, R); if (Program.Combo && target.CountEnemiesInRange(250) > 2 && Config.Item("autoRaoe", true).GetValue <bool>() && target.IsValidTarget(1500)) { Program.CastSpell(R, target); } if (Program.Combo && target.IsValidTarget(W.Range) && Config.Item("Rkscombo", true).GetValue <bool>() && Player.GetAutoAttackDamage(target) * 5 + rDmg + W.GetDamage(target) > target.Health && target.HasBuffOfType(BuffType.Slow) && !OktwCommon.IsSpellHeroCollision(target, R)) { Program.CastSpell(R, target); } if (rDmg > target.Health && target.CountAlliesInRange(600) == 0 && target.Distance(Player.Position) > 1000) { if (!OktwCommon.IsSpellHeroCollision(target, R)) { Program.CastSpell(R, target); } } } } if (Player.HealthPercent < 50) { foreach (var enemy in HeroManager.Enemies.Where(enemy => enemy.IsValidTarget(300) && enemy.IsMelee && Config.Item("GapCloser" + enemy.ChampionName).GetValue <bool>() && OktwCommon.ValidUlt(enemy))) { R.Cast(enemy); Program.debug("R Meele"); } } }
private void LogicR() { if (Config.Item("autoR", true).GetValue <bool>()) { R.Range = Config.Item("MaxRangeR", true).GetValue <Slider>().Value; var minHpCombo = Config.Item("minHpSpecial", true).GetValue <Slider>().Value; foreach (var target in HeroManager.Enemies.Where(target => target.IsValidTarget(R.Range) && OktwCommon.ValidUlt(target))) { double predictedHealth = target.Health - OktwCommon.GetIncomingDamage(target); double Rdmg = R.GetDamage(target); if (Rdmg > predictedHealth) { var incom = OktwCommon.GetIncomingDamage(Player); if (incom > 0 && Player.Health - incom * Player.CountEnemiesInRange(500) < Player.Level * 12) { R.Cast(target, true, true); } } Rdmg = Rdmg * 0.66; if (Rdmg > predictedHealth && target.CountAlliesInRange(500) == 0 && Player.Distance(target) > Config.Item("MinRangeR", true).GetValue <Slider>().Value) { Program.CastSpell(R, target); } if (Program.Combo && target.HealthPercent < minHpCombo) { R.CastIfWillHit(target, Config.Item("Raoe", true).GetValue <Slider>().Value, true); if (Config.Item("Rcc", true).GetValue <bool>() && !OktwCommon.CanMove(target)) { R.Cast(target, true, true); } } } } }
private void LogicR() { R.Range = R.Level == 3 ? 750 : 675; bool Rcombo = Config.Item("Rcombo", true).GetValue <bool>(); foreach (var enemy in HeroManager.Enemies.Where(enemy => enemy.IsValidTargetLS(R.Range) && OktwCommon.ValidUlt(enemy))) { int Rmode = Config.Item("Rmode" + enemy.ChampionName, true).GetValue <StringList>().SelectedIndex; if (Rmode == 2) { continue; } else if (Rmode == 1) { R.Cast(enemy); } var comboDMG = OktwCommon.GetKsDamage(enemy, R); comboDMG += (R.GetDamage(enemy, 1) * (R.Instance.Ammo - 3)); comboDMG += OktwCommon.GetEchoLudenDamage(enemy); if (Rcombo) { if (Q.IsReady() && enemy.IsValidTargetLS(600)) { comboDMG += Q.GetDamage(enemy); } if (E.IsReady()) { comboDMG += E.GetDamage(enemy); } if (W.IsReady()) { comboDMG += W.GetDamage(enemy); } } if (enemy.Health < comboDMG) { R.Cast(enemy); } } }
private static void Game_OnGameUpdate(EventArgs args) { if (Player.LSIsRecalling()) { return; } if (Player.IsZombie) { if (getCheckBoxItem(miscMenu, "autoZombie")) { Orbwalker.ActiveModesFlags = Player.LSCountEnemiesInRange(Q.Range) > 0 ? Orbwalker.ActiveModes.Combo : Orbwalker.ActiveModes.LaneClear; } if (R.IsReady() && getCheckBoxItem(rMenu, "autoRzombie")) { float timeDeadh = 8; timeDeadh = OktwCommon.GetPassiveTime(Player, "KarthusDeathDefiedBuff"); Program.debug("Time " + timeDeadh); if (timeDeadh < 4) { foreach (var target in Program.Enemies.Where(target => target.LSIsValidTarget() && OktwCommon.ValidUlt(target))) { var rDamage = R.GetDamage(target); if (target.Health < 3 * rDamage && target.CountAlliesInRange(800) > 0) { R.Cast(); } if (target.Health < rDamage * 1.5 && target.LSDistance(Player.Position) < 900) { R.Cast(); } if (target.Health + target.HPRegenRate * 5 < rDamage) { R.Cast(); } } } } } if (Program.LagFree(0)) { SetMana(); Jungle(); } if (Program.LagFree(1) && Q.IsReady() && getCheckBoxItem(qMenu, "autoQ")) { LogicQ(); } if (Program.LagFree(2) && E.IsReady() && getCheckBoxItem(eMenu, "autoE")) { LogicE(); } if (Program.LagFree(3) && R.IsReady()) { LogicR(); } if (Program.LagFree(4) && W.IsReady() && getCheckBoxItem(wMenu, "autoW")) { LogicW(); } }
private void LogicW() { if (Config.Item("Wks", true).GetValue <bool>() && Player.Mana > RMANA + WMANA) { foreach (var enemy in Program.Enemies.Where(enemy => enemy.IsValidTarget(W.Range) && OktwCommon.ValidUlt(enemy) && enemy.CountEnemiesInRange(800) < 2 && enemy.CountAlliesInRange(400) == 0 && enemy.Health > enemy.Level * 2)) { var playerAaDmg = Player.GetAutoAttackDamage(enemy); var dmgCombo = playerAaDmg + OktwCommon.GetKsDamage(enemy, W) + GetEDmg(enemy); if (dmgCombo > enemy.Health) { if (SebbyLib.Orbwalking.InAutoAttackRange(enemy)) { if (playerAaDmg * 2 + GetEDmg(enemy) < SebbyLib.HealthPrediction.GetHealthPrediction(enemy, 700)) { Program.CastSpell(W, enemy); } } else { if (playerAaDmg + GetEDmg(enemy) < SebbyLib.HealthPrediction.GetHealthPrediction(enemy, 700)) { Program.CastSpell(W, enemy); } } } else if (R.IsReady() && R.GetDamage(enemy) + dmgCombo > enemy.Health && Player.Mana > RMANA + WMANA) { Program.CastSpell(W, enemy); } } } }
private void LogicR() { foreach (var target in GameObjects.EnemyHeroes.Where(e => e.IsValidTarget(R1.Range) && OktwCommon.ValidUlt(e))) { var rDmg = OktwCommon.GetKsDamage(target, R); if (rDmg < target.Health) { continue; } if (overkillR.Enabled && target.Health < Player.Health) { if (target.InAutoAttackRange()) { continue; } if (target.CountAllyHeroesInRange(400) > 0) { continue; } } var rDmg2 = rDmg * 0.8; if (target.IsValidTarget(R.Range) && !OktwCommon.IsSpellHeroCollision(target, R) && rDmg > target.Health) { CastSpell(R, target); } else if (rDmg2 > target.Health) { if (!OktwCommon.IsSpellHeroCollision(target, R1)) { CastSpell(R1, target); } else if (target.IsValidTarget(1200)) { CastSpell(R1, target); } } } }
private void LogicR() { foreach (var enemy in Program.Enemies.Where(enemy => enemy.IsValidTarget(R.Range))) { if (enemy.CountEnemiesInRange(400) >= getSliderItem(rMenu, "rCount") && getSliderItem(rMenu, "rCount") > 0) { R.Cast(enemy, true, true); Program.debug("R AOE"); } if ((enemy.CountAlliesInRange(600) == 0 || Player.Health < Player.MaxHealth * 0.5) && R.GetDamage(enemy) + GetWDmg(enemy) + Q.GetDamage(enemy) > enemy.Health && OktwCommon.ValidUlt(enemy)) { Program.CastSpell(R, enemy); Program.debug("R KS"); } } if (Player.Health < Player.MaxHealth * 0.5) { foreach (var target in Program.Enemies.Where(target => target.IsValidTarget(270) && target.IsMelee && getCheckBoxItem(rMenu, "GapCloser" + target.ChampionName))) { Program.CastSpell(R, target); } } }
private static void Combo() { // If target's champion target him, if it's not target surrounding enemy [creep, etc] var target = Orbwalker.GetTarget() as Obj_AI_Hero; if (target == null) { target = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Physical); } if ((target != null) && target.IsValidTarget()) { if ((Menu.Item("ComboUseQ").GetValue <bool>() && target.IsValidTarget(Orbwalking.GetRealAutoAttackRange(null)) && Q.IsReady() && (Player.Mana > Q.Instance.ManaCost + R.Instance.ManaCost)) || (target.Health < 5 * Player.GetAutoAttackDamage(Player))) { Q.Cast(); } if (Menu.Item("ComboUseW").GetValue <bool>() && W.IsReady() && (Player.Mana > W.Instance.ManaCost + R.Instance.ManaCost) && target.IsValidTarget(W.Range)) { SebbySpell(W, target); } DontREnemyNearAlly(); foreach ( var ulttarget in HeroManager.Enemies.Where(ulttarget => target.IsValidTarget(2000) && OktwCommon.ValidUlt(ulttarget)) ) { if (Menu.Item("ComboUseR").GetValue <bool>() && target.IsValidTarget(W.Range) && (target.Health < W.GetDamage(target) + R.GetDamage(target) + 3 * Player.GetAutoAttackDamage(target) + OktwCommon.GetIncomingDamage(target)) && !target.HasBuff("rebirth")) { SebbySpell(R, target); if (Q.IsReady()) { Q.Cast(); } } } } }
private void LogicR() { if (Config.Item("autoR", true).GetValue <bool>()) { foreach (var target in Program.Enemies.Where(target => target.IsValidTarget(R.Range) && target.CountAlliesInRange(600) < 2 && OktwCommon.ValidUlt(target))) { float predictedHealth = target.Health + target.HPRegenRate * 2; float Rdmg = OktwCommon.GetKsDamage(target, R); if (Items.HasItem(3155, target)) { Rdmg = Rdmg - 250; } if (Items.HasItem(3156, target)) { Rdmg = Rdmg - 400; } if (target.HasBuff("luxilluminatingfraulein")) { Rdmg += (float)Player.CalcDamage(target, Damage.DamageType.Magical, 10 + (8 * Player.Level) + 0.2 * Player.FlatMagicDamageMod); } if (Player.HasBuff("itemmagicshankcharge")) { if (Player.GetBuff("itemmagicshankcharge").Count == 100) { Rdmg += (float)Player.CalcDamage(target, Damage.DamageType.Magical, 100 + 0.1 * Player.FlatMagicDamageMod); } } if (Rdmg > predictedHealth) { castR(target); Program.debug("R normal"); } else if (!OktwCommon.CanMove(target) && Config.Item("Rcc", true).GetValue <bool>() && target.IsValidTarget(E.Range)) { float dmgCombo = Rdmg; if (E.IsReady()) { var eDmg = E.GetDamage(target); if (eDmg > predictedHealth) { return; } else { dmgCombo += eDmg; } } if (target.IsValidTarget(800)) { dmgCombo += BonusDmg(target); } if (dmgCombo > predictedHealth) { R.CastIfWillHit(target, 2); R.Cast(target); } } else if (Program.Combo && Config.Item("RaoeCount", true).GetValue <Slider>().Value > 0) { R.CastIfWillHit(target, Config.Item("RaoeCount", true).GetValue <Slider>().Value); } } } }
private static void LogicR() { if (Player.UnderTurret(true) && getCheckBoxItem(rMenu, "Rturrent")) { return; } var targetA = TargetSelector.GetTarget(R.Range, DamageType.Physical); if (targetA == null) { return; } foreach (var target in EntityManager.Heroes.Enemies.Where(target => target.IsValidTarget(R.Range) && Player.Distance(target.Position) > getSliderItem(rMenu, "Rrange") && target.CountEnemiesInRange(getSliderItem(rMenu, "Rcol")) == 1 && target.CountAlliesInRange(500) == 0 && OktwCommon.ValidUlt(target))) { if (target == null) { return; } if (OktwCommon.GetKsDamage(target, R) > target.Health) { var cast = true; var output = R.GetPrediction(target); var direction = output.CastPosition.To2D() - Player.Position.To2D(); direction.Normalize(); var enemies = EntityManager.Heroes.Enemies.Where(x => x.IsValidTarget()).ToList(); foreach (var enemy in enemies) { if (enemy.BaseSkinName == target.BaseSkinName || !cast) { continue; } var prediction = R.GetPrediction(enemy); var predictedPosition = prediction.CastPosition; var v = output.CastPosition - Player.ServerPosition; var w = predictedPosition - Player.ServerPosition; double c1 = Vector3.Dot(w, v); double c2 = Vector3.Dot(v, v); var b = c1 / c2; var pb = Player.ServerPosition + (float)b * v; var length = Vector3.Distance(predictedPosition, pb); if (length < getSliderItem(rMenu, "Rcol") + enemy.BoundingRadius && Player.Distance(predictedPosition) < Player.Distance(target.ServerPosition)) { cast = false; } } if (cast) { R.CastOnUnit(target); } } } }
private void Game_OnGameUpdate(EventArgs args) { if (Player.IsChannelingImportantSpell() || Game.Time - Rtime < 2.5 || Player.HasBuff("malzaharrsound")) { Program.debug("R chaneling"); OktwCommon.blockMove = true; OktwCommon.blockAttack = true; OktwCommon.blockSpells = true; SebbyLib.Orbwalking.Attack = false; SebbyLib.Orbwalking.Move = false; return; } else { OktwCommon.blockSpells = false; OktwCommon.blockMove = false; OktwCommon.blockAttack = false; SebbyLib.Orbwalking.Attack = true; SebbyLib.Orbwalking.Move = true; } if (R.IsReady() && Config.Item("useR", true).GetValue <KeyBind>().Active) { var t = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget(R.Range) && Config.Item("Ron" + t.ChampionName).GetValue <bool>() && OktwCommon.ValidUlt(t)) { R.CastOnUnit(t); return; } } if (Program.LagFree(0)) { SetMana(); Jungle(); } if (Program.LagFree(1) && E.IsReady() && Config.Item("autoE", true).GetValue <bool>()) { LogicE(); } if (Program.LagFree(2) && Q.IsReady() && Config.Item("autoQ", true).GetValue <bool>()) { LogicQ(); } if (Program.LagFree(3) && W.IsReady() && Config.Item("autoW", true).GetValue <bool>()) { LogicW(); } if (Program.LagFree(4) && R.IsReady() && Config.Item("autoR", true).GetValue <bool>()) { LogicR(); } }
private void LogicE() { var countE = Config.Item("countE", true).GetValue <Slider>().Value; bool eBigMinion = Config.Item("minionE", true).GetValue <bool>(); int count = 0; int outRange = 0; var minions = Cache.GetMinions(Player.ServerPosition, E.Range - 50); foreach (var minion in minions.Where(minion => minion.IsValidTarget(E.Range) && minion.HealthPercent < 80)) { var eDmg = E.GetDamage(minion); if (minion.Health < eDmg - minion.HPRegenRate && eDmg > 0) { if (GetPassiveTime(minion) > 0.5 && SebbyLib.HealthPrediction.GetHealthPrediction(minion, 300) > minion.GetAutoAttackDamage(minion) && !minion.HasBuff("kindredrnodeathbuff")) { count++; if (!SebbyLib.Orbwalking.InAutoAttackRange(minion)) { outRange++; } if (eBigMinion) { var minionName = minion.BaseSkinName.ToLower(); if (minionName.Contains("siege") || minionName.Contains("super")) { outRange++; } } } } } bool near700 = Player.CountEnemiesInRange(700) == 0; foreach (var target in HeroManager.Enemies.Where(target => target.IsValidTarget(E.Range) && target.HasBuff("kalistaexpungemarker") && OktwCommon.ValidUlt(target))) { var eDmg = GetEdmg(target); if (target.Health < eDmg) { CastE(); } if (0 < eDmg && count > 0 && Config.Item("Ekillmin", true).GetValue <bool>()) { CastE(); } if (GetEStacks(target) >= countE && (GetPassiveTime(target) < 1 || near700) && Player.Mana > RMANA + EMANA) { CastE(); } } if (Program.Farm && count > 0 && Config.Item("farmE", true).GetValue <bool>()) { if (outRange > 0) { CastE(); } if ((count >= Config.Item("farmEcount", true).GetValue <Slider>().Value || ((Player.UnderTurret(false) && !Player.UnderTurret(true)) && Player.Mana > RMANA + QMANA + EMANA))) { CastE(); } } }
private static void RUsage() { if (Menu.Item("ComboUseRKillable").GetValue <bool>()) { var enemy = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical); if ((enemy == null) || !enemy.IsValidTarget()) { return; } if ((enemy.Health < R.GetDamage(enemy) + OktwCommon.GetEchoLudenDamage(enemy)) && R.IsReady()) { R.CastOnUnit(enemy); } } else { // Massive Thanks to Sebby for the time saved instead of writing it from scratch, instead I 'stole' it from him :feelsbadman: var bounceRange = 430; var t2 = TargetSelector.GetTarget(R.Range + bounceRange, TargetSelector.DamageType.Magical); if (t2.IsValidTarget(R.Range) && (t2.CountEnemiesInRange(bounceRange) >= Menu.Item("NearbyREnemies").GetValue <Slider>().Value) && (Menu.Item("NearbyREnemies").GetValue <Slider>().Value > 0)) { R.Cast(t2); } if (t2.IsValidTarget() && OktwCommon.ValidUlt(t2)) { if ((t2.CountAlliesInRange(550) == 0) || (Player.HealthPercent < 50) || (t2.CountEnemiesInRange(bounceRange) > 1)) { var prepos = R.GetPrediction(t2).CastPosition; var dmgR = R.GetDamage(t2); if (t2.Health < dmgR * 3) { var totalDmg = dmgR; var minionCount = CountMinionsInRange(bounceRange, prepos); if (t2.IsValidTarget(R.Range)) { if (prepos.CountEnemiesInRange(bounceRange) > 1) { if (minionCount > 2) { totalDmg = dmgR * 2; } else { totalDmg = dmgR * 3; } } else if (minionCount > 0) { totalDmg = dmgR * 2; } if (W.IsReady()) { totalDmg += W.GetDamage(t2); } if (E.IsReady()) { totalDmg += E.GetDamage(t2); } if (Q.IsReady()) { totalDmg += Q.GetDamage(t2); } totalDmg += BonusDmg(t2); totalDmg += OktwCommon.GetEchoLudenDamage(t2); if ((totalDmg > t2.Health - OktwCommon.GetIncomingDamage(t2)) && (Player.GetAutoAttackDamage(t2) * 2 < t2.Health)) { R.CastOnUnit(t2); } } else if (t2.Health - OktwCommon.GetIncomingDamage(t2) < dmgR * 2 + BonusDmg(t2)) { if (Player.CountEnemiesInRange(R.Range) > 0) { foreach ( var t in HeroManager.Enemies.Where( enemy => enemy.IsValidTarget(R.Range) && (enemy.Distance(prepos) < bounceRange)) ) { R.CastOnUnit(t); } } else { var minions = Cache.GetMinions(Player.Position, R.Range); foreach ( var minion in minions.Where( minion => minion.IsValidTarget(R.Range) && (minion.Distance(prepos) < bounceRange))) { R.CastOnUnit(minion); } } } } } } } }
private void Game_OnGameUpdate(EventArgs args) { if (Player.IsRecalling()) { return; } if (Player.IsZombie) { if (Config.Item("autoZombie", true).GetValue <bool>()) { if (Player.CountEnemiesInRange(Q.Range) > 0) { Orbwalker.ActiveMode = Orbwalking.OrbwalkingMode.Combo; } else { Orbwalker.ActiveMode = Orbwalking.OrbwalkingMode.LaneClear; } } if (R.IsReady() && Config.Item("autoRzombie", true).GetValue <bool>()) { float timeDeadh = 8; timeDeadh = OktwCommon.GetPassiveTime(Player, "KarthusDeathDefiedBuff"); Program.debug("Time " + timeDeadh); if (timeDeadh < 4) { foreach (var target in HeroManager.Enemies.Where(target => target.IsValidTarget() && OktwCommon.ValidUlt(target))) { var rDamage = R.GetDamage(target); if (target.Health < 3 * rDamage && target.CountAlliesInRange(800) > 0) { R.Cast(); } if (target.Health < rDamage * 1.5 && target.Distance(Player.Position) < 900) { R.Cast(); } if (target.Health + target.HPRegenRate * 5 < rDamage) { R.Cast(); } } } } } else { Orbwalker.ActiveMode = Orbwalking.OrbwalkingMode.None; } if (Program.LagFree(0)) { SetMana(); Jungle(); } if (Program.LagFree(1) && Q.IsReady() && Config.Item("autoQ", true).GetValue <bool>()) { LogicQ(); } if (Program.LagFree(2) && E.IsReady() && Config.Item("autoE", true).GetValue <bool>()) { LogicE(); } if (Program.LagFree(3) && R.IsReady()) { LogicR(); } if (Program.LagFree(4) && W.IsReady() && Config.Item("autoW", true).GetValue <bool>()) { LogicW(); } }
private void CastRtime(Obj_AI_Hero t) { if (OktwCommon.ValidUlt(t)) R.Cast(t, true, true); }
private void LogicE() { foreach (var enemy in HeroManager.Enemies.Where(enemy => enemy.IsValidTarget(E.Range) && enemy.HasBuff("TwitchDeadlyVenom") && OktwCommon.ValidUlt(enemy))) { if (Config.Item("Eks", true).GetValue <bool>() && E.GetDamage(enemy) > enemy.Health) { E.Cast(); } if (Player.Mana > RMANA + EMANA) { int buffsNum = OktwCommon.GetBuffCount(enemy, "TwitchDeadlyVenom"); if (Config.Item("5e", true).GetValue <bool>() && buffsNum == 6) { E.Cast(); } float buffTime = OktwCommon.GetPassiveTime(enemy, "TwitchDeadlyVenom"); if (!SebbyLib.Orbwalking.InAutoAttackRange(enemy) && (Player.ServerPosition.Distance(enemy.ServerPosition) > 950 || buffTime < 1) && 0 < Config.Item("countE", true).GetValue <Slider>().Value&& buffsNum >= Config.Item("countE", true).GetValue <Slider>().Value) { E.Cast(); } } } JungleE(); }
private void LogicR() { R.Range = 400 + 150 * R.Level; if (Player.UnderTurret(false) && !ObjectManager.Player.UnderTurret(true) && Player.HealthPercent >= Config.Item("Rhp", true).GetValue <Slider>().Value&& Config.Item("autoR", true).GetValue <bool>()) { foreach (var target in HeroManager.Enemies.Where(target => target.IsValidTarget(R.Range) && OktwCommon.ValidUlt(target))) { if (target.CountEnemiesInRange(700) < 2 + Player.CountAlliesInRange(700)) { R.Cast(target); } } } }
private void LogicR() { var rao = Config[Player.CharacterName]["RConfig"] as Menu; if (Config[Player.CharacterName]["RConfig"].GetValue <MenuBool>("autoR").Enabled) { foreach (var target in GameObjects.EnemyHeroes.Where(target => target.IsValidTarget(R.Range) && target.CountAllyHeroesInRange(600) < 2 && OktwCommon.ValidUlt(target))) { float Rdmg = OktwCommon.GetKsDamage(target, R); if (Config[Player.CharacterName]["RConfig"].GetValue <MenuBool>("passiveR").Enabled) { if (target.HasBuff("luxilluminatingfraulein")) { Rdmg += (float)Player.CalculateDamage(target, DamageType.Magical, 10 + (8 * Player.Level) + 0.2 * Player.FlatMagicDamageMod); } if (Player.HasBuff("itemmagicshankcharge") && Player.GetBuff("itemmagicshankcharge").Count == 100) { Rdmg += (float)Player.CalculateDamage(target, DamageType.Magical, 100 + 0.1 * Player.FlatMagicDamageMod); } } if (Rdmg > target.Health) { castR(target); debug("R normal"); } else if (!OktwCommon.CanMove(target) && Config[Player.CharacterName]["RConfig"].GetValue <MenuBool>("Rcc").Enabled&& target.IsValidTarget(E.Range)) { float dmgCombo = Rdmg; if (E.IsReady()) { var eDmg = E.GetDamage(target); if (eDmg > target.Health) { return; } else { dmgCombo += eDmg; } } if (target.IsValidTarget(800)) { dmgCombo += BonusDmg(target); } if (dmgCombo > target.Health) { R.CastIfWillHit(target, 2); R.Cast(target); } } else if (Combo && rao.GetValue <MenuSlider>("RaoeCount").Value > 0) { R.CastIfWillHit(target, rao.GetValue <MenuSlider>("RaoeCount").Value); } } } }