示例#1
0
        static Yasuo()
        {
            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 != W))
            {
                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("IntQ3", "Interrupter Q3");
            AutoMenu.CreateCheckBox("GapQ3", "Anti-Gapcloser Q3");
            AutoMenu.CreateCheckBox("RAOE", "Enable Auto R AOE");
            AutoMenu.CreateSlider("Q3AOE", "Auto Q3 AOE Hit", 2, 1, 6);
            AutoMenu.CreateSlider("Rhits", "Auto R AOE Hit", 2, 1, 6);

            ComboMenu.CreateCheckBox("RAOE", "Enable Combo R AOE");
            ComboMenu.CreateSlider("Rhits", "Combo R AOE Hit", 2, 1, 6);

            Obj_AI_Base.OnProcessSpellCast   += Obj_AI_Base_OnProcessSpellCast;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
            E.OnSpellCasted += (spell, args) => args.Process = user.PredictHealthPercent() > 50;
        }
示例#2
0
        public override void LaneClear()
        {
            if (Q.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.Q) && LaneClearMenu.CompareSlider("Qmana", user.ManaPercent))
            {
                var qminions = EntityManager.MinionsAndMonsters.GetCircularFarmLocation(Q.LaneMinions(), Q.SetSkillshot().Width * 2, (int)Q.Range, Q.CastDelay, Q.SetSkillshot().Speed);
                if (qminions.HitNumber >= LaneClearMenu.SliderValue("Qhit"))
                {
                    Q.Cast(qminions.CastPosition);
                }
            }

            if (W.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.W) && LaneClearMenu.CompareSlider("Wmana", user.ManaPercent))
            {
                var wminions = EntityManager.MinionsAndMonsters.GetCircularFarmLocation(W.LaneMinions(), W.SetSkillshot().Width * 2, (int)W.Range, W.CastDelay, W.SetSkillshot().Speed);
                if (wminions.HitNumber + 1 >= LaneClearMenu.SliderValue("Whit"))
                {
                    WCast(wminions.CastPosition);
                }
            }

            if (E.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.E) && LaneClearMenu.CompareSlider("Emana", user.ManaPercent))
            {
                foreach (var ball in BallsList)
                {
                    var Eminions = EntityManager.MinionsAndMonsters.GetLineFarmLocation(Eball.LaneMinions(), Eball.Width, (int)Eball.Range, ball.ServerPosition.Extend(user, 100));
                    if (Eminions.HitNumber >= LaneClearMenu.SliderValue("Ehit"))
                    {
                        Eball.Cast(ball.ServerPosition);
                    }
                }
            }
        }
示例#3
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);
            }
        }
示例#4
0
 public override void Laneclear()
 {
     var target = GetTarget(E);
     var minion = E.GetLaneMinion();
     if (LaneClearMenu.GetSliderValue(LaneMenuID + "mana") >= Player.Instance.ManaPercent) return;
     if (LaneClearMenu.GetCheckBoxValue(52))
     {
         if (HarassMenu.GetCheckBoxValue(HarassMenuID + "Q")) Q.TryCast(target);
         if (HarassMenu.GetCheckBoxValue(HarassMenuID + "W")) W.TryCast(target);
         if (HarassMenu.GetCheckBoxValue(HarassMenuID + "E") &&
             HarassMenu.GetSliderValue(49) <= Player.Instance.HealthPercent)
         {
             E.TryCast(target);
         }
     }
     else
     {
         if (LaneClearMenu.GetCheckBoxValue(LaneMenuID + "Q")) Q.TryCast(minion);
         if (LaneClearMenu.GetCheckBoxValue(LaneMenuID + "W")) W.TryCast(minion);
         if (LaneClearMenu.GetCheckBoxValue(LaneMenuID + "E") &&
             LaneClearMenu.GetSliderValue(51) <= Player.Instance.HealthPercent)
         {
             E.TryCast(minion);
         }
     }
 }
