private static void OnTick(EventArgs args) { if (!Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { return; } var target = Orbwalker.LastTarget as AIHeroClient; if (target == null) { return; } if (Cutlass.IsOwned()) { UseItem3(Cutlass, target); } if (Hextech.IsOwned()) { UseItem4(Hextech, target); } if (Omen.IsOwned()) { UseItem5(Omen); } if (Glory.IsOwned()) { UseItem6(Glory); } if (Solari.IsOwned()) { UseItem7(Solari); } }
public static void Init() { if (Botrk.IsOwned()) { UtilityMenu.Activator.AddCheckBox("activator.botrk", "Use BOTRK"); UtilityMenu.Activator.AddSeparator(); UtilityMenu.Activator.AddGroupLabel("Blade of The Ruined King Manager:", "activator.label.utilitymenu.botrk", true); UtilityMenu.Activator.AddCheckBox("activator.botrk.combo", "Use BOTRK (COMBO Mode)", true, true); UtilityMenu.Activator.AddCheckBox("activator.botrk.ks", "Use BOTRK (KS Mode)", false, true); UtilityMenu.Activator.AddCheckBox("activator.botrk.lifesave", "Use BOTRK (LifeSave)", false, true); UtilityMenu.Activator.AddSlider("activator.botrk.hp", "Use BOTRK (LifeSave) if HP are under {0}", 20, 0, 100, true); UtilityMenu.Activator.AddSeparator(); } if (Cutlass.IsOwned()) { UtilityMenu.Activator.AddCheckBox("activator.bilgewater", "Use BC"); UtilityMenu.Activator.AddSeparator(); UtilityMenu.Activator.AddGroupLabel("Bilgewater Cutlass Manager:", "activator.label.utilitymenu.bilgewater", true); UtilityMenu.Activator.AddCheckBox("activator.bilgewater.combo", "Use BC (COMBO Mode)", true, true); UtilityMenu.Activator.AddCheckBox("activator.bilgewater.ks", "Use BC (KS Mode)", false, true); UtilityMenu.Activator.AddSeparator(); } if (Youmuus.IsOwned()) { UtilityMenu.Activator.AddCheckBox("activator.youmus", "Use Youmus"); UtilityMenu.Activator.AddSeparator(); UtilityMenu.Activator.AddGroupLabel("Youmus Manager:", "activator.label.utilitymenu.youmus", true); UtilityMenu.Activator.AddCheckBox("activator.youmusspellonly", "Use Youmus only on spell cast", false, true); UtilityMenu.Activator.AddSeparator(); } if (Hunter.IsOwned() || Refillable.IsOwned() || Potion.IsOwned() || Biscuit.IsOwned() || Corrupting.IsOwned()) { UtilityMenu.Activator.AddCheckBox("activator.potions", "Use Potions"); UtilityMenu.Activator.AddSeparator(); UtilityMenu.Activator.AddGroupLabel("Potions Manager:", "activator.label.utilitymenu.potions", true); UtilityMenu.Activator.AddSlider("activator.potions.hp", "Use POTIONS if HP are under {0}", 20, 0, 100, true); UtilityMenu.Activator.AddSlider("activator.potions.mana", "Use POTIONS if mana is under {0}", 20, 0, 100, true); UtilityMenu.Activator.AddSeparator(); } if (Mercurial.IsOwned() || Qss.IsOwned()) { UtilityMenu.Activator.AddCheckBox("activator.qss", "Use QSS - Mercurial"); UtilityMenu.Activator.AddCheckBox("activator.qss.ulti", "Prevent ultimates"); UtilityMenu.Activator.AddCheckBox("activator.qss.bonus", "Use on bonus"); UtilityMenu.Activator.AddSeparator(); UtilityMenu.Activator.AddGroupLabel("Anti Cloud-Control Manager:", "activator.label.utilitymenu.qss", true); UtilityMenu.Activator.AddCheckBox("activator.qss.cc.1", "Use it on Airborne", true, true); UtilityMenu.Activator.AddCheckBox("activator.qss.cc.2", "Use it on Blind", true, true); UtilityMenu.Activator.AddCheckBox("activator.qss.cc.3", "Use it on Disarm", true, true); UtilityMenu.Activator.AddCheckBox("activator.qss.cc.4", "Use it on Forced Action", true, true); UtilityMenu.Activator.AddCheckBox("activator.qss.cc.5", "Use it on Root", true, true); UtilityMenu.Activator.AddCheckBox("activator.qss.cc.6", "Use it on Silence", true, true); UtilityMenu.Activator.AddCheckBox("activator.qss.cc.7", "Use it on Slow", true, true); UtilityMenu.Activator.AddCheckBox("activator.qss.cc.8", "Use it on Stasis", true, true); UtilityMenu.Activator.AddCheckBox("activator.qss.cc.9", "Use it on Stun", true, true); UtilityMenu.Activator.AddCheckBox("activator.qss.cc.10", "Use it on Suppression", true, true); UtilityMenu.Activator.AddSeparator(); if (Value.Use("activator.qss.ulti")) { UtilityMenu.Activator.AddGroupLabel("Anti Ultimate Manager:", "activator.label.utilitymenu.qss.antiulti", true); if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Fiora")) { UtilityMenu.Activator.AddCheckBox("activator.qss.ulti.1", "Prevent Fiora Ultimate", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Fizz")) { UtilityMenu.Activator.AddCheckBox("activator.qss.ulti.2", "Prevent Fizz Ultimate", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Lissandra")) { UtilityMenu.Activator.AddCheckBox("activator.qss.ulti.4", "Prevent Lissandra Ultimate", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Mordekaiser")) { UtilityMenu.Activator.AddCheckBox("activator.qss.ulti.5", "Prevent Mordekaiser Ultimate", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Thresh")) { UtilityMenu.Activator.AddCheckBox("activator.qss.ulti.7", "Prevent Thresh Q", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Vladimir")) { UtilityMenu.Activator.AddCheckBox("activator.qss.ulti.8", "Prevent Vladimir", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Zed")) { UtilityMenu.Activator.AddCheckBox("activator.qss.ulti.9", "Prevent Zed Ultimate", true, true); } } UtilityMenu.Activator.AddSeparator(); if (Value.Use("activator.qss.bonus")) { UtilityMenu.Activator.AddGroupLabel("Anti Cloud-Control Bonus Manager:", "activator.label.utilitymenu.qss.bonus", true); if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Vayne")) { UtilityMenu.Activator.AddCheckBox("activator.qss.bonus.1", "Prevent Vayne Stacks", false, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Darius")) { UtilityMenu.Activator.AddCheckBox("activator.qss.bonus.2", "Prevent Darius BloodStacks", false, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Kalista")) { UtilityMenu.Activator.AddCheckBox("activator.qss.bonus.3", "Prevent Kalista EStacks", false, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Tristana")) { UtilityMenu.Activator.AddCheckBox("activator.qss.bonus.4", "Prevent Tristana EStacks", false, true); } } UtilityMenu.Activator.AddSlider("activator.qss.prevent.enemies", "Prevent to use QSS if there are less then {0} enemies", 3, 0, 5, true); UtilityMenu.Activator.AddSlider("activator.qss.hp", "Use QSS if HP are under {0}", 20, 0, 100, true); UtilityMenu.Activator.AddSeparator(); } if (MainMenu._menu["useonupdate"].Cast <CheckBox>().CurrentValue) { Game.OnUpdate += GameOnUpdate; } else { Game.OnTick += GameOnUpdate; } Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; Shop.OnBuyItem += Shop_OnBuyItem; Obj_AI_Base.OnBuffGain += BuffGain; }
protected override void InitializeMenu() { Menu.AddGroupLabel("OKTR AIO - Activator for " + Player.Instance.ChampionName, "activator.grouplabel.utilitymenu"); Menu.AddCheckBox("activator.heal", "Use Heal"); Menu.AddCheckBox("activator.barrier", "Use Barrier"); Menu.AddCheckBox("activator.ignite", "Use Ignite"); Menu.Add("activator.advanced", new CheckBox("Show Advanced Menu", false)).OnValueChange += Value.AdvancedModeChanged; Menu.AddSeparator(); Menu.AddGroupLabel("Heal Manager:", "activator.label.utilitymenu.heal", true); Menu.AddCheckBox("activator.heal.lifesave", "Use Heal for Allies", false, true); Menu.AddSlider("activator.heal.hp", "Use Heal if HP are under {0}", 15, 0, 100, true); Menu.AddSeparator(); Menu.AddGroupLabel("Barrier Manager:", "activator.label.utilitymenu.barrier", true); Menu.AddSlider("activator.barrier.hp", "Use Heal if HP are under {0}", 15, 0, 100, true); Menu.AddSeparator(); Menu.AddGroupLabel("Ignite Manager:", "activator.label.utilitymenu.ignite", true); Menu.AddCheckBox("activator.ignite.progressive", "Use Ignite for Progressive Damage", false, true); Menu.AddCheckBox("activator.ignite.burst", "Use Ignite for Burst Damage", false, true); Menu.AddCheckBox("activator.ignite.killsteal", "Use Ignite for Killsteal", true, true); Menu.AddSeparator(); if (Botrk.IsOwned()) { Menu.AddCheckBox("activator.botrk", "Use BOTRK"); Menu.AddSeparator(); Menu.AddGroupLabel("Blade of The Ruined King Manager:", "activator.label.utilitymenu.botrk", true); Menu.AddCheckBox("activator.botrk.combo", "Use BOTRK (COMBO Mode)", true, true); Menu.AddCheckBox("activator.botrk.ks", "Use BOTRK (KS Mode)", false, true); Menu.AddCheckBox("activator.botrk.lifesave", "Use BOTRK (LifeSave)", false, true); Menu.AddSlider("activator.botrk.hp", "Use BOTRK (LifeSave) if HP are under {0}", 20, 0, 100, true); Menu.AddSeparator(); } if (Cutlass.IsOwned()) { Menu.AddCheckBox("activator.bilgewater", "Use BC"); Menu.AddSeparator(); Menu.AddGroupLabel("Bilgewater Cutlass Manager:", "activator.label.utilitymenu.bilgewater", true); Menu.AddCheckBox("activator.bilgewater.combo", "Use BC (COMBO Mode)", true, true); Menu.AddCheckBox("activator.bilgewater.ks", "Use BC (KS Mode)", false, true); Menu.AddSeparator(); } if (Youmuus.IsOwned()) { Menu.AddCheckBox("activator.youmus", "Use Youmus"); Menu.AddSeparator(); Menu.AddGroupLabel("Youmus Manager:", "activator.label.utilitymenu.youmus", true); Menu.AddCheckBox("activator.youmusspellonly", "Use Youmus only on spell cast", false, true); Menu.AddSeparator(); } if (Hunter.IsOwned() || Refillable.IsOwned() || Potion.IsOwned() || Biscuit.IsOwned() || Corrupting.IsOwned()) { Menu.AddCheckBox("activator.potions", "Use Potions"); Menu.AddSeparator(); Menu.AddGroupLabel("Potions Manager:", "activator.label.utilitymenu.potions", true); Menu.AddSlider("activator.potions.hp", "Use POTIONS if HP are under {0}", 20, 0, 100, true); Menu.AddSlider("activator.potions.mana", "Use POTIONS if mana is under {0}", 20, 0, 100, true); Menu.AddSeparator(); } if (Mercurial.IsOwned() || Qss.IsOwned()) { Menu.AddCheckBox("activator.qss", "Use QSS - Mercurial"); Menu.AddCheckBox("activator.qss.ulti", "Prevent ultimates"); Menu.AddCheckBox("activator.qss.bonus", "Use on bonus"); Menu.AddSeparator(); Menu.AddGroupLabel("Anti Cloud-Control Manager:", "activator.label.utilitymenu.qss", true); Menu.AddCheckBox("activator.qss.cc.1", "Use it on Airborne", true, true); Menu.AddCheckBox("activator.qss.cc.2", "Use it on Blind", true, true); Menu.AddCheckBox("activator.qss.cc.3", "Use it on Disarm", true, true); Menu.AddCheckBox("activator.qss.cc.4", "Use it on Forced Action", true, true); Menu.AddCheckBox("activator.qss.cc.5", "Use it on Root", true, true); Menu.AddCheckBox("activator.qss.cc.6", "Use it on Silence", true, true); Menu.AddCheckBox("activator.qss.cc.7", "Use it on Slow", true, true); Menu.AddCheckBox("activator.qss.cc.8", "Use it on Stasis", true, true); Menu.AddCheckBox("activator.qss.cc.9", "Use it on Stun", true, true); Menu.AddCheckBox("activator.qss.cc.10", "Use it on Suppression", true, true); Menu.AddSeparator(); if (Value.Use("activator.qss.ulti")) { Menu.AddGroupLabel("Anti Ultimate Manager:", "activator.label.utilitymenu.qss.antiulti", true); if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Fiora")) { Menu.AddCheckBox("activator.qss.ulti.1", "Prevent Fiora Ultimate", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Fizz")) { Menu.AddCheckBox("activator.qss.ulti.2", "Prevent Fizz Ultimate", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Lissandra")) { Menu.AddCheckBox("activator.qss.ulti.4", "Prevent Lissandra Ultimate", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Mordekaiser")) { Menu.AddCheckBox("activator.qss.ulti.5", "Prevent Mordekaiser Ultimate", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Thresh")) { Menu.AddCheckBox("activator.qss.ulti.7", "Prevent Thresh Q", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Vladimir")) { Menu.AddCheckBox("activator.qss.ulti.8", "Prevent Vladimir", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Zed")) { Menu.AddCheckBox("activator.qss.ulti.9", "Prevent Zed Ultimate", true, true); } } Menu.AddSeparator(); if (Value.Use("activator.qss.bonus")) { Menu.AddGroupLabel("Anti Cloud-Control Bonus Manager:", "activator.label.utilitymenu.qss.bonus", true); if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Vayne")) { Menu.AddCheckBox("activator.qss.bonus.1", "Prevent Vayne Stacks", false, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Darius")) { Menu.AddCheckBox("activator.qss.bonus.2", "Prevent Darius BloodStacks", false, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Kalista")) { Menu.AddCheckBox("activator.qss.bonus.3", "Prevent Kalista EStacks", false, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Tristana")) { Menu.AddCheckBox("activator.qss.bonus.4", "Prevent Tristana EStacks", false, true); } } Menu.AddSlider("activator.qss.prevent.enemies", "Prevent to use QSS if there are less then {0} enemies", 3, 0, 5, true); Menu.AddSlider("activator.qss.hp", "Use QSS if HP are under {0}", 20, 0, 100, true); Menu.AddSeparator(); } Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; Shop.OnBuyItem += Shop_OnBuyItem; Obj_AI_Base.OnBuffGain += BuffGain; }
private static void Combo() { foreach (var Enemy in EntityManager.Heroes.Enemies) { if (Enemy.IsValidTarget()) { if (Smite != null && Smite.IsReady() && ComboSmite.CurrentValue) { var target = TargetSelector.SelectedTarget == null ? TargetSelector.GetTarget(700, DamageType.Physical) : TargetSelector.SelectedTarget; if (target != null && target.IsValidTarget() && !target.IsDead && (target.Position - Player.Position).Length() < 500) { Smite.Cast(target); } else { Smite.Cast(target); } } if (Cutlass.IsOwned() && Cutlass.IsReady() && ComboItems.CurrentValue && !Player.IsDead) { var target = TargetSelector.SelectedTarget == null ? TargetSelector.GetTarget(550, DamageType.Physical) : TargetSelector.SelectedTarget; if (target != null && target.IsValidTarget() && !target.IsDead && Cutlass.IsInRange(target)) { Cutlass.Cast(target); } else { Cutlass.Cast(target); } } if (Botrk.IsOwned() && Botrk.IsReady() && ComboItems.CurrentValue && !Player.IsDead) { var target = TargetSelector.SelectedTarget == null ? TargetSelector.GetTarget(550, DamageType.Physical) : TargetSelector.SelectedTarget; if (target != null && target.IsValidTarget() && !target.IsDead && Botrk.IsInRange(target)) { Botrk.Cast(target); } else { Botrk.Cast(target); } } if (Youmuu.IsOwned() && Youmuu.IsReady() && ComboItems.CurrentValue && !Player.IsDead) { if (Player.CountEnemyChampionsInRange(500) > 0) { Youmuu.Cast(); } } if (Ravenous_Hydra.IsOwned() && Ravenous_Hydra.IsReady() && ComboItems.CurrentValue && !Player.IsDead) { if (Player.CountEnemyChampionsInRange(385) > 0) { Ravenous_Hydra.Cast(); } } if (Tiamat.IsOwned() && Tiamat.IsReady() && ComboItems.CurrentValue && !Player.IsDead) { if (Player.CountEnemyChampionsInRange(385) > 0) { Tiamat.Cast(); } } if (Titanic_Hydra.IsOwned() && Titanic_Hydra.IsReady() && ComboItems.CurrentValue && !Player.IsDead) { if (Player.CountEnemyChampionsInRange(385) > 0) { Titanic_Hydra.Cast(); } } if (!ComboQAA.CurrentValue && ComboQ.CurrentValue && Q.IsReady() && Enemy.IsValidTarget(E.Range)) { Q.Cast(); } if (!Enemy.IsDead && Enemy != null && Enemy.IsValidTarget(E.Range) && ComboE.CurrentValue) { if ((Enemy.Position - Player.Position).Length() > ComboEmin.CurrentValue) { E.Cast(Enemy); } if (E.GetSpellDamage(Enemy) >= Enemy.TotalShieldHealth()) { E.Cast(Enemy); } if (Enemy.IsDashing()) { E.Cast(Enemy); } if (Enemy.HealthPercent < 15) { E.Cast(Enemy); } } if (ComboW.CurrentValue && W.IsReady()) { var target = TargetSelector.GetTarget(250, DamageType.Physical); if (target != null) { W.Cast(); } } if (ComboR.CurrentValue && R.IsReady()) { var RDamage = R.GetSpellDamage(Enemy); if (Player.CountEnemyChampionsInRange(R.Range) >= ComboRmin.CurrentValue) { if (Enemy.HasBuff("xenzhaointimidate")) { R.Cast(); } } if (Enemy.TotalShieldHealth() < RDamage) { R.Cast(); } } } } }
public static void ExecuteItems() { //Item Target's var botrktarget = TargetSelector.GetTarget(Botrk.Range, DamageType.Physical); var gunbladetarget = TargetSelector.GetTarget(Gunblade.Range, DamageType.Magical); var protobelttarget = TargetSelector.GetTarget(Protobelt.Range, DamageType.Magical); var glptarget = TargetSelector.GetTarget(GLP.Range, DamageType.Magical); var cutlasstarget = TargetSelector.GetTarget(Cutlass.Range, DamageType.Magical); if ((botrktarget == null) || botrktarget.IsInvulnerable) { return; } //Blade of the Ruined King if (ComboMenu["Botrk"].Cast <CheckBox>().CurrentValue) { if ((Player.Instance.CountEnemiesInRange(550) >= 1) && Botrk.IsReady() && Botrk.IsOwned() && botrktarget.IsValidTarget(Botrk.Range)) { Botrk.Cast(botrktarget); } } if ((gunbladetarget == null) || gunbladetarget.IsInvulnerable) { return; } //Hextech Gunblade if (ComboMenu["Gunblade"].Cast <CheckBox>().CurrentValue) { if ((Player.Instance.CountEnemiesInRange(700) >= 1) && Gunblade.IsReady() && Gunblade.IsOwned() && gunbladetarget.IsValidTarget(Gunblade.Range)) { Gunblade.Cast(gunbladetarget); } } if ((protobelttarget == null) || protobelttarget.IsInvulnerable) { return; } //Protobelt if (ComboMenu["Protobelt"].Cast <CheckBox>().CurrentValue) { if ((Player.Instance.CountEnemiesInRange(600) >= 1) && Protobelt.IsReady() && Protobelt.IsOwned() && protobelttarget.IsValidTarget(Protobelt.Range)) { Protobelt.Cast(protobelttarget.Position); } } if ((glptarget == null) || glptarget.IsInvulnerable) { return; } //GLP if (ComboMenu["GLP"].Cast <CheckBox>().CurrentValue) { if ((Player.Instance.CountEnemiesInRange(600) >= 1) && GLP.IsReady() && GLP.IsOwned() && glptarget.IsValidTarget(GLP.Range)) { GLP.Cast(glptarget); } } if ((cutlasstarget == null) || cutlasstarget.IsInvulnerable) { return; } //Bilgewater Cutlass if (ComboMenu["Cutlass"].Cast <CheckBox>().CurrentValue) { if ((Player.Instance.CountEnemiesInRange(550) >= 1) && Cutlass.IsReady() && Cutlass.IsOwned() && cutlasstarget.IsValidTarget(Cutlass.Range)) { Cutlass.Cast(cutlasstarget); } } /* * * //Summoners Target * var Summ1 = TargetSelector.GetTarget(Smite.Range, DamageType.Mixed); * var Summ2 = TargetSelector.GetTarget(Ignite.Range, DamageType.Mixed); * * if ((Summ1 == null) || Summ1.IsInvulnerable) * return; * //Smite * if (ComboMenu["Smite"].Cast<CheckBox>().CurrentValue) * if (Player.Instance.CountEnemiesInRange(500) >= 1 && Smite.IsReady() && Smite.IsLearned && Summ1.IsValidTarget(Smite.Range)) * Smite.Cast(Summ1); * * * if ((Summ2 == null) || Summ2.IsInvulnerable) * return; * //Ignite * if (ComboMenu["Ignite"].Cast<CheckBox>().CurrentValue) * if (Player.Instance.CountEnemiesInRange(600) >= 1 && Ignite.IsReady() && Ignite.IsLearned && Summ2.IsValidTarget(Ignite.Range)) * Ignite.Cast(Summ2); * */ }