Ejemplo n.º 1
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Config     = new Menu("Marksman", "Marksman", true);
            CClass     = new Champion();
            AActivator = new Activator();


            var BaseType = CClass.GetType();

            /* Update this with Activator.CreateInstance or Invoke
             * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string
             * For now stays cancer.
             */
            var championName = ObjectManager.Player.ChampionName.ToLowerInvariant();

            switch (championName)
            {
            case "ashe":
                CClass = new Ashe();
                break;

            case "caitlyn":
                CClass = new Caitlyn();
                break;

            case "corki":
                CClass = new Corki();
                break;

            case "draven":
                CClass = new Draven();
                break;

            case "ezreal":
                CClass = new Ezreal();
                break;

            case "graves":
                CClass = new Graves();
                break;

            case "gnar":
                CClass = new Gnar();
                break;

            case "jinx":
                CClass = new Jinx();
                break;

            case "kalista":
                CClass = new Kalista();
                break;

            case "kogmaw":
                CClass = new Kogmaw();
                break;

            case "lucian":
                CClass = new Lucian();
                break;

            case "missfortune":
                CClass = new MissFortune();
                break;

            case "quinn":
                CClass = new Quinn();
                break;

            case "sivir":
                CClass = new Sivir();
                break;

            case "teemo":
                CClass = new Teemo();
                break;

            case "tristana":
                CClass = new Tristana();
                break;

            case "twitch":
                CClass = new Twitch();
                break;

            case "urgot":
                CClass = new Urgot();
                break;

            case "vayne":
                CClass = new Vayne();
                break;

            case "varus":
                CClass = new Varus();
                break;
            }


            CClass.Id     = ObjectManager.Player.BaseSkinName;
            CClass.Config = Config;

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

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

            OrbWalking       = Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
            CClass.Orbwalker = new Orbwalking.Orbwalker(OrbWalking);

            OrbWalking.AddItem(new MenuItem("Orb.AutoWindUp", "Marksman - Auto Windup").SetValue(false)).ValueChanged +=
                (sender, argsEvent) => { if (argsEvent.GetNewValue <bool>())
                                         {
                                             CheckAutoWindUp();
                                         }
            };

            /* Menu Summoners */
            var summoners     = Config.AddSubMenu(new Menu("Summoners", "Summoners"));
            var summonersHeal = summoners.AddSubMenu(new Menu("Heal", "Heal"));
            {
                summonersHeal.AddItem(new MenuItem("SUMHEALENABLE", "Enable").SetValue(true));
                summonersHeal.AddItem(new MenuItem("SUMHEALSLIDER", "Min. Heal Per.").SetValue(new Slider(20, 99, 1)));
            }

            var summonersBarrier = summoners.AddSubMenu(new Menu("Barrier", "Barrier"));
            {
                summonersBarrier.AddItem(new MenuItem("SUMBARRIERENABLE", "Enable").SetValue(true));
                summonersBarrier.AddItem(
                    new MenuItem("SUMBARRIERSLIDER", "Min. Heal Per.").SetValue(new Slider(20, 99, 1)));
            }

            var summonersIgnite = summoners.AddSubMenu(new Menu("Ignite", "Ignite"));
            {
                summonersIgnite.AddItem(new MenuItem("SUMIGNITEENABLE", "Enable").SetValue(true));
            }
            /* Menu Items */
            var items = Config.AddSubMenu(new Menu("Items", "Items"));

            items.AddItem(new MenuItem("BOTRK", "BOTRK").SetValue(true));
            items.AddItem(new MenuItem("GHOSTBLADE", "Ghostblade").SetValue(true));
            items.AddItem(new MenuItem("SWORD", "Sword of the Divine").SetValue(true));
            items.AddItem(new MenuItem("MURAMANA", "Muramana").SetValue(true));
            QuickSilverMenu = new Menu("QSS", "QuickSilverSash");
            items.AddSubMenu(QuickSilverMenu);
            QuickSilverMenu.AddItem(new MenuItem("AnyStun", "Any Stun").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnySlow", "Any Slow").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnySnare", "Any Snare").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnyTaunt", "Any Taunt").SetValue(true));
            foreach (var t in AActivator.BuffList)
            {
                foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsEnemy))
                {
                    if (t.ChampionName == enemy.ChampionName)
                    {
                        QuickSilverMenu.AddItem(new MenuItem(t.BuffName, t.DisplayName).SetValue(t.DefaultValue));
                    }
                }
            }
            items.AddItem(
                new MenuItem("UseItemsMode", "Use items on").SetValue(
                    new StringList(new[] { "No", "Mixed mode", "Combo mode", "Both" }, 2)));


            //var Extras = Config.AddSubMenu(new Menu("Extras", "Extras"));
            //new PotionManager(Extras);

            // If Champion is supported draw the extra menus
            if (BaseType != CClass.GetType())
            {
                var combo = new Menu("Combo", "Combo");
                if (CClass.ComboMenu(combo))
                {
                    Config.AddSubMenu(combo);
                }

                var harass = new Menu("Harass", "Harass");
                if (CClass.HarassMenu(harass))
                {
                    harass.AddItem(new MenuItem("HarassMana", "Min. Mana Percent").SetValue(new Slider(50, 100, 0)));
                    Config.AddSubMenu(harass);
                }

                var laneclear = new Menu("LaneClear", "LaneClear");
                if (CClass.LaneClearMenu(laneclear))
                {
                    laneclear.AddItem(
                        new MenuItem("LaneClearMana", "Min. Mana Percent").SetValue(new Slider(50, 100, 0)));
                    Config.AddSubMenu(laneclear);
                }

                var misc = new Menu("Misc", "Misc");
                if (CClass.MiscMenu(misc))
                {
                    Config.AddSubMenu(misc);
                }

                /*
                 * if (championName != "caitlyn" || championName != "jinx")
                 * {
                 *  MenuInterruptableSpell = new Menu("Interruptable Spell",
                 *      "Interrupt with " + championName == "caitlyn" ? "Caitlyn's W" : "Jinx's E");
                 *
                 *  MenuInterruptableSpell.AddItem(new MenuItem("InterruptSpells", "Active").SetValue(true));
                 *
                 *  foreach (var xSpell in Interrupter.Spells)
                 *  {
                 *      MenuInterruptableSpell.AddItem(
                 *          new MenuItem("IntNode" + xSpell.BuffName, xSpell.ChampionName + " | " + xSpell.Slot)
                 *              .SetValue(true));
                 *  }
                 *  Config.AddSubMenu(MenuInterruptableSpell);
                 * }
                 */
                var extras = new Menu("Extras", "Extras");
                if (CClass.ExtrasMenu(extras))
                {
                    new PotionManager(extras);
                    Config.AddSubMenu(extras);
                }

                var drawing = new Menu("Drawings", "Drawings");
                if (CClass.DrawingMenu(drawing))
                {
                    drawing.AddItem(new MenuItem("Marksman.Drawings", "Marksman Default Draw Options"));
                    drawing.AddItem(
                        new MenuItem("drawMinionLastHit", MenuSpace + "Minion Last Hit").SetValue(new Circle(false,
                                                                                                             Color.GreenYellow)));
                    drawing.AddItem(
                        new MenuItem("drawMinionNearKill", MenuSpace + "Minion Near Kill").SetValue(new Circle(false,
                                                                                                               Color.Gray)));
                    drawing.AddItem(new MenuItem("drawJunglePosition", MenuSpace + "Jungle Farm Position").SetValue(false));
                    drawing.AddItem(
                        new MenuItem("Draw.DrawMinions", MenuSpace + "Draw Minions Sprite", true).SetValue(false));
                    drawing.AddItem(
                        new MenuItem("Draw.DrawTarget", MenuSpace + "Draw Target Sprite", true).SetValue(false));
                    //drawing.AddItem(new MenuItem("Draw.DrawSTarget", MenuSpace + "Draw Selected Target", true).SetValue(new Circle(false,Color.GreenYellow)));
                    Config.AddSubMenu(drawing);
                }
            }


            CClass.MainMenu(Config);
            Config.AddToMainMenu();
            //Sprite.Load();

            Drawing.OnDraw          += Drawing_OnDraw;
            Game.OnUpdate           += Game_OnGameUpdate;
            Orbwalking.AfterAttack  += Orbwalking_AfterAttack;
            Orbwalking.BeforeAttack += Orbwalking_BeforeAttack;
            //Interrupter.OnPossibleToInterrupt += Interrupter_OnPosibleToInterrupt;
            //Game.OnWndProc += Game_OnWndProc;
        }
