private void AutoWardLogic() { foreach (var enemy in Program.Enemies.Where(enemy => enemy.IsValid && !enemy.IsVisible && !enemy.IsDead)) { var need = OKTWtracker.ChampionInfoList.Find(x => x.NetworkId == enemy.NetworkId); if (need == null || need.PredictedPos == null) { return; } if (Player.ChampionName == "Quinn" && W.IsReady() && Game.Time - need.LastVisableTime > 0.5 && Game.Time - need.LastVisableTime < 4 && need.PredictedPos.Distance(Player.Position) < 1500 && Config.Item("autoW", true).GetValue <bool>()) { W.Cast(); return; } if (Player.ChampionName == "Ashe" && E.IsReady() && Player.Spellbook.GetSpell(SpellSlot.E).Ammo > 1 && Player.CountEnemiesInRange(800) == 0 && Game.Time - need.LastVisableTime > 3 && Game.Time - need.LastVisableTime < 1 && Config.Item("autoE", true).GetValue <bool>()) { if (need.PredictedPos.Distance(Player.Position) < 3000) { E.Cast(ObjectManager.Player.Position.Extend(need.PredictedPos, 5000)); return; } } if (Player.ChampionName == "MissFortune" && E.IsReady() && Game.Time - need.LastVisableTime > 0.5 && Game.Time - need.LastVisableTime < 2 && Program.Combo && Player.Mana > 200f) { if (need.PredictedPos.Distance(Player.Position) < 800) { E.Cast(ObjectManager.Player.Position.Extend(need.PredictedPos, 800)); return; } } if (Player.ChampionName == "Caitlyn" && W.IsReady() && Game.Time - need.LastVisableTime < 2 && Player.Mana > 200f && !Player.IsWindingUp && Config.Item("bushW", true).GetValue <bool>()) { if (need.PredictedPos.Distance(Player.Position) < 800) { W.Cast(need.PredictedPos); return; } } if (Game.Time - need.LastVisableTime < 4) { if (Config.Item("AutoWardCombo").GetValue <bool>() && !Config.Item("onlyUtility", true).GetValue <bool>() && !Program.Combo) { return; } if (NavMesh.IsWallOfGrass(need.PredictedPos, 0)) { if (need.PredictedPos.Distance(Player.Position) < 600 && Config.Item("AutoWard").GetValue <bool>()) { if (TrinketN.IsReady()) { TrinketN.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } else if (SightStone.IsReady()) { SightStone.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } else if (WardN.IsReady()) { WardN.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } } if (need.PredictedPos.Distance(Player.Position) < 1400 && Config.Item("AutoWardBlue").GetValue <bool>()) { if (FarsightOrb.IsReady()) { FarsightOrb.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } else if (ScryingOrb.IsReady()) { ScryingOrb.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } } } } } }
private void AutoWardLogic() { foreach (var enemy in Program.Enemies.Where(enemy => enemy.IsValid && !enemy.IsVisible && !enemy.IsDead)) { var need = OKTWtracker.ChampionInfoList.Find(x => x.NetworkId == enemy.NetworkId); if (need == null || need.PredictedPos == null) { continue; } var PPDistance = need.PredictedPos.Distance(Player.Position); if (PPDistance > 1400) { continue; } var timer = Game.Time - need.LastVisableTime; if (timer > 1 && timer < 3) { if (Program.Combo && PPDistance < 1500 && Player.ChampionName == "Quinn" && W.IsReady() && Config.Item("autoW", true).GetValue <bool>()) { W.Cast(); } if (Program.Combo && PPDistance < 900 && Player.ChampionName == "Karhus" && Q.IsReady() && Player.CountEnemiesInRange(900) == 0) { Q.Cast(need.PredictedPos); } if (Program.Combo && PPDistance < 1400 && Player.ChampionName == "Ashe" && E.IsReady() && Player.CountEnemiesInRange(800) == 0 && Config.Item("autoE", true).GetValue <bool>()) { E.Cast(Player.Position.Extend(need.PredictedPos, 5000)); } if (PPDistance < 800 && Player.ChampionName == "MissFortune" && E.IsReady() && Program.Combo && Player.Mana > 200) { E.Cast(Player.Position.Extend(need.PredictedPos, 800)); } if (!Player.IsWindingUp && PPDistance < 800 && Player.ChampionName == "Caitlyn" && W.IsReady() && Player.Mana > 200f && Config.Item("bushW", true).GetValue <bool>() && Utils.TickCount - W.LastCastAttemptT > 2000) { W.Cast(need.PredictedPos); } if (!Player.IsWindingUp && PPDistance < 760 && Player.ChampionName == "Jhin" && E.IsReady() && Player.Mana > 200f && Config.Item("bushE", true).GetValue <bool>() && Utils.TickCount - E.LastCastAttemptT > 2000) { E.Cast(need.PredictedPos); } } if (timer < 4) { if (Config.Item("AutoWardCombo").GetValue <bool>() && Program.AIOmode != 2 && !Program.Combo) { return; } if (NavMesh.IsWallOfGrass(need.PredictedPos, 0)) { if (PPDistance < 600 && Config.Item("AutoWard").GetValue <bool>()) { if (TrinketN.IsReady()) { TrinketN.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } else if (SightStone.IsReady()) { SightStone.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } else if (WardN.IsReady()) { WardN.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } else if (EOTOasis.IsReady()) { EOTOasis.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } else if (EOTEquinox.IsReady()) { EOTEquinox.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } else if (EOTWatchers.IsReady()) { EOTWatchers.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } } if (Config.Item("AutoWardBlue").GetValue <bool>()) { if (FarsightOrb.IsReady()) { FarsightOrb.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } else if (ScryingOrb.IsReady()) { ScryingOrb.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } } } } } }
private void AutoWardLogic() { foreach (var need in OKTWtracker.ChampionInfoList.Where(x => x.Hero.IsValid && x.PredictedPos != null && !x.Hero.IsVisible && !x.Hero.IsDead)) { //var need = OKTWtracker.ChampionInfoList.Find(x => x.NetworkId == enemy.NetworkId); var PPDistance = need.PredictedPos.Distance(Player.Position); if (PPDistance > 1400) { continue; } var timer = Game.Time - need.LastVisableTime; if (timer > 1 && timer < 3 && AioModeSet != AioMode.UtilityOnly) { if (Program.Combo && PPDistance < 1500 && Player.ChampionName == "Quinn" && W.IsReady() && Config.Item("autoW", true).GetValue <bool>()) { W.Cast(); } if (Program.Combo && PPDistance < 900 && Player.ChampionName == "Karhus" && Q.IsReady() && Player.CountEnemiesInRange(900) == 0) { Q.Cast(need.PredictedPos); } if (Program.Combo && PPDistance < 1400 && Player.ChampionName == "Ashe" && E.IsReady() && Player.CountEnemiesInRange(800) == 0 && Config.Item("autoE", true).GetValue <bool>()) { E.Cast(Player.Position.Extend(need.PredictedPos, 5000)); } if (PPDistance < 800 && Player.ChampionName == "MissFortune" && E.IsReady() && Program.Combo && Player.Mana > 200) { E.Cast(Player.Position.Extend(need.PredictedPos, 800)); } if (Player.ChampionName == "Caitlyn" && !ObjectManager.Player.Spellbook.IsAutoAttacking && PPDistance < 800 && W.IsReady() && Player.Mana > 200f && Config.Item("bushW", true).GetValue <bool>() && Utils.TickCount - W.LastCastAttemptT > 2000) { W.Cast(need.PredictedPos); } if (Player.ChampionName == "Teemo" && !ObjectManager.Player.Spellbook.IsAutoAttacking && PPDistance < 150 + R.Level * 250 && R.IsReady() && Player.Mana > 200f && Config.Item("bushR", true).GetValue <bool>() && Utils.TickCount - W.LastCastAttemptT > 2000) { R.Cast(need.PredictedPos); } if (Player.ChampionName == "Jhin" && !ObjectManager.Player.Spellbook.IsAutoAttacking && PPDistance < 760 && E.IsReady() && Player.Mana > 200f && Config.Item("bushE", true).GetValue <bool>() && Utils.TickCount - E.LastCastAttemptT > 2000) { E.Cast(need.PredictedPos); } } if (timer < 4) { if (Config.Item("AutoWardCombo").GetValue <bool>() && Program.AioModeSet != Program.AioMode.ChampionOnly && !Program.Combo) { return; } if (NavMesh.IsWallOfGrass(need.PredictedPos, 0)) { if (PPDistance < 600 && Config.Item("AutoWard").GetValue <bool>()) { if (TrinketN.IsReady()) { TrinketN.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } else if (SightStone.IsReady()) { SightStone.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } else if (WardN.IsReady()) { WardN.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } else if (EOTOasis.IsReady()) { EOTOasis.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } else if (EOTEquinox.IsReady()) { EOTEquinox.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } else if (EOTWatchers.IsReady()) { EOTWatchers.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } } if (Config.Item("AutoWardBlue").GetValue <bool>()) { if (FarsightOrb.IsReady()) { FarsightOrb.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } else if (ScryingOrb.IsReady()) { ScryingOrb.Cast(need.PredictedPos); need.LastVisableTime = Game.Time - 5; } } } } } }