示例#5
0
        static Alistar()
        {
            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");

            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 && spell != E)
                {
                    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("IntQ", "Interrupter Q");
            AutoMenu.CreateCheckBox("GapW", "Anti-GapCloser W");
            AutoMenu.CreateCheckBox("IntW", "Interrupter W");

            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
        }
示例#6
0
 public static void LaneClearmenu()
 {
     LaneClearMenu = VMenu.AddSubMenu("LaneClear", "LaneClear");
     LaneClearMenu.AddGroupLabel("LaneClear");
     LaneClearMenu.Add("LCQ", new CheckBox("Use Q"));
     LaneClearMenu.Add("LCQMana", new Slider("Maximum mana usage in percent ({0}%)", 40));
 }
示例#7
0
文件: Syndra.cs 项目: uvbs/WSUBot
        public override void LaneClear()
        {
            if (Q.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.Q) && LaneClearMenu.CompareSlider("Qmana", user.ManaPercent))
            {
                var qminions = Q.SetSkillshot().GetBestCircularCastPosition(Q.LaneMinions());
                if (qminions.HitNumber >= LaneClearMenu.SliderValue("Qhit"))
                {
                    Q.Cast(qminions.CastPosition);
                }
            }

            if (W.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.W) && LaneClearMenu.CompareSlider("Wmana", user.ManaPercent))
            {
                var wminions = W.SetSkillshot().GetBestCircularCastPosition(W.LaneMinions());
                if (wminions.HitNumber + 1 >= LaneClearMenu.SliderValue("Whit"))
                {
                    WCast(wminions.CastPosition);
                }
            }

            if (E.IsReady() && LaneClearMenu.CheckBoxValue(SpellSlot.E) && LaneClearMenu.CompareSlider("Emana", user.ManaPercent))
            {
                foreach (var ball in BallsList)
                {
                    var Eminions = Eball.SetSkillshot().GetBestLinearCastPosition(Eball.LaneMinions(), 0, ball.ServerPosition.To2D());
                    if (Eminions.HitNumber >= LaneClearMenu.SliderValue("Ehit"))
                    {
                        Eball.Cast(ball.ServerPosition);
                    }
                }
            }
        }
示例#8
0
        public override void Jungleclear()
        {
            if (Q.IsReady() && LaneClearMenu.GetCheckBoxValue("jungle.q"))
            {
                var jungleMobs =
                    EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Instance.Position, Q.Range).ToArray();
                var lineFarmLocation = EntityManager.MinionsAndMonsters.GetLineFarmLocation(jungleMobs, Q.Width,
                                                                                            (int)Q.Range);
                var lineFarmLocationReturn = EntityManager.MinionsAndMonsters.GetLineFarmLocation(jungleMobs, Q.Width,
                                                                                                  (int)Q.Range, lineFarmLocation.CastPosition.Extend(Player.Instance, Q.Range));

                if (lineFarmLocation.HitNumber > 0 || lineFarmLocationReturn.HitNumber > 0)
                {
                    Q.Cast(lineFarmLocation.CastPosition);
                }
            }

            if (W.IsReady() && LaneClearMenu.GetCheckBoxValue("jungle.w"))
            {
                var jungleMobs =
                    EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Instance.Position, W.Range).ToArray();
                var circularFarmLocation = EntityManager.MinionsAndMonsters.GetCircularFarmLocation(jungleMobs, Q.Width,
                                                                                                    (int)Q.Range);

                if (circularFarmLocation.HitNumber > 1)
                {
                    W.Cast(circularFarmLocation.CastPosition);
                }
            }
        }
示例#9
0
        private void Orbwalker_OnPostAttack(AttackableUnit target, System.EventArgs args)
        {
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) &&
                ComboMenu.GetCheckBoxValue(MenuIds.ComboUseE))
            {
                if (!E.IsReady())
                {
                    return;
                }

                LogicE(target as AIHeroClient, Orbwalker.ActiveModes.Combo);
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) &&
                HarassMenu.GetCheckBoxValue(MenuIds.HarassUseE))
            {
                if (!E.IsReady())
                {
                    return;
                }

                LogicE(target as AIHeroClient, Orbwalker.ActiveModes.Harass);
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear) &&
                LaneClearMenu.GetCheckBoxValue("jungle.e"))
            {
                if (!E.IsReady())
                {
                    return;
                }

                LogicE(target as Obj_AI_Base, Orbwalker.ActiveModes.JungleClear);
            }
        }