Ejemplo n.º 2
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Config     = new Menu("花边汉化-Adc合集", "Marksman", true);
            CClass     = new Champion();
            AActivator = new Activator();

            var BaseType = CClass.GetType();

            /* Update this with Activator.CreateInstance or Invoke
             * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string
             * For now stays cancer.
             */
            var championName = ObjectManager.Player.ChampionName.ToLowerInvariant();

            switch (championName)
            {
            case "ashe":
                CClass = new Ashe();
                break;

            case "caitlyn":
                CClass = new Caitlyn();
                break;

            case "corki":
                CClass = new Corki();
                break;

            case "draven":
                CClass = new Draven();
                break;

            case "ezreal":
                CClass = new Ezreal();
                break;

            case "graves":
                CClass = new Graves();
                break;

            case "gnar":
                CClass = new Gnar();
                break;

            case "jinx":
                CClass = new Jinx();
                break;

            case "kalista":
                CClass = new Kalista();
                break;

            case "kogmaw":
                CClass = new Kogmaw();
                break;

            case "lucian":
                CClass = new Lucian();
                break;

            case "missfortune":
                CClass = new MissFortune();
                break;

            case "quinn":
                CClass = new Quinn();
                break;

            case "sivir":
                CClass = new Sivir();
                break;

            case "teemo":
                CClass = new Teemo();
                break;

            case "tristana":
                CClass = new Tristana();
                break;

            case "twitch":
                CClass = new Twitch();
                break;

            case "urgot":
                CClass = new Urgot();
                break;

            case "vayne":
                CClass = new Vayne();
                break;

            case "varus":
                CClass = new Varus();
                break;
            }


            CClass.Id     = ObjectManager.Player.BaseSkinName;
            CClass.Config = Config;

            var targetSelectorMenu = new Menu("目标 选择", "Target Selector");

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

            var orbwalking = Config.AddSubMenu(new Menu("走 砍", "Orbwalking"));

            CClass.Orbwalker = new Orbwalking.Orbwalker(orbwalking);

            /* Menu Summoners */
            var summoners     = Config.AddSubMenu(new Menu("召唤师 技能", "Summoners"));
            var summonersHeal = summoners.AddSubMenu(new Menu("治 疗", "Heal"));
            {
                summonersHeal.AddItem(new MenuItem("SUMHEALENABLE", "开 启").SetValue(true));
                summonersHeal.AddItem(new MenuItem("SUMHEALSLIDER", "使用治疗时 HP<= %").SetValue(new Slider(20, 99, 1)));
            }

            var summonersBarrier = summoners.AddSubMenu(new Menu("屏 障", "Barrier"));
            {
                summonersBarrier.AddItem(new MenuItem("SUMBARRIERENABLE", "开 启").SetValue(true));
                summonersBarrier.AddItem(
                    new MenuItem("SUMBARRIERSLIDER", "使用屏障时 HP<= %").SetValue(new Slider(20, 99, 1)));
            }

            var summonersIgnite = summoners.AddSubMenu(new Menu("点 燃", "Ignite"));
            {
                summonersIgnite.AddItem(new MenuItem("SUMIGNITEENABLE", "开 启").SetValue(true));
            }
            /* Menu Items */
            var items = Config.AddSubMenu(new Menu("物 品", "Items"));

            items.AddItem(new MenuItem("BOTRK", "破败王者之刃").SetValue(true));
            items.AddItem(new MenuItem("GHOSTBLADE", "幽梦之灵").SetValue(true));
            items.AddItem(new MenuItem("SWORD", "神圣之剑").SetValue(true));
            items.AddItem(new MenuItem("MURAMANA", "魔宗利刃").SetValue(true));
            QuickSilverMenu = new Menu("水银腰带", "QuickSilverSash");
            items.AddSubMenu(QuickSilverMenu);
            QuickSilverMenu.AddItem(new MenuItem("AnyStun", "任何 眩晕").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnySlow", "任何 减速").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnySnare", "任何 束缚").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnyTaunt", "任何 嘲讽").SetValue(true));
            foreach (var t in AActivator.BuffList)
            {
                foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsEnemy))
                {
                    if (t.ChampionName == enemy.ChampionName)
                    {
                        QuickSilverMenu.AddItem(new MenuItem(t.BuffName, t.DisplayName).SetValue(t.DefaultValue));
                    }
                }
            }
            items.AddItem(
                new MenuItem("UseItemsMode", "模式:").SetValue(
                    new StringList(new[] { "禁用", "混合 模式", "连招 模式", "两者" }, 2)));


            //var Extras = Config.AddSubMenu(new Menu("Extras", "Extras"));
            //new PotionManager(Extras);

            // If Champion is supported draw the extra menus
            if (BaseType != CClass.GetType())
            {
                var combo = new Menu("连 招", "Combo");
                if (CClass.ComboMenu(combo))
                {
                    Config.AddSubMenu(combo);
                }

                var harass = new Menu("骚 扰", "Harass");
                if (CClass.HarassMenu(harass))
                {
                    harass.AddItem(new MenuItem("HarassMana", "Mp<= %").SetValue(new Slider(50, 100, 0)));
                    Config.AddSubMenu(harass);
                }

                var laneclear = new Menu("清 线", "LaneClear");
                if (CClass.LaneClearMenu(laneclear))
                {
                    laneclear.AddItem(
                        new MenuItem("LaneClearMana", "Mp<= %").SetValue(new Slider(50, 100, 0)));
                    Config.AddSubMenu(laneclear);
                }

                var misc = new Menu("杂 项", "Misc");
                if (CClass.MiscMenu(misc))
                {
                    Config.AddSubMenu(misc);
                }

                /*
                 * if (championName != "caitlyn" || championName != "jinx")
                 * {
                 *  MenuInterruptableSpell = new Menu("Interruptable Spell",
                 *      "Interrupt with " + championName == "caitlyn" ? "Caitlyn's W" : "Jinx's E");
                 *
                 *  MenuInterruptableSpell.AddItem(new MenuItem("InterruptSpells", "Active").SetValue(true));
                 *
                 *  foreach (var xSpell in Interrupter.Spells)
                 *  {
                 *      MenuInterruptableSpell.AddItem(
                 *          new MenuItem("IntNode" + xSpell.BuffName, xSpell.ChampionName + " | " + xSpell.Slot)
                 *              .SetValue(true));
                 *  }
                 *  Config.AddSubMenu(MenuInterruptableSpell);
                 * }
                 */
                var extras = new Menu("附 加", "Extras");
                if (CClass.ExtrasMenu(extras))
                {
                    new PotionManager(extras);
                    Config.AddSubMenu(extras);
                }

                var drawing = new Menu("范 围", "Drawings");
                if (CClass.DrawingMenu(drawing))
                {
                    drawing.AddItem(
                        new MenuItem("drawMinionLastHit", "小兵丨最后一下").SetValue(new Circle(false,
                                                                                         System.Drawing.Color.GreenYellow)));
                    drawing.AddItem(
                        new MenuItem("drawMinionNearKill", "附近可击杀的小兵").SetValue(new Circle(false,
                                                                                           System.Drawing.Color.Gray)));
                    drawing.AddItem(new MenuItem("drawJunglePosition", "显示 无伤打野位置").SetValue(true));

                    Config.AddSubMenu(drawing);
                }
            }


            CClass.MainMenu(Config);

            Config.AddToMainMenu();

            Drawing.OnDraw          += Drawing_OnDraw;
            Game.OnGameUpdate       += Game_OnGameUpdate;
            Orbwalking.AfterAttack  += Orbwalking_AfterAttack;
            Orbwalking.BeforeAttack += Orbwalking_BeforeAttack;
            //Interrupter.OnPossibleToInterrupt += Interrupter_OnPosibleToInterrupt;
            //Game.OnWndProc += Game_OnWndProc;
        }
