Ejemplo n.º 1
0
        void ImprovedCombo()
        {
            Champion.SetIgniteSlot(GlobalManager.GetHero.GetSpellSlot("summonerdot"));
            var target = TargetSelector.GetTarget(Champion.W.Range, TargetSelector.DamageType.Magical);

            if (!target.IsValidTarget(Champion.Q.Range) || !GlobalManager.CheckTarget(target))
            {
                return;
            }

            if (target.IsValidTarget(Champion.W.Range) &&
                (target.Health < Champion.IgniteDamage(target) + Champion.W.GetDamage(target)))
            {
                GlobalManager.GetHero.Spellbook.CastSpell(Champion.GetIgniteSlot(), target);
            }

            var bSpells  = new bool[5];
            var qSpell   = GlobalManager.Config.Item("useQ").GetValue <bool>();
            var eSpell   = GlobalManager.Config.Item("useE").GetValue <bool>();
            var wSpell   = GlobalManager.Config.Item("useW").GetValue <bool>();
            var rSpell   = GlobalManager.Config.Item("useR").GetValue <bool>();
            var rwwSpell = GlobalManager.Config.Item("useRww").GetValue <bool>();

            if (target.IsValidTarget(Champion.Q.Range))
            {
                if (GlobalManager.GetPassiveBuff <= 1 && !GlobalManager.GetHero.HasBuff("ryzepassivecharged"))
                {
                    CastQ(target);
                    CastE(target);
                    CastW(target);
                    CastR(target);
                }

                if (GlobalManager.GetPassiveBuff == 2)
                {
                    CastR(target);
                    CastQn(target);
                    CastW(target);
                    CastQn(target);
                    CastE(target);
                    CastQn(target);
                    CastW(target);
                    CastQn(target);
                    CastE(target);
                }


                if (GlobalManager.GetPassiveBuff == 3 && Champion.R.IsReady())
                {
                    CastR(target);
                    CastW(target);
                    CastQn(target);
                    CastE(target);
                    CastQn(target);
                    CastW(target);
                    CastQn(target);
                    CastE(target);
                }

                if (GlobalManager.GetPassiveBuff == 3 && !Champion.R.IsReady())
                {
                    CastQn(target);
                    CastW(target);
                    CastQn(target);
                    CastE(target);
                    CastW(target);
                    CastQn(target);
                    CastE(target);
                }

                if (GlobalManager.GetPassiveBuff == 4)
                {
                    CastW(target);
                    CastQn(target);
                    CastE(target);
                    CastR(target);
                }

                if (GlobalManager.GetHero.HasBuff("ryzepassivecharged"))
                {
                    CastW(target);
                    CastQn(target);
                    CastE(target);
                    CastR(target);
                }
            }
            else
            {
                if (wSpell &&
                    Champion.W.IsReady() &&
                    target.IsValidTarget(Champion.W.Range))
                {
                    Champion.W.CastOnUnit(target);
                }

                if (qSpell &&
                    Champion.Qn.IsReady() &&
                    target.IsValidTarget(Champion.Qn.Range))
                {
                    Champion.Qn.Cast(target);
                }

                if (eSpell &&
                    Champion.E.IsReady() &&
                    target.IsValidTarget(Champion.E.Range))
                {
                    Champion.E.CastOnUnit(target);
                }
            }
            if (Champion.R.IsReady() && (GlobalManager.GetPassiveBuff == 4 || GlobalManager.GetHero.HasBuff("ryzepassivecharged")) && rSpell)
            {
                if (!Champion.Q.IsReady() && !Champion.W.IsReady() && !Champion.E.IsReady())
                {
                    Champion.R.Cast();
                }
            }
        }
