Exemplo n.º 1
1
        private static void Game_OnGameLoad(EventArgs args)
        {
            EQDrawList = new List<Vector3>();
            Player = ObjectManager.Player;
            if (Player.ChampionName != ChampionName) return;
            Q = new Spell(SpellSlot.Q, 700f);
            Q.SetSkillshot(0.5f, 70f, float.MaxValue, false, SkillshotType.SkillshotLine);

            W = new Spell(SpellSlot.W, 300f);

            E = new Spell(SpellSlot.E, 830f);
            E.SetSkillshot(0.5f, 70f, float.MaxValue, false, SkillshotType.SkillshotCircle);
            Config = new Menu("J4Helper", "J4Helper", true);
            //Orbwalker
            Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
            Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));

            //Misc
            Config.AddSubMenu(new Menu("Keys", "Keys"));
            Config.SubMenu("Keys")
                .AddItem(
                    new MenuItem("EQMouse", "EQ to Mouse").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
            Config.AddToMainMenu();
            Game.OnUpdate += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Game.PrintChat("J4Helper Loaded.");
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
        }
Exemplo n.º 2
0
        private void Menu()
        {
            try
            {
                var Combo = new Menu("Combo", "Combo");
                {
                    Combo.AddItem(new MenuItem("Soraka_CUse_Q", "Use Q").SetValue(true));
                    Combo.AddItem(new MenuItem("Soraka_CUse_E", "Use E").SetValue(true));
                    Combo.AddItem(new MenuItem("CKey", "Combo Key").SetValue(new KeyBind(32, KeyBindType.Press)));
                }
                _MainMenu.AddSubMenu(Combo);

                var Harass = new Menu("Harass", "Harass");
                {
                    Harass.AddItem(new MenuItem("Soraka_HUse_Q", "Use Q").SetValue(true));
                    Harass.AddItem(new MenuItem("Soraka_HUse_E", "Use E").SetValue(true));
                    Harass.AddItem(new MenuItem("Soraka_Auto_HEnable", "Auto Harass").SetValue(true));
                    Harass.AddItem(new MenuItem("Soraka_HMana", "Min. Mana %").SetValue(new Slider(50, 0, 100)));
                    Harass.AddItem(new MenuItem("HKey", "Harass Key").SetValue(new KeyBind('C', KeyBindType.Press)));
                }
                _MainMenu.AddSubMenu(Harass);

                var KillSteal = new Menu("KillSteal", "KillSteal");
                {
                    KillSteal.AddItem(new MenuItem("Soraka_KUse_Q", "Use Q").SetValue(true));
                    KillSteal.AddItem(new MenuItem("Soraka_KUse_E", "Use E").SetValue(true));
                }
                _MainMenu.AddSubMenu(KillSteal);

                var Misc = new Menu("Misc", "Misc");
                {
                    Misc.SubMenu("Heal W").AddItem(new MenuItem("Soraka_WMin", "Min Ally HP %").SetValue(new Slider(70, 0, 100)));
                    Misc.SubMenu("Heal W").AddItem(new MenuItem("Soraka_WMMin", "Min My HP %").SetValue(new Slider(30, 0, 100)));
                    Misc.SubMenu("Heal W").AddItem(new MenuItem("Soraka_WMinEnable", "Enable").SetValue(true));
                    Misc.SubMenu("Heal R").AddItem(new MenuItem("Soraka_RMin", "Min Ally HP %").SetValue(new Slider(15, 0, 100)));
                    Misc.SubMenu("Heal R").AddItem(new MenuItem("Soraka_RMinEnable", "Enable").SetValue(true));
                    Misc.AddItem(new MenuItem("Soraka_AntiE", "Anti-Gabcloser E").SetValue(true));
                    Misc.AddItem(new MenuItem("Soraka_InterE", "Interrupt E").SetValue(true));
                }
                _MainMenu.AddSubMenu(Misc);

                var Draw = new Menu("Draw", "Draw");
                {
                    Draw.AddItem(new MenuItem("Soraka_QRange", "Q Range").SetValue(false));
                    Draw.AddItem(new MenuItem("Soraka_WRange", "W Range").SetValue(false));
                    Draw.AddItem(new MenuItem("Soraka_ERange", "E Range").SetValue(false));
                    Draw.AddItem(new MenuItem("Soraka_WAlly", "Draw line Me to dangerous Ally").SetValue(false));
                    Draw.AddItem(new MenuItem("Soraka_Indicator", "Draw Damage Indicator").SetValue(false));
                }
                _MainMenu.AddSubMenu(Draw);
            }
            catch (Exception)
            {
                if (NowTime() > ErrorTime)
                {
                    Game.PrintChat(ChampName + " in FreshBooster isn't Load. Error Code 02");
                    ErrorTime = TickCount(10000);
                }
            }
        }
Exemplo n.º 3
0
        public BaseChamp(string szChampName)
        {
            Text = new Font(Drawing.Direct3DDevice,
                new FontDescription
                {
                    FaceName = "Malgun Gothic",
                    Height = 15,
                    OutputPrecision = FontPrecision.Default,
                    Quality = FontQuality.ClearTypeNatural
                });

            Config = new Menu(String.Format("Synx {0} !", szChampName), szChampName, true);

            TargetSelector.AddToMenu(Config.SubMenu("Target Selector"));
            Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));

            activator = new Menu("Activator", "activator");
            new Smite(TargetSelector.DamageType.Magical, activator);
            new Ignite(TargetSelector.DamageType.Magical, activator);

            drawing = new Menu("Drawings", "drawings");

            Config.AddSubMenu(activator);
            Config.AddSubMenu(drawing);
            SpellDatabase.InitalizeSpellDatabase();
        }
Exemplo n.º 4
0
        public static void Initialize()
        {
            #region Initialize Menu
            Config = new Menu("SPredictioner", "spredictioner", true);
            TargetSelector.AddToMenu(Config.SubMenu("Target Selector"));
            Config.AddItem(new MenuItem("COMBOKEY", "Combo").SetValue(new KeyBind(32, KeyBindType.Press)));
            Config.AddItem(new MenuItem("HARASSKEY", "Harass").SetValue(new KeyBind('C', KeyBindType.Press)));
            Config.AddItem(new MenuItem("ENABLED", "Enabled").SetValue(true));
            SPrediction.Prediction.Initialize(Config);
            Config.SubMenu("SPRED").AddItem(new MenuItem("SPREDHITC", "Hit Chance").SetValue(new StringList(ShineCommon.Utility.HitchanceNameArray, 2)));
            Config.AddToMainMenu();
            #endregion

            #region Initialize Events
            Spellbook.OnCastSpell += EventHandlers.Spellbook_OnCastSpell;
            Obj_AI_Hero.OnProcessSpellCast += EventHandlers.Obj_AI_Hero_OnProcessSpellCast;
            #endregion

            #region Initialize Spells
            foreach (var spell in SpellDatabase.Spells)
            {
                if (spell.ChampionName == ObjectManager.Player.CharData.BaseSkinName)
                {
                    Spells[(int)spell.Slot] = new Spell(spell.Slot, spell.Range);
                    Spells[(int)spell.Slot].SetSkillshot(spell.Delay / 1000, spell.Radius, spell.MissileSpeed, spell.Collisionable, spell.Type);
                }
            }
            #endregion
        }
Exemplo n.º 5
0
        private static void onGameLoad(EventArgs args)
        {
            Spellbook.OnCastSpell += Spellbook_OnCastSpell;
            Obj_AI_Base.OnIssueOrder += GameObject_issueOrder;
            Game.OnWndProc += Game_OnWndProc;
            Drawing.OnDraw += OnDraw;

            Option = new Menu("StreamSharp", "Stream Sharp", true);
            Option.SubMenu("Keys").AddItem(new MenuItem("X", "LastHit").SetValue((new KeyBind("X".ToCharArray()[0], KeyBindType.Press))));
            Option.SubMenu("Keys").AddItem(new MenuItem("C", "Harras").SetValue((new KeyBind("C".ToCharArray()[0], KeyBindType.Press))));
            Option.SubMenu("Keys").AddItem(new MenuItem("V", "Clear").SetValue((new KeyBind("V".ToCharArray()[0], KeyBindType.Press))));
            Option.SubMenu("Keys").AddItem(new MenuItem("Space", "Combo").SetValue((new KeyBind(32, KeyBindType.Press))));
            Option.AddToMainMenu();

            CursorAttack = new Render.Sprite(Properties.Resources.Attack, new Vector2((Drawing.Width / 2) - 500, (Drawing.Height / 2) - 350));
            CursorAttack.Add(0);
            CursorAttack.Visible = false;
            CursorAttack.OnDraw();

            CursorMove = new Render.Sprite(Properties.Resources.normal, new Vector2((Drawing.Width / 2) - 500, (Drawing.Height / 2) - 350));
            CursorMove.Add(0);
            CursorMove.OnDraw();


        }
Exemplo n.º 6
0
        static void LoadMenu()
        {
            //Start Menu
            _menu = new Menu("PacketSharp", "PacketSharp", true);

            String[] find = { "OnCreateGromp", "OnMissileHit", "OnAttack", "OnDisengaged", "OnMonsterSkill", "Custom" };
            _menu.AddItem(new MenuItem("finding", "Finding Header").SetValue(new StringList(find,5)));

            //Custom Header
            _menu.AddSubMenu(new Menu("Custom Header", "Custom Header"));
            _menu.SubMenu("Custom Header").AddItem(new MenuItem("customHeader1", "From Header").SetValue(new Slider(1,1,450)));
            _menu.SubMenu("Custom Header").AddItem(new MenuItem("customHeader2", "To Header").SetValue(new Slider(450, 1, 450)));
            _menu.SubMenu("Custom Header").AddItem(new MenuItem("customLenght1", "From Lenght").SetValue(new Slider(1, 1, 450)));
            _menu.SubMenu("Custom Header").AddItem(new MenuItem("customLenght2", "To Lenght").SetValue(new Slider(450, 1, 450)));

            //Objects
            _menu.AddSubMenu(new Menu("Objects", "Objects"));
            _menu.SubMenu("Objects").AddItem(new MenuItem("getobject", "Get Object").SetValue(true));
            _menu.SubMenu("Objects").AddItem(new MenuItem("obj1", "Obj_AI_Hero").SetValue(false));
            _menu.SubMenu("Objects").AddItem(new MenuItem("obj2", "Obj_AI_Minion").SetValue(true));
            _menu.SubMenu("Objects").AddItem(new MenuItem("obj3", "Obj_AI_Turret").SetValue(false));

            //Misc
            _menu.AddItem(new MenuItem("packetobjknown", "Only get packets with known Objects").SetValue(false));
            _menu.AddItem(new MenuItem("packetobjmouse", "Only print Objects close to mouse (Console)").SetValue(false));
            _menu.AddItem(new MenuItem("packetdata", "Write Packet Data(Console)").SetValue(false));
            _menu.AddItem(new MenuItem("headersblock", "Add headers to block list").SetValue(false));
            _menu.AddItem(new MenuItem("packetamount", "Amount of packets to draw").SetValue(new Slider(3, 0, 10)));
            _menu.AddItem(new MenuItem("cursorrange", "Max object dist from cursor").SetValue(new Slider(300, 100, 1000)));

            _menu.AddToMainMenu();
        }
Exemplo n.º 7
0
 private static void Game_OnGameLoad(EventArgs args)
 {
     if (ObjectManager.Player.ChampionName != "Diana")
     return;
       _q = new Spell(SpellSlot.Q, 830);
       _q2 = new Spell(SpellSlot.Q, 350);
       _w = new Spell(SpellSlot.W, 200);
       _e = new Spell(SpellSlot.E, 350);
       _r = new Spell(SpellSlot.R, 825);
       _q.SetSkillshot(0.25f, 90, 900, false, SkillshotType.SkillshotCircle);
       _q2.SetSkillshot(0.25f, 60, 2500, false, SkillshotType.SkillshotCircle);
       _config = new Menu("Diana", "Diana", true);
       _orbwalker = new Orbwalking.Orbwalker(_config.SubMenu("Orbwalking"));
       var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
       TargetSelector.AddToMenu(targetSelectorMenu);
       _config.AddSubMenu(targetSelectorMenu);
       _config.AddItem(new MenuItem("ec", "E mode").SetValue(new StringList(new[]{"after W", "in mid jump", "E off"})));
       _config.SubMenu("autokill").AddItem(new MenuItem("autokil", "autokill").SetValue(true));
       _config.SubMenu("autokill").AddItem(new MenuItem("kill", "autokill only if <= x enemys in 1600 range").SetValue(new Slider(5, 5, 1)));
       foreach (var hero in HeroManager.Enemies)
     {
       _config.SubMenu("autokill").SubMenu("autokill champion select").AddItem(new MenuItem("auto" + hero.ChampionName, hero.ChampionName).SetValue(false));
     }
       _config.AddToMainMenu();
       Obj_AI_Base.OnProcessSpellCast += oncast;
       Game.OnUpdate += Game_OnUpdate;
 }
