Example #1
0
 /// <summary>
 /// Initializes the menu
 /// </summary>
 public override void InitializeMenu()
 {
     FirstMenuName = "Name of the addon";
     //There are a bunch of examples on how to create checkboxes and sliders really easy
     //Obs: You can use the MenuIds(Preset) or Ints as a uniqueID
     //ComboMenu
     ComboMenu.AddGroupLabel("-:Combo Spells:-");
     ComboMenu.CreateCheckBox("- Use Q", MenuIds.ComboUseQ);
     ComboMenu.CreateCheckBox("- Use W", MenuIds.ComboUseW);
     ComboMenu.CreateCheckBox("- Use E", MenuIds.ComboUseE);
     ComboMenu.CreateCheckBox("- Use R", 8);
     //HarassMenu
     HarassMenu.AddGroupLabel("-:Harass Spells:-");
     HarassMenu.CreateCheckBox("- Use Q", MenuIds.HarassUseQ);
     HarassMenu.CreateCheckBox("- Use W", MenuIds.HarassUseW);
     HarassMenu.CreateCheckBox("- Use E", MenuIds.HarassUseE);
     HarassMenu.CreateCheckBox("- Use R", MenuIds.HarassUseR);
     HarassMenu.AddGroupLabel("-:Harass Settings:-");
     HarassMenu.CreateSlider("It will use harass spells only if mana is greater than ({0}%)", MenuIds.HarassMana);
     HarassMenu.AddGroupLabel("-:AutoHarass Spells:-");
     HarassMenu.CreateCheckBox("- Use Q", MenuIds.AutoHarassUseQ);
     HarassMenu.CreateCheckBox("- Use W", MenuIds.AutoHarassUseW);
     HarassMenu.CreateCheckBox("- Use E", MenuIds.AutoHarassUseE);
     HarassMenu.CreateCheckBox("- Use R", MenuIds.AutoHarassUseR);
     HarassMenu.AddGroupLabel("-:AutoHarass Settings:-");
     HarassMenu.CreateSlider("It will use harass spells only if mana is greater than ({0}%)", MenuIds.AutoHarassMana);
     //LaneClearMenu
     LaneClearMenu.AddGroupLabel("-:Laneclear Spells:-");
     LaneClearMenu.CreateCheckBox("- Use Q", 9);
     LaneClearMenu.CreateCheckBox("- Use W", 10);
     LaneClearMenu.CreateCheckBox("- Use E", 11);
     LaneClearMenu.CreateCheckBox("- Use R", 12);
     LaneClearMenu.AddGroupLabel("-:Laneclear Settings:-");
     LaneClearMenu.CreateSlider("It will use laneclear spells only if mana is greater than ({0}%)", 30);
     //LastHitMenu
     LastHitMenu.AddGroupLabel("-:Lasthit Spells:-");
     LastHitMenu.CreateCheckBox("- Use Q", 13);
     LastHitMenu.CreateCheckBox("- Use W", 14);
     LastHitMenu.CreateCheckBox("- Use E", 15);
     LastHitMenu.CreateCheckBox("- Use R", 16);
     LastHitMenu.AddGroupLabel("-:Lasthit Settings:-");
     LastHitMenu.CreateSlider("It will use lasthit spells only if mana is greater than ({0}%)", 30);
     //FleeMenu
     FleeMenu.AddGroupLabel("-:Flee Spells:-");
     FleeMenu.CreateCheckBox("- Use Q", MenuIds.FleeUseQ);
     FleeMenu.CreateCheckBox("- Use W", MenuIds.FleeUseW);
     FleeMenu.CreateCheckBox("- Use E", MenuIds.FleeUseE);
     FleeMenu.CreateCheckBox("- Use R", MenuIds.FleeUseR);
     FleeMenu.AddGroupLabel("-:Flee Settings:-");
     FleeMenu.CreateSlider("It will use flee spells only if mana is greater than ({0}%)", 30);
     //MiscMenu
     MiscMenu.AddGroupLabel("-:Misc Spells:-");
     MiscMenu.CreateCheckBox("- Use X on gapclosers spells", MenuIds.MiscUseGapcloser);
     MiscMenu.CreateCheckBox("- Use X on interruptables spells", MenuIds.MiscUseInterrupt);
     MiscMenu.AddGroupLabel("-:Misc Settings:-");
     MiscMenu.CreateSlider("It will use misc spells only if mana is greater than ({0}%)", 30);
 }
