public static void AddToMenu(Menu theMenu)
        {
            _myMenu = theMenu;

            //add item list to menu
            CreateList();

            var offensiveItem = new Menu("Offensive Items", "Offensive Items");
            {
                foreach (var item in ItemList)
                {
                    AddOffensiveItem(offensiveItem, item);
                }
                _myMenu.AddSubMenu(offensiveItem);
            }

            var summoners = new Menu("Summoners", "Summoners");
            {
                var ignite = new Menu("Ignite", "Ignite");
                {
                    ignite.AddItem(new MenuItem("ignite", "Use Ignite", true).SetValue(true));
                    ignite.AddItem(
                        new MenuItem("igniteMode", "Ignite Mode", true).SetValue(new StringList(new[] { "Combo", "KS" })));
                    summoners.AddSubMenu(ignite);
                }
                _myMenu.AddSubMenu(summoners);
            }

            Orbwalking.AfterAttack += AfterAttack;
            Orbwalking.OnAttack += OnAttack;
            Game.OnUpdate += Game_OnGameUpdate;
        }
Beispiel #2
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;
        }
Beispiel #3
1
        public static void Init()
        {
            Map = Utility.Map.GetMap().Type;
            if (Map != Utility.Map.MapType.HowlingAbyss) return;
            Config = new Menu("AIM: " + ObjectManager.Player.ChampionName,
                "autosharp." + ObjectManager.Player.ChampionName, true);
            Config.AddItem(new MenuItem("autosharp.quit", "Quit after Game End").SetValue(true));
            var options = Config.AddSubMenu(new Menu("Options: ", "autosharp.options"));
            options.AddItem(new MenuItem("autosharp.options.healup", "Take Heals?").SetValue(true));
            var orbwalker = Config.AddSubMenu(new Menu("Orbwalker", "autosharp.orbwalker"));

            new PluginLoader();

            Cache.Load();
            Game.OnUpdate += Positioning.OnUpdate;
            Autoplay.Load();
            Game.OnEnd += OnEnd;
            Obj_AI_Base.OnIssueOrder += AntiShrooms;
            Game.OnUpdate += AntiShrooms2;
            Spellbook.OnCastSpell += OnCastSpell;
            Obj_AI_Base.OnDamage += OnDamage;


            Orbwalker = new MyOrbwalker.Orbwalker(orbwalker);

            Utility.DelayAction.Add(
                new Random().Next(1000, 10000), () =>
                {
                    new LeagueSharp.Common.AutoLevel(Utils.AutoLevel.GetSequence().Select(num => num - 1).ToArray());
                    LeagueSharp.Common.AutoLevel.Enable();
                    Console.WriteLine("AutoLevel Init Success!");
                });
        }
Beispiel #4
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Config = new Menu("SkinHack", "SkinHack", true);

            var settings = Config.AddSubMenu(new Menu("Settings", "Settings"));
            settings.AddItem(new MenuItem("Champions", "Reskin Champions").SetValue(true));
            //settings.AddItem(new MenuItem("Pets", "Reskin Pets").SetValue(true));
            settings.AddItem(new MenuItem("Minions", "Pool Party Minions").SetValue(false));

            foreach (var hero in ObjectManager.Get<Obj_AI_Hero>())
            {
                var champMenu = new Menu(hero.ChampionName, hero.ChampionName);
                var modelUnit = new ModelUnit(hero);

                PlayerList.Add(modelUnit);

                if (hero.IsMe)
                {
                    Player = modelUnit;
                }

                foreach (Dictionary<string, object> skin in ModelManager.GetSkins(hero.ChampionName))
                {
                    Console.WriteLine(skin["name"].ToString());
                    var skinName = skin["name"].ToString().Equals("default")
                        ? hero.ChampionName
                        : skin["name"].ToString();
                    var skinId = (int) skin["num"];

                    var changeSkin = champMenu.AddItem(new MenuItem(skinName, skinName).SetValue(false));

                    if (hero.BaseSkinId.Equals(skinId) || changeSkin.IsActive())
                    {
                        changeSkin.SetValue(true);
                        modelUnit.SetModel(hero.CharData.BaseSkinName, skinId);
                    }

                    var hero1 = hero;
                    changeSkin.ValueChanged += (s, e) =>
                    {
                        if (e.GetNewValue<bool>())
                        {
                            champMenu.Items.ForEach(
                                p =>
                                {
                                    if (p.GetValue<bool>() && p.Name != skinName)
                                    {
                                        p.SetValue(false);
                                    }
                                });
                            modelUnit.SetModel(hero1.ChampionName, skinId);
                        }
                    };
                }
                Config.AddSubMenu(champMenu);
            }
            Config.AddToMainMenu();

            Game.OnInput += Game_OnInput;
        }
        private static Menu _Menu()
        {
            var menu = new Menu(_MenuNameBase, "rendMenu");

            var subMenu = new Menu(".Kill","autoRendMenu");
            subMenu.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendNonKillables", "Rend NonKillables").SetValue(true));
            subMenu.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendEpics", "Rend epic monsters").SetValue(true));
            subMenu.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendBuffs", "Rend large buff monsters").SetValue(true));
            subMenu.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendSmallMonster", "Rend small monsters").SetValue(true));
            subMenu.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendEpicMinions", "Rend epic minions(Seige,Super)").SetValue(true));
            subMenu.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendEnemyChampions", "Rend enemies").SetValue(true));

            var subMenu2 = new Menu(".Cases", "caseRendMenu");

            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendMinions", "Rend minions").SetValue(true));
            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendMinions.Slider.Killed", "Required minions killed").SetValue(new Slider(1, 2, 10)));

            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendHarrassKill", "Rend harass (kills minion + stack on enemy)").SetValue(true));
            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendHarrassKill.Slider.Stacks", "Required stacks on enemy").SetValue(new Slider(1, 1, 5)));
            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendHarrassKill.Slider.Killed", "Required minions killed").SetValue(new Slider(2, 2, 10)));

            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendBeforeDeath", "Rend before death").SetValue(false));
            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendBeforeDeath.Slider.Enemies", "Required enimies with stacks").SetValue(new Slider(1, 1, 5)));
            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendBeforeDeath.Slider.Stacks", "Required stacks on enimies").SetValue(new Slider(1, 1, 5)));
            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendBeforeDeath.Slider.PercentHP", "Required remaining HP%(Player)").SetValue(new Slider(15, 1, 40)));

            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendOnLeave", "Rend on leave").SetValue(false));
            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendOnLeave.Slider.Stacks", "Required stacks").SetValue(new Slider(4, 1, 10)));

            menu.AddSubMenu(subMenu);
            menu.AddSubMenu(subMenu2);

            return menu;
        }
Beispiel #6
0
        private static void _BuildMenu()
        {
            MainMenu = new Menu("PingMe", "MainMenu", true);

            var allyMenu = new Menu("Allies", "allyMenu");
            {
                allyMenu.AddItem(new MenuItem("sep0", "-- Note : 0% = disable"));
                foreach(var ally in Allies)
                {
                    allyMenu.AddItem(new MenuItem("ally" + ally.ChampionName + "HPPERCENT", ally.ChampionName + " HP%")).SetValue<Slider>(new Slider(20, 0, 100));
                }
                MainMenu.AddSubMenu(allyMenu);
            }

            var enemyMenu = new Menu("Ennemies", "enemyMenu");
            {
                enemyMenu.AddItem(new MenuItem("sep1", "-- Note : 0% = disable"));
                foreach (var enemy in Ennemies)
                {
                    enemyMenu.AddItem(new MenuItem("enemy" + enemy.ChampionName + "HPPERCENT", enemy.ChampionName + " HP%")).SetValue<Slider>(new Slider(20, 0, 100));
                }
                MainMenu.AddSubMenu(enemyMenu);
            }

            MainMenu.AddItem(new MenuItem("PingAlly", "Ping locally when an ally is low", true).SetValue<Boolean>(false));
            MainMenu.AddItem(new MenuItem("PingEnemy", "Ping locally when an enemy is low", true).SetValue<Boolean>(true));
            if (hasTP) MainMenu.AddItem(new MenuItem("TpPing", "Ping if TP is up", true).SetValue<Boolean>(true));
            if (hasLongRangeUlt) MainMenu.AddItem(new MenuItem("UltPing", "Ping if R is up", true).SetValue<Boolean>(true));
            MainMenu.AddToMainMenu();
        }