Ejemplo n.º 2
0
        public static void ImprovedCombo()
        {
            if (GlobalManager.GetHero.GetSpellSlot("summonerdot") == SpellSlot.Summoner1 || GlobalManager.GetHero.GetSpellSlot("summonerdot") == SpellSlot.Summoner2)
            {
                Champion.SetIgniteSlot(GlobalManager.GetHero.GetSpellSlot("summonerdot"));
            }
            var target = TargetSelector.GetTarget(Champion.W.Range, DamageType.Magical);

            if (!target.LSIsValidTarget(Champion.Q.Range) || !GlobalManager.CheckTarget(target))
            {
                return;
            }

            if (GlobalManager.GetHero.GetSpellSlot("summonerdot") == SpellSlot.Summoner1 || GlobalManager.GetHero.GetSpellSlot("summonerdot") == SpellSlot.Summoner2)
            {
                if (target.LSIsValidTarget(Champion.W.Range) && (target.Health < Champion.IgniteDamage(target) + Champion.W.GetDamage(target)))
                {
                    GlobalManager.GetHero.Spellbook.CastSpell(Champion.GetIgniteSlot(), target);
                }
            }

            var bSpells  = new bool[5];
            var qSpell   = getCheckBoxItem(MenuManager.combo1Menu, "useQ");
            var eSpell   = getCheckBoxItem(MenuManager.combo1Menu, "useE");
            var wSpell   = getCheckBoxItem(MenuManager.combo1Menu, "useW");
            var rSpell   = getCheckBoxItem(MenuManager.combo1Menu, "useR");
            var rwwSpell = getCheckBoxItem(MenuManager.combo1Menu, "useRww");

            if (target.LSIsValidTarget(Champion.Q.Range))
            {
                if (Champion.R.IsReady())
                {
                    if (GlobalManager.GetPassiveBuff < 1 && !GlobalManager.GetHero.HasBuff("ryzepassivecharged"))
                    {
                        CastQn(target);
                        CastE(target);
                        CastW(target);
                        CastR(target);
                    }

                    if (GlobalManager.GetPassiveBuff == 1)
                    {
                        CastR(target);
                        CastE(target);
                        CastQn(target);
                        CastW(target);
                        CastQn(target);
                        CastE(target);
                        CastQn(target);
                        CastW(target);
                    }

                    if (GlobalManager.GetPassiveBuff == 2)
                    {
                        CastR(target);
                        CastE(target);
                        CastQn(target);
                        CastW(target);
                        CastQn(target);
                        CastE(target);
                        CastQn(target);
                        CastW(target);
                    }

                    if (GlobalManager.GetPassiveBuff == 3)
                    {
                        if (Champion.Q.IsReady())
                        {
                            CastQn(target);
                            CastW(target);
                            CastQn(target);
                            CastE(target);
                            CastQn(target);
                            CastW(target);
                            CastQn(target);
                            CastE(target);
                        }
                        else
                        {
                            CastR(target);
                            CastW(target);
                            CastQn(target);
                            CastE(target);
                            CastQn(target);
                            CastW(target);
                            CastQn(target);
                            CastE(target);
                        }
                    }

                    if (GlobalManager.GetPassiveBuff == 4)
                    {
                        CastW(target);
                        CastQn(target);
                        CastE(target);
                        CastQn(target);
                        CastW(target);
                        CastQn(target);
                        CastE(target);
                    }
                }
                else
                {
                    if (GlobalManager.GetPassiveBuff <= 2 && !GlobalManager.GetHero.HasBuff("ryzepassivecharged"))
                    {
                        CastE(target);
                        CastQn(target);
                        CastW(target);
                        CastQn(target);
                        CastE(target);
                        CastQn(target);
                        CastW(target);
                        CastQn(target);
                        CastE(target);
                    }

                    if (GlobalManager.GetPassiveBuff == 3)
                    {
                        CastQn(target);
                        CastW(target);
                        CastQn(target);
                        CastE(target);
                        CastQ(target);
                        CastW(target);
                        CastQn(target);
                        CastE(target);
                    }

                    if (GlobalManager.GetPassiveBuff == 4)
                    {
                        CastW(target);
                        CastQn(target);
                        CastE(target);
                        CastQn(target);
                        CastW(target);
                        CastQn(target);
                        CastE(target);
                    }
                }

                if (GlobalManager.GetHero.HasBuff("ryzepassivecharged"))
                {
                    CastW(target);
                    CastQn(target);
                    CastE(target);
                }
            }

            if (Champion.R.IsReady() && (GlobalManager.GetPassiveBuff == 4 || GlobalManager.GetHero.HasBuff("ryzepassivecharged")) && rSpell)
            {
                if (!Champion.Q.IsReady() && !Champion.W.IsReady() && !Champion.E.IsReady())
                {
                    Champion.R.Cast();
                }
            }
        }
