private static void AutoRemove() { if (Game.MapId == GameMapId.SummonersRift) { if (Qss.IsOwned() && Qss.IsReady()) { Qss.Cast(); } else if (Mercurial.IsOwned() && Mercurial.IsReady()) { Mercurial.Cast(); } } else if (Game.MapId == GameMapId.TwistedTreeline) { if (Qss.IsOwned() && Qss.IsReady()) { Qss.Cast(); } else if (DervishBlade.IsOwned() && DervishBlade.IsReady()) { DervishBlade.Cast(); } } }
private static void UltQSS() { if (!keybind) { return; } if (QSS.IsOwned() && QSS.IsReady()) { Core.DelayAction(() => QSS.Cast(), Ult["UltDelay"].Cast <Slider>().CurrentValue); } if (Mercurial.IsOwned() && Mercurial.IsReady()) { Core.DelayAction(() => Mercurial.Cast(), Ult["UltDelay"].Cast <Slider>().CurrentValue); } }
private static void DoQSS() { if (DebuffCount < MinBuff || !keybind) { return; } if (QSS.IsOwned() && QSS.IsReady() && ObjectManager.Player.CountEnemiesInRange(1800) > 0) { Core.DelayAction(() => QSS.Cast(), CC["CCDelay"].Cast <Slider>().CurrentValue); } if (Mercurial.IsOwned() && Mercurial.IsReady() && ObjectManager.Player.CountEnemiesInRange(1800) > 0) { Core.DelayAction(() => Mercurial.Cast(), CC["CCDelay"].Cast <Slider>().CurrentValue); } }
private static void BuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (!sender.IsMe) { return; } if ((Qss.IsOwned() || Mercurial.IsOwned()) && Value.Use("activator.qss")) { if (Value.Get("activator.qss.prevent.enemies") >= Player.Instance.CountEnemiesInRange(Player.Instance.GetAutoAttackRange()) && Value.Get("activator.qss.hp") >= Player.Instance.HealthPercent) { if (Value.Use("activator.qss.cc.1") && (args.Buff.Type == BuffType.Knockback || args.Buff.Type == BuffType.Knockup)) { AutoRemove(); } if (Value.Use("activator.qss.cc.2") && args.Buff.Type == BuffType.Blind) { AutoRemove(); } if (Value.Use("activator.qss.cc.3") && args.Buff.Type == BuffType.Polymorph) { AutoRemove(); } if (Value.Use("activator.qss.cc.4") && (args.Buff.Type == BuffType.Charm || args.Buff.Type == BuffType.Fear || args.Buff.Type == BuffType.Flee || args.Buff.Type == BuffType.Taunt)) { AutoRemove(); } if (Value.Use("activator.qss.cc.5") && args.Buff.Type == BuffType.Snare) { AutoRemove(); } if (Value.Use("activator.qss.cc.6") && args.Buff.Type == BuffType.Silence) { AutoRemove(); } if (Value.Use("activator.qss.cc.7") && args.Buff.Type == BuffType.Slow) { AutoRemove(); } if (Value.Use("activator.qss.cc.8") && args.Buff.Type == BuffType.Sleep) { AutoRemove(); } if (Value.Use("activator.qss.cc.9") && args.Buff.Type == BuffType.Stun) { AutoRemove(); } if (Value.Use("activator.qss.cc.10") && args.Buff.Type == BuffType.Suppression) { AutoRemove(); } if (Value.Use("activator.qss.ulti")) { if (Value.Use("activator.qss.ulti.1") && args.Buff.Name == "FioraRMark") { AutoRemove(); } if (Value.Use("activator.qss.ulti.2") && args.Buff.Name == "FizzMarinerDoom") { AutoRemove(); } if (Value.Use("activator.qss.ulti.4") && args.Buff.Name == "LissandraR") { AutoRemove(); } if (Value.Use("activator.qss.ulti.5") && args.Buff.Name == "MordekaiserChildrenOfTheGrave") { AutoRemove(); } if (Value.Use("activator.qss.ulti.7") && args.Buff.Name == "ThreshQ") { AutoRemove(); } if (Value.Use("activator.qss.ulti.8") && args.Buff.Name == "VladimirHemoplague") { AutoRemove(); } if (Value.Use("activator.qss.ulti.9") && args.Buff.Name == "zedulttargetmark") { AutoRemove(); } } if (Value.Use("activator.qss.bonus")) { if (Value.Use("activator.qss.bonus.1") && args.Buff.Name == "vaynesilvereddebuff") { if (Player.Instance.GetBuffCount("vaynesilvereddebuff") >= 2) { AutoRemove(); } } if (Value.Use("activator.qss.bonus.2") && args.Buff.Name == "dariushemo") { if (Player.Instance.GetBuffCount("dariushemo") >= 4) { AutoRemove(); } } if (Value.Use("activator.qss.bonus.3") && args.Buff.DisplayName == "KalistaExpungeMarker") { if (Player.Instance.GetBuffCount("KalistaExpungeMarker") >= 6) { AutoRemove(); } } if (Value.Use("activator.qss.bonus.4") && args.Buff.Name == "tristanaecharge") { if (Player.Instance.GetBuffCount("tristanaecharge") >= 3) { AutoRemove(); } } } } } }
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; }
public static void Execute() { if (Player.Instance.IsInShopRange() || Player.Instance.CountAlliesInRange(Misc.RangeEnemy) < Misc.EnemyCount || Activator.lastUsed >= Environment.TickCount) { return; } #region Self if (Zhonyas.IsReady() && Zhonyas.IsOwned() && Player.Instance.InDanger(Settings.ZhonyasMyHp) && Settings.Zhonyas) { Zhonyas.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (Seraph.IsReady() && Seraph.IsOwned() && Player.Instance.InDanger(Settings.MYHPSeraph) && Settings.UseSeraph) { Seraph.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (Talisman.IsReady() && Player.Instance.CountAlliesInRange(450) >= 2 && Talisman.IsOwned() && Player.Instance.InDanger(30)) { Talisman.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (Randuin.IsReady() && Player.Instance.CountEnemiesInRange(Randuin.Range) >= 2 && Randuin.IsOwned() && Player.Instance.InDanger(30)) { Randuin.Cast(); Activator.lastUsed = Environment.TickCount + 500; } //Allies if (FaceOfTheMountain.IsReady() && FaceOfTheMountain.IsOwned()) { var allyFace = EntityManager.Heroes.Allies.FirstOrDefault(a => a.InDanger(Settings.AllyHPFaceOfTheMountain)); if (allyFace != null) { FaceOfTheMountain.Cast(allyFace); Activator.lastUsed = Environment.TickCount + 500; } } if (Mikael.IsReady() && Player.Instance.HasCCs() && Mikael.IsOwned()) { var allyMikael = EntityManager.Heroes.Allies.FirstOrDefault(a => a.InDanger(Settings.AllyHPMikaelHeal)); if (allyMikael != null) { Mikael.Cast(allyMikael); Activator.lastUsed = Environment.TickCount + 500; } } if (Solari.IsReady() && Solari.IsOwned()) { var allySolari = EntityManager.Heroes.Allies.FirstOrDefault(a => a.InDanger(Settings.AllyHealthSolari)); if (allySolari != null) { Solari.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } } if (Ohm.IsReady() && Ohm.IsOwned()) { var turret = EntityManager.Turrets.Enemies.FirstOrDefault(t => t.IsAttackingPlayer); var allyFace = EntityManager.Heroes.Allies.FirstOrDefault(a => a.InDanger(Settings.OhmHealth)); if (allyFace != null && turret != null) { Ohm.Cast(turret); Activator.lastUsed = Environment.TickCount + 500; } } //CC if (DerbishBlade.IsReady() && DerbishBlade.IsOwned() && Settings.DerbishBlade && Player.Instance.HasCCs()) { Core.DelayAction(() => DerbishBlade.Cast(), Settings.CleanseDelay); Activator.lastUsed = Environment.TickCount + 1500; } if (Mercurial.IsReady() && Mercurial.IsOwned() && Settings.Mercurial && Player.Instance.HasCCs()) { Core.DelayAction(() => Mercurial.Cast(), Settings.CleanseDelay); Activator.lastUsed = Environment.TickCount + 1500; } if (QuickSilver.IsReady() && QuickSilver.IsOwned() && Settings.QuickSilver && Player.Instance.HasCCs()) { Core.DelayAction(() => QuickSilver.Cast(), Settings.CleanseDelay); Activator.lastUsed = Environment.TickCount + 1500; } var ally = EntityManager.Heroes.Allies.FirstOrDefault(a => a.IsValidTarget(Mikael.Range)); if (ally == null) { return; } if (!ally.HasCCs()) { return; } if (Mikael.IsReady() && Mikael.IsOwned() && Settings.MikaelCleanse) { Core.DelayAction(() => Mikael.Cast(ally), Settings.CleanseDelay); Activator.lastUsed = Environment.TickCount + 1500; } #endregion Self }
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; }
public static void Execute() { var target = EntityManager.Heroes.Enemies.FirstOrDefault(e => !e.IsDead && e.IsInRange(Player.Instance, 1500)); if (Player.Instance.IsInShopRange() || target == null || DamageHandler.LastItemCast > Environment.TickCount) { return; } #region Self if (Zhonyas.IsReady() && Player.Instance.InDanger() && Zhonyas.IsOwned()) { Zhonyas.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (ArchengelStaff.IsReady() && Player.Instance.InDanger() && ArchengelStaff.IsOwned()) { ArchengelStaff.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (FaceOfTheMountain.IsReady() && Player.Instance.InDanger() && FaceOfTheMountain.IsOwned()) { FaceOfTheMountain.Cast(Player.Instance); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (Talisman.IsReady() && Player.Instance.CountAlliesInRange(450) >= 2 || Player.Instance.InDanger() && FaceOfTheMountain.IsOwned()) { FaceOfTheMountain.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (Mikael.IsReady() && Player.Instance.InDanger() || Player.Instance.HasCC() && Mikael.IsOwned()) { Mikael.Cast(Player.Instance); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (Solari.IsReady() && Player.Instance.InDanger() && Solari.IsOwned()) { Solari.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (Ohm.IsReady() && Ohm.IsOwned()) { var turret = EntityManager.Turrets.Enemies.FirstOrDefault(t => t.IsAttackingPlayer); if (turret != null) { Ohm.Cast(turret); DamageHandler.LastItemCast = Environment.TickCount + 450; } } if (Randuin.IsReady() && Player.Instance.CountEnemiesInRange(Randuin.Range) >= 2 && Randuin.IsOwned()) { Randuin.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } //CC if (!Player.Instance.HasCC()) { return; } if (DerbishBlade.IsReady() && DerbishBlade.IsOwned()) { DerbishBlade.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (Mercurial.IsReady() && Mercurial.IsOwned()) { Mercurial.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } if (QuickSilver.IsReady() && QuickSilver.IsOwned()) { QuickSilver.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } #endregion Self #region Ally if (DamageHandler.LastItemCast < Environment.TickCount) { if (FaceOfTheMountain.IsReady() && FaceOfTheMountain.IsOwned()) { foreach ( var ally in EntityManager.Heroes.Allies.Where( a => DamageHandler.Damages.ContainsKey(a.NetworkId) && a.InDanger())) { FaceOfTheMountain.Cast(ally); DamageHandler.LastItemCast = Environment.TickCount + 450; } } } if (Talisman.IsReady() && Player.Instance.CountAlliesInRange(450) >= 2 || Player.Instance.InDanger() && FaceOfTheMountain.IsOwned()) { foreach ( var ally in EntityManager.Heroes.Allies.Where( a => DamageHandler.Damages.ContainsKey(a.NetworkId) && a.InDanger())) { FaceOfTheMountain.Cast(ally); DamageHandler.LastItemCast = Environment.TickCount + 450; } } if (Mikael.IsReady() && Player.Instance.InDanger() || Player.Instance.HasCC() && Mikael.IsOwned()) { foreach ( var ally in EntityManager.Heroes.Allies.Where( a => DamageHandler.Damages.ContainsKey(a.NetworkId) && a.InDanger())) { Mikael.Cast(ally); DamageHandler.LastItemCast = Environment.TickCount + 450; } } if (Solari.IsReady() && Player.Instance.InDanger() && Solari.IsOwned()) { foreach ( var ally in EntityManager.Heroes.Allies.Where( a => DamageHandler.Damages.ContainsKey(a.NetworkId) && a.InDanger())) { Solari.Cast(ally); DamageHandler.LastItemCast = Environment.TickCount + 450; } } if (Ohm.IsReady() && Ohm.IsOwned()) { foreach (var objAiTurret in EntityManager.Turrets.AllTurrets) { if (DamageHandler.LastTargetTurrets.ContainsKey(objAiTurret.NetworkId)) { var turrettarget = DamageHandler.LastTargetTurrets[objAiTurret.NetworkId]; if (!turrettarget.IsValidTarget() || !turrettarget.IsAlly) { continue; } Ohm.Cast(); DamageHandler.LastItemCast = Environment.TickCount + 450; } } } }
public static void Execute() { if (Player.Instance.IsInShopRange() || Player.Instance.CountAlliesInRange(Misc.RangeEnemy) < Misc.EnemyCount || Activator.lastUsed >= Environment.TickCount) { return; } #region Self if (Zhonyas.IsReady() && Zhonyas.IsOwned() && Player.Instance.InDanger(Settings.ZhonyasMyHp) && Settings.Zhonyas) { Zhonyas.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (ArchengelStaff.IsReady() && ArchengelStaff.IsOwned() && Player.Instance.InDanger(Settings.MYHPArchengelStaff) && Settings.UseArchengelStaff) { ArchengelStaff.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (FaceOfTheMountain.IsReady() && FaceOfTheMountain.IsOwned() && Player.Instance.InDanger(30)) { FaceOfTheMountain.Cast(Player.Instance); Activator.lastUsed = Environment.TickCount + 1500; } if (Talisman.IsReady() && Player.Instance.CountAlliesInRange(450) >= 2 && Talisman.IsOwned() && Player.Instance.InDanger(30)) { Talisman.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (Mikael.IsReady() && Player.Instance.HasCC() && Mikael.IsOwned() && Player.Instance.InDanger(30)) { Mikael.Cast(Player.Instance); Activator.lastUsed = Environment.TickCount + 1500; } if (Solari.IsReady() && Solari.IsOwned() && Player.Instance.InDanger(30)) { Solari.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (Ohm.IsReady() && Ohm.IsOwned() && Player.Instance.InDanger(30)) { var turret = EntityManager.Turrets.Enemies.FirstOrDefault(t => t.IsAttackingPlayer); if (turret != null) { Ohm.Cast(turret); Activator.lastUsed = Environment.TickCount + 1500; } } if (Randuin.IsReady() && Player.Instance.CountEnemiesInRange(Randuin.Range) >= 2 && Randuin.IsOwned() && Player.Instance.InDanger(30)) { Randuin.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } //CC if (!Player.Instance.HasCC()) { return; } if (DerbishBlade.IsReady() && DerbishBlade.IsOwned()) { DerbishBlade.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (Mercurial.IsReady() && Mercurial.IsOwned()) { Mercurial.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } if (QuickSilver.IsReady() && QuickSilver.IsOwned()) { QuickSilver.Cast(); Activator.lastUsed = Environment.TickCount + 1500; } #endregion Self }