Exemplo n.º 1
0
 private static void KS()
 {
     foreach (var enemy in EntityManager.Heroes.Enemies)
     {
         if (enemy == null)
         {
             return;
         }
         if (KillStealMenu.Get <CheckBox>("ksQ").CurrentValue &&
             Player.GetSpellDamage(enemy, SpellSlot.Q) > enemy.Health && _Q.IsReady() &&
             enemy.IsValidTarget(_Q.Range))
         {
             _Q.Cast(enemy);
         }
         else if (KillStealMenu.Get <CheckBox>("ksW").CurrentValue &&
                  Player.GetSpellDamage(enemy, SpellSlot.W) > enemy.Health && _W.IsReady() &&
                  enemy.IsValidTarget(_W.Range))
         {
             _W.Cast(enemy);
         }
         else if (KillStealMenu.Get <CheckBox>("ksE").CurrentValue &&
                  Player.GetSpellDamage(enemy, SpellSlot.E) > enemy.Health && _E.IsReady() &&
                  enemy.IsValidTarget(_E.Range))
         {
             _E.Cast(enemy);
         }
         else if (KillStealMenu.Get <CheckBox>("ksR").CurrentValue &&
                  Player.GetSpellDamage(enemy, SpellSlot.R) > enemy.Health && _R.IsReady() &&
                  enemy.IsValidTarget(_R.Range))
         {
             _R.Cast(enemy);
         }
     }
 }
Exemplo n.º 2
0
        static Sona()
        {
            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            foreach (var spell in SpellList.Where(spell => spell == Q))
            {
                ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
            }
            AutoMenu.CreateCheckBox("FleeE", "Flee E");
            AutoMenu.CreateCheckBox("GapE", "Anti-GapCloser E");
            AutoMenu.CreateCheckBox("AutoHeal", "Heal Allies");
            AutoMenu.CreateCheckBox("AutoR", "Auto Ult");
            AutoMenu.CreateSlider("AutoR#", "Auto Ult {0} Enemies", 3, 1, 5);

            Gapcloser.OnGapcloser   += Gapcloser_OnGapcloser;
            Dash.OnDash             += Dash_OnDash;
            Events.OnIncomingDamage += Events_OnIncomingDamage;
        }
Exemplo n.º 3
0
 public override void KillSteal()
 {
     foreach (var target in EntityManager.Heroes.Enemies.Where(e => e != null && e.IsValidTarget()))
     {
         foreach (
             var spell in
             SpellList.Where(
                 s =>
                 s.WillKill(target) && s != R && s.IsReady() && target.IsKillable(s.Range) &&
                 KillStealMenu.CheckBoxValue(s.Slot)))
         {
             if (spell.Slot == SpellSlot.Q)
             {
                 if (Q.GetPrediction(target).HitChance >= HitChance.Medium ||
                     Q1.GetPrediction(target).HitChance >= HitChance.Medium)
                 {
                     Q.Cast(target);
                 }
             }
             else
             {
                 (spell as Spell.Targeted)?.Cast(target);
             }
         }
     }
 }
Exemplo n.º 4
0
 public override void KillSteal()
 {
     foreach (var target in EntityManager.Heroes.Enemies.Where(e => e != null && e.IsKillable(Q.Range)))
     {
         if (Q.IsReady() && Q.WillKill(target) && KillStealMenu.CheckBoxValue(SpellSlot.Q))
         {
             var pos = Q.GetPrediction(target).CastPosition;
             if (pos.IsSafe())
             {
                 Q.Cast(target);
             }
         }
         if (W.IsReady() && W.WillKill(target) && KillStealMenu.CheckBoxValue(SpellSlot.W))
         {
             if (W.Handle.ToggleState == 1 && user.PredictHealthPercent() > 50)
             {
                 W.Cast();
             }
             else
             {
                 W.Cast();
             }
         }
         if (E.IsReady() && E.WillKill(target) && target.IsKillable(E.Range) && KillStealMenu.CheckBoxValue(SpellSlot.E))
         {
             E.Cast(target, HitChance.Medium);
         }
         if (R.IsReady() && R.WillKill(target) && target.IsKillable(R.Range) && KillStealMenu.CheckBoxValue(SpellSlot.R))
         {
             R.Cast();
         }
     }
 }