Beispiel #7
0
        public static void LoadJungleMenu()
        {
            var junglemenu = new Menu("Jungle Settings", "Jungle Settings");
            var oMenu = new Menu("Jungle Smite Options", "jungle.options.smite");
            {
                AddKeyBind(oMenu, "Auto-Smite", "jungle.options.autoSmite", 'G', KeyBindType.Toggle);
                AddBool(oMenu, "Smite Buffs", "jungle.options.smiteBuffs", true);
                AddBool(oMenu, "Smite Epics", "jungle.options.smiteEpics", true);

//                AddBool(oMenu, "Smite Scuttle", "jungle.options.smiteScuttle", false);
//               AddBool(oMenu, "Smite Krug", "jungle.options.smiteKrug", false);
//               AddBool(oMenu, "Smite Wolf", "jungle.options.smiteWolf", false);
//                AddBool(oMenu, "Smite Gromp", "jungle.options.smiteGromp", false);
//                AddBool(oMenu, "Smite Raptors", "jungle.options.smiteRaptors", false);
//                AddBool(oMenu, "Smite Enemies For KS", "jungle.options.smiteChampions", false);
            }
            junglemenu.AddSubMenu(oMenu);

            var oMenu2 = new Menu("Jungle Drawing Options", "jungle.options.drawing");
            {
                AddBool(oMenu2, "Display Smite Range", "jungle.options.drawing.range", true);
                AddBool(oMenu2, "Display Smite Damage", "jungle.options.drawing.damage", true);
                AddBool(oMenu2, "Fill Smite Damage", "jungle.options.drawing.damage.fill", true);
                AddBool(oMenu2, "Display Killable Text", "jungle.options.drawing.killable.text", true);
                AddBool(oMenu2, "Display Jungle Timers", "jungle.options.drawing.timers", true);
            }
            var oMenu3 = new Menu("Spell + Smite", "Spell + Smite");
            {
                AddBool(oMenu3, "Nunu Q", "usenunuq", true);
                AddBool(oMenu3, "Activate", "Nunu", true);
            }
            junglemenu.AddSubMenu(oMenu2);
            junglemenu.AddSubMenu(oMenu3);
            Config.AddSubMenu(junglemenu);
        }
Beispiel #8
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();
        }
        static void Game_OnGameLoad(EventArgs args)
        {
            AllPlayers = ObjectManager.Get<Obj_AI_Hero>().ToList();
            if (AllPlayers.Contains(ObjectManager.Player))
                AllPlayers.Remove(ObjectManager.Player);
            (_main = new Menu("RageControl", "RageControl", true)).AddToMainMenu();

            var enableChatMenu = _main.AddSubMenu(new Menu("Disable your chat", "dyc"));
            enableChatMenu.AddItem(new MenuItem("disable", "Disable?").SetValue(false).DontSave());
            enableChatMenu.AddItem(new MenuItem("perma", "!PERMA! Disable").SetValue(false).DontSave());

            var bannedPlayers = _main.AddSubMenu(new Menu("Ban Player?", "bannedPlayer"));
            Notifications.AddNotification("Rage Control Loaded!", 1000);
            Notifications.AddNotification("Reading files....", 1000);
            ReadFiles(SandboxConfig.DataDirectory);
            _main.Item("disable").ValueChanged+=Program_ValueChanged;
            _main.Item("perma").ValueChanged+=PermaDissable;

            if (AllPlayers != null)
            {
                foreach (var player in AllPlayers)
                {
                    bannedPlayers.AddItem(new MenuItem(player.Name, "Ban " + player.Name + "?").SetValue(false));
                }
                foreach (var item in bannedPlayers.Items)
                {
                    item.ValueChanged += item_ValueChanged;
                }
            }
            Game.OnInput += Game_OnInput;
            Game.OnChat += Game_OnChat;
        }
Beispiel #10
0
        public static void LoadMenu()
        {
            Menu = MainMenu.AddMenu("iTwitch 2.0", "com.itwitch");

            comboOptions = Menu.AddSubMenu("iTwitch 2.0 - Combo", "com.itwitch.combo");
            comboOptions.Add("com.itwitch.combo.useW", new CheckBox("Use W", true));
            comboOptions.Add("com.itwitch.combo.useEKillable", new CheckBox("Use E Killable", true));

            harassOptions = Menu.AddSubMenu("iTwitch 2.0 - Harass", "com.itwitch.harass");
            harassOptions.Add("com.itwitch.harass.useW", new CheckBox("Use W", true));
            harassOptions.Add("com.itwitch.harass.useEKillable", new CheckBox("Use E", true));

            miscOptions = Menu.AddSubMenu("iTwitch 2.0 - Misc", "com.itwitch.misc");
            miscOptions.Add("com.itwitch.misc.autoYo", new CheckBox("Youmuus with R", true));
            miscOptions.Add("com.itwitch.misc.noWTurret", new CheckBox("Don't W Under Tower", true));
            miscOptions.Add("com.itwitch.misc.noWAA", new Slider("No W if x aa can kill", 2, 0, 10));
            miscOptions.Add("com.itwitch.misc.saveManaE", new CheckBox("Save Mana for E", true));
            miscOptions.Add("com.itwitch.misc.recall", new KeyBind("Stealth Recall", false, KeyBind.BindTypes.HoldActive, 'T'));

            drawOptions = Menu.AddSubMenu("iTwitch 2.0 - Drawing", "com.itwitch.drawing");
            drawOptions.Add("com.itwitch.drawing.drawERange", new CheckBox("Draw E Range", true));
            drawOptions.Add("com.itwitch.drawing.drawRRange", new CheckBox("Draw R Range", true));
            drawOptions.Add("com.itwitch.drawing.drawQTime", new CheckBox("Draw Q Time", true));
            drawOptions.Add("com.itwitch.drawing.drawEStacks", new CheckBox("Draw E Stacks", true));
            drawOptions.Add("com.itwitch.drawing.drawEStackT", new CheckBox("Draw E Stack Time", true));
            drawOptions.Add("com.itwitch.drawing.drawRTime", new CheckBox("Draw R Time", true));
            drawOptions.Add("com.itwitch.drawing.eDamage", new CheckBox("Draw E Damage on Enemies", true));
        }
        public SFXHumanize()
        {
            try
            {
                Menu = new Menu(Name, Name, true);

                var infoMenu = new Menu("Info", Name + "Info");

                infoMenu.AddItem(new MenuItem(infoMenu.Name + "Version", string.Format("{0}: {1}", "Version", Version)));
                infoMenu.AddItem(new MenuItem(infoMenu.Name + "Forum", "Forum" + ": Lizzaran"));
                infoMenu.AddItem(new MenuItem(infoMenu.Name + "Github", "GitHub" + ": Lizzaran"));
                infoMenu.AddItem(new MenuItem(infoMenu.Name + "IRC", "IRC" + ": Appril"));
                infoMenu.AddItem(new MenuItem(infoMenu.Name + "Exception", string.Format("{0}: {1}", "Exception", 0)));

                var globalMenu = new Menu("Settings", Name + "Settings");

                AddReport(globalMenu);

                Menu.AddSubMenu(infoMenu);
                Menu.AddSubMenu(globalMenu);

                AppDomain.CurrentDomain.DomainUnload += OnExit;
                AppDomain.CurrentDomain.ProcessExit += OnExit;
                CustomEvents.Game.OnGameEnd += OnGameEnd;
                CustomEvents.Game.OnGameLoad += OnGameLoad;
            }
            catch (Exception ex)
            {
                Global.Logger.AddItem(new LogItem(ex));
            }
        }
Beispiel #12
0
        public static void Init(Menu MenuParent)
        {
            MenuSettingQ = MenuParent.AddSubMenu("Q:", "SettingsQ");
            {
                string[] strQ = new string[1000 / 250];
                for (var i = 250; i <= 1000; i += 250)
                {
                    strQ[i / 250 - 1] = i + " ms. ";
                }
                MenuSettingQ.Add("Settings.Q.VisibleDelay", new ComboBox("Instatly Visible Enemy Cast Delay:", 2, strQ));
                MenuSettingQ.Add("Settings.Q.CastDelay", new ComboBox("Humanizer Cast Delay [Lane / Combo]", 2, strQ));
            }

            MenuSettingE = MenuParent.AddSubMenu("E:", "SettingsE");
            {
                string[] strE = new string[1000/250];
                for (var i = 250; i <= 1000; i += 250)
                {
                    strE[i/250 - 1] = i + " ms. ";
                }
                MenuSettingE.Add("Settings.E.VisibleDelay", new ComboBox("Instatly Visible Enemy Cast Delay:", 2, strE));
                MenuSettingE.Add("Settings.E.Auto", new ComboBox("Auto-Use (If can stun enemy)", 1, "Off", "On"));
            }

            MenuFlame = MenuParent.AddSubMenu("Flame", "Flame");
            MenuFlame.Add("Flame.Laugh", new ComboBox("After Kill:", 4, "Off", "Joke", "Taunt", "Laugh", "Random"));
            MenuFlame.Add("Flame.Ctrl6", new ComboBox("After Kill: Show Champion Point Icon (Ctrl + 6)", 0, "Off", "On"));

            Modes.ModeJump.Init(MenuParent);
        }