Example #2
0
        private static void CreateMenu()
        {
            try
            {
                foreach (var p in CurrentPatchs)
                {
                    BuildsServices.Add(new BuildServices(p.Key, p.Value));
                }

                MenuIni    = MainMenu.AddMenu("AramBuddy", "AramBuddy");
                SpellsMenu = MenuIni.AddSubMenu("Spells");
                MenuIni.AddGroupLabel("AramBuddy Version: " + version);
                MenuIni.AddGroupLabel("AramBuddy Settings");

                BuildMenu = MenuIni.AddSubMenu("Current Build");
                InfoMenu  = MenuIni.AddSubMenu("Extra Options");

                var lolversion  = BuildMenu.Add("buildpatch", new ComboBox("Select Build Patch: ", 0, BuildsServices.Select(s => s.Patch).ToArray()));
                var buildsource = BuildMenu.Add("buildsource", new ComboBox("Builds Service: ", 0, BuildsServices[lolversion.CurrentValue].AvailableServices));

                lolversion.OnValueChange += delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs args)
                {
                    foreach (var i in BuildsServices[args.OldValue].AvailableServices)
                    {
                        buildsource.Remove(i);
                    }
                    foreach (var i in BuildsServices[args.NewValue].AvailableServices)
                    {
                        buildsource.Add(i);
                    }
                };

                BuildMenu.AddLabel("MetaSrc: Very Good For Aram");
                BuildMenu.AddLabel("Championgg: Decent For Aram");
                BuildMenu.AddLabel("KoreanBuilds: Decent For Aram");
                BuildMenu.AddLabel("LoLSkill: Not Good For Aram");

                var debug         = MenuIni.CreateCheckBox("debug", "Enable Debugging Mode");
                var activator     = MenuIni.CreateCheckBox("activator", "Enable Built-In Activator");
                var DisableSpells = MenuIni.CreateCheckBox("DisableSpells", "Disable Built-in Casting Logic", false);
                var CustomPlugin  = MenuIni.CreateCheckBox("CustomPlugin", "Enable Custom Plugins");
                var quit          = MenuIni.CreateCheckBox("quit", "Quit On Game End");
                var stealhr       = MenuIni.CreateCheckBox("stealhr", "Dont Steal Health Relics From Allies", false);
                var chat          = MenuIni.CreateCheckBox("chat", "Send Start / End msg In-Game Chat", false);
                var texture       = MenuIni.CreateCheckBox("texture1", "Disable In-Game Texture (Less RAM/CPU)", false);
                var evade         = MenuIni.CreateCheckBox("evade", "Evade Integration[BETA]");
                var ff            = MenuIni.CreateCheckBox("ff", "Vote Surrender With Team Always");
                var cameralock    = MenuIni.CreateCheckBox("cameralock", "Lock Camera Always");

                MenuIni.AddSeparator(0);
                var Safe = MenuIni.CreateSlider("Safe1", "Safe Slider (Recommended 1250)", 1250, 0, 2500);
                //MenuIni.AddLabel("More Safe Value = more defensive playstyle");
                //MenuIni.AddSeparator(0);
                var HRHP = MenuIni.CreateSlider("HRHP", "Health Percent To Pick Health Relics (Recommended 75%)", 75);
                var HRMP = MenuIni.CreateSlider("HRMP", "Mana Percent To Pick Health Relics (Recommended 15%)", 15);
                MenuIni.AddSeparator(0);
                var Reset = MenuIni.CreateCheckBox("reset", "Reset All Settings To Default", false);

                // Misc Settings
                MiscMenu = MenuIni.AddSubMenu("Misc Settings");
                var autolvl    = MiscMenu.CreateCheckBox("autolvl", "Enable AutoLvlUP");
                var autoshop   = MiscMenu.CreateCheckBox("autoshop", "Enable AutoShop");
                var fixdive    = MiscMenu.CreateCheckBox("fixdive", "Try to Fix Diving Towers");
                var kite       = MiscMenu.CreateCheckBox("kite", "Try Kite Near Enemies");
                var ping       = MiscMenu.CreateCheckBox("ping", "Move To AllySpawn On High Ping/Ping-Spikes");
                var bardchime  = MiscMenu.CreateCheckBox("bardchime", "Pick Bard Chimes");
                var corkibomb  = MiscMenu.CreateCheckBox("corkibomb", "Pick Corki Bomb");
                var dravenaxe  = MiscMenu.CreateCheckBox("dravenaxe", "Pick Draves Axes");
                var olafaxe    = MiscMenu.CreateCheckBox("olafaxe", "Pick Olaf Axe");
                var zacpassive = MiscMenu.CreateCheckBox("zacpassive", "Pick Zac Blops");
                var azirtower  = MiscMenu.CreateCheckBox("azirtower", "Create Azir Towers");
                var teleport   = MiscMenu.CreateCheckBox("tp", "Enable use of Teleporting Logic");
                var logs       = MiscMenu.CreateCheckBox("logs", "Save AramBuddy Logs", false);
                var savechat   = MiscMenu.CreateCheckBox("savechat", "Save In-Game Chat", false);
                var tyler1     = MiscMenu.CreateCheckBox("bigbrother", "Run it down mid", false);
                var tyler1g    = MiscMenu.CreateSlider("gold", "Run it down mid if my Gold >= {0}", 3000, 500, 17500);

                Reset.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args)
                {
                    if (args.NewValue)
                    {
                        Reset.CurrentValue         = false;
                        debug.CurrentValue         = true;
                        activator.CurrentValue     = true;
                        DisableSpells.CurrentValue = false;
                        CustomPlugin.CurrentValue  = true;
                        quit.CurrentValue          = true;
                        stealhr.CurrentValue       = false;
                        chat.CurrentValue          = true;
                        texture.CurrentValue       = false;
                        evade.CurrentValue         = true;
                        ff.CurrentValue            = true;
                        cameralock.CurrentValue    = true;
                        Safe.CurrentValue          = 1250;
                        HRHP.CurrentValue          = 75;
                        HRMP.CurrentValue          = 15;

                        // Misc
                        autolvl.CurrentValue    = true;
                        autoshop.CurrentValue   = true;
                        fixdive.CurrentValue    = true;
                        kite.CurrentValue       = true;
                        ping.CurrentValue       = true;
                        bardchime.CurrentValue  = true;
                        corkibomb.CurrentValue  = true;
                        dravenaxe.CurrentValue  = true;
                        olafaxe.CurrentValue    = true;
                        zacpassive.CurrentValue = true;
                        azirtower.CurrentValue  = true;
                        teleport.CurrentValue   = true;
                        logs.CurrentValue       = false;
                        savechat.CurrentValue   = false;
                        tyler1.CurrentValue     = false;
                        tyler1g.CurrentValue    = 3000;
                    }
                };

                Safe.IsVisible      = false; // disabled
                corkibomb.IsVisible = false; // disable for now

                SpellsMenu.AddGroupLabel("Built-In Casting Logic:");
                SpellsMenu.CreateCheckBox("combo", "Use Spells in Combo Mode");
                SpellsMenu.CreateCheckBox("harass", "Use Spells in Harass Mode");
                SpellsMenu.CreateCheckBox("flee", "Use Spells in Flee Mode");
                SpellsMenu.CreateCheckBox("laneclear", "Use Spells in Lane Clear Mode");
                SpellsMenu.AddSeparator(0);
                SpellsMenu.AddGroupLabel("SummonerSpells");
                SpellsMenu.Add("Heal", new CheckBox("Use Heal"));
                SpellsMenu.Add("Barrier", new CheckBox("Use Barrier"));
                SpellsMenu.Add("Clarity", new CheckBox("Use Clarity"));
                SpellsMenu.Add("Ghost", new CheckBox("Use Ghost"));
                SpellsMenu.Add("Flash", new CheckBox("Use Flash"));
                SpellsMenu.Add("Cleanse", new CheckBox("Use Cleanse"));

                InfoMenu.AddGroupLabel("Disabling In-Game Texture");
                InfoMenu.AddLabel("To Disable In-Game Texture Type In Chat \"Disable Texture\"");
                InfoMenu.AddLabel("To Enable In-Game Texture Type In Chat \"Enable Texture\"");
                InfoMenu.AddLabel("Takes affect after 1 or 2 games");

                Console.Title = $"{Drawing.Width}x{Drawing.Height}";

                texture.IsVisible = false;

                if (DisableTexture)
                {
                    Disabletexture();
                }
                else
                {
                    Enabletexture();
                }

                Chat.OnInput += delegate(ChatInputEventArgs args)
                {
                    if (args.Input.ToLower().Contains("disable texture"))
                    {
                        Disabletexture();
                        texture.CurrentValue = true;
                        args.Process         = false;
                    }
                    if (args.Input.ToLower().Contains("enable texture"))
                    {
                        Enabletexture();
                        texture.CurrentValue = false;
                        args.Process         = false;
                    }
                };
            }
            catch (Exception ex)
            {
                Logger.Send("Program Error At CreateMenu", ex, Logger.LogLevel.Error);
            }
        }
