예제 #1
0
            //---------------------------------------------Combo()------------------------------------------------

            public static void Combo()
            {
                if (Menu["UseQCombo"].Cast <CheckBox>().CurrentValue&& QRange && QIsReady)
                {
                    Q.HitChanceCast(Target, Menu["QHitChanceCombo"].Cast <Slider>().CurrentValue);
                }

                if (Menu["UseWCombo"].Cast <CheckBox>().CurrentValue&& WRange && WIsReady && !Menu["JustWOnImmobile"].Cast <CheckBox>().CurrentValue)
                {
                    var WPos = Prediction.Position.PredictUnitPosition(Target, 500).To3D();
                    W.Cast(WPos);
                }

                if (R.IsReady() && Menu["UseRCombo"].Cast <CheckBox>().CurrentValue&& Player.CountEnemiesInRange(600) >= Menu["Min Enemies R"].Cast <Slider>().CurrentValue)
                {
                    if (Glory.IsReady() && CountAlliesInRange(650) > 0)
                    {
                        Glory.Cast();
                    }
                    if (Talisma.IsReady() && CountAlliesInRange(650) > 0)
                    {
                        Talisma.Cast();
                    }

                    R.Cast();
                }

                if (Exhaust != null && Menu["UseExhaust?"].Cast <CheckBox>().CurrentValue&& TargetSelector.GetPriority(Target) > 3 && Target.IsValidTarget(Exhaust.Range))
                {
                    Exhaust.Cast(Target);
                }

                return;
            }
예제 #2
0
파일: Program.cs 프로젝트: lolscripts/wu
        //----------------------------------------------WQ()----------------------------------------

        static void WQ()
        {
            if (EntityManager.Heroes.Allies.Where(ally => !ally.IsMe && ally.Distance(Player) <= 600).Count() > 0)
            {
                if (Glory.IsReady())
                {
                    Glory.Cast();
                }
                if (Talisma.IsReady())
                {
                    Talisma.Cast();
                }
            }

            int delay = (int)((150 * (Player.Distance(Target))) / 650) + Menu["W/Q Delay"].Cast <Slider>().CurrentValue;

            if (Player.Spellbook.CastSpell(SpellSlot.W, Target))
            {
                Chat.Print(Player.Distance(Target));
                Core.DelayAction(() => Q.Cast(), delay);
                Core.DelayAction(() => Combing = false, delay + 1000);
            }
            else
            {
                Combing = false;
            }

            return;
        }
예제 #3
0
            //---------------------------------------------Combo()------------------------------------------------

            public static void Combo()
            {
                if (R.IsReady() && Menu["UseRCombo"].Cast <CheckBox>().CurrentValue&& R.IsInRange(Target) && SpellDamage(Target, SpellSlot.R) >= Target.Health)
                {
                    R.HitChanceCast(Target, 70);
                }

                if (W.IsReady() && (WRange || (Q.IsReady() && QRange)) && Menu["UseWCombo"].Cast <CheckBox>().CurrentValue)
                {
                    var WPos = Prediction.Position.PredictUnitPosition(Target, 1000).To3D(); W.Cast(CorrectRange(WPos, W.Range));
                }

                else if (Orbwalker.ValidAzirSoldiers.Any())
                {
                    if (Q.IsReady() && Menu["UseQCombo"].Cast <CheckBox>().CurrentValue&& QRange)
                    {
                        Q.HitChanceCast(Target, Menu["QHitChanceCombo"].Cast <Slider>().CurrentValue);
                    }
                    if (E.IsReady() && Menu["UseECombo"].Cast <CheckBox>().CurrentValue)
                    {
                        CastE(Target);
                    }
                }

                if (Smite != null)
                {
                    if (Smite.IsInRange(Target) && Smite.IsReady())
                    {
                        if (Smite.Name.Contains("gank"))
                        {
                            Smite.Cast(Target);
                        }
                        else if (Smite.Name.Contains("duel") && Player.IsInAutoAttackRange(Target))
                        {
                            Smite.Cast(Target);
                        }
                    }
                }

                if (Talisma.IsReady() && Player.CountAlliesInRange(600) > 0)
                {
                    Talisma.Cast();
                }

                if (Exhaust != null && Menu["UseExhaust?"].Cast <CheckBox>().CurrentValue&& TargetSelector.GetPriority(Target) > 3 && Target.IsValidTarget(Exhaust.Range))
                {
                    Exhaust.Cast(Target);
                }

                if (Target.IsValidTarget(500) && Randuin.IsReady())
                {
                    Randuin.Cast();
                }

                if (Target.IsValidTarget(700) && Hextech.IsReady())
                {
                    Hextech.Cast(Target);
                }

                return;
            }