示例#10
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;
        }
示例#11
0
                static LaneClear()
                {
                    LaneClearMenu.AddGroupLabel("LaneClear");

                    _useE     = LaneClearMenu.Add("useE", new CheckBox("Use Q"));
                    _useEmana = LaneClearMenu.Add("useEmana", new Slider("If Mana % > {0}", 60, 0, 100));
                }
示例#12
0
 protected override void InitMenu()
 {
     base.InitMenu();
     ComboMenu.AddItem(new MenuItem("QCombo", "Auto Tumble").SetValue(true));
     ComboMenu.AddItem(new MenuItem("QHarass", "AA - Q - AA").SetValue(true));
     ComboMenu.AddItem(new MenuItem("QChecks", "Q Safety Checks").SetValue(true));
     ComboMenu.AddItem(new MenuItem("QWall", "Enable Wall Tumble?").SetValue(true));
     ComboMenu.AddItem(new MenuItem("QUltSpam", "Spam Q when R active").SetValue(false));
     ComboMenu.AddItem(new MenuItem("FocusTwoW", "Focus 2 W Stacks").SetValue(true));
     ComboMenu.AddItem(new MenuItem("ECombo", "Auto Condemn").SetValue(true));
     ComboMenu.AddItem(new MenuItem("PradaE", "Authentic Prada Condemn").SetValue(true));
     ComboMenu.AddItem(new MenuItem("EHitchance", "E % Hitchance").SetValue(new Slider(100, 50, 100)));
     ComboMenu.AddItem(new MenuItem("DrawE", "Draw Condemn Prediction").SetValue(true));
     ComboMenu.AddItem(new MenuItem("RCombo", "Auto Ult (soon)").SetValue(false));
     ComboMenu.AddItem(new MenuItem("AutoBuy", "Auto-Swap Trinkets?").SetValue(true));
     EscapeMenu.AddItem(new MenuItem("QEscape", "Escape with Q").SetValue(true));
     EscapeMenu.AddItem(new MenuItem("CondemnEscape", "Escape with E").SetValue(true));
     EscapeMenu.AddItem(new MenuItem("EInterrupt", "Use E to Interrupt").SetValue(true));
     LaneClearMenu.AddItem(new MenuItem("QFarm", "Use Q (SMART)").SetValue(true));
     SkinhackMenu.AddItem(
         new MenuItem("skin", "Skin: ").SetValue(
             new StringList(new string[]
                            { "Classic", "Vindicator", "Aristocrat", "Dragonslayer", "Heartseeker", "SKT T1", "Arclight" }))).ValueChanged +=
         (sender, args) =>
     {
         _selectedSkin = SkinhackMenu.Item("skin").GetValue <StringList>().SelectedIndex + 1;
         Player.SetSkin(Player.CharData.BaseSkinName, _selectedSkin);
     };
     SkinhackMenu.AddItem(new MenuItem("enableskinhack", "Enable Skinhax").SetValue(true));
     SkinhackMenu.AddItem(new MenuItem("cyclethroughskins", "Cycle Through Skins").SetValue(false));
     SkinhackMenu.AddItem(new MenuItem("cyclethroughskinstime", "Cycling Time").SetValue(new Slider(30, 30, 600)));
 }
示例#13
0
 public static void LaneClearmenu()
 {
     LaneClearMenu = VMenu.AddSubMenu("LaneClear", "LaneClear");
     LaneClearMenu.AddGroupLabel("LaneClear");
     LaneClearMenu.Add("LCQ", new CheckBox("Usar Q"));
     LaneClearMenu.Add("LCQMana", new Slider("Uso máximo de maná en porcentaje ({0}%)", 40));
 }