Example #3
0
        public override void Initialize()
        {
            FirstMenu = MainMenu.AddMenu("OKTR " + GetAttribute().Name, "id" + GetAttribute().Name.ToLower());
            FirstMenu.AddGroupLabel("Introduction:");
            FirstMenu.AddSeparator();
            FirstMenu.AddGroupLabel("Author: " + GetAttribute().Author);
            if (HUEHUEHUEHUE)
            {
                FirstMenu.AddLabel("Plugin From: http://oktraio.com");
            }
            ComboMenu = FirstMenu.AddSubMenu("Combo", ComboMenuID);
            ComboMenu.AddGroupLabel("Combo Settings:");
            HarassMenu = FirstMenu.AddSubMenu("Harass", HarassMenuID);
            HarassMenu.AddGroupLabel("Harass Settings:");
            AutoHarassMenu = FirstMenu.AddSubMenu("Auto Harass", AutoHarassMenuID);
            AutoHarassMenu.AddGroupLabel("Auto Harass Settings:");
            LaneClearMenu = FirstMenu.AddSubMenu("Laneclear", LaneMenuID);
            LaneClearMenu.AddGroupLabel("Laneclear Settings:");
            JungleClearMenu = FirstMenu.AddSubMenu("Jungleclear", JunglesMenuID);
            JungleClearMenu.AddGroupLabel("Jungleclear Settings:");
            LastHitMenu = FirstMenu.AddSubMenu("Lasthit", LastMenuID);
            LastHitMenu.AddGroupLabel("Lasthit Settings:");
            FleeMenu = FirstMenu.AddSubMenu("Flee", FleeMenuID);
            FleeMenu.AddGroupLabel("Flee Settings:");
            KillStealMenu = FirstMenu.AddSubMenu("Killsteal", KillstealMenuID);
            KillStealMenu.AddGroupLabel("Killsteal Settings:");
            DrawMenu = FirstMenu.AddSubMenu("Draw", DrawMenuID);
            DrawMenu.AddGroupLabel("Draw Settings:");
            DrawMenu.CreateCheckBox("Only draw spells if they are ready", DrawMenuID + "whenready");
            DrawMenu.AddGroupLabel("Damage Indicator settings: ");
            DrawMenu.CreateCheckBox("Draw damage indicator", DrawMenuID + "damageDraw");
            DrawMenu.CreateCheckBox("Draw statistics", DrawMenuID + "statDraw");
            DrawMenu.CreateCheckBox("Draw percentage", DrawMenuID + "perDraw");

            DamageIndicatorDrawColor = new ColorSlider(DrawMenu, DrawMenuID + "damageHealthIndicator", Color.Yellow, "Damage Indicator Color");

            DrawMenu.AddSeparator();
            DrawMenu.CreateCheckBox("Calculate Q", DrawMenuID + "calculateQ");
            DrawMenu.CreateCheckBox("Calculate W", DrawMenuID + "calculateW");
            DrawMenu.CreateCheckBox("Calculate E", DrawMenuID + "calculateE");
            DrawMenu.CreateCheckBox("Calculate R", DrawMenuID + "calculateR");
            DrawMenu.AddGroupLabel("Spells to draw: ");

            MiscMenu = FirstMenu.AddSubMenu("Misc", MiscMenuID);
            MiscMenu.AddGroupLabel("Miscellanous Settings:");

            InitializeSpells();
            InitializeEvents();
            InitializeMenu();

            if (PlayerHasMana)
            {
                HarassMenu.CreateSlider("Player mana must be less than [{0}%] to use harass spells", HarassMenuID + "mana", 40);
                AutoHarassMenu.CreateSlider("Player mana must be less than [{0}%] to use auto harass spells", AutoHarassMenuID + "mana", 40);
                LaneClearMenu.CreateSlider("Player mana must be less than [{0}%] to use lane clear spells", LaneClearMenu + "mana", 40);
                JungleClearMenu.CreateSlider("Player mana must be less than [{0}%] to use jungle clear spells", JunglesMenuID + "mana", 40);
                LastHitMenu.CreateSlider("Player mana must be less than [{0}%] to use lasthit spells", LastMenuID + "mana", 40);
                KillStealMenu.CreateSlider("Player mana must be less than [{0}%] to use Killsteal spells", KillstealMenuID + "mana", 10);
                MiscMenu.CreateSlider("Player mana must be less than [{0}%] to use misc spells", MiscMenuID + "mana", 30);
            }

            DrawMenu.AddGroupLabel("Drawing Colors");
            QDrawColor = new ColorSlider(DrawMenu, DrawMenuID + "Q" + "colorid", Color.Orange, "- Q Color");
            WDrawColor = new ColorSlider(DrawMenu, DrawMenuID + "W" + "colorid", Color.Red, "- W Color");
            EDrawColor = new ColorSlider(DrawMenu, DrawMenuID + "E" + "colorid", Color.Blue, "- E Color");
            RDrawColor = new ColorSlider(DrawMenu, DrawMenuID + "R" + "colorid", Color.DeepPink, "- R Color");

            Game.OnTick += Game_OnTick;

            Drawing.OnDraw += Drawing_OnDraw;
        }
