Ejemplo n.º 1
0
        public override void Jungleclear()
        {
            var target = E.GetJungleMinion();

            if (JungleClearMenu.GetSliderValue(JunglesMenuID + "mana") >= Player.Instance.ManaPercent)
            {
                return;
            }
            if (JungleClearMenu.GetCheckBoxValue(JunglesMenuID + "Q"))
            {
                Q.TryCast(target);
            }
            if (JungleClearMenu.GetCheckBoxValue(JunglesMenuID + "W"))
            {
                W.TryCast(target);
            }
            if (JungleClearMenu.GetCheckBoxValue(JunglesMenuID + "E"))
            {
                E.TryCast(target);
            }
            if (JungleClearMenu.GetCheckBoxValue(JunglesMenuID + "R"))
            {
                R.TryCast(target);
            }
        }
Ejemplo n.º 2
0
        public static void Execute()
        {
            var target = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(a => a.MaxHealth).FirstOrDefault(a => a.IsValidTarget(900));

            if (target == null)
            {
                return;
            }

            if (!Program.burrowed)
            {
                if (JungleClearMenu.GetCheckBoxValue("qUse") && Q.IsReady())
                {
                    Q.Cast();
                }

                if (JungleClearMenu.GetCheckBoxValue("eUse") && E.IsReady())
                {
                    E.Cast(target);
                }
            }

            else if (Program.burrowed)
            {
                if (JungleClearMenu.GetCheckBoxValue("qUse") && Q2.IsReady())
                {
                    var predQ2 = Q2.GetPrediction(target);
                    Q2.Cast(predQ2.CastPosition);
                }
            }
        }
        public static void Execute()
        {
            var source =
                EntityManager.MinionsAndMonsters.GetJungleMonsters()
                .OrderBy(a => a.MaxHealth)
                .FirstOrDefault(a => a.IsValidTarget(Q.Range));

            if (source == null)
            {
                return;
            }
            if (Q.IsReady() && JungleClearMenu.GetCheckBoxValue("qUse") && source.Distance(Player) <= Q.Range)
            {
                Q.Cast(source);
            }

            if (W.IsReady() && JungleClearMenu.GetCheckBoxValue("wUse") && source.Distance(Player) <= W.Range)
            {
                foreach (var Mob in EntityManager.MinionsAndMonsters.Monsters.Where(x => x.IsValid && !x.IsDead))
                {
                    W.Cast(source);
                    Orbwalker.DisableAttacking = true;
                    Orbwalker.DisableMovement  = true;
                    Healing = true;
                }
            }


            if (E.IsReady() && JungleClearMenu.GetCheckBoxValue("eUse") && source.Distance(Player) <= E.Range)
            {
                E.Cast(source);
            }
        }
Ejemplo n.º 4
0
        public static void Execute()
        {
            var target = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(a => a.MaxHealth).FirstOrDefault(a => a.IsValidTarget(900));


            if (JungleClearMenu.GetCheckBoxValue("qUse") && Q.IsReady())
            {
                Q.Cast(target);
            }

            var QBuff = target.HasBuff("AkaliMota");

            if (QBuff && target.IsValidTarget(Combo._player.GetAutoAttackRange(target)) && JungleClearMenu.GetCheckBoxValue("abclear"))
            {
                return;
            }

            if (JungleClearMenu.GetCheckBoxValue("eUse") && E.IsReady() && target.IsValidTarget(E.Range))
            {
                E.Cast();
            }

            if (JungleClearMenu.GetCheckBoxValue("rUse") && R.IsReady())
            {
                R.Cast(target);
            }
        }
Ejemplo n.º 5
0
        public static void Execute()
        {
            var source =
                EntityManager.MinionsAndMonsters.GetJungleMonsters()
                .OrderBy(a => a.MaxHealth)
                .FirstOrDefault(a => a.IsValidTarget(Q.Range));

            if (source == null)
            {
                return;
            }
            if (Q.IsReady() && JungleClearMenu.GetCheckBoxValue("qUse") && source.Distance(Player) <= Q.Range)
            {
                Q.Cast(source.Position);
            }

            if (E.IsReady() && JungleClearMenu.GetCheckBoxValue("eUse") && source.Distance(Player) <= E.Range)
            {
                E.Cast(source);
            }

            if (W.IsReady() && ComboMenu.GetCheckBoxValue("wUse"))
            {
                W.Cast();
            }
            //Q.TryToCast(Q.GetJungleMinion(), JungleClearMenu);
            //W.TryToCast(Q.GetJungleMinion(), JungleClearMenu);
            //E.TryToCast(Q.GetJungleMinion(), JungleClearMenu);
            //R.TryToCast(Q.GetJungleMinion(), JungleClearMenu);
        }