Exemplo n.º 8
0
        public static void Initialize()
        {
            #region Initialize Menu
            Config = new Menu("SPredictioner", "spredictioner", true);
            Config.AddItem(new MenuItem("COMBOKEY", "Combo").SetValue(new KeyBind(32, KeyBindType.Press)));
            Config.AddItem(new MenuItem("HARASSKEY", "Harass").SetValue(new KeyBind('C', KeyBindType.Press)));
            Config.AddItem(new MenuItem("ENABLED", "Enabled").SetValue(true));

            #region Initialize Spells
            Menu skillshots = new Menu("Skillshots", "spredskillshots");
            foreach (var spell in SpellDatabase.Spells)
            {
                if (spell.ChampionName == ObjectManager.Player.CharData.BaseSkinName)
                {
                    Spells[(int)spell.Slot] = new Spell(spell.Slot, spell.Range);
                    Spells[(int)spell.Slot].SetSkillshot(spell.Delay / 1000f, spell.Radius, spell.MissileSpeed, spell.Collisionable, spell.Type);
                    skillshots.AddItem(new MenuItem(String.Format("{0}{1}", spell.ChampionName, spell.Slot), "Convert Spell " + spell.Slot.ToString()).SetValue(true));
                }
            }
            Config.AddSubMenu(skillshots);
            #endregion

            SPrediction.Prediction.Initialize(Config, "SPREDFORSPREDICTONER");
            Config.SubMenu("SPREDFORSPREDICTONER").Name = "SPrediction";
            Config.SubMenu("SPREDFORSPREDICTONER").AddItem(new MenuItem("SPREDHITC", "Hit Chance").SetValue(new StringList(ShineCommon.Utility.HitchanceNameArray, 2))).SetTooltip("High is recommended");
            Config.AddToMainMenu();
            #endregion

            #region Initialize Events
            Spellbook.OnCastSpell += EventHandlers.Spellbook_OnCastSpell;
            Obj_AI_Hero.OnProcessSpellCast += EventHandlers.Obj_AI_Hero_OnProcessSpellCast;
            #endregion
        }
Exemplo n.º 9
0
        public static void Initialize(Menu config, string checkUrl, string newsUrl = "")
        {
            MenuConfig = config;
            CheckUrl = checkUrl;
            NewsUrl = newsUrl;

            if (config.SubMenu("Credits") != null)
            {
                var Menu = config.SubMenu("Credits");
                Menu.AddSeparator();
                Menu.AddBool("檢查版本", "檢查版本", true);
                Menu.AddBool("消息", "提示消息", true);
            }
            else
            {
                var Menu = config.AddMenu("Credits", "腳本訊息");
                Menu.AddLabel("作者:TwCn");
                Menu.AddLabel("如果你喜歡這個脚本,記得在數據庫中點綠色讚");
                Menu.AddSeparator();
                Menu.AddBool("檢查版本", "檢查版本", true);
                Menu.AddBool("消息", "提示消息", true);
            }

            CustomEvents.Game.OnGameLoad += Game_OnGameLoad;
        }
Exemplo n.º 10
0
 private static void Game_OnGameLoad(EventArgs args)
 {
     if (ObjectManager.Player.ChampionName != "Lucian")
       return;
     _q = new Spell(SpellSlot.Q, 700);
     _q2 = new Spell(SpellSlot.Q, 1200);
     _w = new Spell(SpellSlot.W, 700);
     _w2 = new Spell(SpellSlot.W, 1100);
     _q2.SetSkillshot(0.25f, 70, 3000, false, SkillshotType.SkillshotLine);
     _w.SetSkillshot(0.25f, 70, 1500, false, SkillshotType.SkillshotLine);
     _w2.SetSkillshot(0.25f, 70, 1500, true, SkillshotType.SkillshotLine);
     _config = new Menu("Lucian", "Lucian", true);
     _orbwalker = new Orbwalking.Orbwalker(_config.SubMenu("Orbwalking"));
     var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
     TargetSelector.AddToMenu(targetSelectorMenu);
     _config.AddSubMenu(targetSelectorMenu);
     _config.AddItem(new MenuItem("qexk", "Q ex in combo only if killable").SetValue(true));
     _config.AddItem(new MenuItem("qexk2", "Q ex in combo only selected champion in harass menu").SetValue(true));
     foreach (var hero in HeroManager.Enemies)
       {
         _config.SubMenu("Harass").AddItem(new MenuItem("auto" + hero.ChampionName, hero.ChampionName).SetValue(select.Contains(hero.ChampionName)));
       }
     _config.SubMenu("Harass").AddItem(new MenuItem("manah", "%mana").SetValue(new Slider(33, 100, 0)));
     _config.AddToMainMenu();
     Obj_AI_Base.OnProcessSpellCast += oncast;
     Orbwalking.AfterAttack += Orbwalking_AfterAttack;
     Game.OnUpdate += Game_OnUpdate;
 }
Exemplo n.º 11
0
        private void Menu()
        {
            try
            {
                var Combo = new Menu("Combo", "Combo");
                {
                    Combo.AddItem(new MenuItem("Braum_CUse_Q", "Use Q").SetValue(true));
                    Combo.AddItem(new MenuItem("Braum_CUse_Q_Hit", "Q HitChance").SetValue(new Slider(3, 1, 6)));
                    Combo.AddItem(new MenuItem("Braum_CUse_R", "Use R").SetValue(true));
                    Combo.AddItem(new MenuItem("CKey", "Combo Key").SetValue(new KeyBind(32, KeyBindType.Press)));
                }
                _MainMenu.AddSubMenu(Combo);

                var Harass = new Menu("Harass", "Harass");
                {
                    Harass.AddItem(new MenuItem("Braum_HUse_Q", "Use Q").SetValue(true));
                    Harass.AddItem(new MenuItem("Braum_Auto_HEnable", "Auto Harass").SetValue(true));
                    Harass.AddItem(new MenuItem("Braum_HMana", "Min. Mana %").SetValue(new Slider(50, 0, 100)));
                    Harass.AddItem(new MenuItem("HKey", "Harass Key").SetValue(new KeyBind('C', KeyBindType.Press)));
                }
                _MainMenu.AddSubMenu(Harass);

                var KillSteal = new Menu("KillSteal", "KillSteal");
                {
                    KillSteal.AddItem(new MenuItem("Braum_KUse_Q", "Use Q").SetValue(true));
                    KillSteal.AddItem(new MenuItem("Braum_KUse_R", "Use R").SetValue(true));
                }
                _MainMenu.AddSubMenu(KillSteal);

                var Misc = new Menu("Misc", "Misc");
                {
                    Misc.AddItem(new MenuItem("Braum_Flee", "Flee Key").SetValue(new KeyBind('G', KeyBindType.Press)));
                    Misc.AddItem(new MenuItem("Braum_AutoW", "Auto W").SetValue(true));
                    Misc.AddItem(new MenuItem("Braum_AutoE", "Auto E").SetValue(true));
                    Misc.SubMenu("Interrupt").AddItem(new MenuItem("Braum_InterR", "Use R").SetValue(true));
                    Misc.SubMenu("Anti-GapCloser").AddItem(new MenuItem("Braum_GapQ", "Use Q").SetValue(true));
                    Misc.SubMenu("Anti-GapCloser").AddItem(new MenuItem("Braum_GapR", "Use R").SetValue(true));
                }
                _MainMenu.AddSubMenu(Misc);

                var Draw = new Menu("Draw", "Draw");
                {
                    Draw.AddItem(new MenuItem("Braum_Draw_Q", "Draw Q").SetValue(false));
                    Draw.AddItem(new MenuItem("Braum_Draw_W", "Draw W").SetValue(false));
                    Draw.AddItem(new MenuItem("Braum_Draw_R", "Draw R").SetValue(false));
                    Draw.AddItem(new MenuItem("Braum_Indicator", "Draw Damage Indicator").SetValue(true));
                }
                _MainMenu.AddSubMenu(Draw);
            }
            catch (Exception)
            {
                if (NowTime() > ErrorTime)
                {
                    Game.PrintChat(ChampName + " in FreshBooster isn't Load. Error Code 02");
                    ErrorTime = TickCount(10000);
                }
            }
        }
Exemplo n.º 12
0
        public static void Menu()
        {
            try
            {
                _MainMenu = new Menu("프레시 블리츠크랭크", "FreshBlitzcrank", true).SetFontStyle(System.Drawing.FontStyle.Regular, Color.Aqua); ; ;
                _MainMenu.AddToMainMenu();

                Menu orbwalkerMenu = new Menu("오브워커", "OrbWalker");
                _OrbWalker = new Orbwalking.Orbwalker(orbwalkerMenu);
                _MainMenu.AddSubMenu(orbwalkerMenu);

                var targetSelectorMenu = new Menu("타겟셀렉터", "TargetSelector");
                TargetSelector.AddToMenu(targetSelectorMenu);
                _MainMenu.AddSubMenu(targetSelectorMenu);

                var Combo = new Menu("콤보", "Combo");
                {
                    Combo.AddItem(new MenuItem("CUse_Q", "Q 사용").SetValue(true));
                    Combo.AddItem(new MenuItem("CUse_W", "W 사용").SetValue(true));
                    Combo.AddItem(new MenuItem("CUse_E", "E 사용").SetValue(true));
                    Combo.AddItem(new MenuItem("CUse_R", "R 사용").SetValue(true));
                    Combo.AddItem(new MenuItem("CUseQ_Hit", "그랩정확도 (6추천)").SetValue(new Slider(6,1,6)));
                    Combo.AddItem(new MenuItem("CKey", "콤보 키").SetValue(new KeyBind(32, KeyBindType.Press)));
                }
                _MainMenu.AddSubMenu(Combo);                

                var Misc = new Menu("기타", "Misc");
                {                    
                    foreach(var enemy in ObjectManager.Get<Obj_AI_Hero>())
                    {
                        if(enemy.Team != Program.Player.Team)
                        {
                            Misc.SubMenu("그랩설정").AddItem(new MenuItem("GrabSelect" + enemy.ChampionName, enemy.ChampionName)).SetValue(new StringList(new[] { "사용", "미사용", "자동" }));
                        }
                    }
                    Misc.SubMenu("방해").AddItem(new MenuItem("InterQ", "Q 사용").SetValue(true));
                    Misc.SubMenu("방해").AddItem(new MenuItem("InterE", "E 사용").SetValue(true));
                    Misc.SubMenu("방해").AddItem(new MenuItem("InterR", "R 사용").SetValue(true));
                }
                _MainMenu.AddSubMenu(Misc);

                var Draw = new Menu("드로잉", "Draw");
                {
                    Draw.AddItem(new MenuItem("Draw_Q", "Q 사거리").SetValue(false));                    
                    Draw.AddItem(new MenuItem("Draw_R", "R 사거리").SetValue(false));
                    Draw.AddItem(new MenuItem("Indicator", "데미지 계산 드로잉").SetValue(true));
                }
                _MainMenu.AddSubMenu(Draw);
            } // try end     
            catch (Exception e)
            {
                Console.Write(e);
                Game.PrintChat("FreshBlitzcrank is not working. plz send message by KorFresh (Code 1)");
            }           
            
        }
Exemplo n.º 13
0
        public static void Game_OnGameLoad(EventArgs args)
        {
            try
            {
                // string promptValue = Prompt.ShowDialog("Test", "123");
                //var input = "";
                //var c = SimpleDialog.InputBox.ShowDialog("Bad Mannered", "Input a douchey thing to say", out input);

                //CustomEvents.Game.PrintChat("Riven");
                Config = new Menu("Asshole", "Asshole", true);
                //Orbwalker
                //Config.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
                //Riven.orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker"));
                //TS
                //var TargetSelectorMenu = new Menu("Target Selector", "Target Selector");
                //SimpleTs.AddToMenu(TargetSelectorMenu);
                //Config.AddSubMenu(TargetSelectorMenu);

                Config.AddSubMenu(new Menu("Combo", "combo"));
                Config.SubMenu("combo")
                .AddItem(new MenuItem("combopress", "Asshole"))
                .SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press));
                Config.SubMenu("combo")
                .AddItem(new MenuItem("add", "Add Multiple Phrases").SetValue(new KeyBind("G".ToCharArray()[0], KeyBindType.Press)));
                //.SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press));
                Config.SubMenu("combo").AddItem(new MenuItem("combopress2", "Save Input?").SetValue(false));
                //Config.SubMenu("combo")
                //    .AddItem(new MenuItem("combopress2", "Aborted"))
                //    .SetValue(new KeyBind("I".ToCharArray()[0], KeyBindType.Press));
                //Config.SubMenu("combo")
                //    .AddItem(new MenuItem("combopress3", "F**k You"))
                //    .SetValue(new KeyBind("U".ToCharArray()[0], KeyBindType.Press));
                //Config.SubMenu("combo").AddItem(new MenuItem("laugh", "Cancel w/ Laugh")).SetValue(false);
                //Config.SubMenu("combo").AddItem(new MenuItem("dance", "Cancel w/ Dance")).SetValue(true);


                Config.AddToMainMenu();


                Game.OnGameUpdate += OnGameUpdate;

                ////CustomEvents.Game.OnGameSendPacket += OnGameSendPacket;
                ////CustomEvents.Game.OnGameProcessPacket += OnGameProcessPacket;
                //Q = new Spell(SpellSlot.Q, 260);
                //W = new Spell(SpellSlot.W, 125);
                //E = new Spell(SpellSlot.E, 325);
                //R = new Spell(SpellSlot.R, 900);
                //R.SetSkillshot(.3f, 200, 1450, false, SkillshotType.SkillshotCone);
                ////Drawing.OnDraw += Draws;
            }

            catch (Exception e)
            {
                Console.WriteLine("test: " + e.ToString());
            }
        }