Exemplo n.º 5
0
        static Temp()
        {
            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            Q = new Spell.Active(SpellSlot.Q, 600);
            W = new Spell.Skillshot(SpellSlot.W, 1200, SkillShotType.Linear, 0, int.MaxValue, 60);
            E = new Spell.Skillshot(SpellSlot.E, 1000, SkillShotType.Linear);
            R = new Spell.Skillshot(SpellSlot.R, 4500, SkillShotType.Linear, 250, 1600, 100)
            {
                AllowedCollisionCount = 0
            };
            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            foreach (var spell in SpellList)
            {
                ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
            }
        }
Exemplo n.º 6
0
Arquivo: Ashe.cs Projeto: uvbs/WSUBot
        static Ashe()
        {
            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            AutoMenu.CreateCheckBox("W", "Flee W");
            AutoMenu.CreateCheckBox("GapR", "Anti-GapCloser R");
            AutoMenu.CreateCheckBox("IntR", "Interrupter R");
            foreach (var spell in SpellList)
            {
                ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                if (spell != R && spell != E)
                {
                    HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                    LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                    if (spell != Q)
                    {
                        HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                        LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                    }
                }
                KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
            }

            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Dash.OnDash            += Dash_OnDash;
            Orbwalker.OnPostAttack += Orbwalker_OnPostAttack;;
        }
Exemplo n.º 7
0
Arquivo: Ahri.cs Projeto: uvbs/WSUBot
        static Ahri()
        {
            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            foreach (var spell in SpellList)
            {
                ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                if (spell != R)
                {
                    HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                    HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                    LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                    LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                }
                KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
            }
            AutoMenu.CreateCheckBox("GapE", "Anti-GapCloser E");
            AutoMenu.CreateCheckBox("IntE", "Interrupter E");
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
        }
Exemplo n.º 8
0
        static Taliyah()
        {
            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            Q = new Spell.Skillshot(SpellSlot.Q, 900, SkillShotType.Linear, 250, 2000, 60)
            {
                AllowedCollisionCount = 0
            };
            W = new Spell.Skillshot(SpellSlot.W, 800, SkillShotType.Circular, 250, int.MaxValue, 180);
            E = new Spell.Skillshot(SpellSlot.E, 700, SkillShotType.Cone, 250, 1000, 120);
            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);

            foreach (var spell in SpellList)
            {
                ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
            }
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
        }
Exemplo n.º 9
0
        static Teemo()
        {
            /*Messages.OnMessage += delegate (Messages.WindowMessage message) //helpful to extract positions for shrooms
             * {
             *  if (message.Message == WindowMessages.LeftButtonDoubleClick)
             *      Console.WriteLine($"            new Location(new Vector3({Game.CursorPos.X}f, {Game.CursorPos.Y}f, {Game.CursorPos.Z}f)),");
             * };*/


            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            foreach (var spell in SpellList.Where(s => s == Q))
            {
                ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot, false);
                LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
            }

            ComboMenu.CreateCheckBox(SpellSlot.R, "Use R");

            AutoMenu.CreateCheckBox("autoR", "Auto Place Shrooms");

            R.SetSkillshot().Width = 300;

            GameObject.OnCreate += GameObject_OnCreate;
            GameObject.OnDelete += GameObject_OnDelete;
        }
Exemplo n.º 10
0
        static Jhin()
        {
            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            foreach (var spell in SpellList)
            {
                ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
            }
            AutoMenu.CreateCheckBox("Qunk", "Q UnKillable Minions");
            AutoMenu.CreateCheckBox("AutoW", "Auto W Targets With Buff");
            AutoMenu.CreateCheckBox("WGap", "W Gap Closers");
            AutoMenu.AddGroupLabel("R Settings");
            AutoMenu.CreateCheckBox("R", "Use R");
            AutoMenu.CreateCheckBox("RKS", "R Kill Steal");
            AutoMenu.CreateSlider("RHit", "R HitChance {0}%", 45);

            ComboMenu.CreateCheckBox("WAA", "W If Target is Out Of AA Range");
            ComboMenu.CreateCheckBox("WBUFF", "W Snare Targets Only");

            Player.OnIssueOrder            += Player_OnIssueOrder;
            Gapcloser.OnGapcloser          += Gapcloser_OnGapcloser;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            Orbwalker.OnUnkillableMinion   += Orbwalker_OnUnkillableMinion;
            Spellbook.OnCastSpell          += Spellbook_OnCastSpell;
        }
