Exemplo n.º 1
0
        private static void ExecuteAdvancedMode()
        {
            var mobs = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, Champion.PlayerSpells.Q.Range, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth);

            if (mobs.Count <= 0)
            {
                return;
            }

            var mob = mobs[0];

            if (ObjectManager.Player.ManaPercent < CommonManaManager.JungleMinManaPercent(mob))
            {
                return;
            }

            if (Champion.PlayerSpells.Q.IsReady() && mob.IsValidTarget(Champion.PlayerSpells.Q.Range))
            {
                if (MenuLocal.Item("Jungle.Advanced.UseQ.Big1").GetValue <StringList>().SelectedIndex != 0)
                {
                    if (CommonManaManager.GetMobType(mob) == CommonManaManager.MobTypes.Blue || CommonManaManager.GetMobType(mob) == CommonManaManager.MobTypes.Red)
                    {
                        if (Champion.PlayerSpells.Q.IsReady())
                        {
                            Champion.PlayerSpells.Q.Cast(mob);
                        }
                    }
                }

                if (MenuLocal.Item("Jungle.Advanced.UseQ.Big2").GetValue <StringList>().SelectedIndex != 0)
                {
                    if (CommonManaManager.GetMobType(mob) == CommonManaManager.MobTypes.Baron || CommonManaManager.GetMobType(mob) == CommonManaManager.MobTypes.Dragon)
                    {
                        if (Champion.PlayerSpells.Q.IsReady())
                        {
                            Champion.PlayerSpells.Q.Cast(mob);
                        }
                    }
                }

                if (mob.Health > ObjectManager.Player.TotalAttackDamage * 2)
                {
                    if (MenuLocal.Item("Jungle.Advanced.UseQ.Big3").GetValue <StringList>().SelectedIndex != 0)
                    {
                        if (CommonManaManager.GetMobType(mob, CommonManaManager.FromMobClass.ByType) == CommonManaManager.MobTypes.Big &&
                            (
                                CommonManaManager.GetMobType(mob) != CommonManaManager.MobTypes.Dragon || CommonManaManager.GetMobType(mob) != CommonManaManager.MobTypes.Baron ||
                                CommonManaManager.GetMobType(mob) != CommonManaManager.MobTypes.Red || CommonManaManager.GetMobType(mob) != CommonManaManager.MobTypes.Blue)
                            )
                        {
                            if (Champion.PlayerSpells.Q.IsReady())
                            {
                                Champion.PlayerSpells.Q.Cast(mob);
                            }
                        }
                    }

                    if (MenuLocal.Item("Jungle.Advanced.UseQ.Small").GetValue <StringList>().SelectedIndex != 0)
                    {
                        if (CommonManaManager.GetMobType(mob, CommonManaManager.FromMobClass.ByType) != CommonManaManager.MobTypes.Big)
                        {
                            if (mobs.Count >= MenuLocal.Item("Jungle.Advanced.UseQ.Small").GetValue <StringList>().SelectedIndex)
                            {
                                if (Champion.PlayerSpells.Q.IsReady())
                                {
                                    Champion.PlayerSpells.Q.Cast(mob);
                                }
                            }
                        }
                    }
                }
            }

            if (Champion.PlayerSpells.E.IsReady() && mob.IsValidTarget(Champion.PlayerSpells.E.Range) && mob.Health > ObjectManager.Player.TotalAttackDamage * 3)
            {
                if (MenuLocal.Item("Jungle.Advanced.UseE.Big1").GetValue <StringList>().SelectedIndex != 0)
                {
                    if (CommonManaManager.GetMobType(mob) == CommonManaManager.MobTypes.Blue || CommonManaManager.GetMobType(mob) == CommonManaManager.MobTypes.Red)
                    {
                        if (Champion.PlayerSpells.E.IsReady())
                        {
                            Champion.PlayerSpells.E.Cast(mob);
                        }
                    }
                }

                if (MenuLocal.Item("Jungle.Advanced.UseE.Big2").GetValue <StringList>().SelectedIndex != 0)
                {
                    if (CommonManaManager.GetMobType(mob) == CommonManaManager.MobTypes.Baron || CommonManaManager.GetMobType(mob) == CommonManaManager.MobTypes.Dragon)
                    {
                        if (Champion.PlayerSpells.E.IsReady())
                        {
                            Champion.PlayerSpells.E.Cast(mob);
                        }
                    }
                }

                if (MenuLocal.Item("Jungle.Advanced.UseE.Big3").GetValue <StringList>().SelectedIndex != 0)
                {
                    if (CommonManaManager.GetMobType(mob, CommonManaManager.FromMobClass.ByType) == CommonManaManager.MobTypes.Big &&
                        (
                            CommonManaManager.GetMobType(mob) != CommonManaManager.MobTypes.Dragon || CommonManaManager.GetMobType(mob) != CommonManaManager.MobTypes.Baron ||
                            CommonManaManager.GetMobType(mob) != CommonManaManager.MobTypes.Red || CommonManaManager.GetMobType(mob) != CommonManaManager.MobTypes.Blue)
                        )
                    {
                        if (Champion.PlayerSpells.E.IsReady())
                        {
                            Champion.PlayerSpells.E.Cast(mob);
                        }
                    }
                }

                if (MenuLocal.Item("Jungle.Advanced.UseE.Big4").GetValue <StringList>().SelectedIndex != 0)
                {
                    if (CommonManaManager.GetMobType(mob, CommonManaManager.FromMobClass.ByType) != CommonManaManager.MobTypes.Big)
                    {
                        if (Champion.PlayerSpells.E.IsReady())
                        {
                            Champion.PlayerSpells.E.Cast(mob);
                        }
                    }
                }
            }
        }