Exemplo n.º 14
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != ChampionName)
            {
                return;
            }

            _q = new Spell(SpellSlot.Q, 850);
            _w = new Spell(SpellSlot.W, 850);
            _e = new Spell(SpellSlot.E, 700);
            _r = new Spell(SpellSlot.R, 825);

            _igniteSlot = ObjectManager.Player.GetSpellSlot("SummonerDot");

            const double ultAngle = 80 * Math.PI / 180;
            const float fUltAngle = (float) ultAngle;

            _q.SetSkillshot(0.60f, 75f, int.MaxValue, false, SkillshotType.SkillshotCircle);
            _w.SetSkillshot(0.50f, 106f, 2500f, false, SkillshotType.SkillshotCircle);
            _r.SetSkillshot(0.30f, fUltAngle, int.MaxValue, false, SkillshotType.SkillshotCone);

            SpellList.Add(_q);
            SpellList.Add(_w);
            SpellList.Add(_e);

            _config = new Menu(ChampionName, ChampionName, true);

            _config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
            _orbwalker = new Orbwalking.Orbwalker(_config.SubMenu("Orbwalking"));

            _config.AddSubMenu(new Menu("Combo", "Combo"));
            _config.SubMenu("Combo")
                .AddItem(new MenuItem("ComboActive", "Combo!").SetValue(new KeyBind(32, KeyBindType.Press)));

            _config.AddSubMenu(new Menu("Drawings", "Drawings"));
            _config.SubMenu("Drawings")
                .AddItem(
                    new MenuItem("QRange", "Q range").SetValue(new Circle(true, Color.FromArgb(255, 255, 255, 255))));
            _config.SubMenu("Drawings")
                .AddItem(
                    new MenuItem("WRange", "W range").SetValue(new Circle(false, Color.FromArgb(255, 255, 255, 255))));
            _config.SubMenu("Drawings")
                .AddItem(
                    new MenuItem("ERange", "E range").SetValue(new Circle(false, Color.FromArgb(255, 255, 255, 255))));

            _config.AddSubMenu(new Menu("Extra", "Extra"));
            _config.SubMenu("Extra")
                .AddItem(new MenuItem("Passive", "Keep Passive Up").SetValue(new KeyBind(114, KeyBindType.Toggle)));
            _config.SubMenu("Extra").AddItem(new MenuItem("Minions", "Use Q on minions").SetValue(true));
            _config.AddToMainMenu();

            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnUpdate += Game_OnGameUpdate;
            Orbwalking.BeforeAttack += Orbwalking_BeforeAttack;
            Game.OnSendPacket += Game_OnGameSendPacket;
        }
Exemplo n.º 15
0
        public static void Menu()
        {
            try // try start
            {
                _MainMenu = new Menu("FreshBlitzcrank", "FreshBlitzcrank", true).SetFontStyle(System.Drawing.FontStyle.Regular, Color.Aqua); ; ;
                _MainMenu.AddToMainMenu();

                Menu orbwalkerMenu = new Menu("OrbWalker", "OrbWalker");
                _OrbWalker = new Orbwalking.Orbwalker(orbwalkerMenu);
                _MainMenu.AddSubMenu(orbwalkerMenu);

                var targetSelectorMenu = new Menu("Target Selector", "TargetSelector");
                TargetSelector.AddToMenu(targetSelectorMenu);
                _MainMenu.AddSubMenu(targetSelectorMenu);

                var Combo = new Menu("Combo", "Combo");
                {
                    Combo.AddItem(new MenuItem("CUse_Q", "Use Q").SetValue(true));
                    Combo.AddItem(new MenuItem("CUse_W", "Use W").SetValue(true));
                    Combo.AddItem(new MenuItem("CUse_E", "Use E").SetValue(true));
                    Combo.AddItem(new MenuItem("CUse_R", "Use R").SetValue(true));
                    Combo.AddItem(new MenuItem("CUseQ_Hit", "Q HitChance").SetValue(new Slider(6,1,6)));
                    Combo.AddItem(new MenuItem("CKey", "Combo Key").SetValue(new KeyBind(32, KeyBindType.Press)));
                }
                _MainMenu.AddSubMenu(Combo);                

                var Misc = new Menu("Misc", "Misc");
                {                    
                    foreach(var enemy in ObjectManager.Get<Obj_AI_Hero>())
                    {
                        if(enemy.Team != Program.Player.Team)
                        {
                            Misc.SubMenu("SetGrab").AddItem(new MenuItem("GrabSelect" + enemy.ChampionName, enemy.ChampionName)).SetValue(new StringList(new[] { "Enable", "Dont", "Auto" }));
                        }
                    }
                    Misc.SubMenu("Interrupt").AddItem(new MenuItem("InterQ", "Use Q").SetValue(true));
                    Misc.SubMenu("Interrupt").AddItem(new MenuItem("InterE", "Use E").SetValue(true));
                    Misc.SubMenu("Interrupt").AddItem(new MenuItem("InterR", "Use R").SetValue(true));
                }
                _MainMenu.AddSubMenu(Misc);

                var Draw = new Menu("Draw", "Draw");
                {
                    Draw.AddItem(new MenuItem("Draw_Q", "Draw Q").SetValue(false));                    
                    Draw.AddItem(new MenuItem("Draw_R", "Draw R").SetValue(false));
                    Draw.AddItem(new MenuItem("Indicator", "Draw Damage Indicator").SetValue(true));
                }
                _MainMenu.AddSubMenu(Draw);
            } // try end     
            catch (Exception e)
            {
                Console.Write(e);
                Game.PrintChat("FreshBlitzcrank is not working. plz send message by KorFresh (Code 1)");
            }           
            
        }
Exemplo n.º 16
0
        public void AddSupportmode(Menu menu)
        {
            menu.AddSubMenu(new Menu("鏀寔妯″紡", "SupportMode"));
            menu.SubMenu("SupportMode").AddItem(new MenuItem("sup_sep0", "===== 鏀寔妯″紡"));
            menu.SubMenu("SupportMode").AddItem(new MenuItem("SubMode", "鏀寔妯″紡").SetValue(false));
            menu.SubMenu("SupportMode").AddItem(new MenuItem("sup_sep1", "========="));

            HaveSupportMode = true;
            Game.OnGameSendPacket += GameSendPacker_Supportmode;
        }
Exemplo n.º 17
0
        private static Menu HumanizerMenu()
        {
            var humanizerMenu = new Menu("Humanizer", "Humanizer");

            humanizerMenu.SubMenu("Humanizer").AddItem(new MenuItem("minDelay", "Minimum delay for actions (ms)").SetValue(new Slider(10, 0, 200)));
            humanizerMenu.SubMenu("Humanizer").AddItem(new MenuItem("maxDelay", "Maximum delay for actions (ms)").SetValue(new Slider(75, 0, 250)));
            humanizerMenu.SubMenu("Humanizer").AddItem(new MenuItem("doHuman", "Humanize").SetValue(true));

            return humanizerMenu;
        }
Exemplo n.º 18
0
        private static Menu DrawingMenu()
        {
            var drawMenu = new Menu("Drawing Settings", "Drawings");
            drawMenu
                .AddItem(
                    new MenuItem("drawoptions", "Drawing Mode Mode").SetValue(
                        new StringList(new[] { "Normal Mode", "Colorblind Mode" })));
            drawMenu.SubMenu("Drawings").AddItem(new MenuItem("Draw", "Display Drawings").SetValue(true));
            drawMenu.SubMenu("Drawings").AddItem(new MenuItem("qDraw", "Draw Q").SetValue(true));
            drawMenu.SubMenu("Drawings").AddItem(new MenuItem("eDraw", "Draw E").SetValue(true));
            drawMenu.SubMenu("Drawings").AddItem(new MenuItem("wDraw", "Draw W").SetValue(true));
            drawMenu.SubMenu("Drawings").AddItem(new MenuItem("stackDraw", "Stack Count").SetValue(true));
            drawMenu.SubMenu("Drawings").AddItem(new MenuItem("notdraw", "Draw Floating Text").SetValue(true));
            drawMenu.SubMenu("Drawings").AddItem(new MenuItem("keyBindDisplay", "Display Keybinds").SetValue(true));  

            var drawDamageMenu = new MenuItem("RushDrawEDamage", "Combo Damage").SetValue(true);
            var drawFill =
                new MenuItem("RushDrawWDamageFill", "Draw Damage Fill").SetValue(new Circle(true, Color.SeaGreen));
            drawMenu.SubMenu("Drawings").AddItem(drawDamageMenu);
            drawMenu.SubMenu("Drawings").AddItem(drawFill);

            //GlobalManager.EnableDrawingDamage = drawDamageMenu.GetValue<bool>();
            //GlobalManager.EnableFillDamage = drawFill.GetValue<Circle>().Active;
            //GlobalManager.DamageFillColor = drawFill.GetValue<Circle>().Color;

            return drawMenu;
        }
Exemplo n.º 19
0
 public void AddToMenu(ref Menu menu)
 {
     Menu = menu;
     if (Skins.Count > 0)
     {
         Menu.AddSubMenu(new Menu("Skin Changer", "Skin Changer"));
         Menu.SubMenu("Skin Changer").AddItem(new MenuItem("Skin_" + ObjectManager.Player.ChampionName + "_enabled", "Enable skin changer").SetValue(true));
         Menu.SubMenu("Skin Changer").AddItem(new MenuItem("Skin_" + ObjectManager.Player.ChampionName + "_select", "Skins").SetValue(new StringList(Skins.ToArray())));
         SelectedSkin = Menu.Item("Skin_" + ObjectManager.Player.ChampionName + "_select").GetValue<StringList>().SelectedIndex;
     }
 }
Exemplo n.º 20
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            try
            {
                Config = new Menu("Skillshots", "Skillshots", true);
                Config.AddSubMenu(new Menu("Combo", "Combo"));
                Config.SubMenu("Combo").AddItem(new MenuItem("HitChance", "Hitchance").SetValue(new StringList(new[] { "Low", "Medium", "High" })));
                Config.AddSubMenu(new Menu("Drawings", "Drawings"));
                var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
                SimpleTs.AddToMenu(targetSelectorMenu);
                Config.AddSubMenu(targetSelectorMenu);
                foreach (var spell in SpellDatabase.Spells)
                    if (spell.BaseSkinName == ObjectManager.Player.BaseSkinName)
                    {
                        Game.PrintChat(spell.Slot + " LOADED");
                        if (spell.Slot == SpellSlot.Q)
                        {
                            Q = new Spell(spell.Slot, spell.Range);
                            Q.SetSkillshot(spell.Delay / 1000, spell.Radius, spell.MissileSpeed, spell.CanBeRemoved, spell.Type);
                            Config.SubMenu("Combo").AddItem(new MenuItem("Spell1", "Q").SetValue(new KeyBind(90, KeyBindType.Press)));
                            Config.SubMenu("Drawings").AddItem(new MenuItem("QRange", "Q range").SetValue(new Circle(true, Color.FromArgb(255, 255, 255, 255))));
                            SpellList.Add(Q);
                        }
                        if (spell.Slot == SpellSlot.W)
                        {
                            W = new Spell(spell.Slot, spell.Range);
                            W.SetSkillshot(spell.Delay / 1000, spell.Radius, spell.MissileSpeed, spell.CanBeRemoved, spell.Type);
                            Config.SubMenu("Drawings").AddItem(new MenuItem("WRange", "W range").SetValue(new Circle(false, Color.FromArgb(255, 255, 255, 255))));
                            Config.SubMenu("Combo").AddItem(new MenuItem("Spell2", "W").SetValue(new KeyBind(88, KeyBindType.Press)));
                            SpellList.Add(W);
                        }
                        if (spell.Slot == SpellSlot.E)
                        {
                            E = new Spell(spell.Slot, spell.Range);
                            E.SetSkillshot(spell.Delay / 1000, spell.Radius, spell.MissileSpeed, spell.CanBeRemoved, spell.Type);
                            Config.SubMenu("Drawings").AddItem(new MenuItem("ERange", "E range").SetValue(new Circle(false, Color.FromArgb(255, 255, 255, 255))));
                            Config.SubMenu("Combo").AddItem(new MenuItem("Spell3", "E").SetValue(new KeyBind(67, KeyBindType.Press)));
                            SpellList.Add(E);
                        }
                        if (spell.Slot == SpellSlot.R)
                        {
                            R = new Spell(spell.Slot, spell.Range);
                            R.SetSkillshot(spell.Delay / 1000, spell.Radius, spell.MissileSpeed, spell.CanBeRemoved, spell.Type);
                            Config.SubMenu("Drawings").AddItem(new MenuItem("RRange", "R range").SetValue(new Circle(false, Color.FromArgb(255, 255, 255, 255))));
                            Config.SubMenu("Combo").AddItem(new MenuItem("Spell4", "R").SetValue(new KeyBind(86, KeyBindType.Press)));
                            SpellList.Add(R);
                        }

                    }
            }
            catch (Exception)
            {
                Game.PrintChat("Error found in skillshots. Refused to load.");
            }
            Config.AddToMainMenu();

            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnGameUpdate += Game_OnGameUpdate;
        }
Exemplo n.º 21
0
 public void AddToMenu(ref Menu menu)
 {
     Menu = menu;
     if (SpellPriorityList.Count > 0)
     {
         Menu.AddSubMenu(new Menu("Spell Level Up", "LevelUp"));
         Menu.SubMenu("LevelUp").AddItem(new MenuItem("LevelUp_" + ObjectManager.Player.ChampionName + "_enabled", "Enable").SetValue(true));
         Menu.SubMenu("LevelUp").AddItem(new MenuItem("LevelUp_" + ObjectManager.Player.ChampionName + "_select", "").SetValue(new StringList(SpellPriorityList.Keys.ToArray())));
         SelectedPriority = Menu.Item("LevelUp_" + ObjectManager.Player.ChampionName + "_select").GetValue<StringList>().SelectedIndex;
     }
 }