Beispiel #13
0
        public void OnLoad(Menu menu)
        {
            if (!DZAIO.IsDebug)
            {
                Game.PrintChat("Vel'Koz is still WIP. :)");
                return;
            }
            var cName = ObjectManager.Player.ChampionName;
            var comboMenu = new Menu(cName + " - Combo", "dzaio.velkoz.combo");
            comboMenu.AddModeMenu(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { true, true, true, true });

            comboMenu.AddManaManager(Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R }, new[] { 30, 35, 20, 5 });

            var skillOptionMenu = new Menu("Skill Options", "dzaio.velkoz.combo.skilloptions");
            comboMenu.AddSubMenu(skillOptionMenu);

            menu.AddSubMenu(comboMenu);
            var harrassMenu = new Menu(cName + " - Harrass", "dzaio.velkoz.harass");
            harrassMenu.AddModeMenu(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E }, new[] { true, true, false });
            harrassMenu.AddManaManager(Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.W, SpellSlot.E }, new[] { 30, 35, 20 });
            menu.AddSubMenu(harrassMenu);
            var farmMenu = new Menu(cName + " - Farm", "dzaio.velkoz.farm");
            farmMenu.AddModeMenu(Mode.Farm, new[] { SpellSlot.E }, new[] { false });
            farmMenu.AddManaManager(Mode.Farm, new[] { SpellSlot.E }, new[] { 35 });
            menu.AddSubMenu(farmMenu);
            var miscMenu = new Menu(cName + " - Misc", "dzaio.velkoz.misc");
            {
            }
            miscMenu.AddHitChanceSelector();
            menu.AddSubMenu(miscMenu);
            var drawMenu = new Menu(cName + " - Drawings", "dzaio.velkoz.drawing");
            drawMenu.AddDrawMenu(_spells, Color.Aquamarine);
            menu.AddSubMenu(drawMenu);
        }
Beispiel #14
0
        public static void LoadDamagesMenu()
        {
            var Damagesmeny = new Menu("Damage Settings", "Damage Settings");
            {
                var DtoP = new Menu("Damage to Player Settings", "Damage To Player Settings");
                {
                    AddBool(DtoP, "Display Selected Target Damage", "dtop.selectedtarget", false);
                    foreach (var champion in HeroManager.Enemies)
                    {
                        var champions = new Menu(champion.ChampionName, champion.ChampionName);
                        DtoP.AddSubMenu(champions);
                        foreach (var spells in Slots)
                        {
                            AddBool(champions, "Display" + " " + spells + " " + "Damage", "damagesmenu.dtop" + spells,
                                true);
                        }
                    }
                }
                Damagesmeny.AddSubMenu(DtoP);

                var DtoT = new Menu("Damage to Target Settings", "Damage To Target Settings");
                {
                    AddBool(DtoT, "Display Combo Damage on Targets", "dtot.damage", false);
                    foreach (var spells in Slots) // probably wrong, will be checking.
                    {
                        AddBool(DtoT, "Display" + " " + spells + " " + "Damage", "damagesmenu.dtot" + spells, true);
                    }
                }
                Damagesmeny.AddSubMenu(DtoT);
            }
            Config.AddSubMenu(Damagesmeny);
        }
Beispiel #15
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != "Heimerdinger")
                return;

            Q = new Spell(SpellSlot.Q);
            W = new Spell(SpellSlot.W, 1100);
            E = new Spell(SpellSlot.E, 925);
            R = new Spell(SpellSlot.R);

            Menu = new Menu(Player.ChampionName, Player.ChampionName, true);

            Menu orbwalkerMenu = Menu.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));

            Orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);

            Menu ts = Menu.AddSubMenu(new Menu("Target Selector", "Target Selector"));

            TargetSelector.AddToMenu(ts);

            Menu drawMenu = Menu.AddSubMenu(new Menu("Drawings", "Drawings"));

            drawMenu.AddItem(new MenuItem("drawQ", "Draw Q").SetValue(true));
            drawMenu.AddItem(new MenuItem("drawW", "Draw W").SetValue(true));
            drawMenu.AddItem(new MenuItem("drawE", "Draw E").SetValue(true));

            Menu.AddToMainMenu();

            Drawing.OnDraw += Drawing_OnDraw;

            Notifications.AddNotification("Heimerwalker Loaded!", 10000);
        }
Beispiel #16
0
        public static void Game_OnGameLoad()
        {
            if (Player.ChampionName != "Thresh") return;
            FlashSlot = Player.GetSpellSlot("SummonerFlash");

            Q = new Spell(SpellSlot.Q, 1100);
            Q2 = new Spell(SpellSlot.Q, 1400);
            W = new Spell(SpellSlot.W, 950);
            E = new Spell(SpellSlot.E, 400);
            R = new Spell(SpellSlot.R, 450);

            Q.SetSkillshot(0.500f, 70, 1900f, true, SkillshotType.SkillshotLine);
            Q2.SetSkillshot(0.500f, 70, 1900f, true, SkillshotType.SkillshotLine);

            Config = MainMenu.AddMenu("Thresh", "thresh_menu");

            comboMenu = Config.AddSubMenu("Combo", "Combo");
            comboMenu.Add("UseQCombo", new CheckBox("Use Q"));
            comboMenu.Add("UseWCombo", new CheckBox("Use W"));
            comboMenu.Add("UseECombo", new CheckBox("Use E"));
            comboMenu.Add("UseRCombo", new CheckBox("Use R"));
            comboMenu.Add("EPush", new CheckBox("E Push/Pull(on/off)"));

            harassMenu = Config.AddSubMenu("Harass", "Harass");
            harassMenu.Add("UseQHarass", new CheckBox("Use Q"));
            harassMenu.Add("UseEHarass", new CheckBox("Use E"));

            flayMenu = Config.AddSubMenu("Flay", "Flay");
            flayMenu.Add("Push", new KeyBind("Push", false, KeyBind.BindTypes.HoldActive, 'I'));
            flayMenu.Add("Pull", new KeyBind("Pull", false, KeyBind.BindTypes.HoldActive, 'U'));

            miscMenu = Config.AddSubMenu("Misc", "Misc");
            miscMenu.Add("FlashQCombo", new KeyBind("Flash + Hook", false, KeyBind.BindTypes.HoldActive, 'G'));
            miscMenu.Add("EInterrupt", new CheckBox("Interrupt Spells with E"));
            miscMenu.Add("EGapCloser", new CheckBox("Auto use E away on Gap Closers"));
            miscMenu.Add("RGapCloser", new CheckBox("Auto use R on Gap Closers", false));

            lanternMenu = Config.AddSubMenu("Lantern Settings", "LanternSettings");
            lanternMenu.Add("ThrowLantern", new KeyBind("Throw Lantern to Ally", false, KeyBind.BindTypes.HoldActive, 'T'));
            lanternMenu.Add("ThrowLanternNear", new CheckBox("Prioritize Nearest Ally", true));
            lanternMenu.Add("ThrowLanternLife", new CheckBox("Prioritize Low Ally", false));

            drawMenu = Config.AddSubMenu("Drawings", "Drawings");
            drawMenu.Add("drawEnable", new CheckBox("Enable Drawing", true));
            drawMenu.Add("drawQpred", new CheckBox("Draw Q line prediction", true));
            drawMenu.Add("drawQ", new CheckBox("Draw Q", false));
            drawMenu.Add("drawW", new CheckBox("Draw W", false));
            drawMenu.Add("drawE", new CheckBox("Draw E", false));
            drawMenu.Add("drawR", new CheckBox("Draw R", false));

            debugMenu = Config.AddSubMenu("Debug", "Debug");
            debugMenu.Add("debugE", new CheckBox("Debug E", false));
            debugMenu.Add("debugFlash", new CheckBox("Debug flash+hook", false));

            Orbwalker.OnPreAttack += OnBeforeAttack; //You can use OnBeforeAttack event here instead of declaring new delegate in function
            Game.OnUpdate += OnGameUpdate;
            Drawing.OnDraw += OnDraw;
            AntiGapcloser.OnEnemyGapcloser += OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += OnPossibleToInterrupt;
        }
Beispiel #17
0
        public void OnLoad(Menu menu)
        {
            var comboMenu = new Menu(ObjectManager.Player.ChampionName + ": Combo", "dzaio.champion.sivir.combo");
            {
                comboMenu.AddModeMenu(ModesMenuExtensions.Mode.Combo, new[] { SpellSlot.Q, SpellSlot.W }, new[] { true, true });
                menu.AddSubMenu(comboMenu);
            }

            var mixedMenu = new Menu(ObjectManager.Player.ChampionName + ": Mixed", "dzaio.champion.sivir.harrass");
            {
                mixedMenu.AddModeMenu(ModesMenuExtensions.Mode.Harrass, new[] { SpellSlot.Q, SpellSlot.W}, new[] { true, true });
                mixedMenu.AddSlider("dzaio.champion.sivir.mixed.mana", "Min Mana % for Harass", 30, 0, 100);
                menu.AddSubMenu(mixedMenu);
            }

            var farmMenu = new Menu(ObjectManager.Player.ChampionName + ": Farm", "dzaio.champion.sivir.farm");
            {
                farmMenu.AddModeMenu(ModesMenuExtensions.Mode.Laneclear, new[] { SpellSlot.Q, SpellSlot.W }, new[] { true, true });
                farmMenu.AddSlider("dzaio.champion.sivir.farm.q.min", "Min Minions for Q", 4, 1, 6);
                farmMenu.AddSlider("dzaio.champion.sivir.farm.mana", "Min Mana % for Farm", 30, 0, 100);
                menu.AddSubMenu(farmMenu);
            }

            var extraMenu = new Menu(ObjectManager.Player.ChampionName + ": Extra", "dzaio.champion.sivir.extra");
            {
                extraMenu.AddBool("dzaio.champion.sivir.extra.autoE", "E Shield", true);
                extraMenu.AddSlider("dzaio.champion.sivir.extra.autoE.Delay", "E Shield Delay", 120, 0, 350);
                extraMenu.AddBool("dzaio.champion.sivir.extra.autoQKS", "Q KS", true);
                extraMenu.AddBool("dzaio.champion.sivir.extra.autoQRoot", "Q Root/Slow/Dash", true);
            }

            Variables.Spells[SpellSlot.Q].SetSkillshot(0.25f, 90f, 1350f, false, SkillshotType.SkillshotLine);
        }