Exemplo n.º 11
0
        public override void KillSteal()
        {
            foreach (var target in EntityManager.Heroes.Enemies.Where(t => t != null))
            {
                if (IsCastingR && R.IsReady() && AutoMenu.CheckBoxValue("RKS"))
                {
                    if (target.IsKillable(R.Range) && CurrentRDamage(target) >= target.TotalShieldHealth() && JhinRSector(LastRPosition).IsInside(target))
                    {
                        R.Cast(target, AutoMenu.SliderValue("RHit"));
                        return;
                    }
                }

                if (IsCastingR)
                {
                    return;
                }

                if (W.IsReady() && KillStealMenu.CheckBoxValue(SpellSlot.W) && W.WillKill(target))
                {
                    W.Cast(target, 50);
                    return;
                }

                if (Q.IsReady() && KillStealMenu.CheckBoxValue(SpellSlot.Q) && Q.WillKill(target))
                {
                    Q.Cast(target);
                    return;
                }
            }
        }
Exemplo n.º 12
0
        static Orianna()
        {
            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            foreach (var spell in SpellList)
            {
                ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
            }

            AutoMenu.CreateCheckBox("W", "Flee W");
            AutoMenu.CreateCheckBox("IntR", "Interrupter R");
            AutoMenu.CreateCheckBox("R", "Use R");
            AutoMenu.CreateSlider("RAOE", "R AOE HIT {0}", 3, 1, 5);

            ComboMenu.CreateCheckBox("R", "Use R");
            ComboMenu.CreateSlider("RAOE", "R AOE HIT {0}", 2, 1, 5);

            KillStealMenu.CreateCheckBox("R", "Use R");
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            //SpellsDetector.OnTargetedSpellDetected += SpellsDetector_OnTargetedSpellDetected;
        }
Exemplo n.º 13
0
        public override void KillSteal()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Mixed, Player.Instance.Position);

            if (target == null)
            {
                return;
            }
            if (KillStealMenu.CheckBoxValue(Q.Slot) && !CastingUlt)
            {
                if (Q.IsReady() && Player.Instance.IsInRange(target, Q.Range) && Q.WillKill(target))
                {
                    Q.Cast(target);
                }
            }
            if (KillStealMenu.CheckBoxValue(W.Slot) && !CastingUlt)
            {
                if (W.IsReady() && Player.Instance.IsInRange(target, W.Range) && W.WillKill(target))
                {
                    W.Cast();
                }
            }
            if (KillStealMenu.CheckBoxValue(E.Slot) && !CastingUlt)
            {
                if (E.IsReady() && Player.Instance.IsInRange(target, E.Range) && E.WillKill(target))
                {
                    E.Cast(target);
                }
            }
        }
Exemplo n.º 14
0
        static Garen()
        {
            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            AutoMenu.CreateCheckBox("Q", "Flee Q");
            AutoMenu.CreateCheckBox("GapW", "Anti-GapCloser W");
            AutoMenu.CreateCheckBox("IntQ", "Interrupter Q");
            AutoMenu.CreateCheckBox("TDmgW", "W against targeted Spells");
            AutoMenu.CreateCheckBox("SDmgW", "W against Skillshots");
            foreach (var spell in SpellList)
            {
                ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                if (spell != R)
                {
                    HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                    LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                }
                KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
            }

            Gapcloser.OnGapcloser                  += Gapcloser_OnGapcloser;
            Interrupter.OnInterruptableSpell       += Interrupter_OnInterruptableSpell;
            Orbwalker.OnPostAttack                 += Orbwalker_OnPostAttack;
            SpellsDetector.OnTargetedSpellDetected += SpellsDetector_OnTargetedSpellDetected;
            Game.OnTick += Garen_SkillshotDetector;
        }
Exemplo n.º 15
0
        public override void KillSteal()
        {
            foreach (var target in EntityManager.Heroes.Enemies.Where(e => e != null && e.IsValidTarget()))
            {
                foreach (
                    var spell in
                    SpellList.Where(
                        s =>
                        s.WillKill(target) && s != R && s.IsReady() && target.IsKillable(s.Range) && s != W &&
                        KillStealMenu.CheckBoxValue(s.Slot)
                        ))
                {
                    switch (spell.Slot)
                    {
                    case SpellSlot.Q:
                        Q.Cast(target, HitChance.Medium);
                        break;

                    case SpellSlot.E:
                        E.Cast();
                        Player.IssueOrder(GameObjectOrder.AttackUnit, target);
                        break;

                    case SpellSlot.R:
                        R.Cast();
                        break;
                    }
                }
            }
        }