예제 #4
0
파일: Program.cs 프로젝트: lolscripts/wu
        //----------------------------------------------QWInsec(bool flash)----------------------------------------

        static void QWInsec(bool flash = false, Vector3 cursorpos = default(Vector3))
        {
            if (EntityManager.Heroes.Allies.Where(ally => !ally.IsMe && ally.Distance(Player) <= 600).Count() > 0)
            {
                if (Glory.IsReady())
                {
                    Glory.Cast();
                }
                if (Talisma.IsReady())
                {
                    Talisma.Cast();
                }
            }

            if (flash)
            {
                var FlashPos = Player.Position.Extend(Target, Flash.Range).To3D();

                var Flashed = Flash.Cast(FlashPos);

                if (Flashed)
                {
                    Core.DelayAction(delegate
                    {
                        if (Q.Cast())
                        {
                            Orbwalker.DisableMovement  = true;
                            Orbwalker.DisableAttacking = true;

                            WalkPos = Game.CursorPos.Extend(Target, Game.CursorPos.Distance(Target) + 150);

                            int delay = (int)(Player.Distance(WalkPos) / Player.MoveSpeed * 1000) + 300 + Q.CastDelay + 2 * Game.Ping;

                            EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, WalkPos.To3D());

                            Core.DelayAction(() => CheckWDistance(), delay);
                            Core.DelayAction(() => Orbwalker.DisableAttacking = false, delay + 200);
                            Core.DelayAction(() => Orbwalker.DisableMovement  = false, delay + 200);
                            Core.DelayAction(() => Insecing = false, delay + 1000);
                        }
                        else
                        {
                            Insecing = false;
                        }
                    }, Game.Ping + 70);
                }
                else
                {
                    Insecing = false;
                }

                return;
            }

            else
            {
                if (Q.Cast())
                {
                    WalkPos = Game.CursorPos.Extend(Target, Game.CursorPos.Distance(Target) + 150);

                    int delay = (int)(Player.Distance(WalkPos) / Player.MoveSpeed * 1000) + 300 + Q.CastDelay + 2 * Game.Ping;

                    EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, WalkPos.To3D());
                    Core.DelayAction(() => CheckWDistance(), delay);
                    Core.DelayAction(() => Insecing = false, delay + 1000);
                }
                else
                {
                    Insecing = false;
                }

                return;
            }
        }
예제 #5
0
파일: Program.cs 프로젝트: lolscripts/wu
            //---------------------------------------------Combo()------------------------------------------------

            public static void Combo()
            {
                if (R.IsInRange(Target) && R.IsReady())
                {
                    PosAndHits = GetBestRPos(Target.ServerPosition.To2D());

                    if (Menu["UseRCombo"].Cast <CheckBox>().CurrentValue&& PosAndHits.First().Value >= Menu["Min Enemies R"].Cast <Slider>().CurrentValue)
                    {
                        if (EntityManager.Heroes.Allies.Where(ally => ally != Player && ally.Distance(Player) <= 700).Count() > 0)
                        {
                            if (Glory.IsReady())
                            {
                                Glory.Cast();
                            }
                            if (Talisma.IsReady())
                            {
                                Talisma.Cast();
                            }
                        }
                        R.Cast(PosAndHits.First().Key.To3D());
                    }
                }

                if (Smite != null)
                {
                    if (Target.IsValidTarget(Smite.Range) && Smite.IsReady())
                    {
                        if (Smite.Name.Contains("gank"))
                        {
                            Smite.Cast(Target);
                        }
                        else if (Smite.Name.Contains("duel") && Player.IsInAutoAttackRange(Target))
                        {
                            Smite.Cast(Target);
                        }
                    }
                }

                if (Menu["UseQCombo"].Cast <CheckBox>().CurrentValue&& QIsReady && QRange)
                {
                    Q.Cast(Target);
                }

                if (Menu["UseECombo"].Cast <CheckBox>().CurrentValue&& EIsReady && ERange)
                {
                    E.Cast();
                }

                if (Menu["UseWCombo"].Cast <CheckBox>().CurrentValue&& WIsReady && WRange)
                {
                    W.Cast();
                }

                if (Randuin.IsReady() && Target.IsValidTarget(500))
                {
                    Randuin.Cast();
                }

                if (Bilgewater.IsReady() && Target.IsValidTarget(550))
                {
                    Bilgewater.Cast(Target);
                }

                if (BOTRK.IsReady() && Target.IsValidTarget(550))
                {
                    BOTRK.Cast(Target);
                }

                if (Tiamat.IsReady() && Target.IsValidTarget(400))
                {
                    Tiamat.Cast();
                }

                if (Hydra.IsReady() && Target.IsValidTarget(400))
                {
                    Hydra.Cast();
                }

                return;
            }