Beispiel #18
0
 public virtual void closeMenu()
 {
     TargetSelector.AddToMenu(_targetSelectorMenu);
     menu.AddSubMenu(_orbWalkerMenu);            //ORBWALKER
     menu.AddSubMenu(_targetSelectorMenu);
     menu.AddToMainMenu();
 }
Beispiel #19
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            _player = ObjectManager.Player;
            if (_player.ChampionName != "LeeSin") return;

            Q = new Spell(SpellSlot.Q, 1100);
            R = new Spell(SpellSlot.R, 375);

               Q.SetSkillshot(Q.Instance.SData.SpellCastTime, Q.Instance.SData.LineWidth,Q.Instance.SData.MissileSpeed, true, SkillshotType.SkillshotLine);

               _cfg = new Menu("Leesin Mechanics helper","Lee Mechanics Helper", true);

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

               _cfg.AddSubMenu(new Menu("RQQ Settings", "RQQ Settings"));
               _cfg.SubMenu("RQQ Settings").AddItem(new MenuItem("ActiveRQQ", "RQQ").SetValue(new KeyBind(32, KeyBindType.Press)));
               _cfg.SubMenu("RQQ Settings").AddItem(new MenuItem("moveRQQ", "Move to mouse").SetValue(false));
               _cfg.SubMenu("RQQ Settings").AddItem(new MenuItem("UseQ1RQQ", "Use Q1").SetValue(true));
               _cfg.SubMenu("RQQ Settings").AddItem(new MenuItem("UseQ2RQQ", "Use Q2").SetValue(true));

               _cfg.AddSubMenu(new Menu("Flash R Settings", "Flash R Settings"));
               _cfg.SubMenu("Flash R Settings").AddItem(new MenuItem("ActiveFR", "Flash R").SetValue(new KeyBind(40, KeyBindType.Press)));
               _cfg.SubMenu("Flash R Settings").AddItem(new MenuItem("UseQ1RFQQ", "Use Q1").SetValue(true));
               _cfg.SubMenu("Flash R Settings").AddItem(new MenuItem("UseQ2RFQQ", "Use Q2").SetValue(true));
               _cfg.SubMenu("Flash R Settings").AddItem(new MenuItem("moveRFQQ", "Move to mouse").SetValue(false));
            _cfg.AddToMainMenu();

            Game.OnUpdate += Game_OnUpdate;
        }
Beispiel #20
0
        public static void Init(Menu nParentMenu)
        {
            MenuCastSettings = nParentMenu.AddSubMenu("Spell Cast:", "MenuSettings.CastDelay");
            {
                string[] strQ = new string[1000/250];
                for (float i = 250; i <= 1000; i += 250)
                {
                    strQ[(int) (i/250 - 1)] = (i/1000) + " sec. ";
                }
                MenuCastSettings.Add("Settings.SpellCast.VisibleDelay", new ComboBox("Cast Delay: Instatly Visible Enemy", 2, strQ));
                MenuCastSettings.Add("Settings.SpellCast.Default", new CheckBox("Load Recommended Settings"))
                    .OnValueChange += (sender, args) =>
                    {
                        if (args.NewValue)
                        {
                            LoadDefaultCastDelaySettings();
                        }
                    };
            }

            MenuHitchanceSettings = nParentMenu.AddSubMenu("Hitchance:", "MenuSettings.Hitchance");
            {
                string[] nHitchanceList = new[] { "Medium", "High", "VeryHigh" };

                MenuHitchanceSettings.Add("MenuSettings.Hitchance.Q", new ComboBox("Q Hitchance:", 1, nHitchanceList));
                MenuHitchanceSettings.Add("MenuSettings.Hitchance.W", new ComboBox("W Hitchance:", 1, nHitchanceList));
                MenuHitchanceSettings.Add("MenuSettings.Hitchance.E", new ComboBox("E Hitchance:", 1, nHitchanceList));
                MenuHitchanceSettings.Add("MenuSettings.Hitchance.R", new ComboBox("R Hitchance:", 1, nHitchanceList));
            }
        }
Beispiel #21
0
        public static void LoadMenu()
        {
            Config = MainMenu.AddMenu(menuName, menuName);

            combo = Config.AddSubMenu("Combo", "Combo");
            combo.Add("xd", new CheckBox("Select Target For Insec"));
            combo.Add("ComboR", new CheckBox("Use R"));

            harass = Config.AddSubMenu("Harass", "Harass");
            harass.Add("harassQ", new CheckBox("Harass Q"));
            harass.Add("harassW", new CheckBox("Harass W"));
            harass.Add("harassE", new CheckBox("Harass E"));

            Lane = Config.AddSubMenu("Lane", "Lane");
            Lane.Add("LaneQ", new CheckBox("Use Q"));
            Lane.Add("LaneW", new CheckBox("Use W"));
            Lane.Add("LaneE", new CheckBox("Use E"));

            misc = Config.AddSubMenu("Misc", "Misc");
            misc.Add("SmiteJngl", new CheckBox("Auto Smite"));

            draw = Config.AddSubMenu("Draw", "Draw");
            draw.Add("dind", new CheckBox("Damage Indicator"));
            draw.Add("prediction", new CheckBox("R Prediction"));
        }
Beispiel #22
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != "Tryndamere")
                return;

            Q = new Spell(SpellSlot.Q);
            W = new Spell(SpellSlot.W, 400f);
            E = new Spell(SpellSlot.E, 660f);
            R = new Spell(SpellSlot.R);

            E.SetSkillshot(0f, 93f, 600, false, SkillshotType.SkillshotLine);

            Menu = new Menu(Player.ChampionName, Player.ChampionName, true);
            Menu orbwalkerMenu = Menu.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
            Orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);
            Menu ts = Menu.AddSubMenu(new Menu("Target Selector", "Target Selector")); ;
            TargetSelector.AddToMenu(ts);
            Menu spellMenu = Menu.AddSubMenu(new Menu("Spells", "Spells"));

            spellMenu.AddItem(new MenuItem("useQ", "Use Q").SetValue(true));
            spellMenu.AddItem(new MenuItem("qBelow", "Q below % hp").SetValue(new Slider(20, 0, 95)));
            spellMenu.AddItem(new MenuItem("useW", "Use W").SetValue(true));
            spellMenu.AddItem(new MenuItem("useE", "Use E").SetValue(true));
            spellMenu.AddItem(new MenuItem("useR", "Use R Before Death").SetValue(true));
            spellMenu.AddItem(new MenuItem("rBelow", "R below % hp").SetValue(new Slider(15, 0, 95)));

            Menu fleeMenu = Menu.AddSubMenu(new Menu("Flee", "Run Nigger"));
            fleeMenu.AddItem(new MenuItem("useEFlee", "Use E")).SetValue(new KeyBind('Z', KeyBindType.Press));

            Menu.AddToMainMenu();
            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnUpdate += Game_OnGameUpdate;
            Game.PrintChat("I'm a DK");
        }
Beispiel #23
0
        public static void OnLoad(Menu RootMenu)
        {
            var OrbwalkerMenu = new Menu("Orbwalker", "dz191.jayce.orbwalker");
            Jayce.Orbwalker = new Orbwalking.Orbwalker(OrbwalkerMenu);
            RootMenu.AddSubMenu(OrbwalkerMenu);

            var TSMenu = new Menu("TargetSelector", "dz191.jayce.ts");

            TargetSelector.AddToMenu(TSMenu);

            RootMenu.AddSubMenu(TSMenu);

            var ComboMenu = new Menu("Combo","dz191.jayce.combo");
            {
                ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.qranged", "Use Q Ranged").SetValue(true));
                ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.wranged", "Use W Ranged").SetValue(true));
                ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.eranged", "Use E Ranged").SetValue(true));
                ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.qmelee", "Use Q Melee").SetValue(true));
                ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.wmelee", "Use W Melee").SetValue(true));
                ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.emelee", "Use E Melee").SetValue(true));
                ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.r", "Use R").SetValue(true));
                RootMenu.AddSubMenu(ComboMenu);
            }

            RootMenu.AddToMainMenu();
        }