Ejemplo n.º 3
0
        private static void Game_OnUpdate(EventArgs args)
        {
            try // lazy
            {
                if (getKeyBindItem(_config, "test"))
                {
                    Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
                    var targets = TargetSelector.GetTarget(Champion.W.Range, DamageType.Magical);
                    if (targets == null)
                    {
                        return;
                    }
                    if (Champion.W.IsReady())
                    {
                        LaneOptions.CastW(targets);
                        {
                            _lastw = Environment.TickCount;
                        }
                    }

                    if (Environment.TickCount - _lastw >= 700 - Game.Ping)
                    {
                        if (Champion.Q.IsReady())
                        {
                            LaneOptions.CastQn(targets);
                            _casted = true;
                        }
                    }

                    if (_casted)
                    {
                        LaneOptions.CastE(targets);
                        LaneOptions.CastQn(targets);
                        _casted = false;
                    }
                }

                if (getKeyBindItem(chase, "chase"))
                {
                    Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
                    var targets = TargetSelector.GetTarget(Champion.W.Range + 200, DamageType.Magical);
                    if (targets == null)
                    {
                        return;
                    }

                    if (getCheckBoxItem(chase, "usewchase"))
                    {
                        LaneOptions.CastW(targets);
                    }

                    if (getCheckBoxItem(chase, "chaser") &&
                        targets.Distance(GlobalManager.GetHero) > Champion.W.Range + 200)
                    {
                        Champion.R.Cast();
                    }
                }

                if (GlobalManager.GetHero.IsDead)
                {
                    return;
                }

                if (GlobalManager.GetHero.IsRecalling())
                {
                    return;
                }

                if (Champion.casted == false)
                {
                    Orbwalker.DisableAttacking = false;
                }

                var target = TargetSelector.GetTarget(Champion.Q.Range, DamageType.Magical);

                if (getCheckBoxItem(humanizerMenu, "doHuman"))
                {
                    if (!Humanizer.CheckDelay("generalDelay")) // Wait for delay for all other events
                    {
                        return;
                    }
                    var nDelay = Seeder.Next(getSliderItem(humanizerMenu, "minDelay"),
                                             getSliderItem(humanizerMenu, "maxDelay")); // set a new random delay :D
                    Humanizer.ChangeDelay("generalDelay", nDelay);
                }

                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                {
                    var expires = GlobalManager.GetHero.Spellbook.GetSpell(SpellSlot.Q).CooldownExpires;

                    LaneOptions.COMBO();
                }

                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
                {
                    LaneOptions.Mixed();
                    Orbwalker.DisableAttacking = false;
                }

                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) ||
                    Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
                {
                    LaneOptions.JungleClear();
                    if (getKeyBindItem(laneMenu, "disablelane"))
                    {
                        Console.WriteLine("1");
                        if (GlobalManager.GetPassiveBuff == 4 && !GlobalManager.GetHero.HasBuff("RyzeR") &&
                            getCheckBoxItem(laneMenu, "passiveproc"))
                        {
                            Console.WriteLine("2");
                            return;
                        }

                        Console.WriteLine("3");
                        var qlchSpell = getCheckBoxItem(laneMenu, "useQlc");
                        var elchSpell = getCheckBoxItem(laneMenu, "useElc");
                        var wlchSpell = getCheckBoxItem(laneMenu, "useWlc");

                        var rSpell  = getCheckBoxItem(laneMenu, "useRl");
                        var rSlider = getSliderItem(laneMenu, "rMin");
                        var minMana = getSliderItem(laneMenu, "useEPL");

                        var minionCount =
                            EntityManager.MinionsAndMonsters.GetLaneMinions()
                            .Where(x => !x.IsAlly && Champion.Q.IsInRange(x));

                        if (GlobalManager.GetHero.ManaPercent <= minMana)
                        {
                            Console.WriteLine("4");
                            return;
                        }

                        foreach (var minion in minionCount)
                        {
                            Console.WriteLine("5");
                            if (!GlobalManager.CheckMinion(minion))
                            {
                                continue;
                            }

                            Console.WriteLine("123123123");

                            var minionHp = minion.Health;

                            SpellSequence(minion, "useQ2L", "useE2L", "useW2L", "useRl");

                            if (qlchSpell && Champion.Q.IsReady() && minion.IsValidTarget(Champion.Q.Range) &&
                                minionHp <= Champion.Q.GetDamage(minion) && GlobalManager.CheckMinion(minion))
                            {
                                Champion.Q.Cast(minion);
                            }

                            else if (wlchSpell && Champion.W.IsReady() && minion.IsValidTarget(Champion.W.Range) &&
                                     minionHp <= Champion.W.GetDamage(minion) && GlobalManager.CheckMinion(minion))
                            {
                                Champion.W.CastOnUnit(minion);
                            }

                            else if (elchSpell && Champion.E.IsReady() && minion.IsValidTarget(Champion.E.Range) &&
                                     minionHp <= Champion.E.GetDamage(minion) && GlobalManager.CheckMinion(minion))
                            {
                                Champion.E.CastOnUnit(minion);
                            }

                            if (rSpell && Champion.R.IsReady() && minion.IsValidTarget(Champion.Q.Range) &&
                                minionCount.Count() > rSlider && GlobalManager.CheckMinion(minion))
                            {
                                Champion.R.Cast();
                            }
                        }
                    }
                }

                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit))
                {
                    LaneOptions.LastHit();
                }


                if (getKeyBindItem(itemMenu, "tearS"))
                {
                    ItemManager.TearStack();
                }

                if (getKeyBindItem(passiveMenu, "autoPassive"))
                {
                    var minions = MinionManager.GetMinions(GlobalManager.GetHero.ServerPosition, Champion.Q.Range,
                                                           MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.MaxHealth);
                    if (ObjectManager.Player.ManaPercent < getSliderItem(passiveMenu, "ManapSlider"))
                    {
                        return;
                    }
                    if (ObjectManager.Player.IsRecalling())
                    {
                        return;
                    }
                    if (minions.Count >= 1)
                    {
                        return;
                    }
                    var stackSliders = getSliderItem(passiveMenu, "stackSlider");
                    if (ObjectManager.Player.InFountain())
                    {
                        return;
                    }

                    if (GlobalManager.GetPassiveBuff >= stackSliders)
                    {
                        return;
                    }

                    if (Utils.TickCount - Champion.Q.LastCastAttemptT >=
                        getSliderItem(passiveMenu, "autoPassiveTimer") * 1000 - (100 + Game.Ping / 2) &&
                        Champion.Q.IsReady())
                    {
                        if (!Game.CursorPos.IsZero)
                        {
                            Champion.Q.Cast(Game.CursorPos);
                        }
                    }
                }

                Orbwalker.DisableAttacking = false;

                if (getCheckBoxItem(mixedMenu, "UseQauto") && target != null)
                {
                    if (Champion.Q.IsReady() && target.IsValidTarget(Champion.Q.Range))
                    {
                        Champion.Q.Cast(target);
                    }
                }

                Champion.KillSteal();
            }
            catch
            {
                // ignored
            }
        }