Example #4
0
        public static bool Init()
        {
            try
            {
                if (!Player.ChampionName.Equals("Ezreal"))
                {
                    return(false);
                }

                SpellsManager.Init();

                switch (Game.MapId)
                {
                case GameMapId.SummonersRift:
                    JungleMobs = new[]
                    {
                        "SRU_Dragon_Air", "SRU_Dragon_Earth", "SRU_Dragon_Fire", "SRU_Dragon_Water", "SRU_Dragon_Elder", "SRU_Baron", "SRU_Gromp", "SRU_Krug", "SRU_Razorbeak",
                        "SRU_RiftHerald", "Sru_Crab", "SRU_Murkwolf", "SRU_Blue", "SRU_Red"
                    };
                    break;

                case GameMapId.TwistedTreeline:
                    JungleMobs = new[] { "TT_NWraith", "TT_NWolf", "TT_NGolem", "TT_Spiderboss" };
                    break;

                case GameMapId.CrystalScar:
                    JungleMobs = new[] { "AscXerath" };
                    break;

                default:
                    JungleMobs = new[] { "Nothing" };
                    break;
                }

                MenuIni  = new Menu("DarkEzreal", "DarkEzreal", true).Attach();
                QMenu    = MenuIni.CreateMenu("Q", "Q Settings");
                WMenu    = MenuIni.CreateMenu("W", "W Settings");
                EMenu    = MenuIni.CreateMenu("E", "E Settings");
                RMenu    = MenuIni.CreateMenu("R", "R Settings");
                MiscMenu = MenuIni.CreateMenu("MiscMenu", "Misc Settings");
                DrawMenu = MenuIni.CreateMenu("DrawMenu", "Drawings Settings");

                var Qhit = new Menu("Qhit", "HitChance Settings");
                Qhit.Add(new MenuList <string>("hit", "Q HitChance", new[] { "Low", "Medium", "High", "Very High" }));
                QMenu.Add(Qhit);

                var Qc = new Menu("Qc", "Combo Settings");
                Qc.CreateBool("Q", "Use Q");
                Qc.CreateBool("AQ", "AA > Q", false);
                Qc.CreateSliderButton("mana", "Q ManaManager");
                QMenu.Add(Qc);

                var Qh = new Menu("Qh", "Harass Settings");
                Qh.CreateKeyBind("Q", "Use Q", Keys.L, KeyBindType.Toggle);
                Qh.CreateBool("autoQ", "Auto Q", false);
                Qh.CreateSliderButton("mana", "Q ManaManager", 60);
                QMenu.Add(Qh);

                var Qlh = new Menu("Qlh", "LastHit Settings");
                Qlh.CreateKeyBind("Q", "Use Q", Keys.L, KeyBindType.Toggle);
                Qlh.CreateBool("autoQ", "Auto Q", false);
                Qlh.CreateBool("Qunk", "Q LastHit Out of AA Range");
                Qlh.CreateSliderButton("mana", "Q ManaManager", 60);
                QMenu.Add(Qlh);

                var Qlc = new Menu("Qlc", "LaneClear Settings");
                Qlc.CreateKeyBind("Q", "Use Q", Keys.L, KeyBindType.Toggle);
                Qlc.CreateBool("autoQ", "Auto Q", false);
                Qlc.CreateBool("lhQ", "Q LastHit Only", false);
                Qlc.CreateBool("Qunk", "Q LastHit Out of AA Range Only");
                Qlc.CreateSliderButton("mana", "Q ManaManager", 60);
                QMenu.Add(Qlc);

                var Qjc = new Menu("Qjc", "JungleClear Settings");
                Qjc.CreateBool("Q", "Use Q");
                Qjc.CreateBool("Qprio", "Focus Large Mobs First");
                Qjc.CreateSliderButton("mana", "Q ManaManager", 60);
                QMenu.Add(Qjc);

                var Qks = new Menu("Qks", "Stealer Settings");
                Qks.CreateBool("Q", "Use Q");
                Qks.CreateBool("Qjs", "Steal Jungle Mobs");
                Qks.CreateBool("Qks", "Steal Champions");
                QMenu.Add(Qks);

                var Whit = new Menu("Whit", "HitChance Settings");
                Whit.Add(new MenuList <string>("hit", "W HitChance", new[] { "Low", "Medium", "High", "Very High" }));
                WMenu.Add(Whit);

                var Wc = new Menu("Wc", "Combo Settings");
                Wc.CreateBool("W", "Use W");
                Wc.CreateSliderButton("mana", "W ManaManager", 60);
                WMenu.Add(Wc);

                var Wh = new Menu("Wh", "Harass Settings");
                Wh.CreateKeyBind("W", "Use W", Keys.H, KeyBindType.Toggle);
                Wh.CreateBool("autoW", "Auto W", false);
                Wh.CreateSliderButton("mana", "W ManaManager", 60);
                WMenu.Add(Wh);

                var Wks = new Menu("Wks", "Stealer Settings");
                Wks.CreateBool("W", "Use W");
                Wks.CreateBool("Wks", "Steal Champions");
                WMenu.Add(Wks);

                var Ec = new Menu("Ec", "Combo Settings");
                Ec.CreateBool("kiteE", "E Kite Melee", false);
                Ec.CreateBool("autoE", "Auto E Into W", false);
                Ec.CreateBool("gapE", "E Gap Close To Target", false);
                Ec.CreateSliderButton("danger", "Dont E Into X Enemies", 3, 1, 6);
                Ec.CreateSliderButton("mana", "E ManaManager", 60);
                EMenu.Add(Ec);

                var Eh = new Menu("Eh", "Harass Settings");
                Eh.CreateBool("autoE", "Auto E Into W", false);
                Eh.CreateSliderButton("danger", "Dont E Into X Enemies", 3, 1, 6);
                Eh.CreateSliderButton("mana", "E ManaManager", 60);
                EMenu.Add(Eh);

                var Eks = new Menu("Eks", "Stealer Settings");
                Eks.CreateBool("E", "Use E");
                Eks.CreateBool("Eks", "Steal Champions");
                EMenu.Add(Eks);

                var Rhit = new Menu("Rhit", "HitChance Settings");
                Rhit.Add(new MenuList <string>("hit", "R HitChance", new string[] { "Low", "Medium", "High", "Very High" }));
                RMenu.Add(Rhit);

                var Rc = new Menu("Rc", "Combo Settings");
                Rc.CreateBool("R", "Use R");
                Rc.CreateBool("Rcc", "Auto R CC'ed target");
                Rc.CreateBool("Rfinisher", "Use R as Finisher");
                var Raoe = new Menu("Raoe", "R AoE Settings");
                Raoe.CreateBool("target", "Check AoE From Main Target");
                Raoe.CreateSliderButton("Raoe", "Use R on X Enemies", 3, 1, 6);
                Rc.Add(Raoe);
                Rc.CreateSliderButton("mana", "R ManaManager");
                RMenu.Add(Rc);

                var Rks = new Menu("Rks", "Stealer Settings");
                Rks.CreateBool("R", "Use R");
                Rks.CreateSlider("range", "[R] Steal Range (0 = Global)", 4000, 0, 10000);
                Rks.CreateBool("Rjs", "Steal Jungle Mobs", false);
                Rks.CreateBool("Rks", "Steal Champions");
                RMenu.Add(Rks);
                RMenu.CreateKeyBind("Rkey", "R HotKey", Keys.S, KeyBindType.Press);

                var Rmin = MiscMenu.CreateSlider("Rmin", "Adjust MIN R Range", 500, 50, 3000);

                var Rmax = MiscMenu.CreateSlider("Rmax", "Adjust MAX R Range", 2000, Rmin.Value, 15000);

                Rmin.ValueChanged += delegate { Rmax.MinValue = Rmin.Value + 150; };

                Rmax.ValueChanged += delegate { SpellsManager.R.Range = Rmax.Value; };

                var stealer = new Menu("steal", "Select JungleMobs");
                foreach (var mob in JungleMobs)
                {
                    stealer.CreateBool(mob, "Steal " + mob);
                }

                MiscMenu.Add(stealer);
                MiscMenu.CreateBool("hooks", "Anti Hooks");
                MiscMenu.CreateKeyBind("EW", "E > W KeyBind", Keys.A, KeyBindType.Press);
                MiscMenu.CreateBool("Egap", "Anti GapClosers");

                foreach (var spell in SpellsManager.Spells)
                {
                    DrawMenu.CreateBool(spell.Slot.ToString(), "Draw " + spell.Slot);
                }

                Game.OnUpdate  += Modes.ModesManager.GameOnOnUpdate;
                Drawing.OnDraw += EventsHandler.Drawing_OnDraw;
                Obj_AI_Base.OnProcessSpellCast += EventsHandler.ObjAiBaseOnOnProcessSpellCast;
                Obj_AI_Base.OnBuffGain         += EventsHandler.Obj_AI_Base_OnBuffAdd;
                Events.OnGapCloser             += EventsHandler.Events_OnGapCloser;
                return(true);
            }
            catch (Exception e)
            {
                Console.WriteLine(DateTime.Now.ToString("[H:mm:ss") + " - DarkEzreal] ERROR: " + e);
                return(false);
            }
        }