Beispiel #24
0
        public static void Init(Menu MenuParent)
        {
            MenuLocal = MenuParent.AddSubMenu("Humanizer Spell Cast", "SettingsSpellCast");
            {
                string[] strQ = new string[1000 / 250];
                for (float i = 250; i <= 1000; i += 250)
                {
                    strQ[(int) (i / 250 - 1)] = (i / 1000) + " sec. ";
                }
                MenuLocal.Add("Settings.SpellCast.VisibleDelay", new ComboBox("Cast Delay: Instatly Visible Enemy", 2, strQ));
                MenuLocal.Add("Settings.SpellCast.Default", new CheckBox("Load Recommended Settings"))
                    .OnValueChange += (sender, args) =>
                                {
                                    if (args.NewValue)
                                    {
                                        LoadDefaultSettingsQ();
                                    }
                                };
            }

            MenuSettingE = MenuParent.AddSubMenu("E Settings:", "MenuSettings.E");
            int eRange = (int)PlayerSpells.E.Range;
            MenuSettingE.Add("Settings.E.MaxRange", new Slider("E: Max. Rage [Default: 800]", eRange - 20, eRange / 2, eRange + 50));
            MenuSettingE.Add("Settings.E.Hitchance", new ComboBox("E:", 2, "Hitchance = Very High", "Hitchance >= High", "Hitchance >= Medium", "Hitchance >= Low"));

            MenuFlame = MenuParent.AddSubMenu("Flame", "Flame");
            MenuFlame.Add("Flame.Laugh", new ComboBox("After Kill:", 5, "Off", "Joke", "Taunt", "Laugh", "Mastery Badge", "Random"));

            Modes.ModeJump.Init(MenuParent);
        }
        public static void BadaoActivate()
        {
            // spells init
            BadaoMainVariables.Q = new Spell(SpellSlot.Q, 625);
            BadaoMainVariables.W = new Spell(SpellSlot.W);
            BadaoMainVariables.E = new Spell(SpellSlot.E,1000);
            BadaoMainVariables.R = new Spell(SpellSlot.R);

            // main menu
            config = MainMenu.AddMenu("BadaoKingdom " + ObjectManager.Player.ChampionName, ObjectManager.Player.ChampionName);

            // Combo
            Menu Combo = config.AddSubMenu("Combo", "Combo");
            BadaoGangplankVariables.ComboE1 = Combo.Add("ComboE1", new CheckBox("Place 1st Barrel")).CurrentValue;

            // Harass
            Menu Harass = config.AddSubMenu("Harass", "Harass");
            BadaoGangplankVariables.HarassQ = Harass.Add("HarassQ", new CheckBox("Q")).CurrentValue;

            // LaneClear
            Menu LaneClear = config.AddSubMenu("LaneClear", "LaneClear");
            BadaoGangplankVariables.LaneQ = LaneClear.Add("LaneQ", new CheckBox("Use Q last hit")).CurrentValue;

            // JungleClear
            Menu JungleClear = config.AddSubMenu("JungleClear", "JungleClear");
            BadaoGangplankVariables.JungleQ = JungleClear.Add("jungleQ", new CheckBox("Use Q last hit")).CurrentValue;

            //Auto
            Menu Auto = config.AddSubMenu("Auto", "Auto");
            BadaoGangplankVariables.AutoWLowHealth = (Auto.Add("AutoWLowHealth", new CheckBox("W when low health"))).CurrentValue;
            BadaoGangplankVariables.AutoWLowHealthValue = Auto.Add("AutoWLowHealthValue", new Slider("% HP to W", 20, 1, 100)).CurrentValue;
            BadaoGangplankVariables.AutoWCC = Auto.Add("AutoWCC", new CheckBox("W anti CC")).CurrentValue;
        }
Beispiel #26
0
        /// <summary>
        ///     The generation function.
        /// </summary>
        /// <param name="root">
        ///     The root menu
        /// </param>
        public static void Generate(Menu root)
        {
            var comboMenu = new Menu("Combo Options", "com.iseries.graves.combo");
            {
                comboMenu.AddItem(new MenuItem("com.iseries.graves.combo.useQ", "Use Q").SetValue(true));
                comboMenu.AddItem(new MenuItem("com.iseries.graves.combo.useW", "Use W").SetValue(true));
                comboMenu.AddItem(new MenuItem("com.iseries.graves.combo.useR", "Use R").SetValue(true));
                comboMenu.AddItem(new MenuItem("com.iseries.graves.combo.minW", "Min. Enemies for W").SetValue(new Slider(2,1,5)));
                root.AddSubMenu(comboMenu);
            }

            var harassMenu = new Menu("Harass Options", "com.iseries.graves.harass");
            {
                harassMenu.AddItem(new MenuItem("com.iseries.graves.harass.useQ", "Use Q").SetValue(false));
                root.AddSubMenu(harassMenu);
            }

            var laneclearMenu = new Menu("Laneclear Options", "com.iseries.graves.laneclear");
            {
                laneclearMenu.AddItem(new MenuItem("com.iseries.graves.laneclear.useQ", "Use Q").SetValue(true));
                root.AddSubMenu(laneclearMenu);
            }

            var misc = new Menu("Misc Options", "com.iseries.graves.misc");
            {
                misc.AddItem(
                    new MenuItem("com.iseries.graves.misc.hitchance", "Hitchance").SetValue(
                        new StringList(new[] { "Low", "Medium", "High", "Very High" }, 3)));
                misc.AddItem(new MenuItem("com.iseries.graves.misc.peel", "Peel With E").SetValue(true));
                root.AddSubMenu(misc);
            }

            root.AddToMainMenu();
        }
        private Menu Auto()
        {
            var basename=_baseName+"Auto.";

            var mainMenu=new Menu(nameof(Auto), basename);

            mainMenu.AddItem(new MenuItem($"{basename}.UseW.OnImmobile ", "Use W on Immobile enemies").SetValue(true));

            mainMenu.AddItem(new MenuItem($"{basename}.UseE.OnGapClose", "Use E on gapclose").SetValue(true));
            var eMenu=new Menu("GapClose E Settings", basename+"GapCloseE");

            foreach (var enemy in Functions.Objects.Heroes.GetEnemies())
                eMenu.AddItem(new MenuItem($"{basename}.UseE.OnGapClose.{enemy.ChampionName}", $"On {enemy.ChampionName}").SetValue(true));

            mainMenu.AddItem(new MenuItem($"{basename}.UseW.OnGapClose", "Use W on gapclose").SetValue(true));
            var wMenu=new Menu("GapClose W Settings", basename+"GapCloseW");

            foreach (var enemy in Functions.Objects.Heroes.GetEnemies())
                wMenu.AddItem(new MenuItem($"{basename}.UseW.OnGapClose.{enemy.ChampionName}", $"On {enemy.ChampionName}").SetValue(true));

            mainMenu.AddItem(new MenuItem($"{basename}.UseR.OnKillable", "Use R on Killable").SetValue(true));
            var rMenu=new Menu("Killable R Settings", basename+"KillableR");

            foreach (var enemy in Functions.Objects.Heroes.GetEnemies())
                rMenu.AddItem(new MenuItem($"{basename}.UseR.OnKillable.{enemy.ChampionName}", $"On {enemy.ChampionName}").SetValue(true));

            mainMenu.AddSubMenu(eMenu);
            mainMenu.AddSubMenu(wMenu);
            mainMenu.AddSubMenu(rMenu);

            return mainMenu;
        }
Beispiel #28
0
        public Karthus()
        {
            if (ObjectManager.Player.ChampionName != "Karthus")
                return;

            _menu = MainMenu.AddMenu("KarthusSharp", "KarthusSharp");

            comboMenu = _menu.AddSubMenu("Combo", "Combo");
            comboMenu.Add("comboQ", new CheckBox("Use Q", true));
            comboMenu.Add("comboW", new CheckBox("Use W", true));
            comboMenu.Add("comboE", new CheckBox("Use E", true));
            comboMenu.Add("comboAA", new CheckBox("Disable AA?", false));
            comboMenu.Add("comboWPercent", new Slider("Use W until Mana %", 10, 0, 100));
            comboMenu.Add("comboEPercent", new Slider("Use E until Mana %", 15, 0, 100));

            harassMenu = _menu.AddSubMenu("Harass", "Harass");
            harassMenu.Add("harassQ", new CheckBox("Use Q", true));
            harassMenu.Add("harassQPercent", new Slider("Use Q until Mana %", 15, 0, 100));
            harassMenu.Add("harassQLasthit", new CheckBox("Prioritize Last Hit", true));
            harassMenu.Add("harassQToggle", new KeyBind("Toggle Q", false, KeyBind.BindTypes.PressToggle, 'H'));

            farmMenu = _menu.AddSubMenu("Farming", "Farming");
            farmMenu.Add("farmQ", new ComboBox("Last Hit", 1, "Last Hit", "Lane Clear", "No"));
            farmMenu.Add("farmE", new CheckBox("Use E in Lane Clear", true));
            farmMenu.Add("farmAA", new CheckBox("Disable AA in Lane Clear", false));
            farmMenu.Add("farmQPercent", new Slider("Use Q until Mana %", 15, 0, 100));
            farmMenu.Add("farmEPercent", new Slider("Use E until Mana %", 20, 0, 100));

            notifyMenu = _menu.AddSubMenu("Notify on R killable", "Notify");
            notifyMenu.Add("notifyR", new CheckBox("Text Notify", true));
            notifyMenu.Add("notifyPing", new CheckBox("Ping Notify", false));

            drawMenu = _menu.AddSubMenu("Drawing", "Drawing");
            drawMenu.Add("drawQ", new CheckBox("Draw Q range", true));
            drawMenu.Add("DamageAfterCombo", new CheckBox("Damage After Combo", true));

            miscMenu = _menu.AddSubMenu("Misc", "Misc");
            miscMenu.Add("ultKS", new CheckBox("Ultimate KS", true));
            miscMenu.Add("autoCast", new CheckBox("Auto Combo/LaneClear if dead", false));
            miscMenu.Add("packetCast", new CheckBox("Packet Cast", false));

            _spellQ = new Spell(SpellSlot.Q, 875);
            _spellW = new Spell(SpellSlot.W, 1000);
            _spellE = new Spell(SpellSlot.E, 505);
            _spellR = new Spell(SpellSlot.R, 20000f);

            _spellQ.SetSkillshot(1f, 160, float.MaxValue, false, SkillshotType.SkillshotCircle);
            _spellW.SetSkillshot(.5f, 70, float.MaxValue, false, SkillshotType.SkillshotCircle);
            _spellE.SetSkillshot(1f, 505, float.MaxValue, false, SkillshotType.SkillshotCircle);
            _spellR.SetSkillshot(3f, float.MaxValue, float.MaxValue, false, SkillshotType.SkillshotCircle);

            LeagueSharp.Common.Utility.HpBarDamageIndicator.DamageToUnit = ComboDamage;

            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnUpdate += Game_OnUpdate;
            Orbwalker.OnPreAttack += Orbwalking_BeforeAttack;

            Chat.Print(
                "<font color=\"#1eff00\">KarthusSharp by Beaving</font> - <font color=\"#00BFFF\">Loaded</font>");
        }