예제 #6
0
파일: Program.cs 프로젝트: lolscripts/wu
        //-------------------------------------------Game_OnTick----------------------------------------------

        static void Game_OnTick(EventArgs args)
        {
            if (Player.IsDead)
            {
                return;
            }

            if (Player.CountEnemiesInRange(1000) > 0)
            {
                Modes.SaveAlly();
            }

            Target   = TargetSelector.GetTarget(R.Range + E.Range, DamageType.Magical);
            Player2D = Player.ServerPosition.To2D();

            //---------------------------------------------Smite Usage---------------------------------------------

            if (Smite != null)
            {
                if (Smite.IsReady() && Menu["Use Smite?"].Cast <CheckBox>().CurrentValue)
                {
                    Obj_AI_Minion Mob = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Smite.Range).FirstOrDefault();

                    if (Mob != default(Obj_AI_Minion))
                    {
                        bool kill = GetSmiteDamage() >= Mob.Health;

                        if (kill && (Mob.Name.Contains("SRU_Dragon") || Mob.Name.Contains("SRU_Baron")))
                        {
                            Smite.Cast(Mob);
                        }
                    }
                }
            }

            //----------------------------------------------------KS----------------------------------------------

            if (Menu["KS"].Cast <CheckBox>().CurrentValue&& Player.CountEnemiesInRange(Q.Range) > 0)
            {
                Modes.KS();
            }

            //-----------------------------------------------Auto Ignite----------------------------------------

            if (Menu["Auto Ignite"].Cast <CheckBox>().CurrentValue&& Ignite != null)
            {
                if (Ignite.IsReady())
                {
                    var IgniteEnemy = EntityManager.Heroes.Enemies.FirstOrDefault(it => DamageLibrary.GetSummonerSpellDamage(Player, it, DamageLibrary.SummonerSpells.Ignite) >= it.Health - 30);

                    if (IgniteEnemy != null)
                    {
                        if ((IgniteEnemy.Distance(Player) >= 300 || Player.HealthPercent <= 40))
                        {
                            Ignite.Cast(IgniteEnemy);
                        }
                    }
                }
            }

            //--------------------------------------------Orbwalker Modes-------------------------------------------

            if (Target != null)
            {
                if (Target.IsValidTarget())
                {
                    Modes.UpdateVariables();

                    //-----------------------------------------------Ult On Target----------------------------------------

                    if (Menu["Ult on Target"].Cast <KeyBind>().CurrentValue&& R.IsInRange(Target))
                    {
                        if (EntityManager.Heroes.Allies.Where(ally => ally != Player && ally.Distance(Player) <= 700).Count() > 0)
                        {
                            if (Glory.IsReady())
                            {
                                Glory.Cast();
                            }
                            if (Talisma.IsReady())
                            {
                                Talisma.Cast();
                            }
                        }
                        R.Cast(R.GetPrediction(Target).CastPosition);
                    }

                    //---------------------------------------------------Combo--------------------------------------------

                    if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                    {
                        Modes.Combo();
                    }

                    //---------------------------------------------------Mixed--------------------------------------------

                    if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) && Player.ManaPercent >= Menu["Harass, Mana %"].Cast <Slider>().CurrentValue)
                    {
                        Modes.Harass();
                    }
                }
                else
                {
                    Target = null;
                }
            }

            //---------------------------------------------------LaneClear--------------------------------------------

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) && Player.ManaPercent >= Menu["LaneClear, Mana %"].Cast <Slider>().CurrentValue)
            {
                Modes.LaneClear();
            }

            //---------------------------------------------------JungleClear--------------------------------------------

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear) && Player.ManaPercent >= Menu["JungleClear, Mana %"].Cast <Slider>().CurrentValue)
            {
                Modes.JungleClear();
            }

            return;
        }