Ejemplo n.º 3
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Config     = new Menu("Marksman", "Marksman", true);
            CClass     = new Champion();
            AActivator = new Activator();

            var BaseType = CClass.GetType();

            /* Update this with Activator.CreateInstance or Invoke
             * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string
             * For now stays cancer.
             */
            var championName = ObjectManager.Player.ChampionName.ToLowerInvariant();

            switch (championName)
            {
            case "ashe":
                CClass = new Ashe();
                break;

            case "caitlyn":
                CClass = new Caitlyn();
                break;

            case "corki":
                CClass = new Corki();
                break;

            case "draven":
                CClass = new Draven();
                break;

            case "ezreal":
                CClass = new Ezreal();
                break;

            case "graves":
                CClass = new Graves();
                break;

            case "gnar":
                CClass = new Gnar();
                break;

            case "jinx":
                CClass = new Jinx();
                break;

            case "kalista":
                CClass = new Kalista();
                break;

            case "kogmaw":
                CClass = new Kogmaw();
                break;

            case "lucian":
                CClass = new Lucian();
                break;

            case "missfortune":
                CClass = new MissFortune();
                break;

            case "quinn":
                CClass = new Quinn();
                break;

            case "sivir":
                CClass = new Sivir();
                break;

            case "teemo":
                CClass = new Teemo();
                break;

            case "tristana":
                CClass = new Tristana();
                break;

            case "twitch":
                CClass = new Twitch();
                break;

            case "urgot":
                CClass = new Urgot();
                break;

            case "vayne":
                CClass = new Vayne();
                break;

            case "varus":
                CClass = new Varus();
                break;
            }


            CClass.Id     = ObjectManager.Player.BaseSkinName;
            CClass.Config = Config;

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

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

            var orbwalking = Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));

            CClass.Orbwalker = new Orbwalking.Orbwalker(orbwalking);

            var items = Config.AddSubMenu(new Menu("Items", "Items"));

            items.AddItem(new MenuItem("BOTRK", "BOTRK").SetValue(true));
            items.AddItem(new MenuItem("GHOSTBLADE", "Ghostblade").SetValue(true));
            items.AddItem(new MenuItem("SWORD", "Sword of the Divine").SetValue(true));
            items.AddItem(new MenuItem("MURAMANA", "Muramana").SetValue(true));
            QuickSilverMenu = new Menu("QSS", "QuickSilverSash");
            items.AddSubMenu(QuickSilverMenu);
            QuickSilverMenu.AddItem(new MenuItem("AnyStun", "Any Stun").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnySlow", "Any Slow").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnySnare", "Any Snare").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnyTaunt", "Any Taunt").SetValue(true));
            foreach (var t in AActivator.BuffList)
            {
                foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsEnemy))
                {
                    if (t.ChampionName == enemy.ChampionName)
                    {
                        QuickSilverMenu.AddItem(new MenuItem(t.BuffName, t.DisplayName).SetValue(t.DefaultValue));
                    }
                }
            }
            items.AddItem(
                new MenuItem("UseItemsMode", "Use items on").SetValue(
                    new StringList(new[] { "No", "Mixed mode", "Combo mode", "Both" }, 2)));


            //var Extras = Config.AddSubMenu(new Menu("Extras", "Extras"));
            //new PotionManager(Extras);

            // If Champion is supported draw the extra menus
            if (BaseType != CClass.GetType())
            {
                var combo = new Menu("Combo", "Combo");
                if (CClass.ComboMenu(combo))
                {
                    Config.AddSubMenu(combo);
                }

                var harass = new Menu("Harass", "Harass");
                if (CClass.HarassMenu(harass))
                {
                    harass.AddItem(new MenuItem("HarassMana", "Min. Mana Percent").SetValue(new Slider(50, 100, 0)));
                    Config.AddSubMenu(harass);
                }

                var laneclear = new Menu("LaneClear", "LaneClear");
                if (CClass.LaneClearMenu(laneclear))
                {
                    laneclear.AddItem(
                        new MenuItem("LaneClearMana", "Min. Mana Percent").SetValue(new Slider(50, 100, 0)));
                    Config.AddSubMenu(laneclear);
                }

                var misc = new Menu("Misc", "Misc");
                if (CClass.MiscMenu(misc))
                {
                    Config.AddSubMenu(misc);
                }

                var extras = new Menu("Extras", "Extras");
                if (CClass.ExtrasMenu(extras))
                {
                    new PotionManager(extras);
                    Config.AddSubMenu(extras);
                }

                var drawing = new Menu("Drawings", "Drawings");
                if (CClass.DrawingMenu(drawing))
                {
                    drawing.AddItem(
                        new MenuItem("drawMinionLastHit", "Minion Last Hit").SetValue(new Circle(false,
                                                                                                 System.Drawing.Color.GreenYellow)));
                    drawing.AddItem(
                        new MenuItem("drawMinionNearKill", "Minion Near Kill").SetValue(new Circle(false,
                                                                                                   System.Drawing.Color.Gray)));

                    Config.AddSubMenu(drawing);
                }
            }


            CClass.MainMenu(Config);

            Config.AddToMainMenu();

            Drawing.OnDraw          += Drawing_OnDraw;
            Game.OnGameUpdate       += Game_OnGameUpdate;
            Orbwalking.AfterAttack  += Orbwalking_AfterAttack;
            Orbwalking.BeforeAttack += Orbwalking_BeforeAttack;
            //Game.OnWndProc += Game_OnWndProc;
        }