Exemplo n.º 22
0
        public static void Menuadd()
        {
            Menu = new Menu("Mata View", "Mata View", true);
            var configs = (new Menu("Skills Timer Configs", "Skills Timer Configs"));
            var activeskill = (new MenuItem("activeskill", "Active All Skill Timer").SetValue(true));

            var textmenu = (new Menu("Text Configs", "Text Configs"));
            testsize = (new MenuItem("textsize", "Text Size").SetValue(new Slider(16, 30, 10)));
            var enemylist = new Menu("Enemy Timer", "enemylist");
            var allylist = new Menu("Ally Timer", "allylist");
            var mylist = new Menu("My Timer", "mylist");
            var misclist = new Menu("Misc Timer", "misclist");

            Menu.AddSubMenu(configs);
            Menu.SubMenu("Skills Timer Configs").AddItem(activeskill);

            Menu.AddSubMenu(textmenu);
            Menu.SubMenu("Text Configs").AddItem(testsize);

            Skill = new Menu("Skill Timer", "Skill Timer", true);
            Menu.AddSubMenu(enemylist);
            Menu.AddSubMenu(allylist);
            Menu.AddSubMenu(mylist);
            Menu.AddSubMenu(misclist);

            foreach (var skill in SkillsList.SkillList0)
            {
                foreach (var herolist in ObjectManager.Get<Obj_AI_Hero>())
                {
                    if (herolist.IsEnemy && skill.Champname == herolist.ChampionName)
                    {
                        Menu.SubMenu("enemylist").AddItem(new MenuItem(skill.Name, skill.Displayname).SetValue(true));
                    }
                    else if (herolist.IsAlly && !herolist.IsMe && skill.Champname == herolist.ChampionName)
                    {
                        Menu.SubMenu("allylist").AddItem(new MenuItem(skill.Name, skill.Displayname).SetValue(true));
                    }
                    else if (herolist.IsMe && skill.Champname == herolist.ChampionName)
                    {
                        Menu.SubMenu("mylist").AddItem(new MenuItem(skill.Name, skill.Displayname).SetValue(true));
                    }
                }

                   if (skill.Champname == "Misc")
                    {
                        Menu.SubMenu("misclist").AddItem(new MenuItem(skill.Name, skill.Displayname).SetValue(true));
                    }
            }
            Menu.SubMenu("enemylist").AddItem(new MenuItem("activeEnemy", "Active Enemy SKills Timer").SetValue(true));
            Menu.SubMenu("allylist").AddItem(new MenuItem("activeAlly", "Active Ally SKills Timer").SetValue(true));
            Menu.SubMenu("mylist").AddItem(new MenuItem("activeMy", "Active My SKills Timer").SetValue(true));
            Menu.SubMenu("misclist").AddItem(new MenuItem("activeMisc", "Active Misc SKills Timer").SetValue(true));
            Menu.AddToMainMenu();
        }
Exemplo n.º 23
0
        public static void onLoad(EventArgs args)
        {
            m = new Menu("Chat Spammer", "Chat Spammer", true);

            m.AddSubMenu(new Menu("Chat spam", "cs", false));
            m.SubMenu("cs").AddItem(new MenuItem("key", "Spam Key").SetValue(new KeyBind('T', KeyBindType.Press)));
            m.SubMenu("cs").AddItem(new MenuItem("who", "Spam Who?").SetValue(new StringList(new [] { "Your Team", "Everyone" })));
            m.SubMenu("cs").AddItem(new MenuItem("howmuch", "How much times?").SetValue(new Slider(10, 0, 100)));
            Game.OnUpdate += onUpdate;
            m.AddToMainMenu();
        }
Exemplo n.º 24
0
        static void Game_OnGameLoad(EventArgs args)
        {
            Config = new Menu("让英雄变大只", "MakeMyMonsterGrow", true);
            Game.OnGameSendPacket += Game_OnGameSendPacket;
            Config.AddItem(new MenuItem("Size", "变大尺寸��").SetValue(new Slider(150, 50, 200)));
            Config.AddToMainMenu();

            Config.AddSubMenu(new Menu("L#中文社区汉化", "LOLL35.Com"));
                Config.SubMenu("LOLL35.Com").AddItem(new MenuItem("wangzhi", "www.loll35.com"));
                Config.SubMenu("LOLL35.Com").AddItem(new MenuItem("qunhao2", "汉化群:123456"));
        }
Exemplo n.º 25
0
        private static Menu HumanizerMenu()
        {
            var humanizerMenu = new Menu("Humanizer", "Humanizer");

            humanizerMenu.SubMenu("Humanizer").AddItem(new MenuItem("minDelay", "Minimum Delay for Actions (ms)").SetValue(new Slider(0, 0, 200)));
            humanizerMenu.SubMenu("Humanizer").AddItem(new MenuItem("maxDelay", "Maximum Delay for Actions (ms)").SetValue(new Slider(0,  0, 250)));
            humanizerMenu.SubMenu("Humanizer").AddItem(new MenuItem("minCreepHPOffset", "Minimum HP for a Minion to Have Before CSing Damage >= HP+(%)").SetValue(new Slider(5, 0, 25)));
            humanizerMenu.SubMenu("Humanizer").AddItem(new MenuItem("maxCreepHPOffset", "Maximum HP for a Minion to Have Before CSing Damage >= HP+(%)").SetValue(new Slider(15, 0, 25)));
            humanizerMenu.SubMenu("Humanizer").AddItem(new MenuItem("doHuman", "Humanize").SetValue(false));

            return humanizerMenu;
        }
Exemplo n.º 26
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Player = ObjectManager.Player;
            if (Player.BaseSkinName != ChampionName) return;

            Q = new Spell(SpellSlot.Q, 650);
            W = new Spell(SpellSlot.W, 200);
            E = new Spell(SpellSlot.E, 700);
            R = new Spell(SpellSlot.R, 700);

            E.SetSkillshot(0.5f, float.MaxValue, float.MaxValue, false, SkillshotType.SkillshotCone);
            R.SetSkillshot(0.5f, float.MaxValue, float.MaxValue, false, SkillshotType.SkillshotCircle);

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

            Game.PrintChat("Kassadin loaded by Dangerous Mind");

            DM = new Menu(ChampionName, ChampionName, true);

            var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
            SimpleTs.AddToMenu(targetSelectorMenu);
            DM.AddSubMenu(targetSelectorMenu);

            DM.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));

            Orbwalker = new Orbwalking.Orbwalker(DM.SubMenu("Orbwalking"));

            DM.AddSubMenu(new Menu("Combo", "Combo"));
            DM.SubMenu("Combo").AddItem(new MenuItem("UseQCombo", "Use Q")).SetValue(true);
            DM.SubMenu("Combo").AddItem(new MenuItem("UseWCombo", "Use W")).SetValue(true);
            DM.SubMenu("Combo").AddItem(new MenuItem("UseECombo", "Use E")).SetValue(true);
            DM.SubMenu("Combo").AddItem(new MenuItem("UseRCombo", "Use R")).SetValue(true);
            DM.SubMenu("Combo").AddItem(new MenuItem("ComboActive", "Combo!").SetValue(new KeyBind(32, KeyBindType.Press)));

            
            DM.AddSubMenu(new Menu("Drawings", "Drawings"));
            DM.SubMenu("Drawings").AddItem(new MenuItem("QRange", "Q range").SetValue(new Circle(true, Color.Aquamarine)));
            DM.SubMenu("Drawings").AddItem(new MenuItem("WRange", "W range").SetValue(new Circle(false, Color.Aquamarine)));
            DM.SubMenu("Drawings").AddItem(new MenuItem("ERange", "E range").SetValue(new Circle(false, Color.Aquamarine)));
            DM.SubMenu("Drawings").AddItem(new MenuItem("RRange", "R range").SetValue(new Circle(false, Color.Aquamarine)));

            

            DM.AddToMainMenu();

            //Add the events we are going to use:
            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnGameUpdate += Game_OnGameUpdate;
        }
Exemplo n.º 27
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Player = ObjectManager.Player;
            if (Player.BaseSkinName != ChampionName) return;

            //Create the spells
            Q = new Spell(SpellSlot.Q, 1240f);
            Qc = new Spell(SpellSlot.Q, 1200f);
            W = new Spell(SpellSlot.W, float.MaxValue);
            E = new Spell(SpellSlot.E, float.MaxValue);

            R = new Spell(SpellSlot.R, 25000f);

            Q.SetSkillshot(0.25f, 90f, 1350f, false, SkillshotType.SkillshotLine);
            Qc.SetSkillshot(0.25f, 90f, 1350f, true, SkillshotType.SkillshotLine);
            SpellList.Add(Q);
            SpellList.Add(W);

            SpellList.Add(R);

            //Create the menu
            Config = new Menu(ChampionName, ChampionName, true);

            var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
            TargetSelector.AddToMenu(targetSelectorMenu);
            Config.AddSubMenu(targetSelectorMenu);

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

            //Load the orbwalker and add it to the submenu.
            Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));
            Config.AddToMainMenu();
            
            Config.AddItem(new MenuItem("farmW", "Farm W").SetValue(true));
            Config.AddItem(new MenuItem("Hit", "Hit Chance Q").SetValue(new Slider(2, 3, 0)));
            Config.AddItem(new MenuItem("autoR", "Auto R").SetValue(true));
            #region Shield
                Config.SubMenu("E Shield Config").AddItem(new MenuItem("autoE", "Auto E").SetValue(true));
                Config.SubMenu("E Shield Config").AddItem(new MenuItem("AGC", "AntiGapcloserE").SetValue(true));
                Config.SubMenu("E Shield Config").AddItem(new MenuItem("Edmg", "E dmg % hp").SetValue(new Slider(0, 100, 0))); 
            #endregion
            Config.AddItem(new MenuItem("pots", "Use pots").SetValue(true));

            //Add the events we are going to use:
            Game.OnGameUpdate += Game_OnGameUpdate;
            Orbwalking.AfterAttack += Orbwalker_AfterAttack;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
            Game.PrintChat("<font color=\"#9c3232\">S</font>ivir full automatic AI ver 1.6 <font color=\"#000000\">by sebastiank1</font> - <font color=\"#00BFFF\">Loaded</font>");

        }
Exemplo n.º 28
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Player = ObjectManager.Player;
            if (Player.BaseSkinName != ChampionName) return;

            //Create the spells
            Q = new Spell(SpellSlot.Q, 600);
            E = new Spell(SpellSlot.E, 610);
            R = new Spell(SpellSlot.R, 700);

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

            R.SetSkillshot(0.25f, 175, 700, false, SkillshotType.SkillshotCircle);

            //Create the menu
            Config = new Menu(ChampionName, ChampionName, true);

            var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
            SimpleTs.AddToMenu(targetSelectorMenu);
            Config.AddSubMenu(targetSelectorMenu);

            Config.AddSubMenu(new Menu("Combo", "Combo"));
            Config.SubMenu("Combo")
                .AddItem(new MenuItem("ComboActive", "Combo!").SetValue(new KeyBind(32, KeyBindType.Press)));

            Config.AddSubMenu(new Menu("Harass", "Harass"));
            Config.SubMenu("Harass")
                .AddItem(
                    new MenuItem("HarassActive", "Harass!").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));

            Config.AddSubMenu(new Menu("Drawings", "Drawings"));
            Config.SubMenu("Drawings")
                .AddItem(new MenuItem("QRange", "Q range").SetValue(new Circle(true, System.Drawing.Color.FromArgb(255, 255, 255, 255))));
            Config.SubMenu("Drawings")
                .AddItem(
                    new MenuItem("ERange", "E range").SetValue(new Circle(false, System.Drawing.Color.FromArgb(255, 255, 255, 255))));
            Config.AddSubMenu(new Menu("Misc", "Misc"));
            Config.SubMenu("Misc")
                .AddItem(
                    new MenuItem("StackE", "StackE (toggle)!").SetValue(new KeyBind("C".ToCharArray()[0],
                        KeyBindType.Toggle)));
            //Config.SubMenu("Misc").AddItem(new MenuItem("StackE", "Auto stack E").SetValue(new KeyBind(Config.Item("StackE").GetValue<KeyBind>().Key, KeyBindType.Toggle)));
            checkforzed();
            Config.AddToMainMenu();

            //Add the events we are going to use:
            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnGameUpdate += Game_OnGameUpdate;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
        }
Exemplo n.º 29
0
        private void OnGameLoad(EventArgs args)
        {
            Game.OnGameUpdate += OnGameUpdate;
            Player = ObjectManager.Player;
            Config = new Menu("Hecarim Reverse Support", "Reverse", true);
            Config.AddToMainMenu();
            Config.AddSubMenu(new Menu("Reverse Support Settings", "Reverse"));
            Config.SubMenu("Reverse").AddItem(new MenuItem("Toggle", "Activate?").SetValue(new KeyBind("Z".ToCharArray()[0], KeyBindType.Toggle)));

            Config.SubMenu("Reverse").AddItem(new MenuItem("Slider", "Minion Health").SetValue(new Slider(100, 50, 500)));

            Game.PrintChat("<font color='#F7A100'>Reverse Support Hecarim by XcxooxL Loaded 1.0 .</font>");
        }
Exemplo n.º 30
0
        private static void OnGameLoad(EventArgs args)
        {
            Config = new Menu("LAG", "Exploit", true);
            Config.AddSubMenu(new Menu("Exploit", "Exploit"));

            Config.SubMenu("Exploit").AddItem(new MenuItem("LAGQ", "Spam Q(LAG)")).SetValue(new KeyBind("G".ToCharArray()[0], KeyBindType.Toggle));
            Config.SubMenu("Exploit").AddItem(new MenuItem("LAGW", "Spam W(LAG)")).SetValue(new KeyBind("H".ToCharArray()[0], KeyBindType.Toggle));
            Config.SubMenu("Exploit").AddItem(new MenuItem("LAGE", "Spam E(LAG)")).SetValue(new KeyBind("J".ToCharArray()[0], KeyBindType.Toggle));
            Config.SubMenu("Exploit").AddItem(new MenuItem("LAGR", "Spam R(LAG)")).SetValue(new KeyBind("K".ToCharArray()[0], KeyBindType.Toggle));

            Config.AddToMainMenu();
            Game.OnUpdate += game_Update;
        }