Ejemplo n.º 6
0
        public static void Execute()
        {
            var target = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(a => a.MaxHealth).FirstOrDefault(a => a.IsValidTarget(900));

            if (target == null || target.IsInvulnerable || target.MagicImmune)
            {
                return;
            }

            if (JungleClearMenu.GetCheckBoxValue("qUse") && Q.IsReady())
            {
                Q.Cast(target.ServerPosition);
            }


            if (JungleClearMenu.GetCheckBoxValue("wUse") && W.IsReady())
            {
                W.Cast();
            }

            if (JungleClearMenu.GetCheckBoxValue("eUse") && E.IsReady() && target.IsValidTarget(E.Range))
            {
                E.Cast(target);
            }
        }
Ejemplo n.º 7
0
        public static void Execute()
        {
            ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
            var target = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(a => a.MaxHealth).FirstOrDefault(a => a.IsValidTarget(900));
            var useQ   = JungleClearMenu.GetCheckBoxValue("qUse");
            var useW   = JungleClearMenu.GetCheckBoxValue("wUse");
            var useE   = JungleClearMenu.GetCheckBoxValue("eUse");
            var source = EntityManager.MinionsAndMonsters.GetJungleMonsters(Eclipse.Modes.LaneClear.Playerr.ServerPosition).OrderByDescending(a => a.MaxHealth).FirstOrDefault(a => a.Distance(Eclipse.Modes.LaneClear.Playerr) <= Eclipse.Modes.LaneClear.Playerr.GetAutoAttackRange());

            ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
            if (target == null)
            {
                return;
            }

            if (E.IsReady() && useE)
            {
                E.Cast(target.Position);
                return;
            }

            if (Q.IsReady() && useQ)
            {
                Q.Cast(target.Position);
                return;
            }

            if (!W.IsReady() || !useW)
            {
                return;
            }
            if (W.IsReady() && Eclipse.Modes.LaneClear.Playerr.HealthPercent < JungleClearMenu["jungle.minw"].Cast <Slider>().CurrentValue)
            {
                if (Eclipse.Modes.LaneClear.Playerr.Spellbook.GetSpell(SpellSlot.W).ToggleState == 2)
                {
                    W.Cast();
                    return;
                }
            }

            if (!W.IsReady() ||
                !(Eclipse.Modes.LaneClear.Playerr.HealthPercent > JungleClearMenu["jungle.maxw"].Cast <Slider>().CurrentValue))
            {
                return;
            }
            if (Eclipse.Modes.LaneClear.Playerr.Spellbook.GetSpell(SpellSlot.W).ToggleState != 1)
            {
                return;
            }
            W.Cast();
            return;
        }
Ejemplo n.º 8
0
        public override void Jungleclear()
        {
            var target = W.GetJungleMinion();

            if (JungleClearMenu.GetCheckBoxValue(JunglesMenuID + "Q"))
            {
                Q.TryCast(target);
            }
            if (JungleClearMenu.GetCheckBoxValue(JunglesMenuID + "E"))
            {
                E.TryCast(target);
            }
        }
Ejemplo n.º 9
0
        public static void Execute()
        {
            var target = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(a => a.MaxHealth).FirstOrDefault(a => a.IsValidTarget(900));

            if (JungleClearMenu.GetCheckBoxValue("wUse") && W.IsReady())
            {
                W.Cast(target.ServerPosition - 5);
            }

            if (JungleClearMenu.GetCheckBoxValue("eUse") && E.IsReady())
            {
                E.Cast(target);
            }
        }
Ejemplo n.º 10
0
        public static void Execute()
        {
            if (JungleClearMenu.GetCheckBoxValue("jclear1"))
            {
                var source = EntityManager.MinionsAndMonsters.GetJungleMonsters(_Player.ServerPosition, Q.Range).OrderByDescending(a => a.MaxHealth).FirstOrDefault();

                if (source == null)
                {
                    return;
                }

                if (Q.IsReady() && JungleClearMenu["qUse"].Cast <CheckBox>().CurrentValue&& source.Distance(_Player) <= Q.Range)
                {
                    Q.Cast(source);
                    return;
                }

                if (W.IsReady() && JungleClearMenu["wUse"].Cast <CheckBox>().CurrentValue&& source.Distance(_Player) < _Player.GetAutoAttackRange(source))
                {
                    W.Cast(source);
                    return;
                }
                if (E.IsReady() && JungleClearMenu["eUse"].Cast <CheckBox>().CurrentValue&& source.Distance(_Player) < _Player.GetAutoAttackRange(source))
                {
                    E.Cast(source);
                    return;
                }
                return;
            }

            if (JungleClearMenu.GetCheckBoxValue("jclear2"))
            {
                var target = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(a => a.MaxHealth).FirstOrDefault(a => a.IsValidTarget(900));

                if (JungleClearMenu.GetCheckBoxValue("eUse") && E.IsReady() && target.IsValidTarget(SpellsManager.E.Range) && E.GetPrediction(target).HitChance >= HitChance.Medium)
                {
                    E.Cast(target);
                }
                if (JungleClearMenu.GetCheckBoxValue("qUse") && Q.IsReady() && target.IsValidTarget(SpellsManager.Q.Range))
                {
                    Q.Cast(target);
                }
                if (JungleClearMenu.GetCheckBoxValue("WUse") && W.IsReady() && target.IsValidTarget(W.Range))
                {
                    W.Cast(target);
                }
            }
        }