Ejemplo n.º 4
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Config     = new Menu("Deadman", "Deadman", true);
            CClass     = new Champion();
            AActivator = new Activator();


            var BaseType = CClass.GetType();

            /* Update this with Activator.CreateInstance or Invoke
             * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string
             * For now stays cancer.
             */
            var championName = ObjectManager.Player.ChampionName.ToLowerInvariant();

            switch (championName)
            {
            case "ashe":
                CClass = new Ashe();
                break;

            case "caitlyn":
                CClass = new Caitlyn();
                break;

            case "corki":
                CClass = new Corki();
                break;

            case "draven":
                CClass = new Draven();
                break;

            case "ezreal":
                CClass = new Ezreal();
                break;

            case "graves":
                CClass = new Graves();
                break;

            case "gnar":
                CClass = new Gnar();
                break;

            case "jinx":
                CClass = new Jinx();
                break;

            case "kalista":
                CClass = new Kalista();
                break;

            case "kindred":
                CClass = new Kindred();
                break;

            case "kogmaw":
                CClass = new Kogmaw();
                break;

            case "lucian":
                CClass = new Lucian();
                break;

            case "missfortune":
                CClass = new MissFortune();
                break;

            case "quinn":
                CClass = new Quinn();
                break;

            case "sivir":
                CClass = new Sivir();
                break;

            case "teemo":
                CClass = new Teemo();
                break;

            case "tristana":
                CClass = new Tristana();
                break;

            case "twitch":
                CClass = new Twitch();
                break;

            case "urgot":
                CClass = new Urgot();
                break;

            case "vayne":
                CClass = new Vayne();
                break;

            case "varus":
                CClass = new Varus();
                break;
            }


            CClass.Id     = ObjectManager.Player.CharData.BaseSkinName;
            CClass.Config = Config;



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

            TargetSelector.AddToMenu(targetSelectorMenu);
            Config.AddSubMenu(targetSelectorMenu);
            Config.AddSubMenu(new Menu("DeathWalker", "Orbwalker"));

            DeathWalker.AddToMenu(Config.SubMenu("Orbwalker"));


            /* Menu Summoners */
            var summoners     = Config.AddSubMenu(new Menu("Summoners", "Summoners"));
            var summonersHeal = summoners.AddSubMenu(new Menu("Heal", "Heal"));
            {
                summonersHeal.AddItem(new MenuItem("SUMHEALENABLE", "Enable").SetValue(true));
                summonersHeal.AddItem(new MenuItem("SUMHEALSLIDER", "Min. Heal Per.").SetValue(new Slider(20, 99, 1)));
            }

            var summonersBarrier = summoners.AddSubMenu(new Menu("Barrier", "Barrier"));
            {
                summonersBarrier.AddItem(new MenuItem("SUMBARRIERENABLE", "Enable").SetValue(true));
                summonersBarrier.AddItem(
                    new MenuItem("SUMBARRIERSLIDER", "Min. Heal Per.").SetValue(new Slider(20, 99, 1)));
            }

            var summonersIgnite = summoners.AddSubMenu(new Menu("Ignite", "Ignite"));
            {
                summonersIgnite.AddItem(new MenuItem("SUMIGNITEENABLE", "Enable").SetValue(true));
            }
            /* Menu Items */
            var items = Config.AddSubMenu(new Menu("Items", "Items"));

            items.AddItem(new MenuItem("BOTRK", "BOTRK").SetValue(true));
            items.AddItem(new MenuItem("GHOSTBLADE", "Ghostblade").SetValue(true));
            items.AddItem(new MenuItem("SWORD", "Sword of the Divine").SetValue(true));
            items.AddItem(new MenuItem("MURAMANA", "Muramana").SetValue(true));
            QuickSilverMenu = new Menu("QSS", "QuickSilverSash");
            items.AddSubMenu(QuickSilverMenu);
            QuickSilverMenu.AddItem(new MenuItem("AnyStun", "Any Stun").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnySlow", "Any Slow").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnySnare", "Any Snare").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnyTaunt", "Any Taunt").SetValue(true));
            foreach (var t in AActivator.BuffList)
            {
                foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsEnemy))
                {
                    if (t.ChampionName == enemy.ChampionName)
                    {
                        QuickSilverMenu.AddItem(new MenuItem(t.BuffName, t.DisplayName).SetValue(t.DefaultValue));
                    }
                }
            }
            items.AddItem(
                new MenuItem("UseItemsMode", "Use items on").SetValue(
                    new StringList(new[] { "No", "Mixed mode", "Combo mode", "Both" }, 2)));


            //var Extras = Config.AddSubMenu(new Menu("Extras", "Extras"));
            //new PotionManager(Extras);

            // If Champion is supported draw the extra menus
            if (BaseType != CClass.GetType())
            {
                SetSmiteSlot();


                var combo = new Menu("Combo", "Combo");
                if (CClass.ComboMenu(combo))
                {
                    if (SmiteSlot != SpellSlot.Unknown)
                    {
                        combo.AddItem(new MenuItem("ComboSmite", "Use Smite").SetValue(true));
                    }

                    Config.AddSubMenu(combo);
                }

                var harass = new Menu("Harass", "Harass");
                if (CClass.HarassMenu(harass))
                {
                    harass.AddItem(new MenuItem("HarassMana", "Min. Mana Percent").SetValue(new Slider(50, 100, 0)));
                    Config.AddSubMenu(harass);
                }

                var laneclear = new Menu("LaneClear", "LaneClear");
                if (CClass.LaneClearMenu(laneclear))
                {
                    laneclear.AddItem(
                        new MenuItem("LaneClearMana", "Min. Mana Percent").SetValue(new Slider(50, 100, 0)));
                    Config.AddSubMenu(laneclear);
                }

                var misc = new Menu("Misc", "Misc");
                if (CClass.MiscMenu(misc))
                {
                    Config.AddSubMenu(misc);
                }

                var extras = new Menu("Extras", "Extras");
                if (CClass.ExtrasMenu(extras))
                {
                    new PotionManager(extras);
                    Config.AddSubMenu(extras);
                }

                var drawing = new Menu("Drawings", "Drawings");
                if (CClass.DrawingMenu(drawing))
                {
                    drawing.AddItem(new MenuItem("Deadman.Drawings", "Deadman Default Draw Options"));
                    //drawing.AddItem(new MenuItem("Draw.Ping", MenuSpace + "Show Game Ping").SetValue(true));
                    drawing.AddItem(new MenuItem("Draw.ToD", MenuSpace + "Turn Off Drawings On Team Fight").SetValue(false));
                    drawing.AddItem(new MenuItem("Draw.ToDControlRange", MenuSpace + MenuSpace + "Control Range:").SetValue(new Slider(1200, 1600, 600)));
                    drawing.AddItem(new MenuItem("Draw.ToDControlRangeColor", MenuSpace + MenuSpace + "Draw Control Range:").SetValue(new Circle(false, Color.GreenYellow)));
                    drawing.AddItem(new MenuItem("Draw.ToDMinEnemy", MenuSpace + MenuSpace + "Min. Enemy Count:").SetValue(new Slider(3, 5, 0)));

                    drawing.AddItem(new MenuItem("drawMinionLastHit", MenuSpace + "Minion Last Hit").SetValue(new Circle(false, Color.GreenYellow)));
                    drawing.AddItem(new MenuItem("drawMinionNearKill", MenuSpace + "Minion Near Kill").SetValue(new Circle(false, Color.Gray)));
                    drawing.AddItem(
                        new MenuItem("drawJunglePosition", MenuSpace + "Jungle Farm Position").SetValue(false));
                    drawing.AddItem(new MenuItem("Draw.DrawMinion", MenuSpace + "Draw Minions Sprite").SetValue(false));
                    drawing.AddItem(new MenuItem("Draw.DrawTarget", MenuSpace + "Draw Target Sprite").SetValue(false));
                    //drawing.AddItem(new MenuItem("Draw.DrawSTarget", MenuSpace + "Draw Selected Target", true).SetValue(new Circle(false,Color.GreenYellow)));
                    Config.AddSubMenu(drawing);
                }
            }



            CClass.MainMenu(Config);
            if (championName == "sivir")
            {
                Evade.Evade.Initiliaze();
                Evade.Config.Menu.DisplayName = "E";
                Config.AddSubMenu(Evade.Config.Menu);
            }
            //Evade.Evade.Initiliaze();
            //Config.AddSubMenu(Evade.Config.Menu);

            Config.AddToMainMenu();
            Sprite.Load();

            Drawing.OnDraw           += Drawing_OnDraw;
            Game.OnUpdate            += Game_OnGameUpdate;
            DeathWalker.AfterAttack  += DeathWalker_AfterAttack;
            DeathWalker.BeforeAttack += DeathWalker_BeforeAttack;
            //Game.OnWndProc += Game_OnWndProc;
        }