Exemplo n.º 31
0
    static void Game_OnGameLoad(EventArgs args)
    {
          Notifications.AddNotification("Zac - The Secret Flubber by DanZ and Drunkenninja", 1000);
      if (ObjectManager.Player.BaseSkinName != Champion) return;

      Q = new Spell(SpellSlot.Q, 550);
      W = new Spell(SpellSlot.W, 350);
      E = new Spell(SpellSlot.E, 1550);
      R = new Spell(SpellSlot.R);

      Q.SetSkillshot(550, 120, int.MaxValue, false, SkillshotType.SkillshotLine);
      E.SetSkillshot(1550, 250, 1500, true, SkillshotType.SkillshotCone);
      E.SetCharged("ZacE", "ZacE", 1150, 1550, 1.5f);

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

      Config = new Menu("Zac", "Zac_menu", true);

      var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
      TargetSelector.AddToMenu(targetSelectorMenu);
      Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
      Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));
      Config.AddSubMenu(targetSelectorMenu);
      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("UseRCombo", "Use R")).SetValue(true);
      Config.AddSubMenu(new Menu("Jungle Clear", "JGClear"));
      Config.SubMenu("JGClear").AddItem(new MenuItem("QJGClear", "Use Q").SetValue(true));
      Config.SubMenu("JGClear").AddItem(new MenuItem("WJGClear", "Use W").SetValue(true));
      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(true);
      Config.AddSubMenu(new Menu("Mis Settings", "Misc"));
      Config.SubMenu("Misc").AddItem(new MenuItem("KSQ", "KS with Q")).SetValue(true);
      Config.AddSubMenu(new Menu("Drawings", "Drawings"));
      Config.SubMenu("Drawings").AddItem(new MenuItem("drawEnable", "Enable Drawing")).SetValue(true);
      Config.SubMenu("Drawings").AddItem(new MenuItem("drawQ", "Draw Q")).SetValue(true);
      Config.SubMenu("Drawings").AddItem(new MenuItem("drawW", "Draw W")).SetValue(true);
      Config.SubMenu("Drawings").AddItem(new MenuItem("drawE", "Draw E")).SetValue(true);
      Config.SubMenu("Drawings").AddItem(new MenuItem("drawR", "Draw R")).SetValue(true);

            Config.AddToMainMenu();

Game.OnUpdate += OnGameUpdate;
      Drawing.OnDraw += OnDraw;

    }
Exemplo n.º 32
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            //Verify Champion
            if (Player.ChampionName != "Twitch")
                return;

            //Spells
            q = new Spell(SpellSlot.Q);
            w = new Spell(SpellSlot.W, 950);
            w.SetSkillshot(0.25f, 120f, 1400f, false, SkillshotType.SkillshotCircle);
            e = new Spell(SpellSlot.E, 1200);
            recall = new Spell(SpellSlot.Recall);

            //Menu instance
            config = new Menu("Twitch", "Twitch", true);

            //Orbwalker
            orbwalker = new Orbwalking.Orbwalker(config.SubMenu("Orbwalking"));

            //Targetsleector
            var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
            TargetSelector.AddToMenu(targetSelectorMenu);
            config.AddSubMenu(targetSelectorMenu);

            //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));

            //Misc
            config.SubMenu("Misc").AddItem(new MenuItem("Emobs", "Kill mobs with E").SetValue(new StringList(new[] { "Baron + Dragon + Siege Minion", "Baron + Dragon", "None" })));
            config.SubMenu("Misc").AddItem(new MenuItem("stealthrecall", "Stealth Recall", true).SetValue(new KeyBind('T', KeyBindType.Press)));
            config.SubMenu("Misc").AddItem(new MenuItem("blueTrinket", "Buy Blue Trinket").SetValue(true));

            //Items
            config.SubMenu("Items").AddItem(new MenuItem("bladeBoss", "BotRK").SetValue(true));
            config.SubMenu("Items").AddItem(new MenuItem("ghostBoss", "Ghostblade").SetValue(true));

            //Drawings
            config.SubMenu("Drawing").AddItem(new MenuItem("EDamage", "E Damage").SetValue(new Circle(true, Color.Green)));

            //Attach to root
            config.AddToMainMenu();

            // Enable E damage indicators
            CustomDamageIndicator.Initialize(GetDamage);

            //Listen to events
            Game.OnUpdate += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
        }
Exemplo n.º 33
0
        public static void BuildMenu(LeagueSharp.Common.Menu mainMenu, string displayName, string name)
        {
            var GPMenu = new LeagueSharp.Common.Menu(displayName, name);

            {
                var enemyHeroesNames = ObjectManager.Get <AIHeroClient>().Where(h => h.IsEnemy).Select(hero => hero.ChampionName).ToList();

                foreach (var champ in enemyHeroesNames)
                {
                    if (Spells.All(h => h.ChampionName != champ))
                    {
                        continue;
                    }

                    var ChampMenu = new LeagueSharp.Common.Menu(champ, $"{name}.{champ.ToLowerInvariant()}");
                    GPMenu.AddSubMenu(ChampMenu);
                }

                foreach (var gp in Spells.Where(h => enemyHeroesNames.Contains(h.ChampionName)))
                {
                    var myMenu = GPMenu.SubMenu($"{name}.{gp.ChampionName.ToLowerInvariant()}");

                    myMenu.AddItem(new MenuItem(
                                       $"{name}.{gp.ChampionName.ToLowerInvariant()}.{gp.SpellName}",
                                       gp.ChampionName + " " + gp.Slot + " (" + gp.SpellName + ")").SetValue(true));
                }
            }
            GapMenu    = GPMenu;
            GPMenuName = name;

            mainMenu.AddSubMenu(GPMenu);
        }
Exemplo n.º 34
0
        public static Menu setUp()
        {
            var menu = new Menu("Targeted spells", "tSpells");

            foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(ene => ene.IsEnemy))
            {
                menu.AddSubMenu(new Menu(enemy.ChampionName, "tar_" + enemy.ChampionName));
                foreach (var spell in enemy.Spellbook.Spells.Where(spl => (spl.SData.TargettingType == SpellDataTargetType.Unit || spl.SData.TargettingType == SpellDataTargetType.SelfAndUnit) && spl.SData.MissileSpeed > 300))
                {
                    if (spell.Slot != SpellSlot.Q && spell.Slot != SpellSlot.W && spell.Slot != SpellSlot.E && spell.Slot != SpellSlot.R)
                    {
                        continue;
                    }


                    //All targeted spells
                    blockTargetedSpells.Add(new TargetedSpell()
                    {
                        owner      = enemy,
                        spellInst  = spell,
                        slot       = spell.Slot,
                        name       = spell.SData.DisplayName,
                        missleName = spell.SData.MissileBoneName
                    });

                    menu.SubMenu("tar_" + enemy.ChampionName)
                    .AddItem(new MenuItem("block_" + enemy.ChampionName + "_" + spell.Name, " " + spell.Slot + ": " + spell.SData.Name + ": % HP"))
                    .SetValue(new Slider(100));
                }
            }
            return(menu);
        }
Exemplo n.º 35
0
        public void Game_OnGameLoad(EventArgs args)
        {
            Game.OnStart   += OnGameStart;
            Game.OnUpdate  += Game_OnGameUpdate;
            Drawing.OnDraw += OnDraw;


            //Create the menu
            Config = new LeagueSharp.Common.Menu("PerfectWard", "PerfectWard", true);

            Config.AddSubMenu(new LeagueSharp.Common.Menu("Drawing:", "Drawing"));
            Config.SubMenu("Drawing").AddItem(new LeagueSharp.Common.MenuItem("drawplaces", "Draw ward places").SetValue(new Circle(true, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
            Config.SubMenu("Drawing").AddItem(new LeagueSharp.Common.MenuItem("drawDistance", "Don't draw if the distance >")).SetValue(new Slider(2000, 10000, 1));
            Config.SubMenu("Drawing").AddItem(new LeagueSharp.Common.MenuItem("placekey", "NormalWard Key").SetValue(new KeyBind("Z".ToCharArray()[0], KeyBindType.Press)));
            Config.SubMenu("Drawing").AddItem(new LeagueSharp.Common.MenuItem("placekeypink", "PinkWard Key").SetValue(new KeyBind("Z".ToCharArray()[0], KeyBindType.Press)));
            Config.AddToMainMenu();
        }
Exemplo n.º 36
0
        public PerfectWardTracker()
        {
            Game.OnGameStart  += OnGameStart;
            Game.OnWndProc    += OnWndProc;
            Game.OnGameUpdate += Game_OnGameUpdate;
            Drawing.OnDraw    += OnDraw;


            //Create the menu
            Config = new LeagueSharp.Common.Menu("PerfectWard", "PerfectWard", true);

            Config.AddSubMenu(new LeagueSharp.Common.Menu("Drawing:", "Drawing"));
            Config.SubMenu("Drawing").AddItem(new LeagueSharp.Common.MenuItem("drawplaces", "Draw ward places").SetValue(new Circle(true, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
            Config.SubMenu("Drawing").AddItem(new LeagueSharp.Common.MenuItem("drawDistance", "Don't draw if the distance >")).SetValue(new Slider(2000, 10000, 1));
            Config.SubMenu("Drawing").AddItem(new LeagueSharp.Common.MenuItem("placekey", "Place Key").SetValue(new KeyBind(16, KeyBindType.Press)));
            Config.AddToMainMenu();
        }
        public PerfectWardTracker()
        {
            Game.OnStart   += OnGameStart;
            Game.OnUpdate  += Game_OnGameUpdate;
            Drawing.OnDraw += OnDraw;


            //Create the menu
            Config = new LeagueSharp.Common.Menu("PerfectWard", "PerfectWard", true);

            Config.SubMenu("Drawing").AddItem(new LeagueSharp.Common.MenuItem("drawplaces", "Draw ward places").SetValue(new Circle(true, System.Drawing.Color.FromArgb(100, 255, 0, 255))));
            Config.SubMenu("Drawing").AddItem(new LeagueSharp.Common.MenuItem("drawDistance", "Don't draw if the distance >")).SetValue(new Slider(2000, 10000, 1));
            Config.SubMenu("Drawing").AddItem(new LeagueSharp.Common.MenuItem("placekey", "NormalWard Key").SetValue(new KeyBind("Z".ToCharArray()[0], KeyBindType.Press)));
            Config.SubMenu("Drawing").AddItem(new LeagueSharp.Common.MenuItem("placekeypink", "PinkWard Key").SetValue(new KeyBind("C".ToCharArray()[0], KeyBindType.Press)));
            Config.SubMenu("AutoBushRevealer").AddItem(new MenuItem("AutoBushKey", "Key").SetValue(new KeyBind("Ctrl".ToCharArray()[0], KeyBindType.Press)));

            Config.AddSubMenu(new Menu("Auto Bush Revealer", "AutoBushRevealer"));

            Config.SubMenu("AutoBushRevealer").AddItem(new MenuItem("AutoBushEnabled", "Enabled").SetValue(true));
            Config.AddToMainMenu();

            foreach (var ward in _wards)
            {
                Config.SubMenu("Auto Bush Ward Type").AddItem(new MenuItem("AutoBush" + ward.Key, ward.Value).SetValue(true));
            }
            Game.OnUpdate += Game_OnGameUpdate;
        }
Exemplo n.º 38
0
        private static void OnMenuLoad()
        {
            Menu = new Menu("Hoola Talon", "hoolatalon", true);

            Menu.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
            Orbwalker = new Orbwalking.Orbwalker(Menu.SubMenu("Orbwalking"));

            var targetSelectorMenu = new Menu("Target Selector", "Target Selector");

            TargetSelector.AddToMenu(targetSelectorMenu);
            Menu.AddSubMenu(targetSelectorMenu);

            var Combo = new Menu("Combo", "Combo");

            Combo.AddItem(new MenuItem("CQ", "Use Q").SetValue(true));
            Combo.AddItem(new MenuItem("CW", "Use W").SetValue(true));
            Combo.AddItem(new MenuItem("CE", "Use E").SetValue(true));
            Combo.AddItem(new MenuItem("CR", "Use R").SetValue(true));
            Combo.AddItem(new MenuItem("CRS", "R Option").SetValue(new StringList(new[] { "First (R E Q W)", "Last (E Q W R)" })));
            Combo.AddItem(new MenuItem("CAR", "Auto R Can Hit > X (0 = Don't)").SetValue(new Slider(3, 0, 5)));
            Menu.AddSubMenu(Combo);

            var Harass = new Menu("Harass", "Harass");

            Harass.AddItem(new MenuItem("HQ", "Use Q").SetValue(true));
            Harass.AddItem(new MenuItem("HW", "Use W").SetValue(true));
            Harass.AddItem(new MenuItem("HE", "Use E").SetValue(false));
            Menu.AddSubMenu(Harass);

            var LaneClear = new Menu("LaneClear", "LaneClear");

            LaneClear.AddItem(new MenuItem("LQ", "Use Q").SetValue(true));
            LaneClear.AddItem(new MenuItem("LW", "Use W").SetValue(true));
            LaneClear.AddItem(new MenuItem("minhit", "W Minimum Hit").SetValue(new Slider(3, 0, 5)));
            Menu.AddSubMenu(LaneClear);

            var Draw = new Menu("Draw", "Draw");

            Draw.AddItem(new MenuItem("Dind", "Draw Damage Indicator").SetValue(true));
            Draw.AddItem(new MenuItem("DW", "Draw W Range").SetValue(false));
            Draw.AddItem(new MenuItem("DE", "Draw E Range").SetValue(false));
            Draw.AddItem(new MenuItem("DR", "Draw E W Killsteal Range").SetValue(false));
            Menu.AddSubMenu(Draw);


            var Killsteal = new Menu("Killsteal", "Killsteal");

            Killsteal.AddItem(new MenuItem("KSW", "Killsteal W").SetValue(true));
            Killsteal.AddItem(new MenuItem("KSEW", "Killsteal EW").SetValue(true));
            Killsteal.AddItem(new MenuItem("KSR", "Killsteal R (While Combo Only)").SetValue(true));
            Menu.AddSubMenu(Killsteal);

            Menu.AddToMainMenu();
        }
Exemplo n.º 39
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != ChampionName)
            {
                return;
            }

            Spells.Initiate();

            Config = new LeagueSharp.Common.Menu(string.Format("xQx | {0}", ChampionName), ChampionName, true);
            Config.AddSubMenu(new LeagueSharp.Common.Menu("Orbwalking", "Orbwalking"));

            var targetSelectorMenu = new LeagueSharp.Common.Menu("Target Selector", "Target Selector");

            TargetSelector.AddToMenu(targetSelectorMenu);
            Config.AddSubMenu(targetSelectorMenu);

            Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));

            PlayerSpells.Initialize();

            DamageCalc = new DamageCalc();
            Utils      = new Utils();
            Menu       = new Menu();
            Items      = new Items();

            Draws       = new Draws();
            Combo       = new Combo();
            Harass      = new Harass();
            LaneClear   = new LaneClear();
            JungleClear = new JungleClear();
            OnUpdate    = new OnUpdate();
            LogicW.Initiate();

            Config.AddItem(
                new MenuItem("GameMode", "Game Mode:").SetValue(new StringList(new[] { "AP", "AD", "Hybrid", "Tanky" }, 0)))
            .SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow);


            var oMenu = new LeagueSharp.Common.Menu("Other Settings", "OtherSettings");

            {
                oMenu.AddItem(new MenuItem("Other.Items", "Use Items").SetValue(true));
                oMenu.AddItem(new MenuItem("Other.Ignite", "Use Ignite").SetValue(true));
                oMenu.AddItem(new MenuItem("Other.Sheen", "Check Sheen on Combo").SetValue(true));
                oMenu.AddItem(new MenuItem("Other.Health", "Auto R if my Health < %").SetValue(new Slider(15, 0, 100)));
                Config.AddSubMenu(oMenu);
            }

            Config.AddToMainMenu();

            Game.PrintChat("Mordekasier</font> <font color='#ff3232'> How to Train Your Dragon </font> <font color='#FFFFFF'>Loaded!</font>");
        }
Exemplo n.º 40
0
 public SubMenu GetSubMenu(string name)
 {
     return(new SubMenu(_subMenu.SubMenu(GetName(name))));
 }
Exemplo n.º 41
0
        public static void OnGameUpdate(EventArgs args)
        {
            int    counter = 0;
            string line;

            // Read the file and display it line by line.
            if (Config.Item("combopress").GetValue <KeyBind>().Active)
            {
                if (Config.Item("combopress2").GetValue <bool>() && promptValue != "")
                {
                    /*Config.SubMenu("combo")
                     * .AddItem(new MenuItem("combopress", "Asshole"))
                     * .SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press));
                     */

                    switch (prompt)
                    {
                    case "1":
                        Game.Say("/all {0}", promptValue);
                        break;

                    case "2":
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        break;

                    case "3":
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        break;

                    case "4":
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        break;

                    case "5":
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        break;
                    }
                }
                else
                {
                    //var input = "";
                    //var c = SimpleDialog.InputBox.ShowDialog("Bad Mannered", "Input a douchey thing to say", out input);
                    promptValue = Prompt.ShowDialog("Bad Mannered", "Input a douchey thing to say");
                    prompt      = Prompt.ShowDialog("NumTimes", "How many times do you want it spammed? (max 10)");

                    switch (prompt)
                    {
                    case "1":
                        Game.Say("/all {0}", promptValue);
                        break;

                    case "2":
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        break;

                    case "3":
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        break;

                    case "4":
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        break;

                    case "5":
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        break;

                    case "6":
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        break;

                    case "7":
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        break;

                    case "8":
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        break;

                    case "9":
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        break;

                    case "10":
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        Game.Say("/all {0}", promptValue);
                        break;
                    }
                }


                //Game.Say("/all {0}", promptValue);
                Config.Item("combopress").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press));
            }

            if (Keyboard.IsKeyDown(Key.CapsLock))
            {
                var dir = new FileInfo(System.Reflection.Assembly.GetExecutingAssembly().Location);
                //Game.PrintChat(dir.ToString());
                //Game.PrintChat(dir.Directory.ToString());
                //Game.PrintChat(dir.DirectoryName);
                try
                {
                    System.IO.StreamReader file =
                        new System.IO.StreamReader(dir.DirectoryName + "\\lol.txt");
                    //Game.PrintChat(file.);
                    while ((line = file.ReadLine()) != null)
                    {
                        Game.Say("/all {0}", line);
                    }
                    file.Close();
                }
                catch (Exception e)
                {
                    Console.WriteLine(e.ToString());
                }
            }

            if (Config.Item("add").GetValue <KeyBind>().Active)
            {
                Config.Item("add").SetValue(new KeyBind("G".ToCharArray()[0], KeyBindType.Press));
                promptValue = Prompt.ShowDialog("Bad Mannered", "Input a douchey thing to say");
                prompt      = Prompt.ShowDialog("NumTimes", "How many times do you want it spammed? (max 10)");
                var ke = Prompt.ShowDialog("lel", "KeyBind?");
                Config.SubMenu("combo")
                .AddItem(new MenuItem(ke.ToUpper().ToCharArray()[0].ToString(), promptValue))
                .SetValue(new KeyBind(ke.ToUpper().ToCharArray()[0], KeyBindType.Press));
                //keys[i] = promptValue;
                dict.Add(ke.ToUpper().ToCharArray()[0].ToString(), promptValue);
                switch (prompt)
                {
                case "1":
                    Game.Say("/all {0}", promptValue);
                    break;

                case "2":
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    break;

                case "3":
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    break;

                case "4":
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    break;

                case "5":
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    break;

                case "6":
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    break;

                case "7":
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    break;

                case "8":
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    break;

                case "9":
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    break;

                case "10":
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    Game.Say("/all {0}", promptValue);
                    break;
                }
                i++;
                Config.Item("add").SetValue(new KeyBind("G".ToCharArray()[0], KeyBindType.Press));
            }
            foreach (var c in dict)
            {
                if (Config.Item(c.Key.ToString()).GetValue <KeyBind>().Active)
                {
                    switch (prompt)
                    {
                    case "1":
                        Game.Say("/all {0}", c.Value);
                        break;

                    case "2":
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        break;

                    case "3":
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        break;

                    case "4":
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        break;

                    case "5":
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        break;

                    case "6":
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        break;

                    case "7":
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        break;

                    case "8":
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        break;

                    case "9":
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        break;

                    case "10":
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        Game.Say("/all {0}", c.Value);
                        break;
                    }
                    //Game.Say();
                }
            }



            //if (Config.Item("combopress").GetValue<KeyBind>().Active)
            //{
            //    //stopped = false;
            //    //dofullcombo();
            //    //return;
            //    Game.Say("a");
            //    Game.Say("d");
            //    Game.Say("o");
            //    Game.Say("p");
            //    Game.Say("t");
            //    Game.Say("e");
            //    Game.Say("d");
            //}

            //if (Config.Item("combopress2").GetValue<KeyBind>().Active)
            //{
            //    Game.Say("you");
            //    Game.Say("were");
            //    Game.Say("a");
            //    Game.Say("failed");
            //    Game.Say("abortion");
            //}

            //if (Config.Item("combopress3").GetValue<KeyBind>().Active)
            //{
            //    Game.Say("f");
            //    Game.Say("u");
            //    Game.Say("c");
            //    Game.Say("k");
            //    Game.Say("y");
            //    Game.Say("o");
            //    Game.Say("u");

            //}
        }