Beispiel #29
0
        public static void OnLoad(Menu RootMenu)
        {
            var OrbwalkerMenu = new Menu("Orbwalker", "dz191.jayce.orbwalker");
            Jayce.Orbwalker = new Orbwalking.Orbwalker(OrbwalkerMenu);
            RootMenu.AddSubMenu(OrbwalkerMenu);

            var TSMenu = new Menu("TargetSelector", "dz191.jayce.ts");

            TargetSelector.AddToMenu(TSMenu);

            RootMenu.AddSubMenu(TSMenu);

            var ComboMenu = new Menu("Combo","dz191.jayce.combo");
            {
                ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.qranged", "Use Q Ranged").SetValue(true));
                ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.wranged", "Use W Ranged").SetValue(true));
                ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.eranged", "Use E Ranged").SetValue(true));
                ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.qmelee", "Use Q Melee").SetValue(true));
                ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.wmelee", "Use W Melee").SetValue(true));
                ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.emelee", "Use E Melee").SetValue(true));
                ComboMenu.AddItem(new MenuItem("dz191.jayce.combo.r", "Use R").SetValue(true));
                RootMenu.AddSubMenu(ComboMenu);
            }

            var MiscMenu = new Menu("MiscMenu", "dz191.jayce.misc");
            {
                MiscMenu.AddItem(new MenuItem("dz191.jayce.misc.gatemode", "Gate Mode").SetValue(new StringList(new []{"Horizontal", "Vertical"})));
                MiscMenu.AddItem(new MenuItem("dz191.jayce.misc.castqe", "Cast QE to best target").SetValue(new KeyBind('T', KeyBindType.Press)));
                MiscMenu.AddItem(new MenuItem("dz191.jayce.misc.castqemouse", "Cast QE to mouse").SetValue(new KeyBind('Z', KeyBindType.Press)));
                RootMenu.AddSubMenu(MiscMenu);
            }

            RootMenu.AddToMainMenu();
        }
Beispiel #30
0
        public void OnLoad(Menu menu)
        {
            var comboMenu = new Menu(ObjectManager.Player.ChampionName + ": Combo", "dzaio.champion.bard.combo");
            {
                comboMenu.AddModeMenu(ModesMenuExtensions.Mode.Combo, new[] { SpellSlot.Q, SpellSlot.R }, new[] { true, true });
                comboMenu.AddSlider("dzaio.champion.bard.combo.r.min", "Min Enemies for R", 2, 1, 5);

                menu.AddSubMenu(comboMenu);
            }

            var mixedMenu = new Menu(ObjectManager.Player.ChampionName + ": Mixed", "dzaio.champion.bard.harrass");
            {
                mixedMenu.AddModeMenu(ModesMenuExtensions.Mode.Harrass, new[] { SpellSlot.Q}, new[] { true });
                mixedMenu.AddSlider("dzaio.champion.bard.mixed.mana", "Min Mana % for Harass", 30, 0, 100);
                menu.AddSubMenu(mixedMenu);
            }

            var extraMenu = new Menu(ObjectManager.Player.ChampionName + ": Extra", "dzaio.champion.bard.extra");
            {
                extraMenu.AddBool("dzaio.champion.bard.extra.interrupter", "Interrupter (Q)", true);
                extraMenu.AddBool("dzaio.champion.bard.extra.antigapcloser", "Antigapcloser (Q)", true);
                extraMenu.AddBool("dzaio.champion.bard.extra.autoQ", "Auto Q Stunned / Rooted", true);
                extraMenu.AddBool("dzaio.champion.bard.extra.autoQKS", "Auto Q KS", true);
                extraMenu.AddBool("dzaio.champion.bard.extra.supportmode", "Support Mode", true);
                extraMenu.AddKeybind("dzaio.champion.bard.extra.fleemode", "Flee Mode", new Tuple<uint, KeyBindType>('Z', KeyBindType.Press));
            }

            Variables.Spells[SpellSlot.Q].SetSkillshot(0.25f, 100, 1600, false, SkillshotType.SkillshotLine);
            Variables.Spells[SpellSlot.E].SetSkillshot(0.25f, 60, 1200, true, SkillshotType.SkillshotLine);
        }
Beispiel #31
0
        public static void Init(Menu MenuParent)
        {
            MenuLocal = new Menu("Settings", "Settings");
            MenuParent.AddSubMenu(MenuLocal);

            MenuSpellW = new Menu("W:", "SettingsW").SetFontStyle(FontStyle.Regular, Champion.PlayerSpells.Q.MenuColor());
            {
                MenuSpellW.AddItem(new MenuItem("Set.W.Hitchance", "Hitchance:").SetValue(new StringList(new[] {"Medium", "High", "Veryhigh"}, 2)));
                MenuLocal.AddSubMenu(MenuSpellW);
            }

            MenuSpellR = new Menu("R:", "SettingsR").SetFontStyle(FontStyle.Regular, Champion.PlayerSpells.Q.MenuColor());
            {
                MenuSpellR.AddItem(new MenuItem("Set.R.Hitchance", "Hitchance:").SetValue(new StringList(new[] { "Medium", "High", "Veryhigh" }, 2)));
                MenuSpellR.AddItem(new MenuItem("Set.R.JungleSteal", "Baron / Dragon Steal:").SetValue(true));
                MenuSpellR.AddItem(new MenuItem("Set.R.BaseUlti", "Base Ulti:").SetValue(true));
                MenuSpellR.AddItem(new MenuItem("Set.R.Ping", "Ping for Killable Enemy (Local):").SetValue(new StringList(new[] { "Off", "Fallback", "Danger" }, 2)));
                MenuLocal.AddSubMenu(MenuSpellR);
            }

            MenuFlame = new Menu("Flame", "Flame");
            MenuFlame.AddItem(new MenuItem("Flame.Laugh", "After Kill:").SetValue(new StringList(new[] {"Off", "Joke", "Taunt", "Laugh", "Random"}, 4)));
            MenuFlame.AddItem(new MenuItem("Flame.Ctrl6", "After Kill: Show Champion Point Icon (Ctrl + 6)").SetValue(new StringList(new[] { "Off", "On" })));

            Modes.ModeBaseUlti.Init(MenuLocal);
            // Common.CommonManaManager.Init(MenuLocal);
        }