Ejemplo n.º 4
0
        private static void Game_OnUpdate(EventArgs args)
        {
            try // lazy
            {
                //var target2 = TargetSelector.GetTarget(Champion.Q.Range, TargetSelector.DamageType.Magical);
                //if (target2.IsValidTarget())
                //    Game.PrintChat(Champion.Q.GetPrediction(target2).CollisionObjects.Count.ToString());


                if (getKeyBindItem(MenuManager.chase, "chase"))
                {
                    switch (Champion.R.Level)
                    {
                    case 1:
                        rRange = 1500;
                        break;

                    case 2:
                        rRange = 3000;
                        break;
                    }
                    EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
                    var targets = TargetSelector.GetTarget(Champion.W.Range + 200, DamageType.Magical);
                    if (targets == null)
                    {
                        return;
                    }

                    if (getCheckBoxItem(MenuManager.chase, "usewchase") && targets.IsValidTarget(Champion.E.Range))
                    {
                        LaneOptions.CastW(targets);
                    }

                    var target1 = TargetSelector.SelectedTarget;
                    if (!target1.LSIsValidTarget(rRange))
                    {
                        return;
                    }
                    if (getCheckBoxItem(MenuManager.chase, "chaser") &&
                        target1.LSDistance(GlobalManager.GetHero) > Champion.W.Range + 200 &&
                        targets.LSDistance(GlobalManager.GetHero) < rRange &&
                        Champion.R.IsReady())
                    {
                        Champion.R.Cast(GlobalManager.GetHero.Position.LSExtend(target1.Position,
                                                                                target1.LSDistance(GlobalManager.GetHero.Position) + 260));
                    }
                }

                if (GlobalManager.GetHero.IsDead)
                {
                    return;
                }

                if (GlobalManager.GetHero.IsRecalling())
                {
                    return;
                }

                PortAIO.OrbwalkerManager.SetAttack(true);

                var target = TargetSelector.GetTarget(Champion.Q.Range, DamageType.Magical);


                if (getCheckBoxItem(MenuManager.humanizerMenu, "doHuman"))
                {
                    if (!Humanizer.CheckDelay("generalDelay")) // Wait for delay for all other events
                    {
                        return;
                    }
                    //Console.WriteLine("Seeding Human Delay");
                    var nDelay = Seeder.Next(getSliderItem(MenuManager.humanizerMenu, "minDelay"), (getSliderItem(MenuManager.humanizerMenu, "maxDelay"))); // set a new random delay :D
                    Humanizer.ChangeDelay("generalDelay", nDelay);
                }

                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                {
                    var expires = (GlobalManager.GetHero.Spellbook.GetSpell(SpellSlot.Q).CooldownExpires);
                    var CD      =
                        (int)
                        (expires -
                         (Game.Time - 1));
                    if (Champion.W.IsReady() && !(CD < 2.5f))
                    {
                        //MenuManager.PortAIO.OrbwalkerManager.SetAttack(true);
                        PortAIO.OrbwalkerManager.SetAttack(true);
                    }
                    else
                    {
                        //MenuManager.PortAIO.OrbwalkerManager.SetAttack(false);
                        PortAIO.OrbwalkerManager.SetAttack(false);
                    }

                    Champion.AABlock();
                    LaneOptions.Combo();

                    PortAIO.OrbwalkerManager.SetAttack(!(target.LSDistance(GlobalManager.GetHero) >= getSliderItem(MenuManager.combo1Menu, "minaarange")));
                }

                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
                {
                    LaneOptions.Mixed();
                    //MenuManager.PortAIO.OrbwalkerManager.SetAttack(true);
                    PortAIO.OrbwalkerManager.SetAttack(true);
                }

                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
                {
                    LaneOptions.LaneClear();
                }

                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit))
                {
                    LaneOptions.LastHit();
                }


                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.None))
                {
                    if (getKeyBindItem(MenuManager.itemMenu, "tearS"))
                    {
                        ItemManager.TearStack();
                    }

                    ItemManager.Potion();
                    //MenuManager.PortAIO.OrbwalkerManager.SetAttack(true);
                    PortAIO.OrbwalkerManager.SetAttack(true);
                }

                if (getCheckBoxItem(MenuManager.mixedMenu, "UseQauto") && target != null)
                {
                    if (Champion.Q.IsReady() && target.LSIsValidTarget(Champion.Q.Range))
                    {
                        Champion.Q.Cast(target);
                    }
                }


                // Seplane();
                ItemManager.Item();
                Champion.KillSteal();
                ItemManager.Potion();

                if (getCheckBoxItem(MenuManager.eventMenu, "level"))
                {
                    AutoLevelManager.LevelUpSpells();
                }

                if (!getCheckBoxItem(MenuManager.eventMenu, "autow") || !target.UnderTurret(true))
                {
                    return;
                }

                if (target == null)
                {
                    return;
                }

                if (!ObjectManager.Get <Obj_AI_Turret>()
                    .Any(turret => turret.LSIsValidTarget(300) && turret.IsAlly && turret.Health > 0))
                {
                    return;
                }

                Champion.W.CastOnUnit(target);
                // DebugClass.ShowDebugInfo(true);
            }
            catch
            {
                // ignored
            }
        }