Exemplo n.º 42
0
        public static void Runnerino()
        {
            Config = new menu("TehOrianna", "TehOrianna", true);

            Config.AddSubMenu(new menu("Orbwalking", "Orbwalking"));
            Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));

            var targetSelectorMenu = new menu("Target Selector", "Target Selector");

            TargetSelector.AddToMenu(targetSelectorMenu);
            Config.AddSubMenu(targetSelectorMenu);

            Config.AddSubMenu(new menu("TehOrianna - Combo", "tehorianna.combo"));
            Config.SubMenu("tehorianna.combo").AddItem(new MenuItem("tehorianna.combo.q", "Use Q").SetValue(true));
            Config.SubMenu("tehorianna.combo").AddItem(new MenuItem("tehorianna.combo.w", "Use W").SetValue(true));
            Config.SubMenu("tehorianna.combo").AddItem(new MenuItem("tehorianna.combo.e", "Use E").SetValue(true));
            Config.SubMenu("tehorianna.combo").AddItem(new MenuItem("tehorianna.combo.r", "Use R").SetValue(true));
            Config.SubMenu("tehorianna.combo").AddItem(new MenuItem("tehorianna.combo.spacer", " "));
            Config.SubMenu("tehorianna.combo").AddItem(new MenuItem("tehorianna.combo.wcondition", "W Minimum Enemies").SetValue(new Slider(1, 1, 5)));
            Config.SubMenu("tehorianna.combo").AddItem(new MenuItem("tehorianna.combo.rcondition", "R Minimum Enemies").SetValue(new Slider(2, 1, 5)));

            Config.AddSubMenu(new menu("TehOrianna - Harass", "tehorianna.harass"));
            Config.SubMenu("tehorianna.harass").AddItem(new MenuItem("tehorianna.harass.q", "Use Q").SetValue(true));
            Config.SubMenu("tehorianna.harass").AddItem(new MenuItem("tehorianna.harass.w", "Use W").SetValue(true));
            Config.SubMenu("tehorianna.harass").AddItem(new MenuItem("tehorianna.harass.spacer", " "));
            Config.SubMenu("tehorianna.harass").AddItem(new MenuItem("tehorianna.harass.toggle", "Toggle Harass").SetValue <KeyBind>(new KeyBind('I', KeyBindType.Toggle)));

            Config.AddSubMenu(new menu("TehOrianna - Last Hit", "tehorianna.lasthit"));
            Config.SubMenu("tehorianna.lasthit").AddItem(new MenuItem("tehorianna.lasthit.q", "Use Q").SetValue(true));
            Config.SubMenu("tehorianna.lasthit").AddItem(new MenuItem("tehorianna.lasthit.w", "Use W").SetValue(true));
            Config.SubMenu("tehorianna.lasthit").AddItem(new MenuItem("tehorianna.lasthit.spacer", " "));
            Config.SubMenu("tehorianna.lasthit").AddItem(new MenuItem("tehorianna.lasthit.wcondition", "W Minimum Killed").SetValue(new Slider(2, 1, 10)));

            Config.AddSubMenu(new menu("TehOrianna - Lane Clear", "tehorianna.laneclear"));
            Config.SubMenu("tehorianna.laneclear").AddItem(new MenuItem("tehorianna.laneclear.q", "Use Q").SetValue(true));
            Config.SubMenu("tehorianna.laneclear").AddItem(new MenuItem("tehorianna.laneclear.w", "Use W").SetValue(true));
            Config.SubMenu("tehorianna.laneclear").AddItem(new MenuItem("tehorianna.laneclear.spacer", " "));
            Config.SubMenu("tehorianna.laneclear").AddItem(new MenuItem("tehorianna.laneclear.mode", "LaneClear Mode").SetValue(new StringList(new[] { "Best Farm Location", "Cursor" })));

            Config.AddSubMenu(new menu("TehOrianna - Kill Steal", "tehorianna.killsteal"));
            Config.SubMenu("tehorianna.killsteal").AddItem(new MenuItem("tehorianna.killsteal.active", "Kill Steal").SetValue(true));
            Config.SubMenu("tehorianna.killsteal").AddItem(new MenuItem("tehorianna.killsteal.q", "Use Q").SetValue(true));
            Config.SubMenu("tehorianna.killsteal").AddItem(new MenuItem("tehorianna.killsteal.w", "Use W").SetValue(true));
            Config.SubMenu("tehorianna.killsteal").AddItem(new MenuItem("tehorianna.killsteal.e", "Use E").SetValue(true));
            Config.SubMenu("tehorianna.killsteal").AddItem(new MenuItem("tehorianna.killsteal.r", "Use R").SetValue(true));
            if (Orianna.IS != SpellSlot.Unknown)
            {
                Config.SubMenu("tehorianna.killsteal").AddItem(new MenuItem("tehorianna.killsteal.infernus", "Use Ignite").SetValue(true));
            }
            else
            {
                NotificationManager.ShowNotification("Failed to get SummonerDot!", System.Drawing.Color.Red);
            }

            Config.AddSubMenu(new menu("TehOrianna - Mana Manager", "tehorianna.mana"));
            Config.SubMenu("tehorianna.mana").AddItem(new MenuItem("tehorianna.mana.manager", "Mininimum Mana %").SetValue(new Slider(25, 0, 100)));

            Config.AddSubMenu(new menu("TehOrianna - Drawings", "tehorianna.drawings"));
            Config.SubMenu("tehorianna.drawings").AddItem(new MenuItem("tehorianna.drawings.toggle", "Drawings").SetValue(true));
            Config.SubMenu("tehorianna.drawings").AddItem(new MenuItem("tehorianna.drawings.q", "Draw Q").SetValue(new Circle(true, System.Drawing.Color.FromArgb(255, 255, 255, 255))));
            Config.SubMenu("tehorianna.drawings").AddItem(new MenuItem("tehorianna.drawings.w", "Draw W").SetValue(new Circle(true, System.Drawing.Color.FromArgb(255, 255, 255, 255))));
            Config.SubMenu("tehorianna.drawings").AddItem(new MenuItem("tehorianna.drawings.e", "Draw E").SetValue(new Circle(true, System.Drawing.Color.FromArgb(255, 255, 255, 255))));
            Config.SubMenu("tehorianna.drawings").AddItem(new MenuItem("tehorianna.drawings.r", "Draw R").SetValue(new Circle(true, System.Drawing.Color.FromArgb(255, 255, 255, 255))));
            Config.SubMenu("tehorianna.drawings").AddItem(new MenuItem("tehorianna.drawings.target", "Draw Target").SetValue(new Circle(true, System.Drawing.Color.FromArgb(255, 0, 255, 255))));
            MenuItem drawComboDamageMenu = new MenuItem("Draw_ComboDamage", "Draw Combo Damage", true).SetValue(true);
            MenuItem drawFill            = new MenuItem("Draw_Fill", "Draw Combo Damage Fill", true).SetValue(new Circle(true, System.Drawing.Color.FromArgb(90, 255, 169, 4)));

            Config.SubMenu("tehorianna.drawings").AddItem(drawComboDamageMenu);
            Config.SubMenu("tehorianna.drawings").AddItem(drawFill);
            DamageIndicator.DamageToUnit      = Orianna.GetComboDamage;
            DamageIndicator.Enabled           = drawComboDamageMenu.GetValue <bool>();
            DamageIndicator.Fill              = drawFill.GetValue <Circle>().Active;
            DamageIndicator.FillColor         = drawFill.GetValue <Circle>().Color;
            drawComboDamageMenu.ValueChanged +=
                delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                DamageIndicator.Enabled = eventArgs.GetNewValue <bool>();
            };
            drawFill.ValueChanged +=
                delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                DamageIndicator.Fill      = eventArgs.GetNewValue <Circle>().Active;
                DamageIndicator.FillColor = eventArgs.GetNewValue <Circle>().Color;
            };

            Config.AddSubMenu(new menu("TehOrianna - Interrupter", "tehorianna.interrupter"));
            Config.SubMenu("tehorianna.interrupter").AddItem(new MenuItem("tehorianna.interrupter.r", "Use R").SetValue(true));

            Config.AddSubMenu(new menu("Assembly Info", "tehorianna.info"));
            Config.SubMenu("tehorianna.info").AddItem(new MenuItem("TK/info/author", "Author: TehBlaxxor"));
            Config.SubMenu("tehorianna.info").AddItem(new MenuItem("TK/info/edition", "Edition: TB:r"));
            Config.SubMenu("tehorianna.info").AddItem(new MenuItem("TK/info/version", "5.6.1.1"));

            Config.AddToMainMenu();
        }