Ejemplo n.º 5
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Config     = new Menu("銆愯秴绁炴眽鍖栥€慉DC鍚堥泦", "Marksman", true);
            CClass     = new Champion();
            AActivator = new Activator();

            var BaseType = CClass.GetType();

            /* Update this with Activator.CreateInstance or Invoke
             * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string
             * For now stays cancer.
             */
            var championName = ObjectManager.Player.ChampionName.ToLowerInvariant();

            switch (championName)
            {
            case "ashe":
                CClass = new Ashe();
                break;

            case "caitlyn":
                CClass = new Caitlyn();
                break;

            case "corki":
                CClass = new Corki();
                break;

            case "draven":
                CClass = new Draven();
                break;

            case "ezreal":
                CClass = new Ezreal();
                break;

            case "graves":
                CClass = new Graves();
                break;

            case "jinx":
                CClass = new Jinx();
                break;

            case "kalista":
                CClass = new Kalista();
                break;

            case "kogmaw":
                CClass = new Kogmaw();
                break;

            case "lucian":
                CClass = new Lucian();
                break;

            case "missfortune":
                CClass = new MissFortune();
                break;

            case "quinn":
                CClass = new Quinn();
                break;

            case "sivir":
                CClass = new Sivir();
                break;

            case "teemo":
                CClass = new Teemo();
                break;

            case "tristana":
                CClass = new Tristana();
                break;

            case "twitch":
                CClass = new Twitch();
                break;

            case "urgot":
                CClass = new Urgot();
                break;

            case "vayne":
                CClass = new Vayne();
                break;

            case "varus":
                CClass = new Varus();
                break;
            }


            CClass.Id     = ObjectManager.Player.BaseSkinName;
            CClass.Config = Config;

            var targetSelectorMenu = new Menu("鐩爣閫夋嫨", "Target Selector");

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

            var orbwalking = Config.AddSubMenu(new Menu("璧扮爫", "Orbwalking"));

            CClass.Orbwalker = new Orbwalking.Orbwalker(orbwalking);

            var items = Config.AddSubMenu(new Menu("鐗╁搧", "Items"));

            items.AddItem(new MenuItem("BOTRK", "鐮磋触").SetValue(true));
            items.AddItem(new MenuItem("GHOSTBLADE", "灏忓集鍒€").SetValue(true));
            QuickSilverMenu = new Menu("姘撮摱鑵板甫", "QuickSilverSash");
            items.AddSubMenu(QuickSilverMenu);
            QuickSilverMenu.AddItem(new MenuItem("AnyStun", "鐪╂檿").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnySnare", "澶瑰瓙").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnyTaunt", "鍢茶").SetValue(true));
            foreach (var t in AActivator.BuffList)
            {
                foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsEnemy))
                {
                    if (t.ChampionName == enemy.ChampionName)
                    {
                        QuickSilverMenu.AddItem(new MenuItem(t.BuffName, t.DisplayName).SetValue(t.DefaultValue));
                    }
                }
            }
            items.AddItem(
                new MenuItem("UseItemsMode", "浣跨敤鐗╁搧").SetValue(
                    new StringList(new[] { "no", "娣峰悎", "杩炴嫑", "鍏ㄩ儴" }, 2)));


            //var Extras = Config.AddSubMenu(new Menu("Extras", "Extras"));
            //new PotionManager(Extras);

            // If Champion is supported draw the extra menus
            if (BaseType != CClass.GetType())
            {
                var combo = new Menu("杩炴嫑", "Combo");
                if (CClass.ComboMenu(combo))
                {
                    Config.AddSubMenu(combo);
                }

                var harass = new Menu("楠氭壈", "Harass");
                if (CClass.HarassMenu(harass))
                {
                    harass.AddItem(new MenuItem("HarassMana", "钃濋噺鎺у埗%").SetValue(new Slider(50, 100, 0)));
                    Config.AddSubMenu(harass);
                }

                var laneclear = new Menu("娓呯嚎", "LaneClear");
                if (CClass.LaneClearMenu(laneclear))
                {
                    laneclear.AddItem(
                        new MenuItem("LaneClearMana", "钃濋噺鎺у埗").SetValue(new Slider(50, 100, 0)));
                    Config.AddSubMenu(laneclear);
                }

                var misc = new Menu("鏉傞」", "Misc");
                if (CClass.MiscMenu(misc))
                {
                    Config.AddSubMenu(misc);
                }

                var extras = new Menu("闄勫姞", "Extras");
                if (CClass.ExtrasMenu(extras))
                {
                    new PotionManager(extras);
                    Config.AddSubMenu(extras);
                }

                var drawing = new Menu("鏄剧ず", "Drawings");
                if (CClass.DrawingMenu(drawing))
                {
                    Config.AddSubMenu(drawing);
                }

                Config.AddSubMenu(new Menu("瓒呯姹夊寲", "by weilai"));
                Config.SubMenu("by weilai").AddItem(new MenuItem("qunhao", "姹夊寲缇わ細386289593"));
            }


            CClass.MainMenu(Config);

            Config.AddToMainMenu();

            Drawing.OnDraw          += Drawing_OnDraw;
            Game.OnGameUpdate       += Game_OnGameUpdate;
            Orbwalking.AfterAttack  += Orbwalking_AfterAttack;
            Orbwalking.BeforeAttack += Orbwalking_BeforeAttack;
        }