Ejemplo n.º 11
0
        public static void Execute()
        {
            var target = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(a => a.MaxHealth).FirstOrDefault(a => a.IsValidTarget(900));

            if (JungleClearMenu.GetCheckBoxValue("qUse") && Q.IsReady())
            {
                Program.Items();
                Q.Cast();
                Orbwalker.ForcedTarget = target;
            }
            if (JungleClearMenu.GetCheckBoxValue("wUse") && W.IsReady())
            {
                W.Cast();
            }
            if (JungleClearMenu.GetCheckBoxValue("eUse") && E.IsReady() && E.GetPrediction(target).HitChance >= Hitch.hitchance(E, FirstMenu))
            {
                E.Cast(target);
            }

            var save = JungleClearMenu.GetCheckBoxValue("JungleSave");

            if (_player.Mana != 5 || save)
            {
                return;
            }

            if (target.IsValidTarget(Q.Range) && Q.IsReady() &&
                FirstMenu.GetComboBoxValue("JunglePrio") == 0 && JungleClearMenu.GetCheckBoxValue("qUse"))
            {
                Q.Cast();
            }

            if (target.IsValidTarget(W.Range) && W.IsReady() &&
                FirstMenu.GetComboBoxValue("JunglePrio") == 1 && JungleClearMenu.GetCheckBoxValue("wUse") &&
                !_player.HasBuff("rengarpassivebuff"))
            {
                W.Cast();
            }

            Program.Items();

            if (target.IsValidTarget(E.Range) && E.IsReady() &&
                FirstMenu.GetComboBoxValue("JunglePrio") == 2 && JungleClearMenu.GetCheckBoxValue("eUse"))
            {
                E.Cast(target.ServerPosition);
            }
        }
Ejemplo n.º 12
0
        /// <summary>
        /// Put in here what you want to do when the mode is running
        /// </summary>
        public static void Execute()
        {
            var target = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(a => a.MaxHealth).FirstOrDefault(a => a.IsValidTarget(1000));

            if (JungleClearMenu.GetCheckBoxValue("qUse") && Q.IsReady() && target.IsValidTarget(SpellsManager.Q.Range))
            {
                Q.Cast();
            }
            if (JungleClearMenu.GetCheckBoxValue("wUse") && W.IsReady())
            {
                W.Cast();
            }
            if (JungleClearMenu.GetCheckBoxValue("eUse") && E.IsReady() && target.IsValidTarget(SpellsManager.E.Range))
            {
                E.Cast(target);
            }
        }
Ejemplo n.º 13
0
        /// <summary>
        /// Put in here what you want to do when the mode is running
        /// </summary>
        public static void Execute()
        {
            if (JungleClearMenu.GetCheckBoxValue("qUse") && Q.IsReady())
            {
                var dragon     = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Instance.ServerPosition, Q2.MaximumRange + 200);
                var dragonline = EntityManager.MinionsAndMonsters.GetLineFarmLocation(dragon, Q2.Width, (int)Q2.MaximumRange);
                if (Q2.IsCharging && Q2.IsFullyCharged && dragonline.CastPosition.IsValid())
                {
                    Q2.Cast(dragonline.CastPosition);
                    return;
                }
                else if (dragon.Count() > 0)
                {
                    Q2.StartCharging();
                    return;
                }

                if (Q.IsReady())
                {
                    Q.Cast(dragonline.CastPosition);
                    return;
                }



                if (JungleClearMenu.GetCheckBoxValue("eUse") && E.IsReady())

                {
                    E.Cast(dragonline.CastPosition);
                    return;
                }

                if (JungleClearMenu.GetCheckBoxValue("eUse") && E.IsReady())
                {
                    var MinionsE = EntityManager.MinionsAndMonsters.GetJungleMonsters().Where(a => a.IsInRange(Player.Instance.ServerPosition, SpellsManager.E2.Range));
                    var Efarm    = EntityManager.MinionsAndMonsters.GetLineFarmLocation(MinionsE, 100, (int)SpellsManager.E2.Range);
                    if (Efarm.HitNumber > 1 && Efarm.CastPosition.IsValid())
                    {
                        SpellsManager.E.Cast();
                        return;
                    }
                }
            }
        }