Exemplo n.º 16
0
        public override void KillSteal()
        {
            var qtarget     = Q.GetKillStealTarget();
            var wtarget     = W.GetKillStealTarget();
            var etarget     = E.GetKillStealTarget();
            var eballtarget = Eball.GetKillStealTarget();
            var rtarget     = EntityManager.Heroes.Enemies.OrderBy(TargetSelector.GetPriority).FirstOrDefault(o => o.IsKillable(R.Range) && RWillKill(o));

            if (qtarget != null && Q.IsReady() && KillStealMenu.CheckBoxValue("Q"))
            {
                Q.Cast(qtarget, 30);
                return;
            }
            if (wtarget != null && W.IsReady() && KillStealMenu.CheckBoxValue("W"))
            {
                WCast(wtarget);
                return;
            }
            if (etarget != null && E.IsReady() && KillStealMenu.CheckBoxValue("E"))
            {
                ECast(etarget);
                return;
            }
            if (eballtarget != null && Q.IsReady() && E.IsReady() && KillStealMenu.CheckBoxValue("QE"))
            {
                QE(etarget);
                return;
            }
            if (rtarget != null && R.IsReady() && KillStealMenu.CheckBoxValue("R"))
            {
                RCast(rtarget);
            }
        }
Exemplo n.º 17
0
        public static void Execute()
        {
            //////////////////// KS E BETA
            var targetKSE = TargetSelector.GetTarget(SpellsManager.E.Range, DamageType.Magical);

            if (targetKSE != null && KillStealMenu.GetCheckBoxValue("eUse") && SpellsManager.E.IsReady())
            {
                var predE2 = SpellsManager.E.GetPrediction(targetKSE);
                if (predE2.HitChance >= HitChance.High && targetKSE.Health < Player.Instance.GetSpellDamage(targetKSE, SpellSlot.E))
                {
                    SpellsManager.E.Cast(predE2.CastPosition);
                    return;
                }
            }//////////////////// END KS E

            //////////////////// KS R BETA
            var targetKSR = TargetSelector.GetTarget(SpellsManager.R.Range, DamageType.Magical);

            if (targetKSR != null && KillStealMenu.GetCheckBoxValue("rUse") && SpellsManager.R.IsReady())
            {
                var predR2 = SpellsManager.R.GetPrediction(targetKSR);
                if (predR2.HitChance >= HitChance.High && targetKSR.Health < Player.Instance.GetSpellDamage(targetKSR, SpellSlot.R))
                {
                    SpellsManager.R.Cast(predR2.CastPosition);
                    return;
                }
            }//////////////////// END KS R

            if (Player.Instance.InDanger(95) && W.IsReady() && (Hitch.ShouldOverload(SpellSlot.W) || Player.Instance.Mana < 80)) //Credits Mario
            {
                W.Cast();
            }
        }
Exemplo n.º 18
0
        public static void Execute()
        {
            if (DrawingsMenu.GetCheckBoxValue("showkilla"))
            {
                Indicator.DamageToUnit = SpellsManager.GetTotalDamageEBDB;
            }

            if (Player.HasBuff("zedulttargetmark") && MiscMenu.GetCheckBoxValue("esafe") && R.IsReady() && E.IsReady())
            {
                R.Cast();
                var player1 = ObjectManager.Player;
                E.Cast(player1);
            }

            //////////////////// KS Q
            var targetKSQ = TargetSelector.GetTarget(SpellsManager.Q.Range, DamageType.Magical);

            if (targetKSQ == null)
            {
                return;
            }

            if (KillStealMenu.GetCheckBoxValue("qUse") && SpellsManager.Q.IsReady())
            {
                var predQ2 = SpellsManager.Q.GetPrediction(targetKSQ);
                if (predQ2.HitChance >= HitChance.High && targetKSQ.Health < Player.Instance.GetSpellDamage(targetKSQ, SpellSlot.Q))
                {
                    SpellsManager.Q.Cast(predQ2.CastPosition);
                    return;
                }
            }//////////////////// END KS Q
        }