Exemplo n.º 43
0
        public static void Initialize()
        {
            root = new LeagueSharp.Common.Menu(Settings.ASSEMBLY_NAME, "menu", true);

            var targetSelectorMenu = new LeagueSharp.Common.Menu("[Teh] Target Selector", "Target Selector");

            TargetSelector.AddToMenu(targetSelectorMenu);
            root.AddSubMenu(targetSelectorMenu);

            root.AddSubMenu(new LeagueSharp.Common.Menu("[Teh] Orbwalking", "Orbwalking"));
            Orbwalker = new Orbwalking.Orbwalker(root.SubMenu("Orbwalking"));

            root.AddSubMenu(new LeagueSharp.Common.Menu("[Teh] Combo", "Combo"));
            root.SubMenu("Combo").AddItem(new MenuItem("comboQ", "Use Transfusion (Q)")).SetValue(true);
            root.SubMenu("Combo").AddItem(new MenuItem("comboW", "Use Sanguine Pool (W)")).SetValue(true);
            root.SubMenu("Combo").AddItem(new MenuItem("comboE", "Use Tides of Blood (E)")).SetValue(true);
            root.SubMenu("Combo").AddItem(new MenuItem("comboR", "Use Hemoplague (R)")).SetValue(true);
            root.SubMenu("Combo").AddItem(new MenuItem("spacer", " "));
            root.SubMenu("Combo").AddItem(new MenuItem("modW", "Use W").SetValue(new StringList(new[] { "If Enemy Killable", "If Enemy In Range" })));
            root.SubMenu("Combo").AddItem(new MenuItem("modE", "Min. Enemies for E")).SetValue(new Slider(1, 1, 5));
            root.SubMenu("Combo").AddItem(new MenuItem("modR", "Use R").SetValue(new StringList(new[] { "If Enemy Killable", "If Enemy In Range" })));

            root.AddSubMenu(new LeagueSharp.Common.Menu("[Teh] Harass", "Harass"));
            root.SubMenu("Harass").AddItem(new MenuItem("harassQ", "Use Transfusion (Q)")).SetValue(true);
            root.SubMenu("Harass").AddItem(new MenuItem("harassE", "Use Tides of Blood (E)")).SetValue(true);
            root.SubMenu("Harass").AddItem(new MenuItem("harassToggler", "Toggle Harass")).SetValue(new KeyBind('H', KeyBindType.Toggle));

            root.AddSubMenu(new LeagueSharp.Common.Menu("[Teh] Kill Steal", "KS"));
            root.SubMenu("KS").AddItem(new MenuItem("ks", "Try to KillSteal")).SetValue(true);
            root.SubMenu("KS").AddItem(new MenuItem("ksQ", "Use Transfusion (Q)")).SetValue(true);
            root.SubMenu("KS").AddItem(new MenuItem("ksE", "Use Tides of Blood (E)")).SetValue(true);
            root.SubMenu("KS").AddItem(new MenuItem("ksIgnite", "Use Ignite")).SetValue(false);

            root.AddSubMenu(new LeagueSharp.Common.Menu("[Teh] Lane Clear", "LaneClear"));
            root.SubMenu("LaneClear").AddItem(new MenuItem("laneClearQ", "Use Transfusion (Q)")).SetValue(true);
            root.SubMenu("LaneClear").AddItem(new MenuItem("laneClearW", "Use Sanguine Pool (W)")).SetValue(true);
            root.SubMenu("LaneClear").AddItem(new MenuItem("laneClearE", "Use Tides of Blood (E)")).SetValue(true);
            root.SubMenu("LaneClear").AddItem(new MenuItem("spacer2", " "));
            root.SubMenu("LaneClear").AddItem(new MenuItem("modW2", "Min. Minions for W")).SetValue(new Slider(5, 1, 10));
            root.SubMenu("LaneClear").AddItem(new MenuItem("modE2", "Min. Minions for E")).SetValue(new Slider(3, 1, 10));

            root.AddSubMenu(new LeagueSharp.Common.Menu("[Teh] Last Hit", "LastHit"));
            root.SubMenu("LastHit").AddItem(new MenuItem("lastHitQ", "Use Transfusion (Q)")).SetValue(true);
            root.SubMenu("LastHit").AddItem(new MenuItem("lastHitE", "Use Transfusion (E)")).SetValue(true);
            root.SubMenu("LastHit").AddItem(new MenuItem("spacer3", " "));
            root.SubMenu("LastHit").AddItem(new MenuItem("modE3", "Min. Minions for E")).SetValue(new Slider(1, 1, 10));

            root.AddSubMenu(new LeagueSharp.Common.Menu("[Teh] Drawings", "Drawings"));
            root.SubMenu("Drawings").AddItem(new MenuItem("drawQ", "Draw Transfusion (Q) range")).SetValue(true);
            root.SubMenu("Drawings").AddItem(new MenuItem("drawW", "Draw Sanguine Pool (W) range")).SetValue(true);
            root.SubMenu("Drawings").AddItem(new MenuItem("drawE", "Draw Tides of Blood (E) range")).SetValue(true);
            root.SubMenu("Drawings").AddItem(new MenuItem("drawR", "Draw Hemoplague (R) range")).SetValue(true);
            root.SubMenu("Drawings").AddItem(new MenuItem("drawOn", "Enable Drawings")).SetValue(true);

            root.AddSubMenu(new LeagueSharp.Common.Menu("[Teh] Misc", "Misc"));
            root.SubMenu("Misc").AddItem(new MenuItem("modHP", "Save Health Percentage for Combo")).SetValue(new Slider(35, 1, 100));
            root.SubMenu("Misc").AddItem(new MenuItem("spacer4", " "));
            root.SubMenu("Misc").AddItem(new MenuItem("surviveW", "Auto W")).SetValue(true);
            root.SubMenu("Misc").AddItem(new MenuItem("surviveWHP", "Auto W HP Percentage")).SetValue(new Slider(10, 1, 100));

            root.AddToMainMenu();

            Console.WriteLine("Menu initialized successfully!");
        }
Exemplo n.º 44
0
        private void LoadMenu()
        {
            var champMenu = new Menu("Syndra Plugin", "Syndra");

            {
                var SpellMenu = new Menu("SpellMenu", "SpellMenu");
                {
                    var qMenu = new Menu("QMenu", "QMenu");
                    {
                        qMenu.AddItem(new MenuItem("Q_Auto_Immobile", "Auto Q on Immobile").SetValue(true));
                        SpellMenu.AddSubMenu(qMenu);
                    }

                    var wMenu = new Menu("WMenu", "WMenu");
                    {
                        wMenu.AddItem(new MenuItem("W_Only_Orb", "Only Pick Up Orb").SetValue(false));
                        SpellMenu.AddSubMenu(wMenu);
                    }
                    var rMenu = new Menu("RMenu", "RMenu");
                    {
                        rMenu.AddItem(new MenuItem("R_Overkill_Check", "Overkill Check").SetValue(true));

                        rMenu.AddSubMenu(new Menu("Don't use R on", "Dont_R"));
                        foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.Team != MyHero.Team)
                                 )
                        {
                            rMenu.SubMenu("Dont_R")
                            .AddItem(new MenuItem("Dont_R" + enemy.BaseSkinName, enemy.BaseSkinName).SetValue(false));
                        }

                        SpellMenu.AddSubMenu(rMenu);
                    }

                    champMenu.AddSubMenu(SpellMenu);
                }

                var comboMenu = new Menu("Combo", "Combo");
                {
                    AddSpelltoMenu(comboMenu, "Q", true);
                    AddSpelltoMenu(comboMenu, "QE", true, "Use QE");
                    AddSpelltoMenu(comboMenu, "W", true);
                    AddSpelltoMenu(comboMenu, "E", true);
                    AddSpelltoMenu(comboMenu, "R", true);
                    AddSpelltoMenu(comboMenu, "Ignite", true, "Use Ignite");
                    champMenu.AddSubMenu(comboMenu);
                }

                var harassMenu = new Menu("Harass", "Harass");
                {
                    AddSpelltoMenu(harassMenu, "Q", true);
                    AddSpelltoMenu(harassMenu, "QE", true, "Use QE");
                    AddSpelltoMenu(harassMenu, "W", true);
                    AddSpelltoMenu(harassMenu, "E", true);
                    AddManaManagertoMenu(harassMenu, 30);
                    champMenu.AddSubMenu(harassMenu);
                }

                var laneClearMenu = new Menu("LaneClear", "LaneClear");
                {
                    AddSpelltoMenu(laneClearMenu, "Q", true);
                    AddSpelltoMenu(laneClearMenu, "W", true);
                    AddSpelltoMenu(laneClearMenu, "E", true);
                    AddManaManagertoMenu(laneClearMenu, 30);
                    champMenu.AddSubMenu(laneClearMenu);
                }

                var miscMenu = new Menu("Misc", "Misc");
                {
                    miscMenu.AddItem(new MenuItem("Misc_QE_Mouse", "QE to mouse").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
                    miscMenu.AddItem(new MenuItem("QE_Interrupt", "Use QE to Interrupt").SetValue(true));
                    miscMenu.AddItem(new MenuItem("E_Gap_Closer", "Use E On Gap Closer").SetValue(true));
                    champMenu.AddSubMenu(miscMenu);
                }

                var drawMenu = new Menu("Drawing", "Drawing");
                {
                    drawMenu.AddItem(new MenuItem("Draw_Disabled", "Disable All").SetValue(false));
                    drawMenu.AddItem(new MenuItem("Draw_Q", "Draw Q").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_QE", "Draw QE").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_W", "Draw W").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_E", "Draw E").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_R", "Draw R").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_R_Killable", "Draw R Mark on Killable").SetValue(true));

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

                    champMenu.AddSubMenu(drawMenu);
                }
            }

            Menu.AddSubMenu(champMenu);
            Menu.AddToMainMenu();
        }
Exemplo n.º 45
0
        private void LoadMenu()
        {
            var champMenu = new Menu("Syndra Plugin", "Syndra");

            {
                var SpellMenu = new Menu("技能", "SpellMenu");
                {
                    var qMenu = new Menu("Q", "QMenu");
                    {
                        qMenu.AddItem(new MenuItem("Q_Auto_Immobile", "自动Q静止").SetValue(true));
                        SpellMenu.AddSubMenu(qMenu);
                    }

                    var wMenu = new Menu("W", "WMenu");
                    {
                        wMenu.AddItem(new MenuItem("W_Only_Orb", "只抓球").SetValue(false));
                        SpellMenu.AddSubMenu(wMenu);
                    }
                    var rMenu = new Menu("R", "RMenu");
                    {
                        rMenu.AddItem(new MenuItem("R_Overkill_Check", "击杀提示").SetValue(true));

                        rMenu.AddSubMenu(new Menu("Don't use R on", "不R"));
                        foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.Team != MyHero.Team)
                                 )
                        {
                            rMenu.SubMenu("Dont_R")
                            .AddItem(new MenuItem("Dont_R" + enemy.BaseSkinName, enemy.BaseSkinName).SetValue(false));
                        }

                        SpellMenu.AddSubMenu(rMenu);
                    }

                    champMenu.AddSubMenu(SpellMenu);
                }

                var comboMenu = new Menu("连招", "Combo");
                {
                    AddSpelltoMenu(comboMenu, "Q", true);
                    AddSpelltoMenu(comboMenu, "QE", true, "使用QE");
                    AddSpelltoMenu(comboMenu, "W", true);
                    AddSpelltoMenu(comboMenu, "E", true);
                    AddSpelltoMenu(comboMenu, "R", true);
                    AddSpelltoMenu(comboMenu, "Ignite", true, "使用点燃");
                    champMenu.AddSubMenu(comboMenu);
                }

                var harassMenu = new Menu("骚扰", "Harass");
                {
                    AddSpelltoMenu(harassMenu, "Q", true);
                    harassMenu.AddItem(new MenuItem("Q_Auto_Harass", "Q骚扰(锁定)").SetValue(new KeyBind("N".ToCharArray()[0], KeyBindType.Press)));
                    AddSpelltoMenu(harassMenu, "QE", true, "使用QE");
                    AddSpelltoMenu(harassMenu, "W", true);
                    AddSpelltoMenu(harassMenu, "E", true);
                    AddManaManagertoMenu(harassMenu, 30);
                    champMenu.AddSubMenu(harassMenu);
                }

                var laneClearMenu = new Menu("清线", "LaneClear");
                {
                    AddSpelltoMenu(laneClearMenu, "Q", true);
                    AddSpelltoMenu(laneClearMenu, "W", true);
                    AddSpelltoMenu(laneClearMenu, "E", true);
                    AddManaManagertoMenu(laneClearMenu, 30);
                    champMenu.AddSubMenu(laneClearMenu);
                }

                var miscMenu = new Menu("杂项", "Misc");
                {
                    miscMenu.AddItem(new MenuItem("Misc_QE_Mouse", "向鼠标QE").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
                    miscMenu.AddItem(new MenuItem("QE_Interrupt", "QE打断").SetValue(true));
                    miscMenu.AddItem(new MenuItem("E_Gap_Closer", "QE防突").SetValue(true));
                    champMenu.AddSubMenu(miscMenu);
                }

                var drawMenu = new Menu("显示", "Drawing");
                {
                    drawMenu.AddItem(new MenuItem("Draw_Disabled", "禁用").SetValue(false));
                    drawMenu.AddItem(new MenuItem("Draw_Q", "显示Q").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_QE", "显示QE").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_W", "显示W").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_E", "显示E").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_R", "显示R").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_R_Killable", "显示R可杀").SetValue(true));

                    MenuItem drawComboDamageMenu = new MenuItem("Draw_ComboDamage", "显示伤害").SetValue(true);
                    drawMenu.AddItem(drawComboDamageMenu);
                    Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
                    Utility.HpBarDamageIndicator.Enabled      = drawComboDamageMenu.GetValue <bool>();
                    drawComboDamageMenu.ValueChanged         +=
                        delegate(object sender, OnValueChangeEventArgs eventArgs)
                    {
                        Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue <bool>();
                    };

                    champMenu.AddSubMenu(drawMenu);
                }
            }

            Menu.AddSubMenu(champMenu);
            Menu.AddToMainMenu();
        }