Ejemplo n.º 14
0
        public static void Execute()
        {
            var source =
                EntityManager.MinionsAndMonsters.GetJungleMonsters()
                .OrderBy(a => a.MaxHealth)
                .FirstOrDefault(a => a.IsValidTarget(Q.Range));

            if (source == null)
            {
                return;
            }
            if (Q.IsReady() && JungleClearMenu.GetCheckBoxValue("qUse") && source.Distance(Player) <= Q.Range)
            {
                Q.Cast(source.Position);
            }

            if (E.IsReady() && JungleClearMenu.GetCheckBoxValue("eUse") && source.Distance(Player) <= E.Range)
            {
                E.Cast(source);
            }

            if (W.IsReady() && ComboMenu.GetCheckBoxValue("wUse"))
            {
                W.Cast();
            }
            if (SpellsManager.SmiteIsReady)
            {
                if (JungleClearMenu.GetCheckBoxValue("jgSmite"))
                {
                    var dragon = EntityManager.MinionsAndMonsters.GetJungleMonsters(Util.MyHero.Position, SpellsManager.Q.Range).FirstOrDefault(m => m.IsInSmiteRange() && m.IsDragon());
                    if (dragon != null)
                    {
                        if (dragon.Health <= dragon.SmiteDamage())
                        {
                            Util.MyHero.Spellbook.CastSpell(SpellsManager.Smite.Slot, dragon);
                        }
                    }
                }
            }
            //Q.TryToCast(Q.GetJungleMinion(), JungleClearMenu);
            //W.TryToCast(Q.GetJungleMinion(), JungleClearMenu);
            //E.TryToCast(Q.GetJungleMinion(), JungleClearMenu);
            //R.TryToCast(Q.GetJungleMinion(), JungleClearMenu);
        }
Ejemplo n.º 15
0
 private void OnPreAttack(AttackableUnit target, Orbwalker.PreAttackArgs args)
 {
     if (ComboMenu.GetCheckBoxValue(ComboMenuID + "W"))
     {
         WCast(ComboMenu, 48, target);
     }
     if (HarassMenu.GetCheckBoxValue(HarassMenuID + "W"))
     {
         WCast(HarassMenu, 49, target);
     }
     if (LaneClearMenu.GetCheckBoxValue(LaneMenuID + "W"))
     {
         WCast(LaneClearMenu, 50, target);
     }
     if (JungleClearMenu.GetCheckBoxValue(JunglesMenuID + "W"))
     {
         WCast(JungleClearMenu, 52, target);
     }
 }
Ejemplo n.º 16
0
        public override void Jungleclear()
        {
            var target = R.GetJungleMinion();

            if (JungleClearMenu.GetCheckBoxValue(JunglesMenuID + "Q"))
            {
                Q.TryCast(target);
            }
            if (JungleClearMenu.GetCheckBoxValue(JunglesMenuID + "W"))
            {
                W.TryCast(target);
            }
            if (JungleClearMenu.GetCheckBoxValue(JunglesMenuID + "E"))
            {
                E.TryCast(target);
            }
            if (JungleClearMenu.GetCheckBoxValue(JunglesMenuID + "R"))
            {
                RJump("Lasthit", target);
            }
        }
        /// <summary>
        /// Put in here what you want to do when the mode is running
        /// </summary>
        public static void Execute()
        {
            var target = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(a => a.MaxHealth).FirstOrDefault(a => a.IsValidTarget(900));

            if (SpellsManager.IsSpider)
            {
                if (JungleClearMenu.GetCheckBoxValue("q2Use") && Q2.IsReady() && target.IsValidTarget(SpellsManager.Q2.Range))
                {
                    Q2.Cast(target);
                }
                if (JungleClearMenu.GetCheckBoxValue("w2Use") && W2.IsReady())
                {
                    W2.Cast();
                }
                if (JungleClearMenu.GetCheckBoxValue("rUse") && R.IsReady() && E.IsReady() && W.IsReady())
                {
                    R.Cast();
                }
            }
            else
            { //HUMAN
                if (JungleClearMenu.GetCheckBoxValue("eUse") && E.IsReady() && target.IsValidTarget(SpellsManager.E.Range) && E.GetPrediction(target).HitChance >= HitChance.Medium)
                {
                    E.Cast(target);
                }
                if (JungleClearMenu.GetCheckBoxValue("qUse") && Q.IsReady() && target.IsValidTarget(SpellsManager.Q.Range))
                {
                    Q.Cast(target);
                }
                if (JungleClearMenu.GetCheckBoxValue("WUse") && W.IsReady() && target.IsValidTarget(W.Range))
                {
                    W.Cast(target);
                }
                if (JungleClearMenu.GetCheckBoxValue("rUse") && R.IsReady())
                {
                    R.Cast();
                }
            }
        }
