private static void ItemsChecks() { if (GLP800.IsReady()) { var t = TargetSelector.GetTarget(GLP800.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Menu.Item("GLP800").GetValue <bool>() && (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)) { GLP800.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition); } } } if (Protobelt.IsReady()) { var t = TargetSelector.GetTarget(Protobelt.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Menu.Item("Protobelt").GetValue <bool>() && (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)) { Protobelt.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition); } } } if (Hextech.IsReady()) { var t = TargetSelector.GetTarget(Hextech.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Menu.Item("Hextech").GetValue <bool>() && (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)) { Hextech.Cast(t); } } } }
/// <summary> /// Pro/Hex/GLP Usage, Perfect. /// </summary> public void ProHexGLPUsage() { if (GLP800.IsReady()) { var t = TargetSelector.GetTarget(GLP800.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Config.GLP800.GetValue <bool>()) { GLP800.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition); } } } if (Protobelt.IsReady()) { var t = TargetSelector.GetTarget(Protobelt.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Config.Protobelt.GetValue <bool>()) { Protobelt.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition); } } } if (Hextech.IsReady()) { var t = TargetSelector.GetTarget(Hextech.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Config.Hextech.GetValue <bool>()) { Hextech.Cast(t); } } } }
private void Offensive() { if (Botrk.IsReady() && Config.Item("Botrk").GetValue <bool>()) { var t = TargetSelector.GetTarget(Botrk.Range, TargetSelector.DamageType.Physical); if (t.IsValidTarget()) { if (Config.Item("BotrkKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Physical, t.MaxHealth * 0.1) > t.Health - OktwCommon.GetIncomingDamage(t)) { Botrk.Cast(t); } if (Config.Item("BotrkLS").GetValue <bool>() && Player.Health < Player.MaxHealth * 0.5 - OktwCommon.GetIncomingDamage(Player)) { Botrk.Cast(t); } if (Config.Item("BotrkCombo").GetValue <bool>() && Program.Combo) { Botrk.Cast(t); } } } if (GLP800.IsReady() && Config.Item("GLP800").GetValue <bool>()) { var t = TargetSelector.GetTarget(GLP800.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Config.Item("GLP800KS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 200 + Player.FlatMagicDamageMod * 0.35) > t.Health - OktwCommon.GetIncomingDamage(t)) { GLP800.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition); } if (Config.Item("GLP800Combo").GetValue <bool>() && Program.Combo) { Program.debug("PRO"); GLP800.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition); } } } if (Protobelt.IsReady() && Config.Item("Protobelt").GetValue <bool>()) { var t = TargetSelector.GetTarget(Protobelt.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Config.Item("ProtobeltKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 150 + Player.FlatMagicDamageMod * 0.35) > t.Health - OktwCommon.GetIncomingDamage(t)) { Protobelt.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition); } if (Config.Item("ProtobeltCombo").GetValue <bool>() && Program.Combo) { Program.debug("PRO"); Protobelt.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition); } } } if (Hextech.IsReady() && Config.Item("Hextech").GetValue <bool>()) { var t = TargetSelector.GetTarget(Hextech.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Config.Item("HextechKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 150 + Player.FlatMagicDamageMod * 0.4) > t.Health - OktwCommon.GetIncomingDamage(t)) { Hextech.Cast(t); } if (Config.Item("HextechCombo").GetValue <bool>() && Program.Combo) { Hextech.Cast(t); } } } if (Program.Combo && FrostQueen.IsReady() && Config.Item("FrostQueen").GetValue <bool>() && Player.CountEnemiesInRange(800) > 0) { FrostQueen.Cast(); } if (Cutlass.IsReady() && Config.Item("Cutlass").GetValue <bool>()) { var t = TargetSelector.GetTarget(Cutlass.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Config.Item("CutlassKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 100) > t.Health - OktwCommon.GetIncomingDamage(t)) { Cutlass.Cast(t); } if (Config.Item("CutlassCombo").GetValue <bool>() && Program.Combo) { Cutlass.Cast(t); } } } if (Youmuus.IsReady() && Config.Item("Youmuus").GetValue <bool>() && Program.Combo) { var t = Orbwalker.GetTarget(); if (t.IsValidTarget() && t is AIHeroClient) { if (Config.Item("YoumuusKS").GetValue <bool>() && t.Health < Player.MaxHealth) { Youmuus.Cast(); } if (Config.Item("YoumuusCombo").GetValue <bool>()) { Youmuus.Cast(); } } } if (Config.Item("Hydra").GetValue <bool>()) { if (Hydra.IsReady() && Player.CountEnemiesInRange(Hydra.Range) > 0) { Hydra.Cast(); } else if (Hydra2.IsReady() && Player.CountEnemiesInRange(Hydra2.Range) > 0) { Hydra2.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); * */ }