示例#14
0
        static Xayah()
        {
            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            foreach (var spell in SpellList.Where(s => s != E))
            {
                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);
            }
            ComboMenu.CreateCheckBox("Esnare", "Use E To Snare Target");

            GameObject.OnCreate += GameObject_OnCreate;
            Orbwalker.OnAttack  += Orbwalker_OnAttack;
        }
示例#15
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;
        }
示例#16
0
        public static void LoadMenu()
        {
            Menu = MainMenu.AddMenu("HM Katarina", "HMKatarina");
            Menu.AddLabel(" HM Katarina  ");
            Menu.AddLabel(" Made by HappyMajor ");
            Menu.AddLabel("Enjoy");

            /* Combo Section */
            ComboMenu = Menu.AddSubMenu("Combo Settings", "Combo");
            ComboMenu.Add("useQCombo", new CheckBox("Use Q", false));
            ComboMenu.Add("useWCombo", new CheckBox("Use W", false));
            ComboMenu.Add("useECombo", new CheckBox("Use E", false));
            ComboMenu.Add("useRCombo", new CheckBox("Use R", false));
            ComboMenu.Add("useD", new CheckBox("Use Jump to Dagger", false));
            ComboMenu.Add("useRECombo", new CheckBox("Use E if Enemy walk outside R range", false));

            LaneClearMenu = Menu.AddSubMenu("Laneclear Settings", "Laneclear");
            LaneClearMenu.Add("useQLC", new CheckBox("Use Q", false));
            LaneClearMenu.Add("useWLC", new CheckBox("Use W", false));
            LaneClearMenu.Add("useELC", new CheckBox("Use E", false));

            KillstealMenu = Menu.AddSubMenu("Killsteal Settings", "Killsteal");
            KillstealMenu.Add("useKS", new CheckBox("Use Killsteal", false));
            KillstealMenu.Add("Q", new CheckBox("Use Q", false));
            KillstealMenu.Add("E", new CheckBox("Use E", false));
            KillstealMenu.Add("R", new CheckBox("Use R", false));
        }
示例#17
0
文件: Amumu.cs 项目: uvbs/WSUBot
        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;
        }
示例#18
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;
        }
示例#19
0
文件: Caitlyn.cs 项目: uvbs/WSUBot
        static Caitlyn()
        {
            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("E", "Flee E");
            AutoMenu.CreateCheckBox("DashW", "Anti-Dash W");
            AutoMenu.CreateCheckBox("DashE", "Anti-Dash E");
            AutoMenu.CreateCheckBox("GapW", "Anti-GapCloser W");
            AutoMenu.CreateCheckBox("GapE", "Anti-GapCloser E");
            AutoMenu.CreateCheckBox("IntW", "Interrupter W");
            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);
            }

            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Dash.OnDash += Dash_OnDash;
        }
示例#20
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)
            {
                if (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);
                }
                if (spell != W && spell != E)
                {
                    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;
        }
示例#21
0
文件: Syndra.cs 项目: spall9/KappAIO
        public override void LaneClear()
        {
            var qmanacheck   = Player.Instance.ManaPercent > LaneClearMenu.SliderValue("Qmana");
            var wmanacheck   = Player.Instance.ManaPercent > LaneClearMenu.SliderValue("Wmana");
            var emanacheck   = Player.Instance.ManaPercent > LaneClearMenu.SliderValue("Emana");
            var qhits        = LaneClearMenu.SliderValue("Qhit");
            var whits        = LaneClearMenu.SliderValue("Whit");
            var ehits        = LaneClearMenu.SliderValue("Ehit");
            var QBestFarmLoc = Q.GetBestCircularCastPosition(Q.LaneMinions());
            var WBestFarmLoc = W.GetBestCircularCastPosition(W.LaneMinions());
            var EBestFarmLoc = E.GetBestConeCastPosition(E.LaneMinions());

            if (qmanacheck && Q.IsReady() && QBestFarmLoc.HitNumber >= qhits)
            {
                Q.Cast(QBestFarmLoc.CastPosition);
            }
            if (wmanacheck && W.IsReady() && (WBestFarmLoc.HitNumber >= whits || W.ToggleState != 1))
            {
                WCast(WBestFarmLoc.CastPosition);
            }
            if (emanacheck && W.IsReady() && EBestFarmLoc.HitNumber >= ehits)
            {
                ECast(EBestFarmLoc.CastPosition);
            }
        }