Exemplo n.º 19
0
        static Amumu()
        {
            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            foreach (var spell in SpellList)
            {
                ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                if (spell != R)
                {
                    HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                    HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                    LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                    LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                }
                KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
            }
            AutoMenu.CreateSlider("RAOE", "R AOE hit count {0}", 3, 1, 5);
            AutoMenu.CreateCheckBox("GapQ", "Anti-GapCloser Q");
            AutoMenu.CreateCheckBox("IntQ", "Interrupter Q");
            AutoMenu.CreateCheckBox("GapR", "Anti-GapCloser R");
            AutoMenu.CreateCheckBox("IntR", "Interrupter R");

            ComboMenu.CreateSlider("RAOE", "R AOE hit count {0}", 3, 1, 5);

            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Dash.OnDash += Dash_OnDash;
        }
Exemplo n.º 20
0
        static Fiora()
        {
            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            foreach (var spell in SpellList)
            {
                ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                if (spell != R)
                {
                    HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                    HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                    LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                    LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                }
                KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
            }
            //Events.OnIncomingDamage += Events_OnIncomingDamage;
            //SpellsDetector.OnTargetedSpellDetected += SpellsDetector_OnTargetedSpellDetected;
            Orbwalker.OnPostAttack += Orbwalker_OnPostAttack;
        }
Exemplo n.º 21
0
        static Aatrox()
        {
            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");


            foreach (var spell in SpellList)
            {
                ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                if (spell != R)
                {
                    HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                    LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                }
                KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
            }
            AutoMenu.CreateCheckBox("GapQ", "Anti-GapCloser Q");
            AutoMenu.CreateCheckBox("IntQ", "Interrupter Q");
            AutoMenu.CreateCheckBox("flee", "Flee E");
            AutoMenu.CreateSlider("RAOE", "R AOE HIT {0}", 3, 0, 5);
            ComboMenu.CreateSlider("RAOE", "R AOE HIT {0}", 3, 0, 5);

            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
        }
Exemplo n.º 22
0
 protected override void KillSteal()
 {
     foreach (var enemy in UnitManager.ValidEnemyHeroesInRange.Where(h => h.HealthPercent <= 40f))
     {
         var result = GetBestCombo(enemy);
         if (KillStealMenu.CheckBox("Q") && (result.Q || Q.IsKillable(enemy)))
         {
             CastQ(enemy);
         }
         if (KillStealMenu.CheckBox("W") && (result.W || W.IsKillable(enemy)))
         {
             CastW(enemy);
         }
         if (KillStealMenu.CheckBox("E") && (result.E || E.IsKillable(enemy)))
         {
             CastE(enemy);
         }
         if (KillStealMenu.CheckBox("R") && (result.R || R.IsKillable(enemy)))
         {
             CastR(enemy);
         }
         if ((KillStealMenu.CheckBox("Q") || KillStealMenu.CheckBox("E")) &&
             (
                 result.Q || Q.IsKillable(enemy) || result.W || W.IsKillable(enemy) || result.R ||
                 R.IsKillable(enemy)
             )
             )
         {
             ThrowBall(enemy);
         }
     }
     base.KillSteal();
 }
Exemplo n.º 23
0
        static Soraka()
        {
            MenuIni = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu = MenuIni.AddSubMenu("Auto");
            ComboMenu = MenuIni.AddSubMenu("Combo");
            HarassMenu = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            foreach (var spell in SpellList.Where(spell => spell != W && spell != R))
            {
                ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
            }
            AutoMenu.CreateCheckBox("GapQ", "Anti-GapCloser Q");
            AutoMenu.CreateCheckBox("GapE", "Anti-GapCloser E");
            AutoMenu.CreateCheckBox("AutoHeal", "Heal Allies");
            AutoMenu.CreateCheckBox("AutoR", "Auto Ult saver");
            AutoMenu.CreateCheckBox("AutoRteam", "Auto Ult Team");
            AutoMenu.CreateSlider("AutoRteamHp", "Auto Ult at Team HP {0}", 20, 1);

            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser += Gapcloser_OnGapcloser;
            Dash.OnDash += Dash_OnDash;
            Events.OnIncomingDamage += Events_OnIncomingDamage;
        }
Exemplo n.º 24
0
        static Akali()
        {
            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            Q = new Spell.Targeted(SpellSlot.Q, 600);
            W = new Spell.Skillshot(SpellSlot.W, 700, SkillShotType.Circular);
            E = new Spell.Active(SpellSlot.E, 325);
            R = new Spell.Targeted(SpellSlot.R, 700);
            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            foreach (var spell in SpellList)
            {
                ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                if (spell != R)
                {
                    HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                    LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                }
                KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
            }
        }