Ejemplo n.º 5
0
        public static void COMBO()
        {
            Champion.SetIgniteSlot(GlobalManager.GetHero.GetSpellSlot("summonerdot"));
            var target = TargetSelector.GetTarget(Champion.W.Range, DamageType.Magical);

            if (!target.IsValidTarget(Champion.Q.Range) || !GlobalManager.CheckTarget(target))
            {
                return;
            }

            if (target.IsValidTarget(Champion.W.Range) &&
                (target.Health < Champion.IgniteDamage(target) + Champion.W.GetDamage(target)))
            {
                GlobalManager.GetHero.Spellbook.CastSpell(Champion.GetIgniteSlot(), target);
            }

            var qSpell = getCheckBoxItem(combo1Menu, "useQ");
            var eSpell = getCheckBoxItem(combo1Menu, "useE");
            var wSpell = getCheckBoxItem(combo1Menu, "useW");
            var rSpell = getCheckBoxItem(combo1Menu, "useR");

            if (target.IsValidTarget(Champion.Q.Range))
            {
                if (GlobalManager.GetPassiveBuff <= 1 && !GlobalManager.GetHero.HasBuff("ryzepassivecharged"))
                {
                    CastQ(target);
                    CastE(target);
                    CastW(target);
                    CastR(target);
                }

                if (GlobalManager.GetPassiveBuff == 2)
                {
                    CastQn(target);
                    CastW(target);
                    CastE(target);
                    CastR(target);
                }


                if (GlobalManager.GetPassiveBuff == 3)
                {
                    CastQn(target);
                    CastE(target);
                    CastW(target);
                    CastR(target);
                }

                if (GlobalManager.GetPassiveBuff == 4)
                {
                    CastW(target);
                    CastQn(target);
                    CastE(target);
                    CastR(target);
                }

                if (GlobalManager.GetHero.HasBuff("ryzepassivecharged"))
                {
                    CastW(target);
                    CastQn(target);
                    CastE(target);
                    CastR(target);
                }
            }
            else
            {
                if (wSpell && Champion.W.IsReady() && target.IsValidTarget(Champion.W.Range))
                {
                    Champion.W.CastOnUnit(target);
                }

                if (qSpell && Champion.Qn.IsReady() && target.IsValidTarget(Champion.Qn.Range))
                {
                    Champion.Qn.Cast(target);
                }

                if (eSpell && Champion.E.IsReady() && target.IsValidTarget(Champion.E.Range))
                {
                    Champion.E.CastOnUnit(target);
                }
            }
            if (Champion.R.IsReady() &&
                (GlobalManager.GetPassiveBuff == 4 || GlobalManager.GetHero.HasBuff("ryzepassivecharged")) && rSpell)
            {
                if (!Champion.Q.IsReady() && !Champion.W.IsReady() && !Champion.E.IsReady())
                {
                    Champion.R.Cast();
                }
            }
        }