Beispiel #32
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Config = new Menu("ChatTranslator", "ChatTranslator", true);
            Menu translator   = new Menu("Translator", "Translator");
            Menu incomingText = new Menu("IncomingText", "IncomingText");

            incomingText.AddItem(new MenuItem("From", "From: ").SetValue(new StringList(fromArray)));
            incomingText.AddItem(new MenuItem("To", "To: ").SetValue(new StringList(toArray)));
            incomingText.AddItem(new MenuItem("Phonetical", "Use special characters").SetValue(false));
            incomingText.AddItem(new MenuItem("Enabled", "Enabled").SetValue(true));
            translator.AddSubMenu(incomingText);
            Menu outgoingText = new Menu("OutgoingText", "OutgoingText");

            outgoingText.AddItem(new MenuItem("OutFrom", "From: ").SetValue(new StringList(toArray)));
            outgoingText.AddItem(new MenuItem("OutTo", "To: ").SetValue(new StringList(toArray)));
            outgoingText.AddItem(new MenuItem("EnabledOut", "Enabled").SetValue(false));
            translator.AddSubMenu(outgoingText);
            Menu position = new Menu("Position", "Position");

            position.AddItem(new MenuItem("Horizontal", "Horizontal").SetValue(new Slider(15, 1, 2000)));
            position.AddItem(new MenuItem("Vertical", "Vertical").SetValue(new Slider(500, 1, 2000)));
            position.AddItem(new MenuItem("AutoShow", "Show on message").SetValue(true));
            position.AddItem(new MenuItem("Duration", "   Duration").SetValue(new Slider(3000, 1000, 8000)));
            translator.AddSubMenu(position);
            translator.AddItem(new MenuItem("Check", "Check").SetValue(new KeyBind(32, KeyBindType.Press)));
            Config.AddSubMenu(translator);
            Menu logger = new Menu("Logger", "Logger");

            logger.AddItem(new MenuItem("EnabledLog", "Enable").SetValue(true));
            Config.AddSubMenu(logger);
            Menu copyPaste = new Menu("Paste", "Paste");

            copyPaste.AddItem(new MenuItem("Paste", "Paste").SetValue(new KeyBind("P".ToCharArray()[0], KeyBindType.Press)));
            copyPaste.AddItem(new MenuItem("PasteForAll", "Paste for all").SetValue(new KeyBind("O".ToCharArray()[0], KeyBindType.Press)));
            copyPaste.AddItem(new MenuItem("Delay", "Spam delay").SetValue(new Slider(2000, 0, 2000)));
            copyPaste.AddItem(new MenuItem("DisablePaste", "Disable this section").SetValue(true));
            Config.AddSubMenu(copyPaste);
            Config.AddToMainMenu();

            Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- ChatTranslator</font>");
            Game.OnUpdate  += Game_OnUpdate;
            Game.OnInput   += Game_GameInput;
            Game.OnChat    += Game_OnChat;
            Drawing.OnDraw += Drawing_OnDraw;
            lastMessages.CollectionChanged += OnMessage;
            path     = string.Format(@"{0}\ChatLogs\{1}\{2}\{3}\{4}\", LeagueSharp.Common.Config.AppDataDirectory, DateTime.Now.ToString("yyyy"), DateTime.Now.ToString("MMMM"), DateTime.Now.ToString("dd"), Utility.Map.GetMap().ShortName);
            fileName = ObjectManager.Player.SkinName + "_" + Game.Id + ".txt";
            if (!System.IO.Directory.Exists(path))
            {
                System.IO.Directory.CreateDirectory(path);
            }
            if (Config.Item("EnabledLog").GetValue <bool>())
            {
                InitText();
            }
            test("Hello");
        }
Beispiel #33
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>");
        }
Beispiel #34
0
        public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
        {
            var newMenu = Menu.GetSubMenu(menu, "SAssembliesDetectorsGank");

            if (newMenu == null)
            {
                GankDetector.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("DETECTORS_GANK_MAIN"), "SAssembliesDetectorsGank"));
                GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankPingTimes", Language.GetString("GLOBAL_PING_TIMES")).SetValue(new Slider(0, 5, 0)));
                GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankPingType", Language.GetString("GLOBAL_PING_TYPE")).SetValue(new StringList(new[]
                {
                    Language.GetString("GLOBAL_PING_TYPE_NORMAL"),
                    Language.GetString("GLOBAL_PING_TYPE_DANGER"),
                    Language.GetString("GLOBAL_PING_TYPE_ENEMYMISSING"),
                    Language.GetString("GLOBAL_PING_TYPE_ONMYWAY"),
                    Language.GetString("GLOBAL_PING_TYPE_FALLBACK"),
                    Language.GetString("GLOBAL_PING_ASSISTME")
                })));
                GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankLocalPing", Language.GetString("GLOBAL_PING_LOCAL")).SetValue(true));
                GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankChat", Language.GetString("GLOBAL_CHAT")).SetValue(false));
                GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankNotification", Language.GetString("GLOBAL_NOTIFICATION")).SetValue(false));
                GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankTrackRangeMin", Language.GetString("DETECTORS_GANK_RANGE_MIN")).SetValue(new Slider(1, 10000, 1)));
                GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankTrackRangeMax", Language.GetString("DETECTORS_GANK_RANGE_MAX")).SetValue(new Slider(1, 10000, 1)));
                GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankDisableTime", Language.GetString("DETECTORS_GANK_DISABLETIME")).SetValue(new Slider(20, 180, 1)));
                GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankCooldown", Language.GetString("GLOBAL_COOLDOWN")).SetValue(new Slider(5, 60, 1)));
                GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankShowJungler", Language.GetString("DETECTORS_GANK_SHOWJUNGLER")).SetValue(false));
                GankDetector.Menu.AddItem(new MenuItem("SAssembliesDetectorsGankVoice", Language.GetString("GLOBAL_VOICE")).SetValue(false));
                GankDetector.CreateActiveMenuItem("SAssembliesDetectorsGankActive", () => new Gank());
            }
            return(GankDetector);
        }