Exemplo n.º 25
0
        public static void OnLoad(EventArgs args)
        {
            switch (Game.MapId)
            {
            case GameMapId.SummonersRift:
                Common.JungleMobsNames = Common.SRJungleMobsNames;
                break;

            case GameMapId.CrystalScar:
                Common.JungleMobsNames = Common.ASCJungleMobsNames;
                break;

            case GameMapId.TwistedTreeline:
                Common.JungleMobsNames = Common.TTJungleMobsNames;
                break;
            }

            var spells = SpellDatabase.GetSpellInfoList(Player.Instance.BaseSkinName);

            if (spells.Count == 0)
            {
                return;
            }

            foreach (var spell in spells)
            {
                var skillshot = new Spell.Skillshot(spell.Slot, (uint)spell.Range, Common.type(spell.Type), (int)spell.Delay, (int)spell.MissileSpeed);
                var ispell    = new ISpells(skillshot, spell);
                Spells.Add(ispell);
            }

            MenuIni         = MainMenu.AddMenu("Auto Steal " + Player.Instance.Hero, "Auto Steal " + Player.Instance.Hero);
            KillStealMenu   = MenuIni.AddSubMenu("Kill Steal ", "Kill Steal");
            JungleStealMenu = MenuIni.AddSubMenu("Jungle Steal ", "Jungle Steal");

            KillStealMenu.AddGroupLabel("Spells");
            foreach (var spell in Spells.Select(s => s.Skillshot))
            {
                KillStealMenu.CreateCheckBox(spell.Slot.ToString(), "Use " + spell.Slot);
            }

            KillStealMenu.AddGroupLabel("Enemies");
            foreach (var enemy in EntityManager.Heroes.Enemies)
            {
                KillStealMenu.CreateCheckBox(enemy.Name(), "KS " + enemy.Name());
            }

            JungleStealMenu.AddGroupLabel("Spells");
            foreach (var spell in Spells.Select(s => s.Skillshot))
            {
                JungleStealMenu.CreateCheckBox(spell.Slot.ToString(), "Use " + spell.Slot);
            }

            JungleStealMenu.AddGroupLabel("Mobs");
            foreach (var name in Common.JungleMobsNames)
            {
                JungleStealMenu.CreateCheckBox(name, "JS " + name);
            }
            Game.OnUpdate += Game_OnUpdate;
        }
Exemplo n.º 26
0
 public override void KillSteal()
 {
     if (KillStealMenu.CheckBoxValue(SpellSlot.Q) && Q.IsReady())
     {
         foreach (var target in EntityManager.Heroes.Enemies.Where(m => m.IsKillable(Q.Range) && Q.WillKill(m)))
         {
             if (target != null)
             {
                 Q.Cast(target);
             }
         }
     }
     if (KillStealMenu.CheckBoxValue(SpellSlot.E) && E.IsReady())
     {
         foreach (var target in EntityManager.Heroes.Enemies.Where(e => e.IsKillable(E.Range) && E.WillKill(e)))
         {
             target.ECast();
         }
     }
     if (KillStealMenu.CheckBoxValue(SpellSlot.R) && R.IsReady())
     {
         foreach (var target in EntityManager.Heroes.Enemies.Where(e => e.IsKillable(R.Range) && R.WillKill(e, ComboMenu.SliderValue("RMulti"))))
         {
             R.Cast(target);
         }
     }
 }