Example #5
0
        public override void InitializeMenu()
        {
            AddMultipleCheckBox(Q,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(ComboMenu),
                new MenuCheckBox(HarassMenu),
                new MenuCheckBox(AutoHarassMenu),
                new MenuCheckBox(LaneClearMenu),
                new MenuCheckBox(JungleClearMenu),
                new MenuCheckBox(LastHitMenu, false),
                new MenuCheckBox(KillStealMenu),
                new MenuCheckBox(DrawMenu)
            });
            AddMultipleCheckBox(W,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(ComboMenu),
                new MenuCheckBox(FleeMenu),
                new MenuCheckBox(DrawMenu)
            });
            AddMultipleCheckBox(E,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(ComboMenu),
                new MenuCheckBox(HarassMenu),
                new MenuCheckBox(AutoHarassMenu),
                new MenuCheckBox(LaneClearMenu),
                new MenuCheckBox(JungleClearMenu),
                new MenuCheckBox(LastHitMenu, false),
                new MenuCheckBox(KillStealMenu),
                new MenuCheckBox(DrawMenu)
            });
            AddMultipleCheckBox(R,
                                new List <MenuCheckBox>
            {
                new MenuCheckBox(ComboMenu),
                new MenuCheckBox(JungleClearMenu),
                new MenuCheckBox(LastHitMenu, false),
                new MenuCheckBox(FleeMenu, false),
                new MenuCheckBox(KillStealMenu),
                new MenuCheckBox(DrawMenu)
            });
            PlayerHasMana = false;

            FirstMenu.AddGroupLabel("Official plugin of OKTR- One Key To Report");

            ComboMenu.CreateCheckBox("Use R as GapCloser", 48, false);

            LaneClearMenu.CreateCheckBox("Prioritize Harass over Mode", 49, false);

            LastHitMenu.CreateCheckBox("Prioritize Harass over Mode", 50, false);

            KillStealMenu.CreateCheckBox("Use R for Jump & Kill", 51);


            MiscMenu.AddSeparator();
            MiscMenu.AddGroupLabel("AntiGapcloser - Interrupter settings:");
            MiscMenu.CreateCheckBox("Use AntiGapcloser", MenuIds.MiscUseGapcloser);
            MiscMenu.CreateCheckBox("Use W", 52);
            MiscMenu.CreateCheckBox("Use R", 53);

            MiscMenu.CreateCheckBox("AutoSpells on CC", 54);
            MiscMenu.CreateCheckBox("AutoSpells on Events", 55);
            MiscMenu.CreateCheckBox("Use Auto Q", 56, false);
            MiscMenu.CreateCheckBox("Use Q on Stunned Enemies", 57, false);
            MiscMenu.CreateCheckBox("Use Q on Snared Enemies", 58, false);
            MiscMenu.CreateCheckBox("Use Q on Feared Enemies", 59, false);
            MiscMenu.CreateCheckBox("Use Q on Taunted Enemy", 60, false);
            MiscMenu.CreateCheckBox("Use Q on Suppressed Enemy", 61, false);
            MiscMenu.CreateCheckBox("Use Q on Charmed Enemies", 62, false);

            MiscMenu.CreateCheckBox("Use Auto E", 63, false);
            MiscMenu.CreateCheckBox("Use E on Stunned Enemies", 64, false);
            MiscMenu.CreateCheckBox("Use E on Snared Enemies", 65, false);
            MiscMenu.CreateCheckBox("Use E on Feared Enemies", 66, false);
            MiscMenu.CreateCheckBox("Use E on Taunted Enemy", 67, false);
            MiscMenu.CreateCheckBox("Use E on Suppressed Enemy", 68, false);
            MiscMenu.CreateCheckBox("Use E on Charmed Enemies", 69, false);
            MiscMenu.CreateSlider("Energy Manager", 70, 60);
        }