Exemplo n.º 2
0
        private static void ExecuteSimpleMode()
        {
            var mobs = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, Q.Range, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth);

            if (mobs.Count <= 0)
            {
                return;
            }

            if (ObjectManager.Player.ManaPercent < CommonManaManager.JungleMinManaPercent(mobs[0]))
            {
                return;
            }

            if (Q.IsReady() && MenuLocal.Item("Jungle.Simple.UseQ").GetValue <StringList>().SelectedIndex != 0)
            {
                var qCount = MenuLocal.Item("Jungle.Simple.UseQ").GetValue <StringList>().SelectedIndex;

                if (qCount == 1)
                {
                    if (CommonManaManager.GetMobType(mobs[0], CommonManaManager.FromMobClass.ByType) == CommonManaManager.MobTypes.Big)
                    {
                        Q.Cast(mobs[0].Position - 15);
                    }
                }
                else
                {
                    if (mobs.Count >= qCount)
                    {
                        Q.Cast(mobs[0].Position - 15);
                    }
                }
            }

            if (W.IsReady() && mobs[0].IsValidTarget(Orbwalking.GetRealAutoAttackRange(null) + 165) && MenuLocal.Item("Jungle.Simple.UseW").GetValue <StringList>().SelectedIndex != 0)
            {
                var wCount = MenuLocal.Item("Jungle.Simple.UseW").GetValue <StringList>().SelectedIndex;
                if (wCount == 1)
                {
                    if (CommonManaManager.GetMobType(mobs[0], CommonManaManager.FromMobClass.ByType) == CommonManaManager.MobTypes.Big)
                    {
                        W.Cast();
                    }
                }
                else
                {
                    var totalAa = ObjectManager.Get <Obj_AI_Minion>().Where(m => m.Team == GameObjectTeam.Neutral && m.IsValidTarget(Orbwalking.GetRealAutoAttackRange(null) + 165)).Sum(mob => (int)mob.Health);

                    totalAa = (int)(totalAa / ObjectManager.Player.TotalAttackDamage);
                    if (totalAa >= wCount + 2 || CommonManaManager.GetMobType(mobs[0], CommonManaManager.FromMobClass.ByType) == CommonManaManager.MobTypes.Big)
                    {
                        W.Cast();
                    }
                }
            }

            if (E.CanCast(mobs[0]) && MenuLocal.Item("Jungle.Simple.UseE").GetValue <StringList>().SelectedIndex != 0)
            {
                var qCount = MenuLocal.Item("Jungle.Simple.UseE").GetValue <StringList>().SelectedIndex;

                if (qCount == 1)
                {
                    if (CommonManaManager.GetMobType(mobs[0], CommonManaManager.FromMobClass.ByType) == CommonManaManager.MobTypes.Big)
                    {
                        E.CastOnUnit(mobs[0]);
                    }
                }
                else
                {
                    E.CastOnUnit(mobs[0]);
                }
            }
        }