Exemplo n.º 1
0
        public static void Game_OnGameLoad()
        {
            Player = ObjectManager.Player;

            if (Player.CharData.BaseSkinName != ChampionName) return;

            //Create the spells
            Q = new LeagueSharp.Common.Spell(SpellSlot.Q, 790);
            W = new LeagueSharp.Common.Spell(SpellSlot.W, 925);
            E = new LeagueSharp.Common.Spell(SpellSlot.E, 700);
            R = new LeagueSharp.Common.Spell(SpellSlot.R, 675);
            Eq = new LeagueSharp.Common.Spell(SpellSlot.Q, Q.Range + 500);

            IgniteSlot = Player.GetSpellSlot("SummonerDot");

            Q.SetSkillshot(0.6f, 125f, float.MaxValue, false, SkillshotType.SkillshotCircle);
            W.SetSkillshot(0.25f, 140f, 1600f, false, SkillshotType.SkillshotCircle);
            E.SetSkillshot(0.25f, (float)(45 * 0.5), 2500f, false, SkillshotType.SkillshotCircle);
            Eq.SetSkillshot(float.MaxValue, 55f, 2000f, false, SkillshotType.SkillshotCircle);

            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            //Create the menu
            Config = MainMenu.AddMenu(ChampionName, ChampionName);

            menuKeys = Config.AddSubMenu("Keys", "Keys");
            {
                menuKeys.Add("Key.HarassT", new KeyBind("Harass (toggle)!", false, KeyBind.BindTypes.PressToggle, 'Y'));
                menuKeys.Add("Key.InstantQE", new KeyBind("Instant Q-E to Enemy", false, KeyBind.BindTypes.HoldActive, 'T'));
            }

            menuCombo = Config.AddSubMenu("Combo", "Combo");
            {
                menuCombo.Add("UseQCombo", new CheckBox("Use Q"));
                menuCombo.Add("UseWCombo", new CheckBox("Use W"));
                menuCombo.Add("UseECombo", new CheckBox("Use E"));
                menuCombo.Add("UseQECombo", new CheckBox("Use QE"));
                menuCombo.Add("UseRCombo", new CheckBox("Use R"));
                menuCombo.Add("UseIgniteCombo", new CheckBox("Use Ignite"));
            }

            menuHarass = Config.AddSubMenu("Harass", "Harass");
            {
                menuHarass.Add("UseQHarass", new CheckBox("Use Q"));
                menuHarass.Add("UseWHarass", new CheckBox("Use W", false));
                menuHarass.Add("UseEHarass", new CheckBox("Use E", false));
                menuHarass.Add("UseQEHarass", new CheckBox("Use QE", false));
                menuHarass.Add("Harass.Mana", new Slider("Don't harass if mana < %", 0));
            }

            menuFarm = Config.AddSubMenu("Lane Farm", "Farm");
            {
                menuFarm.Add("EnabledFarm", new CheckBox("Enable! (On/Off: Mouse Scroll)"));
                menuFarm.Add("UseQFarm", new ComboBox("Use Q", 2, "Last Hit", "LaneClear", "Both", "No"));
                menuFarm.Add("UseWFarm", new ComboBox("Use W", 1, "Last Hit", "LaneClear", "Both", "No"));
                menuFarm.Add("Lane.Mana", new Slider("Don't harass if mana < %", 0));
            }

            menuJungle = Config.AddSubMenu("Jungle Farm", "JungleFarm");
            {
                menuJungle.Add("UseQJFarm", new CheckBox("Use Q"));
                menuJungle.Add("UseWJFarm", new CheckBox("Use W"));
                menuJungle.Add("UseEJFarm", new CheckBox("Use E"));
            }

            menuMisc = Config.AddSubMenu("Misc", "Misc");
            {
                menuMisc.Add("InterruptSpells", new CheckBox("Interrupt spells"));
                menuMisc.Add("CastQE", new KeyBind("QE closest to cursor", false, KeyBind.BindTypes.HoldActive, 'T'));

                foreach (var enemy in ObjectManager.Get<AIHeroClient>().Where(enemy => enemy.Team != Player.Team))
                    menuMisc.Add("DontUlt" + enemy.CharData.BaseSkinName, new CheckBox("Don't Ult : " + enemy.CharData.BaseSkinName, false));
            }


            DrawMenu = Config.AddSubMenu("Drawings", "Drawings");
            {
                DrawMenu.Add("QRange", new CheckBox("Q range", false));//.SetValue(new Circle(false, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.Add("WRange", new CheckBox("W range"));//.SetValue(new Circle(true, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.Add("ERange", new CheckBox("E range", false));//.SetValue(new Circle(false, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.Add("RRange", new CheckBox("R range", false));//.SetValue(new Circle(false, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.Add("QERange", new CheckBox("QE range"));//.SetValue(new Circle(true, System.Drawing.Color.FromArgb(100, 255, 0, 255))));

                ManaBarIndicator.Initialize();
            }

            //Add the events we are going to use:
            Game.OnUpdate += Game_OnGameUpdate;
            Game.OnWndProc += Game_OnWndProc;
            Orbwalker.OnPreAttack += Orbwalking_BeforeAttack;

            Obj_AI_Base.OnProcessSpellCast += AIHeroClient_OnProcessSpellCast;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;

            Drawing.OnDraw += Drawing_OnDraw;
        }
