public static void OnAfterAttack(object sender, AfterAttackEventArgs args) { if (args.Target == null || !args.Target.IsValidTarget()) { return; } if (Orbwalker.ActiveMode == OrbwalkerMode.Combo && args.Target is AIHeroClient && mainMenu["Combo"].GetValue <MenuBool>("Quse").Enabled&& !IsBurrowed()) { if (QUnburrowed.Cast()) { Orbwalker.ResetAutoAttackTimer(); } } if (Orbwalker.ActiveMode == OrbwalkerMode.Harass && args.Target is AIHeroClient && mainMenu["Harass"].GetValue <MenuBool>("Quse").Enabled&& !IsBurrowed()) { if (QUnburrowed.Cast()) { Orbwalker.ResetAutoAttackTimer(); } } //var Etarget = EUnburrowed.GetTarget(); //if (Orbwalker.ActiveMode == OrbwalkerMode.Combo && args.Target is AIHeroClient && // mainMenu["Combo"].GetValue<MenuBool>("Euse").Enabled && !IsBurrowed()&&GameObjects.Player.ManaPercent==100) //{ // EUnburrowed.Cast(Etarget); //} }
private static void ComboLogic() { var useQ = mainMenu["Combo"].GetValue <MenuBool>("Quse").Enabled; var useE = mainMenu["Combo"].GetValue <MenuBool>("EUnburroweduse").Enabled; var autoSwitch = mainMenu["Combo"].GetValue <MenuBool>("Wuse").Enabled; var useQburrowed = mainMenu["Combo"].GetValue <MenuBool>("Quse").Enabled; var useEburrowed = mainMenu["Combo"].GetValue <MenuBool>("Eburroweduse").Enabled; var Qburrowedtarget = Qburrowed.GetTarget(); var Qburrowedpred = Qburrowed.GetPrediction(Qburrowedtarget); var Eburrowedtarget = Eburrowed.GetTarget(); var Eburrowedpred = Eburrowed.GetPrediction(Eburrowedtarget); var targetR = R.GetTarget(); //var autoR = mainMenu["Misc"]["list"].GetValue<MenuBool>(target).Enabled; if (IsBurrowed()) { if (Qburrowed.IsReady() && useQburrowed && Qburrowedtarget.IsValidTarget() && Qburrowedpred.Hitchance > HitChance.High) { Qburrowed.Cast(Qburrowedpred.CastPosition); } if (Eburrowed.IsReady() && useEburrowed && Eburrowedtarget.IsValidTarget()) { Eburrowed.Cast(Eburrowedtarget.Position - 50); } if (Wburrowed.IsReady() && !Qburrowed.IsReady() && !Eburrowed.IsReady() && autoSwitch && (Eburrowedtarget.Distance(GameObjects.Player.Position) < 260 || Qburrowedtarget.Distance(GameObjects.Player.Position) < 260)) // Auto Switch { Wburrowed.Cast(); } } else { if (EUnburrowed.IsReady() && useE) { foreach (var enemy in ObjectManager.Get <AIHeroClient>().Where(x => x.IsEnemy && GameObjects.Player.ManaPercent == 100 && x.IsValidTarget(EUnburrowed.Range))) { EUnburrowed.Cast(enemy); } } if (WUnburrowed.IsReady() && !QUnburrowed.IsReady() && !EUnburrowed.IsReady() && autoSwitch) // Auto Switch { WUnburrowed.Cast(); } } if (mainMenu["Combo"].GetValue <MenuBool>("Ruse").Enabled&& R.IsReady() && GameObjects.Player.CountEnemyHeroesInRange(R.Range) > 0) { foreach (var target in GameObjects.EnemyHeroes.Where(x => x.IsValidTarget() && R.GetDamage(x) > x.Health && x.HasBuff("reksairprey") && mainMenu["Misc"].GetValue <MenuBool>(x.CharacterName).Enabled)) { R.Cast(target); } } }
private static void Jungle() { var useQUnburrowed = mainMenu["Jungle"].GetValue <MenuBool>("Quse").Enabled; var autoSwitch = mainMenu["Jungle"].GetValue <MenuBool>("Wuse").Enabled; var useE = mainMenu["Jungle"].GetValue <MenuBool>("Euse").Enabled; var useEMax = mainMenu["Jungle"].GetValue <MenuBool>("Eusemax").Enabled; var useQburrowed = mainMenu["Jungle"].GetValue <MenuBool>("Qburroweduse").Enabled; var mobs = GameObjects.Jungle.Where(x => x.IsValidTarget(QUnburrowed.Range)).ToList(); if (mobs == null || (mobs != null && mobs.Count == 0)) { return; } var mob = mobs[0]; if (IsBurrowed()) { if (Qburrowed.IsReady() && useQburrowed) { Qburrowed.Cast(mob.Position); } if (!QUnburrowed.IsReady() && Wburrowed.IsReady() && autoSwitch) { Wburrowed.Cast(); } } else { if (QUnburrowed.IsReady() && useQUnburrowed && ObjectManager.Player.Distance(mob.Position) < EUnburrowed.Range) { QUnburrowed.Cast(); } if (EUnburrowed.IsReady() && ((useE && !useEMax) || (useE && useEMax && GameObjects.Player.ManaPercent == 100))) { EUnburrowed.Cast(mob); } if (!QUnburrowed.IsReady() && !EUnburrowed.IsReady() && WUnburrowed.IsReady() && autoSwitch) { WUnburrowed.Cast(); } } }
private static void HarassLogic() { var useQ = mainMenu["Harass"].GetValue <MenuBool>("Quse").Enabled; var useE = mainMenu["Harass"].GetValue <MenuBool>("EUnburroweduse").Enabled; var autoSwitch = mainMenu["Harass"].GetValue <MenuBool>("Wuse").Enabled; var useQburrowed = mainMenu["Harass"].GetValue <MenuBool>("Quse").Enabled; var useEburrowed = mainMenu["Harass"].GetValue <MenuBool>("Eburroweduse").Enabled; var Qburrowedtarget = Qburrowed.GetTarget(); var Qburrowedpred = Qburrowed.GetPrediction(Qburrowedtarget); var Eburrowedtarget = Eburrowed.GetTarget(); var Eburrowedpred = Eburrowed.GetPrediction(Eburrowedtarget); if (IsBurrowed()) { if (Qburrowed.IsReady() && useQburrowed && Qburrowedtarget.IsValidTarget() && Qburrowedpred.Hitchance > HitChance.High) { Qburrowed.Cast(Qburrowedpred.CastPosition); } if (Eburrowed.IsReady() && useEburrowed && Eburrowedtarget.IsValidTarget()) { Eburrowed.Cast(Eburrowedtarget.Position - 50); } if (Wburrowed.IsReady() && !Qburrowed.IsReady() && !Eburrowed.IsReady() && autoSwitch && (Eburrowedtarget.Distance(GameObjects.Player.Position) < 260 || Qburrowedtarget.Distance(GameObjects.Player.Position) < 260)) // Auto Switch { Wburrowed.Cast(); } } else { if (EUnburrowed.IsReady() && useE) { foreach (var enemy in ObjectManager.Get <AIHeroClient>().Where(x => x.IsEnemy && GameObjects.Player.ManaPercent == 100 && x.IsValidTarget(EUnburrowed.Range))) { EUnburrowed.Cast(enemy); } } if (WUnburrowed.IsReady() && !QUnburrowed.IsReady() && !EUnburrowed.IsReady() && autoSwitch) // Auto Switch { WUnburrowed.Cast(); } } }