private void Game_OnUpdate(EventArgs args) { if (!Program.LagFree(0) || Player.IsRecalling() || Player.IsDead) { return; } foreach (var obj in HiddenObjList) { if (obj.endTime < Game.Time) { HiddenObjList.Remove(obj); return; } } if (Config["autoward"].GetValue <MenuBool>("AutoBuy").Value&& Player.InFountain() && !FarsightOrb.IsOwned() && Player.Level >= 9 && MenuGUI.IsShopOpen) { FarsightOrb.Buy(); } if (Player.HasBuff("rengarrvision")) { CastVisionWards(Player.Position); } if (GameObjects.EnemyHeroes.Any(e => e.CharacterName == "Vayne" && e.IsValidTarget(1000) && e.HasBuff("vaynetumblefade"))) { CastVisionWards(Player.Position); } AutoWardLogic(); }
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 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 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; } } } } } }
private void AutoWardLogic() { foreach (var enemy in GameObjects.EnemyHeroes.Where(e => e.IsValid && !e.IsVisible && !e.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.LastVisibleTime; if (timer > 1 && timer < 3) { if (Program.Combo && PPDistance < 1500 && Player.CharacterName == "Quinn" && W.IsReady() && Config[Player.CharacterName].GetValue <MenuBool>("autoW").Value) { W.Cast(); } if (Program.Combo && PPDistance < 800 && Player.CharacterName == "Karthus" && Q.IsReady() && Player.CountEnemyHeroesInRange(900) == 0) { Q.Cast(need.PredictedPos); } if (Program.Combo && PPDistance < 1400 && Player.CharacterName == "Ashe" && E.IsReady() && Player.CountEnemyHeroesInRange(800) == 0 && Config[Player.CharacterName]["Econfig"].GetValue <MenuBool>("autoE").Value) { E.Cast(Player.Position.Extend(need.PredictedPos, 5000)); } if (Program.Combo && PPDistance < 800 && Player.CharacterName == "MissFortune" && E.IsReady() && Player.Mana > 200) { E.Cast(Player.Position.Extend(need.PredictedPos, 800)); } if (!Player.IsWindingUp && PPDistance < 800 && Player.CharacterName == "Caitlyn" && W.IsReady() && Player.Mana > 200 && Config[Player.CharacterName]["Wconfig"].GetValue <MenuBool>("bushW").Value&& Variables.TickCount - W.LastCastAttemptT > 2000) { W.Cast(need.PredictedPos); } if (!Player.IsWindingUp && PPDistance < 150 + R.Level * 250 && Player.CharacterName == "Teemo" && R.IsReady() && Player.Mana > 200 && Config[Player.CharacterName]["Rconfig"].GetValue <MenuBool>("bushR").Value&& Variables.TickCount - W.LastCastAttemptT > 2000) { R.Cast(need.PredictedPos); } if (!Player.IsWindingUp && PPDistance < 750 && Player.CharacterName == "Jhin" && E.IsReady() && Player.Mana > 200 && Config[Player.CharacterName]["Econfig"].GetValue <MenuBool>("bushE").Value&& Variables.TickCount - E.LastCastAttemptT > 2000) { E.Cast(need.PredictedPos); } } if (timer < 4) { if (!Program.Combo && Program.AIOmode != 2 && Config["autoward"].GetValue <MenuBool>("AutoWardCombo").Value) { return; } if (NavMesh.IsWallOfGrass(need.PredictedPos, 0)) { if (PPDistance < 600 && Config["autoward"].GetValue <MenuBool>("AutoWard").Value) { if (WardTotem.IsReady) { WardTotem.Cast(need.PredictedPos); need.LastVisibleTime = Game.Time - 5; } else if (StealthWard.IsReady) { StealthWard.Cast(need.PredictedPos); need.LastVisibleTime = Game.Time - 5; } else if (NomadsMedallion.IsReady) { NomadsMedallion.Cast(need.PredictedPos); need.LastVisibleTime = Game.Time - 5; } else if (RotAscended.IsReady) { RotAscended.Cast(need.PredictedPos); need.LastVisibleTime = Game.Time - 5; } else if (Frostfang.IsReady) { Frostfang.Cast(need.PredictedPos); need.LastVisibleTime = Game.Time - 5; } else if (RotWatchers.IsReady) { RotWatchers.Cast(need.PredictedPos); need.LastVisibleTime = Game.Time - 5; } else if (TargonsBrace.IsReady) { TargonsBrace.Cast(need.PredictedPos); need.LastVisibleTime = Game.Time - 5; } else if (RotAspect.IsReady) { RotAspect.Cast(need.PredictedPos); need.LastVisibleTime = Game.Time - 5; } } if (Config["autoward"].GetValue <MenuBool>("AutoWardBlue").Value) { if (FarsightOrb.IsReady) { FarsightOrb.Cast(need.PredictedPos); need.LastVisibleTime = Game.Time - 5; } } } } } }