示例#22
0
 public static void LaneClearmenu()
 {
     LaneClearMenu = YMenu.AddSubMenu("LaneClear", "LaneClear");
     LaneClearMenu.Add("Q", new CheckBox("Use Q"));
     LaneClearMenu.Add("W", new CheckBox("Use W"));
     LaneClearMenu.Add("Mana", new Slider("Mana Manager", 50));
 }
示例#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;
        }
示例#24
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;
        }
示例#25
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;
        }
示例#26
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;
        }
示例#27
0
 /// <summary>
 /// Put in here what you want to do when the mode is running
 /// </summary>
 public static void Execute()
 {
     if (LaneClearMenu.GetCheckBoxValue("quse"))
     {
         Q.TryToCast(Q.GetLastHitMinion(), LaneClearMenu);
     }
 }
示例#28
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;
        }
示例#29
0
        /// <summary>
        /// Put in here what you want to do when the mode is running
        /// </summary>
        public static void Execute()
        {
            var count = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Instance.ServerPosition, E.Range, false).Count();

            if (count == 0)
            {
                return;
            }
            var source = EntityManager.MinionsAndMonsters.GetLaneMinions().OrderBy(a => a.MaxHealth).FirstOrDefault(a => a.IsValidTarget(Q.Range));

            if (LaneClearMenu.GetCheckBoxValue("qUse") && Q.IsReady() && source.IsValidTarget(SpellsManager.Q.Range) && E.GetPrediction(source).HitChance >= HitChance.Medium)
            {
                Q.Cast(source.Position);
            }

            if (LaneClearMenu.GetCheckBoxValue("WUse") && W.IsReady() && source.IsValidTarget(W.Range) && E.GetPrediction(source).HitChance >= HitChance.Medium)
            {
                W.Cast(source.Position);
            }

            if (LaneClearMenu.GetCheckBoxValue("eUse") && E.IsReady() && source.IsValidTarget(SpellsManager.E.Range) && E.GetPrediction(source).HitChance >= HitChance.Medium)
            {
                E.Cast(source.Position);
            }
        }
示例#30
0
 public override void LastHit()
 {
     if (LaneClearMenu.CheckBoxValue("QLH") && Q.IsReady())
     {
         var barrel = BarrelsList.OrderByDescending(b => b.Barrel.CountEnemyMinionsInRange(E.Width)).FirstOrDefault(m => KillableBarrel(m) != null && m.Barrel.CountEnemyMinionsInRange(E.Width) > 0 && (KillableBarrel(m).IsValidTarget(Q.Range) || KillableBarrel(m).IsInRange(user, user.GetAutoAttackRange())));
         if (barrel != null)
         {
             var EkillMinions = EntityManager.MinionsAndMonsters.EnemyMinions.Count(m => BarrelKill(m) && BarrelsList.Any(b => b.Barrel.IsInRange(m, E.Width)) && m.IsValidTarget())
                                >= LaneClearMenu.SliderValue("EKill");
             if (KillableBarrel(barrel).IsValidTarget(user.GetAutoAttackRange()))
             {
                 Orbwalker.ForcedTarget = KillableBarrel(barrel);
             }
             else
             {
                 if (KillableBarrel(barrel).IsValidTarget(Q.Range) && EkillMinions)
                 {
                     Q.Cast(barrel.Barrel);
                 }
             }
         }
         else
         {
             if (LaneClearMenu.CompareSlider("Qmana", user.ManaPercent))
             {
                 foreach (var minion in EntityManager.MinionsAndMonsters.EnemyMinions.OrderByDescending(m => m.Distance(user)).Where(m => m.IsKillable(Q.Range) && Q.WillKill(m) && !BarrelsList.Any(b => b.Barrel.Distance(m) <= E.Width)))
                 {
                     Q.Cast(minion);
                 }
             }
         }
     }
 }