Exemplo n.º 2
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Player = ObjectManager.Player;

            if (Player.CharData.BaseSkinName != ChampionName)
            {
                return;
            }

            //Create the spells
            Q  = new Spell(SpellSlot.Q, 790);
            W  = new Spell(SpellSlot.W, 925);
            E  = new Spell(SpellSlot.E, 700);
            R  = new Spell(SpellSlot.R, 675);
            Eq = new Spell(SpellSlot.Q, Q.Range + 500);

            IgniteSlot = Player.GetSpellSlot("SummonerDot");

            Q.SetSkillshot(0.6f, 125f, float.MaxValue, false, SkillshotType.SkillshotCircle);
            W.SetSkillshot(0.25f, 140f, 1600f, false, SkillshotType.SkillshotCircle);
            E.SetSkillshot(0.25f, (float)(45 * 0.5), 2500f, false, SkillshotType.SkillshotCircle);
            Eq.SetSkillshot(float.MaxValue, 55f, 2000f, false, SkillshotType.SkillshotCircle);

            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            //Create the menu
            Config = new Menu(ChampionName, ChampionName, true).SetFontStyle(FontStyle.Regular, Color.GreenYellow);

            //Orbwalker submenu
            Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));

            //AssassinManager = new AssassinManager();
            //AssassinManager.Initialize();

            //Initialize the orbwalker and add it to the menu as submenu.
            Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));

            var menuKeys = new Menu("Keys", "Keys").SetFontStyle(FontStyle.Regular, Color.Aqua);
            {
                menuKeys.AddItem(
                    new MenuItem("Key.Combo", "Combo!").SetValue(
                        new KeyBind(Config.Item("Orbwalk").GetValue <KeyBind>().Key, KeyBindType.Press)))
                .SetFontStyle(FontStyle.Regular, Color.GreenYellow);
                menuKeys.AddItem(
                    new MenuItem("Key.Harass", "Harass!").SetValue(
                        new KeyBind(Config.Item("Farm").GetValue <KeyBind>().Key, KeyBindType.Press)))
                .SetFontStyle(FontStyle.Regular, Color.Coral);
                menuKeys.AddItem(
                    new MenuItem("Key.HarassT", "Harass (toggle)!").SetValue(
                        new KeyBind("Y".ToCharArray()[0], KeyBindType.Toggle)))
                .SetFontStyle(FontStyle.Regular, Color.Coral)
                .Permashow(true, "Syndra | Toggle Harass", Color.Aqua);
                menuKeys.AddItem(
                    new MenuItem("Key.Lane", "Lane Clear!").SetValue(
                        new KeyBind(Config.Item("LaneClear").GetValue <KeyBind>().Key, KeyBindType.Press)))
                .SetFontStyle(FontStyle.Regular, Color.DarkKhaki);
                menuKeys.AddItem(
                    new MenuItem("Key.Jungle", "Jungle Farm!").SetValue(
                        new KeyBind(Config.Item("LaneClear").GetValue <KeyBind>().Key, KeyBindType.Press)))
                .SetFontStyle(FontStyle.Regular, Color.DarkKhaki);
                menuKeys.AddItem(
                    new MenuItem("Key.InstantQE", "Instant Q-E to Enemy").SetValue(
                        new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
                Config.AddSubMenu(menuKeys);
            }

            var menuCombo = new Menu("Combo", "Combo");
            {
                menuCombo.AddItem(new MenuItem("UseQCombo", "Use Q").SetValue(true));
                menuCombo.AddItem(new MenuItem("UseWCombo", "Use W").SetValue(true));
                menuCombo.AddItem(new MenuItem("UseECombo", "Use E").SetValue(true));
                menuCombo.AddItem(new MenuItem("UseQECombo", "Use QE").SetValue(true));
                menuCombo.AddItem(new MenuItem("UseRCombo", "Use R").SetValue(true));
                menuCombo.AddItem(new MenuItem("UseIgniteCombo", "Use Ignite").SetValue(true));
                Config.AddSubMenu(menuCombo);
            }

            var menuHarass = new Menu("Harass", "Harass");
            {
                menuHarass.AddItem(new MenuItem("UseQHarass", "Use Q").SetValue(true));

                menuHarass.AddItem(new MenuItem("UseWHarass", "Use W").SetValue(false));
                menuHarass.AddItem(new MenuItem("UseEHarass", "Use E").SetValue(false));
                menuHarass.AddItem(new MenuItem("UseQEHarass", "Use QE").SetValue(false));
                menuHarass.AddItem(
                    new MenuItem("Harass.Mana", "Don't harass if mana < %").SetValue(new Slider(0)));
                Config.AddSubMenu(menuHarass);
            }

            var menuFarm = new Menu("Lane Farm", "Farm");
            {
                menuFarm.AddItem(new MenuItem("EnabledFarm", "Enable! (On/Off: Mouse Scroll)").SetValue(true))
                .Permashow(true, "Syndra | Farm Mode Active", Color.Aqua);
                menuFarm.AddItem(
                    new MenuItem("UseQFarm", "Use Q").SetValue(
                        new StringList(new[] { "Freeze", "LaneClear", "Both", "No" }, 2)));
                menuFarm.AddItem(
                    new MenuItem("UseWFarm", "Use W").SetValue(
                        new StringList(new[] { "Freeze", "LaneClear", "Both", "No" }, 1)));
                menuFarm.AddItem(
                    new MenuItem("UseEFarm", "Use E").SetValue(
                        new StringList(new[] { "Freeze", "LaneClear", "Both", "No" }, 3)));
                menuFarm.AddItem(
                    new MenuItem("FreezeActive", "Freeze!").SetValue(
                        new KeyBind(Config.Item("Farm").GetValue <KeyBind>().Key, KeyBindType.Press)));
                menuFarm.AddItem(new MenuItem("Lane.Mana", "Don't harass if mana < %").SetValue(new Slider(0)));
                Config.AddSubMenu(menuFarm);
            }

            var menuJungle = new Menu("Jungle Farm", "JungleFarm");
            {
                menuJungle.AddItem(new MenuItem("UseQJFarm", "Use Q").SetValue(true));
                menuJungle.AddItem(new MenuItem("UseWJFarm", "Use W").SetValue(true));
                menuJungle.AddItem(new MenuItem("UseEJFarm", "Use E").SetValue(true));
                Config.AddSubMenu(menuJungle);
            }

            var menuMisc = new Menu("Misc", "Misc");

            {
                menuMisc.AddItem(new MenuItem("InterruptSpells", "Interrupt spells").SetValue(true));
                menuMisc.AddItem(
                    new MenuItem("CastQE", "QE closest to cursor").SetValue(
                        new KeyBind('T', KeyBindType.Press)));

                menuMisc.AddSubMenu(new Menu("Dont use R on", "DontUlt"));
                foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.Team != Player.Team))
                {
                    menuMisc.SubMenu("DontUlt")
                    .AddItem(
                        new MenuItem("DontUlt" + enemy.CharData.BaseSkinName, enemy.CharData.BaseSkinName).SetValue(
                            false));
                }
                Config.AddSubMenu(menuMisc);
            }


            DrawMenu = new Menu("Drawings", "Drawings");
            {
                DrawMenu.AddItem(
                    new MenuItem("QRange", "Q range").SetValue(
                        new Circle(false, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.AddItem(
                    new MenuItem("WRange", "W range").SetValue(
                        new Circle(true, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.AddItem(
                    new MenuItem("ERange", "E range").SetValue(
                        new Circle(false, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.AddItem(
                    new MenuItem("RRange", "R range").SetValue(
                        new Circle(false, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.AddItem(
                    new MenuItem("QERange", "QE range").SetValue(
                        new Circle(true, System.Drawing.Color.FromArgb(100, 255, 0, 255))));

                var dmgAfterComboItem = new MenuItem("DamageAfterCombo", "Draw Damage After Combo").SetValue(true);
                Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
                Utility.HpBarDamageIndicator.Enabled      = dmgAfterComboItem.GetValue <bool>();
                dmgAfterComboItem.ValueChanged           += delegate(object sender, OnValueChangeEventArgs eventArgs)
                {
                    Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue <bool>();
                };

                DrawMenu.AddItem(dmgAfterComboItem);
                ManaBarIndicator.Initialize();
                Config.AddSubMenu(DrawMenu);
            }
            Config.AddToMainMenu();

            //Add the events we are going to use:
            Game.OnUpdate           += Game_OnGameUpdate;
            Game.OnWndProc          += Game_OnWndProc;
            Orbwalking.BeforeAttack += Orbwalking_BeforeAttack;

            Obj_AI_Base.OnProcessSpellCast     += Obj_AI_Hero_OnProcessSpellCast;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;

            Drawing.OnDraw += Drawing_OnDraw;
            Game.PrintChat(ChampionName + " Loaded!");
        }
Exemplo n.º 3
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Player = ObjectManager.Player;

            if (Player.CharData.BaseSkinName != ChampionName)
            {
                return;
            }

            //Create the spells
            Q  = new Spell(SpellSlot.Q, 800);
            W  = new Spell(SpellSlot.W, 925);
            E  = new Spell(SpellSlot.E, 700);
            R  = new Spell(SpellSlot.R, 675);
            Eq = new Spell(SpellSlot.Q, Q.Range + 450);

            IgniteSlot = Player.GetSpellSlot("SummonerDot");

            Q.SetSkillshot(0.5f, 130f, 2000f, false, SkillshotType.SkillshotCircle);
            W.SetSkillshot(0.25f, 140f, 1600f, false, SkillshotType.SkillshotCircle);
            E.SetSkillshot(0.25f, (float)(45 * 0.5), 2500f, false, SkillshotType.SkillshotCircle);
            Eq.SetSkillshot(0.900f, 70f, 2100f, false, SkillshotType.SkillshotCircle);

            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            //Create the menu
            Config = new Menu(ChampionName, ChampionName, true).SetFontStyle(FontStyle.Regular, Color.GreenYellow);

            //Orbwalker submenu
            Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));

            // AssassinManager = new AssassinManager();
            //AssassinManager.Initialize();

            //Initialize the orbwalker and add it to the menu as submenu.
            Orbwalker = new SebbyLib.Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));

            //var menuKeys = new Menu("Keys", "Keys").SetFontStyle(FontStyle.Regular, Color.Aqua);
            Config.AddSubMenu(new Menu("Keys", "Keys").SetFontStyle(FontStyle.Regular, Color.Aqua));
            {
                Config.SubMenu("Keys").AddItem(
                    new MenuItem("Key.Combo", "Combo!").SetValue(
                        new KeyBind(Config.Item("Orbwalk").GetValue <KeyBind>().Key, KeyBindType.Press)))
                .SetFontStyle(FontStyle.Regular, Color.GreenYellow);
                Config.SubMenu("Keys").AddItem(
                    new MenuItem("Key.Harass", "Harass!").SetValue(
                        new KeyBind(Config.Item("Farm").GetValue <KeyBind>().Key, KeyBindType.Press)))
                .SetFontStyle(FontStyle.Regular, Color.Coral);
                Config.SubMenu("Keys").AddItem(
                    new MenuItem("Key.HarassT", "Harass (toggle)!").SetValue(
                        new KeyBind("Y".ToCharArray()[0], KeyBindType.Toggle)))
                .SetFontStyle(FontStyle.Regular, Color.Coral)
                .Permashow(true, "Syndra | Toggle Harass", Color.Aqua);
                Config.SubMenu("Keys").AddItem(
                    new MenuItem("Key.Lane", "Lane Clear!").SetValue(
                        new KeyBind(Config.Item("LaneClear").GetValue <KeyBind>().Key, KeyBindType.Press)))
                .SetFontStyle(FontStyle.Regular, Color.DarkKhaki);
                Config.SubMenu("Keys").AddItem(
                    new MenuItem("Key.Jungle", "Jungle Farm!").SetValue(
                        new KeyBind(Config.Item("LaneClear").GetValue <KeyBind>().Key, KeyBindType.Press)))
                .SetFontStyle(FontStyle.Regular, Color.DarkKhaki);
                Config.SubMenu("Keys").AddItem(
                    new MenuItem("Key.InstantQE", "Instant Q-E to Enemy").SetValue(
                        new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
                //Config.AddSubMenu(menuKeys);
            }

            Config.AddSubMenu(new Menu("Combo", "Combo"));
            {
                Config.SubMenu("Combo").AddItem(new MenuItem("UseQCombo", "Use Q").SetValue(true));
                Config.SubMenu("Combo").AddItem(new MenuItem("UseWCombo", "Use W").SetValue(true));
                Config.SubMenu("Combo").AddItem(new MenuItem("UseECombo", "Use E").SetValue(true));
                Config.SubMenu("Combo").AddItem(new MenuItem("UseQECombo", "Use QE").SetValue(true));
                Config.SubMenu("Combo").AddItem(new MenuItem("UseRCombo", "Use R").SetValue(true));
                Config.SubMenu("Combo").AddItem(new MenuItem("UseIgniteCombo", "Use Ignite").SetValue(true));
                //Config.AddSubMenu(menuCombo);
            }

            Config.AddSubMenu(new Menu("Harass", "Harass"));
            {
                Config.SubMenu("Harass").AddItem(new MenuItem("UseQHarass", "Use Q").SetValue(true));

                Config.SubMenu("Harass").AddItem(new MenuItem("UseWHarass", "Use W").SetValue(false));
                Config.SubMenu("Harass").AddItem(new MenuItem("UseEHarass", "Use E").SetValue(false));
                Config.SubMenu("Harass").AddItem(new MenuItem("UseQEHarass", "Use QE").SetValue(false));
                Config.SubMenu("Harass").AddItem(
                    new MenuItem("Harass.Mana", "Don't harass if mana < %").SetValue(new Slider(0)));
                //Config.AddSubMenu(menuHarass);
            }

            Config.AddSubMenu(new Menu("Lane Farm", "Farm"));
            {
                Config.SubMenu("Farm").AddItem(new MenuItem("EnabledFarm", "Enable! (On/Off: Mouse Scroll)").SetValue(true))
                .Permashow(true, "Syndra | Farm Mode Active", Color.Aqua);
                Config.SubMenu("Farm").AddItem(
                    new MenuItem("UseQFarm", "Use Q").SetValue(
                        new StringList(new[] { "Freeze", "LaneClear", "Both", "No" }, 2)));
                Config.SubMenu("Farm").AddItem(
                    new MenuItem("UseWFarm", "Use W").SetValue(
                        new StringList(new[] { "Freeze", "LaneClear", "Both", "No" }, 1)));
                Config.SubMenu("Farm").AddItem(
                    new MenuItem("UseEFarm", "Use E").SetValue(
                        new StringList(new[] { "Freeze", "LaneClear", "Both", "No" }, 3)));
                Config.SubMenu("Farm").AddItem(
                    new MenuItem("FreezeActive", "Freeze!").SetValue(
                        new KeyBind(Config.Item("Farm").GetValue <KeyBind>().Key, KeyBindType.Press)));
                Config.SubMenu("Farm").AddItem(new MenuItem("Lane.Mana", "Don't harass if mana < %").SetValue(new Slider(0)));
                //Config.AddSubMenu(menuFarm);
            }

            Config.AddSubMenu(new Menu("Jungle Farm", "JungleFarm"));
            {
                Config.SubMenu("JungleFarm").AddItem(new MenuItem("UseQJFarm", "Use Q").SetValue(true));
                Config.SubMenu("JungleFarm").AddItem(new MenuItem("UseWJFarm", "Use W").SetValue(true));
                Config.SubMenu("JungleFarm").AddItem(new MenuItem("UseEJFarm", "Use E").SetValue(true));
                //Config.AddSubMenu(menuJungle);
            }
            Config.AddSubMenu(new Menu("[R] Settings", "Rsettings"));
            {
                Config.SubMenu("Rsettings").AddSubMenu(new Menu("Dont [R] if it can be killed with", "DontRw"));
                Config.SubMenu("Rsettings").SubMenu("DontRw").AddItem(new MenuItem("DontRwParam", "Damage From").SetValue(new StringList(new[] { "All", "Either one", "None" })));
                Config.SubMenu("Rsettings").SubMenu("DontRw").AddItem(new MenuItem("DontRwQ", "[Q]").SetValue(true));
                Config.SubMenu("Rsettings").SubMenu("DontRw").AddItem(new MenuItem("DontRwW", "[W]").SetValue(true));
                Config.SubMenu("Rsettings").SubMenu("DontRw").AddItem(new MenuItem("DontRwE", "[E]").SetValue(true));
                Config.SubMenu("Rsettings").SubMenu("DontRw").AddItem(new MenuItem("DontRwA", "[AA]").SetValue(true));

                Config.SubMenu("Rsettings").AddSubMenu(new Menu("Dont use R on", "DontUlt"));
                foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.Team != Player.Team))
                {
                    Config.SubMenu("Rsettings").SubMenu("DontUlt").AddItem(new MenuItem("DontUlt" + enemy.CharData.BaseSkinName, enemy.CharData.BaseSkinName).SetValue(false));
                }
                Config.SubMenu("Rsettings").AddSubMenu(new Menu("Buff Check (Don't Ult)", "DontRbuff"));
                Config.SubMenu("Rsettings").SubMenu("DontRbuff").AddItem(new MenuItem("DontRbuffUndying", "Trynda's Ult").SetValue(true));
                Config.SubMenu("Rsettings").SubMenu("DontRbuff").AddItem(new MenuItem("DontRbuffJudicator", "Kayle's Ult").SetValue(true));
                Config.SubMenu("Rsettings").SubMenu("DontRbuff").AddItem(new MenuItem("DontRbuffAlistar", "Zilean's Ult").SetValue(true));
                Config.SubMenu("Rsettings").SubMenu("DontRbuff").AddItem(new MenuItem("DontRbuffZilean", "Alistar's Ult").SetValue(true));
                Config.SubMenu("Rsettings").SubMenu("DontRbuff").AddItem(new MenuItem("DontRbuffZac", "Zac's Passive").SetValue(true));
                Config.SubMenu("Rsettings").SubMenu("DontRbuff").AddItem(new MenuItem("DontRbuffAttrox", "Attrox's Passive").SetValue(true));
                Config.SubMenu("Rsettings").SubMenu("DontRbuff").AddItem(new MenuItem("DontRbuffSivir", "Sivir's Spell Shield").SetValue(true));
                Config.SubMenu("Rsettings").SubMenu("DontRbuff").AddItem(new MenuItem("DontRbuffMorgana", "Morgana's Black Shield").SetValue(true));
                Config.SubMenu("Rsettings").AddSubMenu(new Menu("OverKill target by %", "okR"));
                foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.Team != Player.Team))
                {
                    Config.SubMenu("Rsettings").SubMenu("okR").AddItem(new MenuItem("okR" + enemy.CharData.BaseSkinName, enemy.CharData.BaseSkinName).SetValue(new Slider(0)));
                }
                //Config.AddSubMenu(Menu);
            }

            Config.AddSubMenu(new Menu("Misc", "Misc"));
            {
                Config.SubMenu("Misc").AddItem(new MenuItem("InterruptSpells", "Interrupt spells").SetValue(true));
                Config.SubMenu("Misc").AddItem(new MenuItem("YasuoWall", "Yasuo Windwall Check").SetValue(true));
                Config.SubMenu("Misc").AddItem(
                    new MenuItem("CastQE", "QE closest to cursor").SetValue(
                        new KeyBind('T', KeyBindType.Press)));

                //Config.AddSubMenu(menuMisc);
            }



            DrawMenu = new Menu("Drawings", "Drawings");
            {
                DrawMenu.AddItem(
                    new MenuItem("QRange", "Q range").SetValue(
                        new Circle(false, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.AddItem(
                    new MenuItem("WRange", "W range").SetValue(
                        new Circle(true, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.AddItem(
                    new MenuItem("ERange", "E range").SetValue(
                        new Circle(false, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.AddItem(
                    new MenuItem("RRange", "R range").SetValue(
                        new Circle(false, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
                DrawMenu.AddItem(
                    new MenuItem("QERange", "QE range").SetValue(
                        new Circle(true, System.Drawing.Color.FromArgb(100, 255, 0, 255))));

                var dmgAfterComboItem = new MenuItem("DamageAfterCombo", "Draw Damage After Combo").SetValue(true);
                Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
                Utility.HpBarDamageIndicator.Enabled      = dmgAfterComboItem.GetValue <bool>();
                dmgAfterComboItem.ValueChanged           += delegate(object sender, OnValueChangeEventArgs eventArgs)
                {
                    Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue <bool>();
                };

                DrawMenu.AddItem(dmgAfterComboItem);
                ManaBarIndicator.Initialize();
                Config.AddSubMenu(DrawMenu);
            }
            Config.AddToMainMenu();

            //Add the events we are going to use:
            Game.OnUpdate  += Game_OnGameUpdate;
            Game.OnWndProc += Game_OnWndProc;
            SebbyLib.Orbwalking.BeforeAttack += Orbwalking_BeforeAttack;

            Obj_AI_Base.OnProcessSpellCast     += Obj_AI_Hero_OnProcessSpellCast;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;

            Drawing.OnDraw += Drawing_OnDraw;
            Game.PrintChat("<font size='30'>Syndra</font> <font color='#b756c5'>Updated by LordZEDith</font>");
        }