Ejemplo n.º 1
0
        private static void OnUpdate(EventArgs args)
        {
            if (ObjectManager.Player.IsDead)
            {
                return;
            }

            if (Config.IsChecked("autoR") && Spells.R.IsReady())
            {
                HealBotR.Execute();
            }

            if (Config.IsChecked("autoAssistKS") && Spells.R.IsReady())
            {
                AssistKs.Execute();
            }

            if (Spells.W.IsReady() && Config.IsChecked("autoW"))
            {
                HealBotW.Execute();
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                Combo.Execute();
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
            {
                Harass.Execute();
            }

            if (Config.IsChecked("autoQHarass"))
            {
                AutoHarass.AutoQ();
            }

            if (Config.IsChecked("autoEHarass"))
            {
                AutoHarass.AutoE();
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
            {
                LaneClear.Execute();
            }
        }
Ejemplo n.º 2
0
        public static void CallMenu()
        {
            Soraka = MainMenu.AddMenu("Soraka", "Soraka");
            Soraka.AddGroupLabel("HealBot");
            Soraka.AddLabel("by mztikk");

            Combo = Soraka.AddSubMenu("Combo", "Combo");
            Combo.AddGroupLabel("Options for Combo");
            Combo.Add("useQInCombo", new CheckBox("Use Q"));
            Combo.Add("useEInCombo", new CheckBox("Use E"));
            Combo.Add("eOnlyCC", new CheckBox("Use E only on immobile", false));
            Combo.Add("comboDisableAA", new CheckBox("Disable AA on heroes in combo mode", false));
            Combo.Add("bLvlDisableAA", new CheckBox("Disable AA after Level x", false));
            Combo.Add("lvlDisableAA", new Slider("Min Level to disable AA", 8, 1, 18));

            Harass = Soraka.AddSubMenu("Harass", "Harass");
            Harass.AddGroupLabel("Options for Harass");
            Harass.Add("useQInHarass", new CheckBox("Use Q"));
            Harass.Add("useEInHarass", new CheckBox("Use E", false));
            Harass.Add("disableAAH", new CheckBox("Disable AA on minions while Harass"));
            Harass.Add("eOnlyCCHarass", new CheckBox("Use E only on immobile"));
            Harass.Add("manaHarass", new Slider("Min Mana % to Harass", 40));
            Harass.Add(
                "allyRangeH",
                new Slider("Allies in range x to disable AA on Minions in Harass Mode", 1400, 0, 5000));
            Harass.AddSeparator();
            Harass.AddGroupLabel("Auto Harass");
            Harass.Add("autoQHarass", new CheckBox("Auto Q", false));
            Harass.Add("autoEHarass", new CheckBox("Auto E", false));
            Harass.Add("autoEHarassOnlyCC", new CheckBox("Use Auto E only on immobile"));
            Harass.Add("dontAutoHarassTower", new CheckBox("Dont Auto Harass under Tower"));
            Harass.Add("dontHarassInBush", new CheckBox("Dont Auto Harass when in Bush"));
            Harass.Add("manaAutoHarass", new Slider("Min Mana % to Auto Harass", 60));

            LaneClear = Soraka.AddSubMenu("LaneClear", "LaneClear");
            LaneClear.AddGroupLabel("Options for LaneClear");
            LaneClear.Add("useQInLC", new CheckBox("Use Q"));
            LaneClear.Add("qTargets", new Slider("Min Targets to hit for Q", 6, 1, 20));
            LaneClear.Add("manaLaneClear", new Slider("Min Mana % to LaneClear", 60));

            var allAllies = EntityManager.Heroes.Allies.Where(ally => !ally.IsMe).ToArray();

            AutoWMenu = Soraka.AddSubMenu("Auto W", "autow");
            AutoWMenu.AddGroupLabel("Auto W");
            AutoWMenu.Add("autoW", new CheckBox("Auto use W"));
            AutoWMenu.AddSeparator(5);
            AutoWMenu.Add(
                "wHealMode",
                new ComboBox(
                    "Priority Mode",
                    0,
                    "Lowest Health",
                    "Total AD",
                    "Total AP",
                    "AD+AP",
                    "Closest",
                    "Custom Priority"));
            AutoWMenu.Add("manaToW", new Slider("Min Mana % to Auto W", 10));
            AutoWMenu.Add("playerHpToW", new Slider("Min Player HP % to Auto W", 25, 6));
            AutoWMenu.AddGroupLabel("Auto W Teammate Settings");
            foreach (var ally in allAllies)
            {
                AutoWMenu.AddLabel(ally.BaseSkinName);
                AutoWMenu.Add("autoW_" + ally.BaseSkinName, new CheckBox("Auto Heal " + ally.BaseSkinName + " with W"));
                AutoWMenu.Add(
                    "autoW_HP_" + ally.BaseSkinName,
                    new Slider("HP % to heal " + ally.BaseSkinName + " with W", 50, 1));
                AutoWMenu.Add(
                    "autoWBuff_HP_" + ally.BaseSkinName,
                    new Slider("HP % to heal " + ally.BaseSkinName + " with W + Q Buff", 75, 1));
                AutoWMenu.Add("autoWPrio" + ally.BaseSkinName, new Slider("Custom Priority", 1, 1, 5));
                AutoWMenu.AddSeparator(6);
            }

            AutoRMenu = Soraka.AddSubMenu("Auto R", "autor");
            AutoRMenu.AddGroupLabel("Auto R");
            AutoRMenu.Add("autoR", new CheckBox("Auto use R"));
            AutoRMenu.Add("cancelBase", new CheckBox("Cancel Recall to Auto R"));
            AutoRMenu.AddSeparator(5);
            AutoRMenu.Add("autoRHP", new Slider("HP % to trigger R Logic", 15, 1));
            AutoRMenu.AddGroupLabel("Auto R Teammate Settings");
            foreach (var ally in allAllies)
            {
                AutoRMenu.Add("autoR_" + ally.BaseSkinName, new CheckBox("Auto Heal " + ally.BaseSkinName + " with R"));
                AutoRMenu.AddSeparator(2);
            }

            AssistKs = Soraka.AddSubMenu("AssistKS", "assistks");
            AssistKs.AddGroupLabel("Options for AssistKS");
            AssistKs.AddLabel("This tries to ult when an ally is about to get a kill, so you can get an assist");
            AssistKs.Add("autoAssistKS", new CheckBox("Use R to Auto AssistKS", false));
            AssistKs.Add("assCancelBase", new CheckBox("Cancel Recall to AssistKS", false));

            Interrupter = Soraka.AddSubMenu("Interrupter", "Interrupter");
            Interrupter.AddGroupLabel("Options for Interrupter");
            Interrupter.Add("bInterrupt", new CheckBox("Interrupt spells with E"));
            Interrupter.Add("dangerL", new ComboBox("Min DangerLevel to interrupt", 0, "Low", "Medium", "High"));

            Gapclose = Soraka.AddSubMenu("Anti Gapcloser", "AntiGapcloser");
            Gapclose.AddGroupLabel("Options for Anti Gapclose");
            Gapclose.Add("qGapclose", new CheckBox("Anti Gapclose with Q", false));
            Gapclose.Add("eGapclose", new CheckBox("Anti Gapclose with E", false));

            Draw = Soraka.AddSubMenu("Drawings", "drawings");
            Draw.AddGroupLabel("Options for Drawings");
            Draw.Add("wRangeDraw", new CheckBox("Draw W Range", false));
            Draw.Add("qRange", new CheckBox("Draw Q Range", false));
            Draw.Add("onlyReady", new CheckBox("Only when Spells are ready"));
        }