Ejemplo n.º 6
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Config     = new Menu("Marksman", "Marksman", true);
            CClass     = new Champion();
            AActivator = new Activator();

            var BaseType = CClass.GetType();

            /* Update this with Activator.CreateInstance or Invoke
             * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string
             * For now stays cancer.
             */
            var championName = ObjectManager.Player.ChampionName.ToLowerInvariant();

            switch (championName)
            {
            case "ashe":
                CClass = new Ashe();
                break;

            case "caitlyn":
                CClass = new Caitlyn();
                break;

            case "corki":
                CClass = new Corki();
                break;

            case "draven":
                CClass = new Draven();
                break;

            case "ezreal":
                CClass = new Ezreal();
                break;

            case "graves":
                CClass = new Graves();
                break;

            case "jinx":
                CClass = new Jinx();
                break;

            case "kogmaw":
                CClass = new Kogmaw();
                break;

            case "lucian":
                CClass = new Lucian();
                break;

            case "missfortune":
                CClass = new MissFortune();
                break;

            case "quinn":
                CClass = new Quinn();
                break;

            case "sivir":
                CClass = new Sivir();
                break;

            case "teemo":
                CClass = new Teemo();
                break;

            case "tristana":
                CClass = new Tristana();
                break;

            case "twitch":
                CClass = new Twitch();
                break;

            case "vayne":
                CClass = new Vayne();
                break;

            case "varus":
                CClass = new Varus();
                break;
            }


            CClass.Id     = ObjectManager.Player.BaseSkinName;
            CClass.Config = Config;

            var targetSelectorMenu = new Menu("目标选择", "Target Selector");

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

            var orbwalking = Config.AddSubMenu(new Menu("走砍", "Orbwalking"));

            CClass.Orbwalker = new Orbwalking.Orbwalker(orbwalking);

            var items = Config.AddSubMenu(new Menu("物品", "Items"));

            items.AddItem(new MenuItem("BOTRK", "破败").SetValue(true));
            items.AddItem(new MenuItem("GHOSTBLADE", "小弯刀").SetValue(true));
            QuickSilverMenu = new Menu("Quick Silver Sash", "水银腰带");
            items.AddSubMenu(QuickSilverMenu);
            QuickSilverMenu.AddItem(new MenuItem("AnyStun", "眩晕").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnySnare", "夹子").SetValue(true));
            QuickSilverMenu.AddItem(new MenuItem("AnyTaunt", "嘲讽").SetValue(true));
            foreach (var t in AActivator.BuffList)
            {
                foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsEnemy))
                {
                    if (t.ChampionName == enemy.ChampionName)
                    {
                        QuickSilverMenu.AddItem(new MenuItem(t.BuffName, t.DisplayName).SetValue(t.DefaultValue));
                    }
                }
            }
            items.AddItem(
                new MenuItem("UseItemsMode", "使用物品").SetValue(
                    new StringList(new[] { "不", "混合", "连招", "全部" }, 2)));


            //var Extras = Config.AddSubMenu(new Menu("Extras", "Extras"));
            //new PotionManager(Extras);

            // If Champion is supported draw the extra menus
            if (BaseType != CClass.GetType())
            {
                var combo = new Menu("连招", "Combo");
                if (CClass.ComboMenu(combo))
                {
                    Config.AddSubMenu(combo);
                }

                var harass = new Menu("骚扰", "Harass");
                if (CClass.HarassMenu(harass))
                {
                    harass.AddItem(new MenuItem("HarassMana", "Min蓝%").SetValue(new Slider(50, 100, 0)));
                    Config.AddSubMenu(harass);
                }

                var laneclear = new Menu("LaneClear", "清线");
                if (CClass.LaneClearMenu(laneclear))
                {
                    Config.AddSubMenu(laneclear);
                }

                var misc = new Menu("Misc", "杂项");
                if (CClass.MiscMenu(misc))
                {
                    Config.AddSubMenu(misc);
                }

                var extras = new Menu("Extras", "附加");
                if (CClass.ExtrasMenu(extras))
                {
                    new PotionManager(extras);
                    Config.AddSubMenu(extras);
                }

                var drawing = new Menu("Drawings", "显示");
                if (CClass.DrawingMenu(drawing))
                {
                    Config.AddSubMenu(drawing);
                }
            }


            CClass.MainMenu(Config);

            Config.AddToMainMenu();

            Drawing.OnDraw          += Drawing_OnDraw;
            Game.OnGameUpdate       += Game_OnGameUpdate;
            Orbwalking.AfterAttack  += Orbwalking_AfterAttack;
            Orbwalking.BeforeAttack += Orbwalking_BeforeAttack;
        }