Exemplo n.º 27
0
 protected override void KillSteal()
 {
     foreach (var enemy in UnitManager.ValidEnemyHeroes.Where(h => h.HealthPercent <= 40f))
     {
         var Minion  = EntityManager.Heroes.Enemies.Where(it => it.IsValidTarget(Q.Range)).FirstOrDefault(it => EntityManager.MinionsAndMonsters.EnemyMinions.Any(minion => minion.Distance(it) <= 450));
         var result  = GetBestCombo(enemy);
         var targetQ = TargetSelector.GetTarget(Q.Range, DamageType.Physical);
         var targetW = TargetSelector.GetTarget(W.Range, DamageType.Mixed);
         var targetR = TargetSelector.GetTarget(R.Range, DamageType.Physical);
         if (KillStealMenu.CheckBox("Q") && (result.Q || Q.IsKillable(enemy)) && Q.IsReady && targetQ.IsValidTarget(Q.Range) && !IsCastingR)
         {
             CastQ(enemy);
         }
         if (KillStealMenu.CheckBox("Qmin") && (result.Q || Q.IsKillable(enemy)) && Minion != null && Q.IsReady && !IsCastingR)
         {
             CastQ(Minion);
         }
         if (KillStealMenu.CheckBox("W") && (result.W || W.IsKillable(enemy)) && W.IsReady && targetW.IsValidTarget(W.Range) && !IsCastingR)
         {
             CastW(enemy);
         }
         if (KillStealMenu.CheckBox("E") && (result.E || E.IsKillable(enemy)) && E.IsReady && !IsCastingR)
         {
             CastE(enemy);
         }
         if (KillStealMenu.CheckBox("R") && IsCastingR && enemy.TotalShieldHealth() <= GetCurrentShotDamage(enemy) && targetR.IsValidTarget(R.Range) && !targetR.IsValidTarget(W.Range) && R.IsReady)
         {
             CastR();
         }
     }
     base.KillSteal();
 }
Exemplo n.º 28
0
        public static void Execute()
        {
            if (kstarget(Q.Range) == null)
            {
                return;
            }
            if (W.IsReady() && KillStealMenu.GetCheckBoxValue("wUse"))
            {
                if (Q.IsReady() && Q.Handle.SData.Mana + W.Handle.SData.Mana < Azir.Mana &&
                    Azir.GetSpellDamage(kstarget(Q.Range), SpellSlot.Q) >= kstarget(Q.Range).TotalShieldHealth())
                {
                    var p = Azir.Distance(kstarget(Q.Range), true) > W.RangeSquared
                                ? Azir.Position.To2D().Extend(kstarget(Q.Range).Position.To2D(), W.Range)
                                : kstarget(Q.Range).Position.To2D();
                    W.Cast((Vector3)p);
                }
            }

            if (Azir.GetSpellDamage(kstarget(Q.Range), SpellSlot.Q) >= kstarget(Q.Range).TotalShieldHealth())
            {
                if (Orbwalker.AzirSoldiers.Any(s => s.IsAlly))
                {
                    Q.TryToCast(kstarget(Q.Range).Position, KillStealMenu);
                }
            }

            if (Azir.GetSpellDamage(kstarget(E.Range), SpellSlot.E) >= kstarget(E.Range).TotalShieldHealth())
            {
                if (Ehit(kstarget(E.Range)))
                {
                    E.TryToCast(kstarget(E.Range).Position, KillStealMenu);
                }
            }
        }
Exemplo n.º 29
0
        public override void KillSteal()
        {
            var Qtarget = Q.GetKillStealTarget();
            var qready  = Q.IsReady() && KillStealMenu.CheckBoxValue("Q") && Qtarget != null;
            var Wtarget = W.GetKillStealTargets().FirstOrDefault(e => W.WillKill(e) && WHit(e));
            var wready  = W.IsReady() && KillStealMenu.CheckBoxValue("W") && Wtarget != null;
            var Etarget = E.GetKillStealTargets().FirstOrDefault(e => EHit(e) != null);
            var eready  = E.IsReady() && KillStealMenu.CheckBoxValue("E") && Etarget != null;
            var Rtarget = R.GetKillStealTargets().FirstOrDefault(RWillHit);
            var rready  = R.IsReady() && KillStealMenu.CheckBoxValue("R") && Rtarget != null;

            if (qready)
            {
                Q.Cast(Qtarget);
            }
            if (wready)
            {
                W.Cast();
            }
            if (eready)
            {
                E.Cast(EHit(Etarget));
            }
            if (rready)
            {
                R.Cast();
            }
        }
Exemplo n.º 30
0
        static TwistedFate()
        {
            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            Q = new Spell.Skillshot(SpellSlot.Q, 1400, SkillShotType.Linear, 0, 1000, 40)
            {
                AllowedCollisionCount = int.MaxValue
            };
            W = new Spell.Active(SpellSlot.W, 800);
            SpellList.Add(Q);
            SpellList.Add(W);

            foreach (var spell in SpellList)
            {
                ComboMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                HarassMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                LaneClearMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
                LaneClearMenu.CreateSlider(spell.Slot + "mana", spell.Slot + " Mana Manager", 60);
                KillStealMenu.CreateCheckBox(spell.Slot, "Use " + spell.Slot);
            }
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
        }