Exemplo n.º 46
0
        public static void Load(string displayName, string name)
        {
            Config = new LMenu(displayName, name, true);

            var TSMenu = new LMenu("Target Selector", "ts");

            TargetSelector.AddToMenu(TSMenu);
            Config.AddSubMenu(TSMenu);

            var OrbMenu = new LMenu("Orbwalker", "orb");

            Orbwalker = new Orbwalking.Orbwalker(OrbMenu);
            Config.AddSubMenu(OrbMenu);

            var Combo = new LMenu("Combo", "combo");

            Config.SubMenu("combo").AddItem(MI("Use Q", "combo.q").SetValue(true));
            Config.AddSubMenu(Combo);

            var Harass = new LMenu("Harass", "harass");

            Harass.AddItem(MI("harass.q", "Use Q").SetValue(true));
            Config.AddSubMenu(Harass);

            var LaneClear = new LMenu("Lane Clear", "lane");

            LaneClear.AddItem(MI("lane.q", "Use Q").SetValue(true));
            Config.AddSubMenu(LaneClear);

            var LastHit = new LMenu("Last Hit", "last");

            LastHit.AddItem(MI("last.q", "Use Q").SetValue(true));
            Config.AddSubMenu(LastHit);

            var Escape = new LMenu("Escape", "escape");

            Escape.AddItem(MI("escape.q", "Use Q").SetValue(true));
            Config.AddSubMenu(Escape);

            var Extra = new LMenu("Extra", "extra");

            Extra.AddItem(new MenuItem("extra.autolevel", "Auto Level Spells").SetValue(true));
            Extra.AddItem(new MenuItem("extra.ks", "Attemp to Steal Kills").SetValue(true));
            Extra.AddItem(new MenuItem("extra.mm", "Save % Mana For Combo").SetValue(new Slider(30, 0, 100)));
            Extra.AddItem(new MenuItem("extra.gc", "Anti Gap Closer").SetValue(true));
            Extra.AddSubMenu(new LMenu("Hitchances", "extra.hc"));
            Extra.SubMenu("extra.hc").AddItem(new MenuItem("extra.hc.q", "Q").SetValue(new StringList(new[] { "Normal", "High" })));
            Extra.AddSubMenu(new LMenu("Keybinds", "extra.kb"));
            Extra.SubMenu("extra.kb").AddItem(MI("extra.kb.combo", "Combo").SetValue(new KeyBind(32, KeyBindType.Press)));
            Extra.SubMenu("extra.kb").AddItem(MI("extra.kb.harass", "Harass").SetValue(new KeyBind('C', KeyBindType.Press)));
            Extra.SubMenu("extra.kb").AddItem(MI("extra.kb.escape", "Escape").SetValue(new KeyBind('G', KeyBindType.Press)));
            Extra.SubMenu("extra.kb").AddItem(MI("extra.kb.lane", "LaneClear").SetValue(new KeyBind('V', KeyBindType.Press)));
            Extra.SubMenu("extra.kb").AddItem(MI("extra.kb.last", "LastHit").SetValue(new KeyBind('X', KeyBindType.Press)));
            Config.AddSubMenu(Extra);

            var Drawings = new LMenu("Drawings", "drawings");

            Drawings.AddItem(MI("draw", "Use Drawings").SetValue(true));
            Drawings.AddItem(MI("draw.q", "Draw Q").SetValue(new Circle(true, System.Drawing.Color.FromArgb(255, 255, 255, 255))));
            Drawings.AddItem(MI("draw.w", "Draw W").SetValue(new Circle(true, System.Drawing.Color.FromArgb(255, 255, 255, 255))));
            Drawings.AddItem(MI("draw.e", "Draw E").SetValue(new Circle(true, System.Drawing.Color.FromArgb(255, 255, 255, 255))));
            Drawings.AddItem(MI("draw.r", "Draw R").SetValue(new Circle(true, System.Drawing.Color.FromArgb(255, 255, 255, 255))));
            Drawings.AddItem(MI("draw.target", "Draw Target").SetValue(new Circle(true, System.Drawing.Color.FromArgb(255, 255, 255, 255))));
            Drawings.AddItem(MI("draw.dmg", "Draw Damage").SetValue(true));
            Config.AddSubMenu(Drawings);


            Config.AddToMainMenu();
        }
Exemplo n.º 47
0
        private void LoadMenu()
        {
            var champMenu = new Menu("Syndra Plugin", "Syndra");

            {
                var SpellMenu = new Menu("娉曟湳", "SpellMenu");
                {
                    var qMenu = new Menu("Q", "QMenu");
                    {
                        qMenu.AddItem(new MenuItem("Q_Auto_Immobile", "鑷姩Q闈欐").SetValue(true));
                        SpellMenu.AddSubMenu(qMenu);
                    }

                    var wMenu = new Menu("W", "WMenu");
                    {
                        wMenu.AddItem(new MenuItem("W_Only_Orb", "鍙姄鐞億").SetValue(false));
                        SpellMenu.AddSubMenu(wMenu);
                    }
                    var rMenu = new Menu("R", "RMenu");
                    {
                        rMenu.AddItem(new MenuItem("R_Overkill_Check", "鍑绘潃鎻愮ず").SetValue(true));

                        rMenu.AddSubMenu(new Menu("Don't use R on", "涓峈"));
                        foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.Team != MyHero.Team)
                                 )
                        {
                            rMenu.SubMenu("Dont_R")
                            .AddItem(new MenuItem("Dont_R" + enemy.BaseSkinName, enemy.BaseSkinName).SetValue(false));
                        }

                        SpellMenu.AddSubMenu(rMenu);
                    }

                    champMenu.AddSubMenu(SpellMenu);
                }

                var comboMenu = new Menu("杩炴嫑", "Combo");
                {
                    AddSpelltoMenu(comboMenu, "Q", true);
                    AddSpelltoMenu(comboMenu, "QE", true, "浣跨敤QE");
                    AddSpelltoMenu(comboMenu, "W", true);
                    AddSpelltoMenu(comboMenu, "E", true);
                    AddSpelltoMenu(comboMenu, "R", true);
                    AddSpelltoMenu(comboMenu, "Ignite", true, "浣跨敤鐐圭噧");
                    champMenu.AddSubMenu(comboMenu);
                }

                var harassMenu = new Menu("楠氭壈", "Harass");
                {
                    AddSpelltoMenu(harassMenu, "Q", true);
                    harassMenu.AddItem(new MenuItem("Q_Auto_Harass", "Q楠氭壈(閿佸畾)").SetValue(new KeyBind("N".ToCharArray()[0], KeyBindType.Press)));
                    AddSpelltoMenu(harassMenu, "QE", true, "浣跨敤QE");
                    AddSpelltoMenu(harassMenu, "W", true);
                    AddSpelltoMenu(harassMenu, "E", true);
                    AddManaManagertoMenu(harassMenu, 30);
                    champMenu.AddSubMenu(harassMenu);
                }

                var laneClearMenu = new Menu("娓呯嚎", "LaneClear");
                {
                    AddSpelltoMenu(laneClearMenu, "Q", true);
                    AddSpelltoMenu(laneClearMenu, "W", true);
                    AddSpelltoMenu(laneClearMenu, "E", true);
                    AddManaManagertoMenu(laneClearMenu, 30);
                    champMenu.AddSubMenu(laneClearMenu);
                }

                var miscMenu = new Menu("鏉傞」", "Misc");
                {
                    miscMenu.AddItem(new MenuItem("Misc_QE_Mouse", "鍚戦紶鏍嘠E").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
                    miscMenu.AddItem(new MenuItem("QE_Interrupt", "QE鎵撴柇").SetValue(true));
                    miscMenu.AddItem(new MenuItem("E_Gap_Closer", "QE闃茬獊").SetValue(true));
                    champMenu.AddSubMenu(miscMenu);
                }

                var drawMenu = new Menu("鏄剧ず", "Drawing");
                {
                    drawMenu.AddItem(new MenuItem("Draw_Disabled", "绂佺敤").SetValue(false));
                    drawMenu.AddItem(new MenuItem("Draw_Q", "鏄剧ずQ").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_QE", "鏄剧ずQE").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_W", "鏄剧ずW").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_E", "鏄剧ずE").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_R", "鏄剧ずR").SetValue(true));
                    drawMenu.AddItem(new MenuItem("Draw_R_Killable", "鏄剧ずR鍙潃").SetValue(true));

                    MenuItem drawComboDamageMenu = new MenuItem("Draw_ComboDamage", "鏄剧ず浼ゅ").SetValue(true);
                    drawMenu.AddItem(drawComboDamageMenu);
                    Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
                    Utility.HpBarDamageIndicator.Enabled      = drawComboDamageMenu.GetValue <bool>();
                    drawComboDamageMenu.ValueChanged         +=
                        delegate(object sender, OnValueChangeEventArgs eventArgs)
                    {
                        Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue <bool>();
                    };

                    champMenu.AddSubMenu(drawMenu);
                }
            }

            Menu.AddSubMenu(champMenu);
            Menu.AddToMainMenu();
        }
Exemplo n.º 48
0
        public static void CreateMenu()
        {
            var evadeMenu = new LeagueSharp.Common.Menu("Evade Skillshot", "Evade");

            {
                evadeMenu.Separator("Credit: Evade#");
                var evadeSpells = new LeagueSharp.Common.Menu("Spells", "Spells");
                {
                    foreach (
                        var spell in
                        EvadeSpellDatabase.Spells)
                    {
                        var subMenu = new LeagueSharp.Common.Menu(
                            string.Format("{0} ({1})", spell.Name, spell.Slot), spell.Name);
                        {
                            //if (spell.UnderTower)
                            //{
                            subMenu.Bool(spell.Slot + "Tower", "Under Tower", false);
                            //}
                            //if (spell.ExtraDelay)
                            //{
                            subMenu.Slider(spell.Slot + "Delay", "Extra Delay", 100, 0, 150);
                            //}
                            subMenu.Slider("DangerLevel", "If Danger Level >=", 1, 1, 5);
                            //if (spell.IsTargetted && spell.ValidTargets.Contains(SpellValidTargets.AllyWards))
                            //{
                            //    subMenu.Bool("WardJump", "Ward Jump");
                            //}
                            subMenu.Bool("Enabled", "Enabled");
                        }
                        evadeSpells.AddSubMenu(subMenu);
                    }
                    evadeMenu.AddSubMenu(evadeSpells);
                }
                //foreach (var hero in
                //    HeroManager.Enemies.Where(
                //        i =>
                //        SpellDatabase.Spells.Any(
                //            a =>
                //            string.Equals(a.ChampionName, i.ChampionName, StringComparison.InvariantCultureIgnoreCase)))
                //    )
                //{
                //    evadeMenu.AddSubMenu(new LeagueSharp.Common.Menu(hero.ChampionName.ToLowerInvariant(), "-> " + hero.ChampionName));
                //}
                foreach (var spell in
                         SpellDatabase.Spells.Where(
                             i =>
                             HeroManager.Enemies.Any(
                                 a =>
                                 string.Equals(a.ChampionName, i.ChampionName, StringComparison.InvariantCultureIgnoreCase)))
                         )
                {
                    var subMenu = new LeagueSharp.Common.Menu(string.Format("{0} ({1})", spell.SpellName, spell.Slot), spell.SpellName);
                    {
                        subMenu.Slider("DangerLevel", "Danger Level", spell.DangerValue, 1, 5);
                        subMenu.Bool("IsDangerous", "Is Dangerous", spell.IsDangerous);
                        subMenu.Bool("DisableFoW", "Disable FoW Dodging", false);
                        subMenu.Bool("Draw", "Draw", false);
                        subMenu.Bool("Enabled", "Enabled", false /*!spell.DisabledByDefault*/);
                        ((LeagueSharp.Common.Menu)evadeMenu.SubMenu(spell.ChampionName.ToLowerInvariant())).AddSubMenu(subMenu);
                    }
                }
                evadeMenu.Bool("DrawStatus", "Draw Evade Status");
                evadeMenu.KeyBind("Enabled", "Enabled", System.Windows.Forms.Keys.K, KeyBindType.Toggle);
                evadeMenu.KeyBind("OnlyDangerous", "Dodge Only Dangerous", System.Windows.Forms.Keys.Space);
            }
            FioraProject.Program.Menu.AddSubMenu(evadeMenu);
        }