private static void Jump(Vector3 position) { Obj_AI_Base obj = HeroManager.Allies.FirstOrDefault(x => x.IsValid && !x.IsDead && x.Distance(position) < 200 && x.Distance(position) < 200 && !x.IsMe); if (obj == null) { obj = ObjectManager.Get <Obj_AI_Minion>().FirstOrDefault(x => x.IsValid && x.IsAlly && !x.IsDead && x.Distance(position) < 200); } if (obj == null) { if (TrinketN.IsReady()) { TrinketN.Cast(position); LastTimeWardPlace = Utils.TickCount; } else if (SightStone.IsReady()) { SightStone.Cast(position); LastTimeWardPlace = Utils.TickCount; } else if (WardN.IsReady()) { WardN.Cast(position); LastTimeWardPlace = Utils.TickCount; } else if (EOTOasis.IsReady()) { EOTOasis.Cast(position); LastTimeWardPlace = Utils.TickCount; } else if (EOTEquinox.IsReady()) { EOTEquinox.Cast(position); LastTimeWardPlace = Utils.TickCount; } else if (EOTWatchers.IsReady()) { EOTWatchers.Cast(position); LastTimeWardPlace = Utils.TickCount; } } else { W.Cast(obj); } }
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; } } } } } }
private static void Jump(Vector3 position) { if (position.IsWall()) { return; } if (Player.Distance(position) > W.Range) { position = Player.Position.Extend(position, W.Range); } Obj_AI_Base obj = HeroManager.Allies.FirstOrDefault(x => x.IsValid && !x.IsDead && !x.IsMe && x.Distance(position) < 150); if (obj == null) { obj = ObjectManager.Get <Obj_AI_Minion>().FirstOrDefault(x => x.IsValid && x.IsAlly && !x.IsDead && x.Distance(position) < 150); } if (obj == null) { if (Utils.TickCount - LastTimeWardPlace < 250) { Utility.DelayAction.Add(40, () => Jump(position)); Orbwalker.SetOrbwalkingPoint(position); return; } if (TrinketN.IsReady()) { TrinketN.Cast(position); LastTimeWardPlace = Utils.TickCount; Utility.DelayAction.Add(40, () => Jump(position)); } else if (SightStone.IsReady()) { SightStone.Cast(position); LastTimeWardPlace = Utils.TickCount; Utility.DelayAction.Add(40, () => Jump(position)); } else if (WardN.IsReady()) { WardN.Cast(position); LastTimeWardPlace = Utils.TickCount; Utility.DelayAction.Add(40, () => Jump(position)); } else if (EOTOasis.IsReady()) { EOTOasis.Cast(position); LastTimeWardPlace = Utils.TickCount; Utility.DelayAction.Add(40, () => Jump(position)); } else if (EOTEquinox.IsReady()) { EOTEquinox.Cast(position); LastTimeWardPlace = Utils.TickCount; Utility.DelayAction.Add(40, () => Jump(position)); } else if (EOTWatchers.IsReady()) { EOTWatchers.Cast(position); LastTimeWardPlace = Utils.TickCount; Utility.DelayAction.Add(40, () => Jump(position)); } } else { W.Cast(obj); } }