private static void ExecuteSimpleMode() { if (!ModeConfig.MenuFarm.Item("Farm.Enable").GetValue <KeyBind>().Active) { return; } if (ObjectManager.Player.ManaPercent <= CommonManaManager.MinManaPercent(CommonManaManager.FarmMode.Jungle)) { return; } var mobs = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, Q.Range, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth); if (mobs.Count <= 0) { return; } var mob = mobs[0]; if (!Common.CommonHelper.ShouldCastSpell(mob)) { return; } var jUseQ = MenuLocal.Item("Jungle.Q.Use").GetValue <StringList>().SelectedIndex; if (jUseQ != 0 && Q.CanCast(mob)) { if (CommonManaManager.GetMobType(mob, CommonManaManager.FromMobClass.ByType) == CommonManaManager.MobTypes.Big) { Champion.PlayerSpells.Cast.Q(mob); } if (jUseQ == 2 && mob.Health < PlayerSpells.WarwickDamage.Q(PlayerSpells.WarwickDamage.QFor.Enemy)) { Champion.PlayerSpells.Cast.Q(mob); } } var jUseE = MenuLocal.Item("Jungle.E.Use").GetValue <StringList>().SelectedIndex; if (jUseE != 0 && E.IsReady() && mob.Distance(ObjectManager.Player) < PlayerSpells.E.Range) { if (CommonManaManager.GetMobType(mob, CommonManaManager.FromMobClass.ByType) == CommonManaManager.MobTypes.Big) { Champion.PlayerSpells.Cast.E(); } if (jUseE == 2) { Champion.PlayerSpells.Cast.E(); } } }
private static void ExecuteLaneClear() { if (!ModeConfig.MenuFarm.Item("Farm.Enable").GetValue <KeyBind>().Active) { return; } if (ObjectManager.Player.ManaPercent < CommonManaManager.MinManaPercent(CommonManaManager.FarmMode.Lane)) { return; } return; var minions = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, Q.Range); if (minions.Count < 1) { return; } if (MenuLocal.Item("Lane.Use.QL").GetValue <bool>() && Q.IsReady()) { foreach (var minion in minions.Where(m => m.CanKillableWith(Q) && Q.CanCast(m))) { Champion.PlayerSpells.Cast.Q(minion); } } if (MenuLocal.Item("Lane.Use.QH").GetValue <bool>() && Q.IsReady()) { foreach ( var minion in minions.Where( m => HealthPrediction.GetHealthPrediction(m, (int)(ObjectManager.Player.AttackCastDelay * 1000), Game.Ping / 2 - 100) < 0) .Where(m => m.CanKillableWith(Q) && Q.CanCast(m))) { Champion.PlayerSpells.Cast.Q(minion); } } if (MenuLocal.Item("Lane.Use.W").GetValue <StringList>().SelectedIndex != 0 && W.IsReady()) { var totalAa = (int) (minions.Where(m => m.IsValidTarget(Orbwalking.GetRealAutoAttackRange(null) + 65)) .Sum(m => (int)m.Health) / ObjectManager.Player.TotalAttackDamage); if (totalAa >= MenuLocal.Item("Jungle.W.Use").GetValue <StringList>().SelectedIndex * 3) { Champion.PlayerSpells.Cast.W(); } } }
private static void ExecuteLaneClear() { if (!ModeConfig.MenuFarm.Item("Farm.Enable").GetValue <KeyBind>().Active) { return; } if (ObjectManager.Player.ManaPercent < CommonManaManager.MinManaPercent(CommonManaManager.FarmMode.Lane)) { return; } return; var minions = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, Q.Range); if (minions.Count < 1) { return; } if (MenuLocal.Item("Lane.Use.QL").GetValue <bool>() && Q.IsReady()) { foreach (var minion in minions.Where(m => m.CanKillableWith(Q) && Q.CanCast(m))) { Champion.PlayerSpells.Cast.Q(minion); } } if (MenuLocal.Item("Lane.Use.QH").GetValue <bool>() && Q.IsReady()) { foreach ( var minion in minions.Where( m => HealthPrediction.GetHealthPrediction(m, (int)(ObjectManager.Player.AttackCastDelay * 1000), Game.Ping / 2 - 100) < 0) .Where(m => m.CanKillableWith(Q) && Q.CanCast(m))) { Champion.PlayerSpells.Cast.Q(minion); } } }
private static void ExecuteSimpleMode() { if (!ModeConfig.MenuFarm.Item("Farm.Enable").GetValue <KeyBind>().Active) { return; } if (ObjectManager.Player.ManaPercent <= CommonManaManager.MinManaPercent(CommonManaManager.FarmMode.Jungle)) { return; } var mobs = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, Q.Range, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth); if (mobs.Count <= 0) { return; } var mob = mobs[0]; if (!Common.CommonHelper.ShouldCastSpell(mob)) { return; } var jUseQ = MenuLocal.Item("Jungle.Q.Use").GetValue <StringList>().SelectedIndex; if (jUseQ != 0 && Q.CanCast(mob)) { if (CommonManaManager.GetMobType(mob, CommonManaManager.FromMobClass.ByType) == CommonManaManager.MobTypes.Big) { Champion.PlayerSpells.Cast.Q(mob); } if (jUseQ == 2 && mob.Health < PlayerSpells.WarwickDamage.Q(PlayerSpells.WarwickDamage.QFor.Enemy)) { Champion.PlayerSpells.Cast.Q(mob); } } if (MenuLocal.Item("Jungle.W.Use").GetValue <StringList>().SelectedIndex != 0 && W.IsReady() && mob.IsValidTarget(Orbwalking.GetRealAutoAttackRange(null) + 65)) { var totalAa = ObjectManager.Get <Obj_AI_Minion>() .Where( m => m.Team == GameObjectTeam.Neutral && m.IsValidTarget(Orbwalking.GetRealAutoAttackRange(null) + 65)) .Sum(m => (int)m.Health); totalAa = (int)(totalAa / ObjectManager.Player.TotalAttackDamage); if (totalAa >= MenuLocal.Item("Jungle.W.Use").GetValue <StringList>().SelectedIndex + 2 || CommonManaManager.GetMobType(mobs[0], CommonManaManager.FromMobClass.ByType) == CommonManaManager.MobTypes.Big) { Champion.PlayerSpells.Cast.W(); } } }