Ejemplo n.º 18
0
        public static void Execute()
        {
            // Get closest jungle creep
            var target = Targeting.Monsters();

            // Check if target/self are valid for spells
            if (!States.SpellReady(target))
            {
                return;
            }

            // Check if no enemy before casting E
            if (Self.EnemiesWithinRange(ScanRange) == 0)
            {
                // Check if should E to mouse or target
                if (target.WithinRange(Dash.PostPosition(MousePosition), EffectiveAttackRange))
                {
                    Player.CastSpell(SpellSlot.E, MousePosition);
                }
                else if (target.WithinRange(Dash.PostPosition(target.ServerPosition), EffectiveAttackRange))
                {
                    Player.CastSpell(SpellSlot.E, target.ServerPosition);
                }
            }

            // Cast Q
            Q.TryToCast(target, JungleClearMenu);

            // Cast W
            if (JungleClearMenu.GetCheckBoxValue("wUse") && target.WithinRange(EffectiveAttackRange))
            {
                if (!W.TryToCast(target, ComboMenu))
                {
                    CastW(target.ServerPosition);
                }
            }
        }
Ejemplo n.º 19
0
        public static void Execute()
        {
            var source = EntityManager.MinionsAndMonsters.GetJungleMonsters(_Player.ServerPosition, Q.Range).OrderByDescending(a => a.MaxHealth).FirstOrDefault();



            if (Q.IsReady() && JungleClearMenu.GetCheckBoxValue("qUse"))
            {
                Q.Cast(source);
                return;
            }

            if (W.IsReady() && JungleClearMenu.GetCheckBoxValue("wUse"))
            {
                W.Cast();
                return;
            }
            if (E.IsReady() && JungleClearMenu.GetCheckBoxValue("eUse"))
            {
                E.Cast();
                return;
            }
            return;
        }
Ejemplo n.º 20
0
        /// <summary>
        /// Put in here what you want to do when the mode is running
        /// </summary>
        public static void Execute()

        {
            var minion = EntityManager.MinionsAndMonsters.GetJungleMonsters(null, Q.Range).FirstOrDefault();

            if (minion == null)
            {
                return;
            }

            if (JungleClearMenu.GetCheckBoxValue("Jpassive"))
            {
                if (PassiveStacks > 0 || LastSpell + 400 > Environment.TickCount)
                {
                    return;
                }
            }

            if (E.IsReady() && JungleClearMenu.GetCheckBoxValue("eUse"))
            {
                if (EState && E.IsInRange(minion))
                {
                    E.Cast();
                    LastSpell = Environment.TickCount;
                }

                if (!EState && E.IsInRange(minion) && LastE + 400 < Environment.TickCount)
                {
                    E.Cast();
                    LastSpell = Environment.TickCount;
                }
            }

            if (Q.IsReady() && JungleClearMenu.GetCheckBoxValue("qUse"))
            {
                Q.Cast(minion);
                LastSpell = Environment.TickCount;

                foreach (var jungleMobs in ObjectManager.Get <Obj_AI_Minion>().Where(o => o.IsValidTarget(Q.Range) && o.Team == GameObjectTeam.Neutral && o.IsVisible && !o.IsDead))
                {
                    if (EntityManager.MinionsAndMonsters.GetJungleMonsters(null, Q.Range).Any())
                    {
                        if (jungleMobs.HasQBuff())
                        {
                            Q2.Cast();
                            LastSpell = Environment.TickCount;
                        }
                    }
                }
            }

            if (W.IsReady() && JungleClearMenu.GetCheckBoxValue("wUse"))
            {
                if (WState)
                {
                    myHero.GetAutoAttackRange();
                    W.Cast(myHero);
                    LastSpell = Environment.TickCount;
                }

                if (WState)
                {
                    return;
                }

                W2.Cast();
                LastSpell = Environment.TickCount;
                return;
            }
        }