Beispiel #35
0
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     AutoExhaustActivator.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("ACTIVATORS_AUTOEXHAUST_MAIN"), "SAssembliesActivatorsAutoExhaust"));
     AutoExhaustActivator.MenuItems.Add(
         AutoExhaustActivator.Menu.AddItem(
             new MenuItem("SAssembliesSActivatorsAutoExhaustAutoCast", Language.GetString("ACTIVATORS_AUTOEXHAUST_AUTOCAST")).SetValue(
                 new KeyBind(32, KeyBindType.Press))));
     AutoExhaustActivator.MenuItems.Add(
         AutoExhaustActivator.Menu.AddItem(
             new MenuItem("SAssembliesSActivatorsAutoExhaustMinEnemies", Language.GetString("ACTIVATORS_AUTOEXHAUST_MIN_ENEMIES")).SetValue(
                 new Slider(3, 5, 1))));
     AutoExhaustActivator.MenuItems.Add(
         AutoExhaustActivator.Menu.AddItem(
             new MenuItem("SAssembliesSActivatorsAutoExhaustAllyPercent", Language.GetString("ACTIVATORS_AUTOEXHAUST_ALLY_PERCENT")).SetValue(
                 new Slider(20, 100, 1))));
     AutoExhaustActivator.MenuItems.Add(
         AutoExhaustActivator.Menu.AddItem(
             new MenuItem("SAssembliesSActivatorsAutoExhaustSelfPercent", Language.GetString("ACTIVATORS_AUTOEXHAUST_SELF_PERCENT")).SetValue(
                 new Slider(20, 100, 1))));
     AutoExhaustActivator.MenuItems.Add(
         AutoExhaustActivator.Menu.AddItem(
             new MenuItem("SAssembliesSActivatorsAutoExhaustUseUltSpells", Language.GetString("ACTIVATORS_AUTOEXHAUST_ULTSPELLS")).SetValue(
                 false)));
     AutoExhaustActivator.MenuItems.Add(
         AutoExhaustActivator.Menu.AddItem(new MenuItem("SAssembliesActivatorsAutoExhaustActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(AutoExhaustActivator);
 }
Beispiel #36
0
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     JunglerTracker.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("TRACKERS_JUNGLER_MAIN"), "SAssembliesTrackersJungler"));
     JunglerTracker.MenuItems.Add(
         JunglerTracker.Menu.AddItem(new MenuItem("SAssembliesTrackersJunglerActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(JunglerTracker);
 }
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     Language.SetLanguage();
     Ranges.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("RANGES_RANGE_MAIN"), "SAwarenessRanges"));
     Ranges.MenuItems.Add(Ranges.Menu.AddItem(new MenuItem("SAwarenessRangesActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(Ranges);
 }
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     TurnAroundMisc.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("MISCS_TURNAROUND_MAIN"), "SAssembliesMiscsTurnAround"));
     TurnAroundMisc.MenuItems.Add(
         TurnAroundMisc.Menu.AddItem(new MenuItem("SAssembliesMiscsTurnAroundActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(TurnAroundMisc);
 }
        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;
        }
Beispiel #40
0
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     FowWardPlacementWard.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("WARDS_FOWWARDPLACEMENT_MAIN"), "SAssembliesWardsFowWardPlacement"));
     FowWardPlacementWard.MenuItems.Add(
         FowWardPlacementWard.Menu.AddItem(new MenuItem("SAssembliesWardsFowWardPlacementActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(FowWardPlacementWard);
 }
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     AntiVisualScreenStealthMisc.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("MISCS_ANTIVISUALSCREENSTEALTH_MAIN"), "SAssembliesMiscsAntiVisualScreenStealth"));
     AntiVisualScreenStealthMisc.MenuItems.Add(
         AntiVisualScreenStealthMisc.Menu.AddItem(new MenuItem("SAssembliesMiscsAntiVisualScreenStealthActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(AntiVisualScreenStealthMisc);
 }
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     ShowPingMisc.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("MISCS_SHOWPING_MAIN"), "SAssembliesMiscsShowPing"));
     ShowPingMisc.MenuItems.Add(
         ShowPingMisc.Menu.AddItem(new MenuItem("SAssembliesMiscsShowPingActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(ShowPingMisc);
 }
Beispiel #43
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);
        }
        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);
        }
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     RealTimeMisc.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("MISCS_REALTIME_MAIN"), "SAssembliesMiscsRealTime"));
     RealTimeMisc.MenuItems.Add(
         RealTimeMisc.Menu.AddItem(new MenuItem("SAssembliesMiscsRealTimeActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(RealTimeMisc);
 }
Beispiel #46
0
        public static void Initialize(Menu menuConfig)
        {
            LocalMenu = new LeagueSharp.Common.Menu("Drawings", "Drawings");
            {
                var menuSword = new LeagueSharp.Common.Menu("Sword", "Menu.Sword");
                {
                    menuSword.AddItem(
                        new MenuItem("Draw.SwordPosition", "Draw: Sword Position").SetValue(new Circle(true, Color.Red)));
                    menuSword.AddItem(
                        new MenuItem("Draw.SwordHitPosition", "Draw: Sword Enemy Hit Position").SetValue(new Circle(
                                                                                                             true, Color.Wheat)));
                    LocalMenu.AddSubMenu(menuSword);
                }
                LocalMenu.AddItem(new MenuItem("Draw.Q", "Q: Extra AA Range").SetValue(new Circle(true, Color.Gray)))
                .SetFontStyle(FontStyle.Regular, Shen.Champion.PlayerSpells.W.MenuColor());
                LocalMenu.AddItem(new MenuItem("Draw.W", "W: Effect Range").SetValue(new Circle(true, Color.Gray)))
                .SetFontStyle(FontStyle.Regular, Shen.Champion.PlayerSpells.W.MenuColor());
                LocalMenu.AddItem(new MenuItem("Draw.E", "E: Range").SetValue(new Circle(false, Color.GreenYellow)))
                .SetFontStyle(FontStyle.Regular, Shen.Champion.PlayerSpells.R.MenuColor());
                LocalMenu.AddItem(new MenuItem("Draw.EF", "Flash + E Range").SetValue(new Circle(false, Color.Coral)))
                .SetFontStyle(FontStyle.Regular, Shen.Champion.PlayerSpells.E.MenuColor());
                menuConfig.AddSubMenu(LocalMenu);
            }

            Drawing.OnDraw += DrawingOnOnDraw;
        }
Beispiel #47
0
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu, bool useExisitingMenu = false)
 {
     Language.SetLanguage();
     if (!useExisitingMenu)
     {
         bool loaded = Menu.GetSubMenu(menu, "SAssembliesHealths") != null;
         Healths.Menu = Menu.GetSubMenu(menu, "SAssembliesHealths") ?? menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("HEALTHS_HEALTH_MAIN"), "SAssembliesHealths"));
         if (!loaded)
         {
             Healths.Menu.AddItem(new MenuItem("SAssembliesHealthsMode", Language.GetString("GLOBAL_MODE")).SetValue(new StringList(new[]
             {
                 Language.GetString("GLOBAL_MODE_PERCENT"),
                 Language.GetString("GLOBAL_MODE_VALUE")
             })));
             Healths.Menu.AddItem(new MenuItem("SAssembliesHealthsTextScale", Language.GetString("GLOBAL_SCALE")).SetValue(new Slider(14, 8, 20)));
         }
     }
     else
     {
         Healths.Menu = menu;
     }
     if (!useExisitingMenu)
     {
         Healths.CreateActiveMenuItem("SAssembliesHealthsActive");
     }
     return(Healths);
 }
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     TurretHealth.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("HEALTHS_TURRET_MAIN"), "SAssembliesHealthsTurret"));
     TurretHealth.MenuItems.Add(
         TurretHealth.Menu.AddItem(new MenuItem("SAssembliesHealthsTurretActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(TurretHealth);
 }
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     Language.SetLanguage();
     Miscs.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("MISCS_MISC_MAIN"), "SAssembliesMiscs"));
     Miscs.MenuItems.Add(Miscs.Menu.AddItem(new MenuItem("SAssembliesMiscsActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(Miscs);
 }
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     SmartPingImproveMisc.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("MISCS_SMARTPINGIMPROVE_MAIN"), "SAssembliesMiscsSmartPingImprove"));
     SmartPingImproveMisc.MenuItems.Add(
         SmartPingImproveMisc.Menu.AddItem(new MenuItem("SAssembliesMiscsSmartPingImproveActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(SmartPingImproveMisc);
 }
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     Language.SetLanguage();
     Detectors.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("DETECTORS_DETECTOR_MAIN"), "SAssembliesDetectors"));
     Detectors.MenuItems.Add(Detectors.Menu.AddItem(new MenuItem("SAssembliesDetectorsActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(Detectors);
 }
Beispiel #52
0
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     InhibitorHealth.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("HEALTHS_INHIBITOR_MAIN"), "SAssembliesHealthsInhibitor"));
     InhibitorHealth.MenuItems.Add(
         InhibitorHealth.Menu.AddItem(new MenuItem("SAssembliesHealthsInhibitorActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(InhibitorHealth);
 }
Beispiel #53
0
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     ExecuteTimers.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("TIMERS_EXECUTE_MAIN"), "SAssembliesTimersExecute"));
     ExecuteTimers.MenuItems.Add(
         ExecuteTimers.Menu.AddItem(new MenuItem("SAssembliesTimersExecuteActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(ExecuteTimers);
 }
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     EasyRangedJungleMisc.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("MISCS_EASYRANGEDJUNGLE_MAIN"), "SAssembliesMiscsEasyRangedJungle"));
     EasyRangedJungleMisc.MenuItems.Add(
         EasyRangedJungleMisc.Menu.AddItem(new MenuItem("SAssembliesMiscsEasyRangedJungleActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(EasyRangedJungleMisc);
 }
Beispiel #55
0
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     CloneTracker.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("TRACKERS_CLONE_MAIN"), "SAssembliesTrackersClone"));
     CloneTracker.MenuItems.Add(
         CloneTracker.Menu.AddItem(new MenuItem("SAssembliesTrackersCloneActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(CloneTracker);
 }
Beispiel #56
0
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     SurrenderVoteMisc.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("MISCS_SURRENDERVOTE_MAIN"), "SAssembliesMiscsSurrenderVote"));
     SurrenderVoteMisc.MenuItems.Add(
         SurrenderVoteMisc.Menu.AddItem(new MenuItem("SAssembliesMiscsSurrenderVoteActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(SurrenderVoteMisc);
 }
Beispiel #57
0
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu, bool useExisitingMenu = false)
 {
     Language.SetLanguage();
     if (!useExisitingMenu)
     {
         bool loaded = Menu.GetSubMenu(menu, "SAssembliesTimers") != null;
         Timers.Menu = Menu.GetSubMenu(menu, "SAssembliesTimers") ?? menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("TIMERS_TIMER_MAIN"), "SAssembliesTimers"));
         if (!loaded)
         {
             Timers.Menu.AddItem(new MenuItem("SAssembliesTimersPingTimes", Language.GetString("GLOBAL_PING_TIMES")).SetValue(new Slider(0, 5, 0)));
             Timers.Menu.AddItem(new MenuItem("SAssembliesTimersRemindTime", Language.GetString("TIMERS_REMIND_TIME")).SetValue(new Slider(0, 50, 0)));
             Timers.Menu.AddItem(new MenuItem("SAssembliesTimersLocalPing", Language.GetString("GLOBAL_PING_LOCAL")).SetValue(true));
             Timers.Menu.AddItem(new MenuItem("SAssembliesTimersChat", Language.GetString("GLOBAL_CHAT")).SetValue(false));
             Timers.Menu.AddItem(new MenuItem("SAssembliesTimersNotification", Language.GetString("GLOBAL_NOTIFICATION")).SetValue(false));
             Timers.Menu.AddItem(new MenuItem("SAssembliesTimersSpeech", Language.GetString("GLOBAL_VOICE")).SetValue(false));
             Timers.Menu.AddItem(new MenuItem("SAssembliesTimersTextScale", Language.GetString("TIMERS_TIMER_SCALE")).SetValue(new Slider(12, 8, 20)));
         }
     }
     else
     {
         Timers.Menu = menu;
     }
     if (!useExisitingMenu)
     {
         Timers.CreateActiveMenuItem("SAssembliesTimersActive");
     }
     return(Timers);
 }
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     AutoIgniteActivator.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("ACTIVATORS_AUTOIGNITE_MAIN"), "SAssembliesActivatorsAutoIgnite"));
     AutoIgniteActivator.MenuItems.Add(
         AutoIgniteActivator.Menu.AddItem(new MenuItem("SAssembliesActivatorsAutoIgniteActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(AutoIgniteActivator);
 }
Beispiel #59
0
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     AntiNexusTurretMisc.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("MISCS_ANTINEXUSTURRET_MAIN"), "SAssembliesMiscsAntiNexusTurret"));
     AntiNexusTurretMisc.MenuItems.Add(
         AntiNexusTurretMisc.Menu.AddItem(new MenuItem("SAssembliesMiscsAntiNexusTurretActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(AntiNexusTurretMisc);
 }
Beispiel #60
0
 public static Menu.MenuItemSettings SetupMenu(LeagueSharp.Common.Menu menu)
 {
     MinionLocationMisc.Menu = menu.AddSubMenu(new LeagueSharp.Common.Menu(Language.GetString("MISCS_MINIONLOCATION_MAIN"), "SAssembliesMiscsMinionLocation"));
     MinionLocationMisc.MenuItems.Add(
         MinionLocationMisc.Menu.AddItem(new MenuItem("SAssembliesMiscsMinionLocationActive", Language.GetString("GLOBAL_ACTIVE")).SetValue(false)));
     return(MinionLocationMisc);
 }