예제 #7
0
            //---------------------------------------------Combo()------------------------------------------------

            public static void Combo()
            {
                if (RRange && R.IsReady())
                {
                    PosAndHits = GetBestRPos(Target.ServerPosition.To2D());

                    if (Menu["UseRCombo"].Cast <CheckBox>().CurrentValue&& PosAndHits.First().Value >= Menu["Min Enemies R"].Cast <Slider>().CurrentValue)
                    {
                        if (Menu["RWithStun"].Cast <CheckBox>().CurrentValue)
                        {
                            if (Player.HasBuff("pyromania_particle"))
                            {
                                R.Cast(PosAndHits.First().Key.To3D());
                            }
                        }
                        else
                        {
                            R.Cast(PosAndHits.First().Key.To3D());
                        }
                    }
                }

                if (Menu["UseQCombo"].Cast <CheckBox>().CurrentValue&& QIsReady && RRange)
                {
                    Q.Cast(Target);
                }

                if (Menu["UseWCombo"].Cast <CheckBox>().CurrentValue&& WIsReady && RRange)
                {
                    var WPos = GetBestWPos();
                    if (WPos != default(Vector3))
                    {
                        W.Cast(WPos);
                    }
                }

                if (Smite != null)
                {
                    if (Smite.IsInRange(Target) && Smite.IsReady())
                    {
                        if (Smite.Name.Contains("gank"))
                        {
                            Smite.Cast(Target);
                        }
                        else if (Smite.Name.Contains("duel") && Player.IsInAutoAttackRange(Target))
                        {
                            Smite.Cast(Target);
                        }
                    }
                }

                if (Talisma.IsReady() && CountAlliesInRange(650) > 0)
                {
                    Talisma.Cast();
                }

                if (Exhaust != null && Menu["UseExhaust?"].Cast <CheckBox>().CurrentValue&& TargetSelector.GetPriority(Target) > 3 && Target.IsValidTarget(Exhaust.Range))
                {
                    Exhaust.Cast(Target);
                }

                return;
            }
예제 #8
0
파일: Program.cs 프로젝트: lolscripts/wu
            //---------------------------------------------Combo()------------------------------------------------

            public static void Combo()
            {
                if (!EBuff())
                {
                    if (Menu["UseECombo"].Cast <CheckBox>().CurrentValue&& EIsReady && ERange)
                    {
                        E.Cast();
                    }
                    if (Menu["UseQCombo"].Cast <CheckBox>().CurrentValue&& QIsReady && QRange)
                    {
                        Q.HitChanceCast(Target, 75);
                    }
                }

                if (Menu["UseRCombo"].Cast <CheckBox>().CurrentValue&& Player.CountEnemiesInRange(R.Range) >= Menu["Min Enemies R"].Cast <Slider>().CurrentValue)
                {
                    R.Cast();
                }

                if (Menu["UseWCombo"].Cast <CheckBox>().CurrentValue&& WIsReady && WRange && Target.HasBuff("kennenmarkofstorm"))
                {
                    W.Cast();
                }

                if (Smite != null)
                {
                    if (Smite.IsInRange(Target) && Smite.IsReady())
                    {
                        if (Smite.Name.Contains("gank"))
                        {
                            Smite.Cast(Target);
                        }
                        else if (Smite.Name.Contains("duel") && Player.IsInAutoAttackRange(Target))
                        {
                            Smite.Cast(Target);
                        }
                    }
                }

                if (Talisma.IsReady() && CountAlliesInRange(650) > 0)
                {
                    Talisma.Cast();
                }

                if (Exhaust != null && Menu["UseExhaust?"].Cast <CheckBox>().CurrentValue&& TargetSelector.GetPriority(Target) > 3 && Target.IsValidTarget(Exhaust.Range))
                {
                    Exhaust.Cast(Target);
                }

                if (ERange && GhostBlade.IsReady())
                {
                    GhostBlade.Cast();
                }

                if (Target.IsValidTarget(550) && BOTRK.IsReady())
                {
                    BOTRK.Cast(Target);
                }

                if (Target.IsValidTarget(550) && Bilgewater.IsReady())
                {
                    Bilgewater.Cast(Target);
                }

                if (Target.IsValidTarget(500) && Randuin.IsReady())
                {
                    Randuin.Cast();
                }

                if (Target.IsValidTarget(700) && Hextech.IsReady())
                {
                    Hextech.Cast(Target);
                }

                return;
            }