Esempio n. 1
0
        public static void ChooseOrbwalker(bool mode)
        {
            if (mode)
            {
                /*   _orbwalker = new LeagueSharp.Common.Orbwalking.Orbwalker(orbwalkerMenu);
                 * comboKey = Menu.Item("Orbwalk");
                 * harassKey = Menu.Item("Farm");
                 * laneclearKey = Menu.Item("LaneClear");
                 * lanefreezeKey = Menu.Item("Freeze");
                 * Game.PrintChat("Common Orbwalker Loaded");*/
                _orbwalker2   = new Orbwalking.Orbwalker(orbwalkerMenu);
                comboKey      = Menu.Item("Orbwalk");
                harassKey     = Menu.Item("Farm");
                laneclearKey  = Menu.Item("LaneClear");
                lanefreezeKey = Menu.Item("Freeze");
                Game.PrintChat("Sebby Orbwalker Loaded");
            }

            else
            {
                xSLxOrbwalker.AddToMenu(orbwalkerMenu);
                comboKey      = Menu.Item("Combo_Key");
                harassKey     = Menu.Item("Harass_Key");
                laneclearKey  = Menu.Item("LaneClear_Key");
                lanefreezeKey = Menu.Item("LaneFreeze_Key");
                Game.PrintChat("xSLx Orbwalker Loaded");
            }
        }
Esempio n. 2
0
        protected ChampionBase(IRootMenu menu, Orbwalking.Orbwalker Orbwalker)
        {
            Menu           = menu;
            this.Orbwalker = Orbwalker;

            Q = new Spell(SpellSlot.Q, true);
            W = new Spell(SpellSlot.W, true);
            E = new Spell(SpellSlot.E, true);
            R = new Spell(SpellSlot.R, true);
        }
Esempio n. 3
0
        public Irelia(IRootMenu menu, Orbwalking.Orbwalker Orbwalker) : base(menu, Orbwalker)
        {
            // manual override - default is spell values from LeagueSharp.Data
            R.SetSkillshot(0.25f, 45, 1600, false, SkillshotType.SkillshotLine);
            // Subsriptions
            Game.OnUpdate           += Game_OnUpdate;
            Obj_AI_Base.OnSpellCast += WUsage;
            Drawing.OnDraw          += Drawing_OnDraw;

            Config = new Configuration(menu.Champion);
            InitHpbarOverlay();
        }
Esempio n. 4
0
        private static void GameOnOnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != "Quinn")
            {
                return;
            }


            enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy);

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


            Config = new Menu("奎因", "YuleQuinn", true);

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

            new Quinn().LoadQuinn();


            Config.SubMenu("Misc").SubMenu("Prediction").AddItem(new MenuItem("PredictionMODE", "Prediction MODE", true).SetValue(new StringList(new[] { "Common prediction", "神预判" }, 1)));
            Config.SubMenu("Misc").SubMenu("Prediction").AddItem(new MenuItem("HitChance", "Hit Chance", true).SetValue(new StringList(new[] { "Very High", "High", "Medium" }, 0)));

            Config.SubMenu("Misc").AddItem(new MenuItem("comboDisableMode", "Disable auto-attack in combo mode", true).SetValue(false));
            Config.SubMenu("Misc").AddItem(new MenuItem("manaDisable", "Disable mana manager in combo", true).SetValue(false));
            Config.SubMenu("Misc").AddItem(new MenuItem("collAA", "Disable auto-attack if Yasuo wall collision", true).SetValue(true));


            foreach (var hero in ObjectManager.Get <Obj_AI_Hero>())
            {
                if (hero.IsEnemy)
                {
                    Enemies.Add(hero);
                }
                if (hero.IsAlly)
                {
                    Allies.Add(hero);
                }
            }

            new WardUsing().LoadWard();
            new Tracker().LoadTrack();

            Config.AddToMainMenu();
            Game.OnUpdate           += OnUpdate;
            Orbwalking.BeforeAttack += Orbwalking_BeforeAttack;
        }
Esempio n. 5
0
        public Malzahar(IRootMenu menu, Orbwalking.Orbwalker Orbwalker)
            : base(menu, Orbwalker)
        {
            // manual override - default is spell values from LeagueSharp.Data
            Q.SetSkillshot(0.75f, 80, float.MaxValue, false, SkillshotType.SkillshotCircle);
            W.SetSkillshot(0.5f, 80, 20, false, SkillshotType.SkillshotCircle);

            Game.OnUpdate  += OnUpdate;
            Drawing.OnDraw += OnDraw;
            AntiGapcloser.OnEnemyGapcloser     += OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += OnInterruptableTarget;

            Config = new Configuration(menu.Champion);
            InitHpbarOverlay();
        }
Esempio n. 6
0
        //private Obj_AI_Hero Player { get { return ObjectManager.Player; } }

        public Brand(IRootMenu menu, Orbwalking.Orbwalker Orbwalker)
            : base(menu, Orbwalker)
        {
            // manual override - default is spell values from LeagueSharp.Data
            Q.SetSkillshot(0.25f, 60f, 1600f, true, SkillshotType.SkillshotLine);
            W.SetSkillshot(1.15f, 230f, float.MaxValue, false, SkillshotType.SkillshotCircle);
            R.SetTargetted(0.25f, 2000f);
            Game.OnUpdate  += OnUpdate;
            Drawing.OnDraw += OnDraw;
            AntiGapcloser.OnEnemyGapcloser     += AntiGapcloser_OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;

            Config = new Configuration(menu.Champion);
            InitHpbarOverlay();
        }
Esempio n. 7
0
        public Ashe(IRootMenu menu, Orbwalking.Orbwalker Orbwalker)
            : base(menu, Orbwalker)
        {
            // manual override - default is spell values from LeagueSharp.Data
            W.SetSkillshot(0.5f, 20f, 2000f, true, SkillshotType.SkillshotLine);
            E.SetSkillshot(0.5f, 300f, 1400f, false, SkillshotType.SkillshotLine);
            R.SetSkillshot(0.5f, 130f, 1600f, false, SkillshotType.SkillshotLine);
            Game.OnUpdate  += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            //AntiGapcloser.OnEnemyGapcloser += this.AntiGapcloser_OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;

            Config = new Configuration(menu.Champion);
            InitHpbarOverlay();
        }
Esempio n. 8
0
        public Ryze(IRootMenu menu, Orbwalking.Orbwalker Orbwalker)
            : base(menu, Orbwalker)
        {
            // manual override - default is spell values from LeagueSharp.Data
            Q.SetSkillshot(0.7f, 55f, float.MaxValue, true, SkillshotType.SkillshotLine);
            W.SetTargetted(0.103f, 550f);
            E.SetTargetted(.5f, 550f);
            R.SetSkillshot(2.5f, 450f, float.MaxValue, false, SkillshotType.SkillshotCircle);
            Game.OnUpdate                      += Game_OnUpdate;
            Drawing.OnDraw                     += Drawing_OnDraw;
            Game.OnWndProc                     += OnWndProc;
            Drawing.OnEndScene                 += OnEndScene;
            AntiGapcloser.OnEnemyGapcloser     += AntiGapcloser_OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;

            Config = new Configuration(menu.Champion);
            InitHpbarOverlay();
        }
Esempio n. 9
0
        public static void ChooseOrbwalker(bool mode)
        {
            if (mode)
            {
                /*   _orbwalker = new LeagueSharp.Common.Orbwalking.Orbwalker(orbwalkerMenu);
                 * comboKey = Menu.Item("Orbwalk");
                 * harassKey = Menu.Item("Farm");
                 * laneclearKey = Menu.Item("LaneClear");
                 * lanefreezeKey = Menu.Item("Freeze");
                 * Chat.Print("Common Orbwalker Loaded");*/
                _orbwalker2   = new Orbwalking.Orbwalker(orbwalkerMenu);
                comboKey      = Menu.Item("Orbwalk");
                harassKey     = Menu.Item("Farm");
                laneclearKey  = Menu.Item("LaneClear");
                lanefreezeKey = Menu.Item("Freeze");
                Chat.Print("Sebby Orbwalker Loaded");
            }

            else
            {
            }
        }
Esempio n. 10
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != ChampionName)
            {
                return;
            }

            #region Spells

            Q = new Spell(SpellSlot.Q);
            W = new Spell(SpellSlot.W, 1240);
            E = new Spell(SpellSlot.E, 2500);
            R = new Spell(SpellSlot.R, float.MaxValue);

            W.SetSkillshot(0.5f, 20f, 2000f, true, SkillshotType.SkillshotLine);
            E.SetSkillshot(0.5f, 300f, 1400f, false, SkillshotType.SkillshotLine);
            R.SetSkillshot(0.5f, 130f, 1600f, false, SkillshotType.SkillshotLine);

            #endregion

            #region Menu

            Menu = new Menu("SurvivorAshe", "SurvivorAshe", true);

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

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

            var ComboMenu = Menu.AddSubMenu(new Menu("Combo", "Combo"));
            ComboMenu.AddItem(new MenuItem("ComboUseQ", "Use Q").SetValue(true));
            ComboMenu.AddItem(new MenuItem("ComboUseW", "Use W").SetValue(true));
            ComboMenu.AddItem(
                new MenuItem("ComboUseR", "Use R").SetValue(true)
                .SetTooltip("Will use R if there's target that's killable in (W + R + 3 AA) Damage"));

            var HarassMenu = Menu.AddSubMenu(new Menu("Harass", "Harass"));
            HarassMenu.AddItem(new MenuItem("HarassUseQ", "Use Q").SetValue(true));
            HarassMenu.AddItem(new MenuItem("HarassUseW", "Use W").SetValue(true));
            HarassMenu.AddItem(new MenuItem("HarassManaManager", "Mana Manager (%)").SetValue(new Slider(40, 1, 100)));

            var LaneClearMenu = Menu.AddSubMenu(new Menu("Lane Clear", "LaneClear"));
            LaneClearMenu.AddItem(new MenuItem("LaneClearUseQ", "Use Q").SetValue(true));
            LaneClearMenu.AddItem(new MenuItem("LaneClearUseW", "Use W").SetValue(true));
            LaneClearMenu.AddItem(
                new MenuItem("LaneClearManaManager", "Mana Manager (%)").SetValue(new Slider(40, 1, 100)));

            var JungleClearMenu = Menu.AddSubMenu(new Menu("Jungle Clear", "JungleClear"));
            JungleClearMenu.AddItem(new MenuItem("UseQJC", "Use Q").SetValue(true));
            JungleClearMenu.AddItem(new MenuItem("UseWJC", "Use W").SetValue(true));
            JungleClearMenu.AddItem(
                new MenuItem("JungleClearManaManager", "Mana Manager (%)").SetValue(new Slider(40, 1, 100)));

            var UltimateMenu = Menu.AddSubMenu(new Menu("Ultimate Menu", "UltimateMenu"));
            UltimateMenu.AddItem(
                new MenuItem("InstaRSelectedTarget", "Instantly Ult [Selected Target] or Nearby").SetValue(
                    new KeyBind("T".ToCharArray()[0], KeyBindType.Press))
                .SetTooltip("It'll Use the Ultimate if there's Enemy selected or enemy nearby."))
            .Permashow(true, "[Ashe]Insta Ult");
            UltimateMenu.AddItem(
                new MenuItem("DontUltEnemyIfAllyNearby", "Don't Ult if Ally is Near Almost Dead Enemy").SetValue(false));


            var MiscMenu = Menu.AddSubMenu(new Menu("Misc Menu", "MiscMenu"));
            MiscMenu.AddItem(new MenuItem("KillSteal", "Activate KillSteal?").SetValue(true));
            MiscMenu.AddItem(new MenuItem("BuyBlueTrinket", "Buy Blue Trinket on Lvl 6?").SetValue(true));
            MiscMenu.AddItem(new MenuItem("EOnFlash", "Cast E if Enemy Player Flashes?").SetValue(true));
            MiscMenu.AddItem(new MenuItem("RToInterrupt", "Auto R to Interrupt Enemies").SetValue(true));
            foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsEnemy))
            {
                MiscMenu.SubMenu("[GapClosers] R Config")
                .AddItem(
                    new MenuItem("GapCloserEnemies" + enemy.ChampionName, enemy.ChampionName).SetValue(false)
                    .SetTooltip("Use R on GapClosing Champions"));
            }

            var HitChanceMenu = Menu.AddSubMenu(new Menu("HitChance Menu", "HitChance"));
            HitChanceMenu.AddItem(
                new MenuItem("HitChance", "Hit Chance").SetValue(new StringList(new[] { "Medium", "High", "Very High" }, 1)));

            var AutoLevelerMenu = Menu.AddSubMenu(new Menu("AutoLeveler Menu", "AutoLevelerMenu"));
            AutoLevelerMenu.AddItem(new MenuItem("AutoLevelUp", "AutoLevel Up Spells?").SetValue(true));
            AutoLevelerMenu.AddItem(
                new MenuItem("AutoLevelUp1", "First: ").SetValue(new StringList(new[] { "Q", "W", "E", "R" }, 3)));
            AutoLevelerMenu.AddItem(
                new MenuItem("AutoLevelUp2", "Second: ").SetValue(new StringList(new[] { "Q", "W", "E", "R" }, 0)));
            AutoLevelerMenu.AddItem(
                new MenuItem("AutoLevelUp3", "Third: ").SetValue(new StringList(new[] { "Q", "W", "E", "R" }, 1)));
            AutoLevelerMenu.AddItem(
                new MenuItem("AutoLevelUp4", "Fourth: ").SetValue(new StringList(new[] { "Q", "W", "E", "R" }, 2)));
            AutoLevelerMenu.AddItem(
                new MenuItem("AutoLvlStartFrom", "AutoLeveler Start from Level: ").SetValue(new Slider(2, 6, 1)));

            var SkinMenu = Menu.AddSubMenu(new Menu("Skins Menu", "SkinMenu"));
            SkinMenu.AddItem(new MenuItem("SkinID", "Skin ID")).SetValue(new Slider(8, 0, 8));
            var UseSkin = SkinMenu.AddItem(new MenuItem("UseSkin", "Enabled")).SetValue(true);
            UseSkin.ValueChanged += (sender, eventArgs) =>
            {
                if (!eventArgs.GetNewValue <bool>())
                {
                    ObjectManager.Player.SetSkin(ObjectManager.Player.CharData.BaseSkinName,
                                                 ObjectManager.Player.BaseSkinId);
                }
            };

            var DrawingMenu = Menu.AddSubMenu(new Menu("Drawing", "Drawing"));
            DrawingMenu.AddItem(new MenuItem("DrawAA", "Draw AA Range").SetValue(true));
            DrawingMenu.AddItem(new MenuItem("DrawW", "Draw W Range").SetValue(true));

            Menu.AddToMainMenu();

            #endregion

            #region DrawHPDamage

            var dmgAfterShave =
                new MenuItem("SurvivorAshe.DrawComboDamage", "Draw Damage on Enemy's HP Bar").SetValue(true);
            var drawFill =
                new MenuItem("SurvivorAshe.DrawColour", "Fill Color", true).SetValue(
                    new Circle(true, Color.SeaGreen));
            DrawingMenu.AddItem(drawFill);
            DrawingMenu.AddItem(dmgAfterShave);
            DrawDamage.DamageToUnit     = CalculateDamage;
            DrawDamage.Enabled          = dmgAfterShave.GetValue <bool>();
            DrawDamage.Fill             = drawFill.GetValue <Circle>().Active;
            DrawDamage.FillColor        = drawFill.GetValue <Circle>().Color;
            dmgAfterShave.ValueChanged +=
                delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                DrawDamage.Enabled = eventArgs.GetNewValue <bool>();
            };

            drawFill.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                DrawDamage.Fill      = eventArgs.GetNewValue <Circle>().Active;
                DrawDamage.FillColor = eventArgs.GetNewValue <Circle>().Color;
            };

            #endregion

            #region Subscriptions

            Drawing.OnDraw        += Drawing_OnDraw;
            Obj_AI_Base.OnLevelUp += Obj_AI_Base_OnLevelUp;
            Game.OnUpdate         += Game_OnUpdate;
            //SebbyLib.Orbwalking.AfterAttack += Orbwalking_AfterAttack;
            Obj_AI_Base.OnProcessSpellCast     += Obj_AI_Base_OnProcessSpell;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            AntiGapcloser.OnEnemyGapcloser     += AntiGapcloser_OnEnemyGapcloser;

            #endregion

            Game.PrintChat("<font color='#800040'>[SurvivorSeries] Ashe</font> <font color='#ff6600'>Loaded.</font>");
        }
Esempio n. 11
0
        private static void LoadMenu()
        {
            Config = new Menu("Thresh As the Chain Warden", "锤石As", true);
            Config.AddToMainMenu();
            var OrbMenu = new Menu("Orbwalker", "走砍设置");
            Orbwalker = new Orbwalking.Orbwalker(OrbMenu);
            Config.AddSubMenu(OrbMenu);

            var SpellConfig = Config.AddSubMenu(new Menu("Spell Settings", "技能设置"));
            SpellConfig.AddItem(new MenuItem("位移Q", "Auto Q Dash Enemy").SetValue(true));
            SpellConfig.AddItem(new MenuItem("不用Q2", "Don't Auto Q2").SetValue(false));
            SpellConfig.AddItem(new MenuItem("人数比", "Don't Q2 if Enemies > allies").SetValue(new Slider(1, 0, 5)));
            var QListConfig = SpellConfig.AddSubMenu(new Menu("Q List","Q名单"));
            QListConfig.AddItem(new MenuItem("提示","if you find some gays seems use L# too,Dont Q him"));
            foreach (var enemy in HeroManager.Enemies)
            {
                QListConfig.AddItem(new MenuItem("QList" + enemy.NetworkId, enemy.ChampionName + "[ " + enemy.Name.ToGBK() + " ]").SetValue(true)).ValueChanged += QListValue_Changed; ;
            }

            var FleeConfig = Config.AddSubMenu(new Menu("Flee Settings", "逃跑设置"));
            FleeConfig.AddItem(new MenuItem("逃跑", "Flee").SetValue(new KeyBind('S', KeyBindType.Press)));
            FleeConfig.AddItem(new MenuItem("E推人", "Auto E push").SetValue(true));
            //FleeConfig.AddItem(new MenuItem("Q野怪", "Auto Q Jungle [TEST]").SetValue(true));

            var PredictConfig = Config.AddSubMenu(new Menu("Predict Settings", "预判设置"));
            PredictConfig.AddItem(new MenuItem("预判模式", "Prediction Mode").SetValue(new StringList(new[] { "Common", "OKTW" , "S Prediction" },1)));
            PredictConfig.AddItem(new MenuItem("命中率", "HitChance").SetValue(new StringList(new[] { "Very High", "High", "Medium" })));
            SPrediction.Prediction.Initialize(PredictConfig);

            var BoxConfig = Config.AddSubMenu(new Menu("Box Settings", "大招设置"));
            BoxConfig.AddItem(new MenuItem("大招人数", "Box Count").SetValue(new Slider(2, 1, 6)));
            BoxConfig.AddItem(new MenuItem("自动大招模式", "Box Mode").SetValue(new StringList(new[] { "Prediction", "Now" })));

            var SupportConfig = Config.AddSubMenu(new Menu("Support Mode", "辅助模式"));
            SupportConfig.AddItem(new MenuItem("辅助模式", "Support Mode").SetValue(true));
            SupportConfig.AddItem(new MenuItem("辅助模式距离", "Support Mode Range").SetValue(new Slider((int)Player.AttackRange + 200, (int)Player.AttackRange, 2000)));
            SupportConfig.AddItem(new MenuItem("辅助目标", "Attack ADC's Target [TEST]").SetValue(false));

            var DrawConfig = Config.AddSubMenu(new Menu("Drawing Settings", "显示设置"));
            DrawConfig.AddItem(new MenuItem("技能可用才显示", "Draw when skill is ready").SetValue(true));
            DrawConfig.AddItem(new MenuItem("显示Q", "Draw Q Range").SetValue(new Circle(false, Color.YellowGreen)));
            DrawConfig.AddItem(new MenuItem("显示W", "Draw W Range").SetValue(new Circle(false, Color.Yellow)));
            DrawConfig.AddItem(new MenuItem("显示E", "Draw E Range").SetValue(new Circle(false, Color.GreenYellow)));
            DrawConfig.AddItem(new MenuItem("显示R", "Draw R Range").SetValue(new Circle(false, Color.LightGreen)));
            DrawConfig.AddItem(new MenuItem("标识目标", "Draw Target").SetValue(new Circle(false, Color.Red)));

            var SmartKeyConfig = Config.AddSubMenu(new Menu("Smart Cast", "智能施法"));
            SmartKeyConfig.AddItem(new MenuItem("智能施法标签", "Enable Follow Options,Prss Q/W/E Auto Cast Spell"));
            SmartKeyConfig.AddItem(new MenuItem("智能Q", "Smart Cast Q").SetValue(true));
            SmartKeyConfig.AddItem(new MenuItem("智能W", "Smart Cast W").SetValue(true));
            SmartKeyConfig.AddItem(new MenuItem("智能E", "Smart Cast E").SetValue(true));

            var TowerConfig = Config.AddSubMenu(new Menu("Turret Settings", "防御塔设置"));
            TowerConfig.AddItem(new MenuItem("控制塔攻击的敌人", "Q/E ally Turret’s target").SetValue(true));
            TowerConfig.AddItem(new MenuItem("拉敌人进塔", "Q/E target into ally turret").SetValue(true));
            TowerConfig.AddItem(new MenuItem("Q不进敌塔", "Don't Q2 in enemy turret").SetValue(true));

            var MultiLanguageConfig = Config.AddSubMenu(new Menu("MultiLanguage Settings", "语言选择"));
            MultiLanguageConfig.AddItem(new MenuItem("选择语言", "Selecte Language").SetValue(new StringList(new[] { "English", "中文" }))).ValueChanged += MultiLanguage_ValueChanged;

            Config.AddItem(new MenuItem("调试", "调试").SetValue(false));

            ChangeLanguage(MultiLanguageConfig.Item("选择语言").GetValue<StringList>().SelectedIndex);
        }
Esempio n. 12
0
        public static void Game_OnGameLoad()
        {
            if (Player.ChampionName != "Malzahar")
            {
                return;
            }

            igniteSlot = Player.GetSpellSlot("summonerdot");
            Q          = new Spell(SpellSlot.Q, 900f);
            W          = new Spell(SpellSlot.W, 760f);
            E          = new Spell(SpellSlot.E, 650f);
            R          = new Spell(SpellSlot.R, 700f);

            Q.SetSkillshot(0.75f, 80, float.MaxValue, false, SkillshotType.SkillshotCircle);
            W.SetSkillshot(0.5f, 80, 20, false, SkillshotType.SkillshotCircle);

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

            Orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);

            #region Combo/Harass/LaneClear/OneShot

            //Combo Menu
            var combo = new Menu("Combo", "Combo");
            Menu.AddSubMenu(combo);
            combo.AddItem(new MenuItem("Combo", "Combo"));
            combo.AddItem(new MenuItem("useQ", "Use Q").SetValue(true));
            combo.AddItem(new MenuItem("useW", "Use W").SetValue(true));
            combo.AddItem(new MenuItem("useE", "Use E").SetValue(true));
            combo.AddItem(new MenuItem("useR", "Use R").SetValue(true));
            combo.AddItem(new MenuItem("DontAAInCombo", "Don't AA while doing Combo").SetValue(true));
            combo.AddItem(new MenuItem("useIgniteInCombo", "Use Ignite if Killable").SetValue(true));
            //Harass Menu
            var harass = new Menu("Harass", "Harass");
            Menu.AddSubMenu(harass);
            harass.AddItem(new MenuItem("autoharassenabled", "Auto Harrass Enabled?").SetValue(true));
            harass.AddItem(new MenuItem("autoharass", "Auto Harrass with E").SetValue(true));
            harass.AddItem(new MenuItem("autoharassuseQ", "Auto Harrass with Q").SetValue(false));
            harass.AddItem(
                new MenuItem("autoharassminimumMana", "Minimum Mana%").SetValue(new Slider(30))
                .SetTooltip("Minimum Mana that you need to have to AutoHarass with Q/E."));
            //LaneClear Menu
            var lc = new Menu("Laneclear", "Laneclear");
            Menu.AddSubMenu(lc);
            lc.AddItem(new MenuItem("laneclearE", "Use E to LaneClear").SetValue(true));
            lc.AddItem(new MenuItem("laneclearQ", "Use Q to LaneClear").SetValue(true));
            lc.AddItem(new MenuItem("laneclearW", "Use W to LaneClear").SetValue(true));
            lc.AddItem(new MenuItem("LaneClearMinions", "LaneClear Minimum Minions for Q").SetValue(new Slider(2, 0, 10)));
            lc.AddItem(
                new MenuItem("LaneClearEMinMinions", "LaneClear Minimum Minions for E").SetValue(new Slider(2, 0, 10)));
            lc.AddItem(
                new MenuItem("laneclearEMinimumMana", "Minimum E Mana%").SetValue(new Slider(30))
                .SetTooltip("Minimum Mana that you need to have to cast E on LaneClear."));
            lc.AddItem(
                new MenuItem("laneclearQMinimumMana", "Minimum Q Mana%").SetValue(new Slider(30))
                .SetTooltip("Minimum Mana that you need to have to cast Q on LaneClear."));
            lc.AddItem(
                new MenuItem("laneclearWMinimumMana", "Minimum W Mana%").SetValue(new Slider(30))
                .SetTooltip("Minimum Mana that you need to have to cast W on LaneClear."));

            //JungleClear Menu
            var jgc = new Menu("JungleClear", "Jungleclear");
            Menu.AddSubMenu(jgc);
            jgc.AddItem(new MenuItem("jungleclearQ", "Use Q to JungleClear").SetValue(true));
            jgc.AddItem(new MenuItem("jungleclearW", "Use W to JungleClear").SetValue(true));
            jgc.AddItem(new MenuItem("jungleclearE", "Use E to JungleClear").SetValue(true));
            jgc.AddItem(
                new MenuItem("jungleclearManaManager", "JungleClear Mana Manager").SetValue(new Slider(30, 0, 100)));

            // Drawing Menu
            var DrawingMenu = new Menu("Drawings", "Drawings");
            Menu.AddSubMenu(DrawingMenu);
            DrawingMenu.AddItem(new MenuItem("drawQ", "Draw Q range").SetValue(false));
            DrawingMenu.AddItem(new MenuItem("drawW", "Draw W range").SetValue(false));
            DrawingMenu.AddItem(new MenuItem("drawE", "Draw E range").SetValue(false));
            DrawingMenu.AddItem(new MenuItem("drawR", "Draw R range").SetValue(true));

            #region Skin Changer

            var SkinChangerMenu = new Menu(":: Skin Changer", "SkinChanger").SetFontStyle(FontStyle.Bold,
                                                                                          Color.Chartreuse);
            Menu.AddSubMenu(SkinChangerMenu);
            var SkinChanger =
                SkinChangerMenu.AddItem(
                    new MenuItem("UseSkinChanger", ":: Use SkinChanger?").SetValue(true)
                    .SetFontStyle(FontStyle.Bold, Color.Crimson));
            var SkinID =
                SkinChangerMenu.AddItem(
                    new MenuItem("SkinID", ":: Skin").SetValue(
                        new StringList(
                            new[]
            {
                "Classic", "Shadow Prince Malzahar", "Djinn Malzahar", "Overlord Malzahar",
                "Vizier Malzahar", "Snow Day Malzahar"
            }, 3)).SetFontStyle(FontStyle.Bold, Color.Crimson));
            SkinID.ValueChanged += (sender, eventArgs) =>
            {
                if (!SkinChanger.GetValue <bool>())
                {
                    return;
                }

                //Player.SetSkin(Player.BaseSkinName, eventArgs.GetNewValue<StringList>().SelectedIndex);
            };

            #endregion

            // Misc Menu
            var miscMenu = new Menu("Misc", "Misc");
            Menu.AddSubMenu(miscMenu);
            // Todo: Add more KillSteal Variants/Spells
            miscMenu.AddItem(
                new MenuItem("HitChance", "HitChance?").SetValue(new StringList(new[] { "Medium", "High", "Very High" }, 1)));
            miscMenu.AddItem(new MenuItem("ksE", "Use E to KillSteal").SetValue(true));
            miscMenu.AddItem(new MenuItem("ksQ", "Use Q to KillSteal").SetValue(true));
            miscMenu.AddItem(new MenuItem("interruptQ", "Interrupt Spells Q", true).SetValue(true));
            miscMenu.AddItem(new MenuItem("useQAntiGapCloser", "Use Q on GapClosers").SetValue(true));
            foreach (var enemy in ObjectManager.Get <AIHeroClient>().Where(enemy => enemy.IsEnemy))
            {
                miscMenu.SubMenu("GapCloser R")
                .AddItem(
                    new MenuItem("gapcloserR" + enemy.ChampionName, enemy.ChampionName).SetValue(false)
                    .SetTooltip("Use R on GapClosing Champions"));
            }
            miscMenu.AddItem(
                new MenuItem("OneShotInfo", "OneShot Combo [Info]").SetTooltip(
                    "If you don't have mana to cast Q/W/E/R spells all together it won't cast the spells. Use Combo Instead."));
            miscMenu.AddItem(
                new MenuItem("oneshot", "Burst Combo").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press))
                .SetTooltip("It will cast Q+E+W+R on enemy when enemy is in E range."));

            #endregion

            // Draw Damage

            #region DrawHPDamage

            var dmgAfterShave =
                DrawingMenu.AddItem(new MenuItem("SurvivorMalzahar.DrawComboDamage", "Draw Combo Damage").SetValue(true));
            var drawFill =
                DrawingMenu.AddItem(new MenuItem("SurvivorMalzahar.DrawColour", "Fill Color", true).SetValue(
                                        new Circle(true, System.Drawing.Color.FromArgb(204, 255, 0, 1))));
            DrawDamage.DamageToUnit     = CalculateDamage;
            DrawDamage.Enabled          = dmgAfterShave.GetValue <bool>();
            DrawDamage.Fill             = drawFill.GetValue <Circle>().Active;
            DrawDamage.FillColor        = drawFill.GetValue <Circle>().Color;
            dmgAfterShave.ValueChanged +=
                delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                DrawDamage.Enabled = eventArgs.GetNewValue <bool>();
            };

            drawFill.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                DrawDamage.Fill      = eventArgs.GetNewValue <Circle>().Active;
                DrawDamage.FillColor = eventArgs.GetNewValue <Circle>().Color;
            };

            #endregion

            Menu.AddToMainMenu();

            #region Subscriptions

            Game.OnUpdate += OnUpdate;
            AntiGapcloser.OnEnemyGapcloser     += AntiGapcloserOnOnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            Drawing.OnDraw += OnDraw;
            Chat.Print("<font color='#800040'>[SurvivorSeries] Malzahar</font> <font color='#ff6600'>Loaded.</font>");

            #endregion
        }
Esempio n. 13
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != ChampionName)
            {
                return;
            }

            #region Spells

            Q = new Spell(SpellSlot.Q, 1050f);
            W = new Spell(SpellSlot.W, 900f);
            E = new Spell(SpellSlot.E, 625f);
            R = new Spell(SpellSlot.R, 750f);
            Q.SetSkillshot(0.25f, 60f, 1600f, true, SkillshotType.SkillshotLine);
            W.SetSkillshot(1.15f, 230f, float.MaxValue, false, SkillshotType.SkillshotCircle);
            R.SetTargetted(0.25f, 2000f);

            #endregion

            #region SummonerSpells

            IgniteSlot = Player.GetSpellSlot("summonerdot");

            #endregion

            #region Menu

            Menu = new Menu("SurvivorBrand", "SurvivorBrand", true);

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

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

            var ComboMenu = Menu.AddSubMenu(new Menu("Combo", "Combo"));
            ComboMenu.AddItem(new MenuItem("ComboUseQ", "Use Q").SetValue(true));
            ComboMenu.AddItem(new MenuItem("ComboUseW", "Use W").SetValue(true));
            ComboMenu.AddItem(new MenuItem("ComboUseE", "Use E").SetValue(true));
            ComboMenu.AddItem(new MenuItem("ComboUseR", "Use R").SetValue(true));
            ComboMenu.AddItem(new MenuItem("ComboUseRKillable", "Use R Only if Killable").SetValue(true));
            // ComboMenu.AddItem(new MenuItem("ComboUseIgnite", "Use Ignite").SetValue(true));

            var HarassMenu = Menu.AddSubMenu(new Menu("Harass", "Harass"));
            HarassMenu.AddItem(new MenuItem("harassQ", "Use Q").SetValue(true));
            HarassMenu.AddItem(new MenuItem("harassW", "Use W").SetValue(true));
            HarassMenu.AddItem(new MenuItem("harassE", "Use E").SetValue(true));
            HarassMenu.AddItem(new MenuItem("HarassBlockAA", "Block AA's in Harass Mode").SetValue(true));
            HarassMenu.AddItem(new MenuItem("HarassManaManager", "Mana Manager (%)").SetValue(new Slider(30, 1, 100)));

            var LaneClearMenu = Menu.AddSubMenu(new Menu("Lane Clear", "LaneClear"));
            LaneClearMenu.AddItem(new MenuItem("laneclearW", "Use W").SetValue(true));
            LaneClearMenu.AddItem(new MenuItem("laneclearE", "Use E").SetValue(true));
            LaneClearMenu.AddItem(
                new MenuItem("LaneClearWMinions", "Minimum Enemies inside W").SetValue(new Slider(2, 1, 10)));
            LaneClearMenu.AddItem(
                new MenuItem("LaneClearManaManager", "Mana Manager (%)").SetValue(new Slider(30, 1, 100)));

            var KillStealMenu = Menu.AddSubMenu(new Menu("Kill Steal", "KillSteal"));
            KillStealMenu.AddItem(
                new MenuItem("KillStealWithAvSpells", "KS with available spells (Q/W/E)").SetValue(true));

            var MiscMenu = Menu.AddSubMenu(new Menu("Misc", "Misc"));
            MiscMenu.AddItem(new MenuItem("PrioritizeStunned", "Prioritize Stunned Targets?").SetValue(true));
            MiscMenu.AddItem(
                new MenuItem("StunTargetKey", "Stun the target if possible while holding Key -> 'G'").SetValue(
                    new KeyBind("G".ToCharArray()[0], KeyBindType.Press)));
            MiscMenu.AddItem(new MenuItem("QAblazedEnemy", "Auto Q if Target's [ABlazed]").SetValue(true));
            MiscMenu.AddItem(new MenuItem("QGapC", "Auto Stun GapClosers").SetValue(true));
            MiscMenu.AddItem(new MenuItem("InterruptEQ", "Auto E-Q to Interrupt").SetValue(false));
            MiscMenu.AddItem(new MenuItem("QOnlyAblazed", "Use Q Only if Enemy is Ablazed").SetValue(false));
            MiscMenu.AddItem(
                new MenuItem("NearbyREnemies", "Use R in Combo if X Enemies are nearby 'X' ->").SetValue(new Slider(1, 0,
                                                                                                                    5)));

            var AutoLevelerMenu = Menu.AddSubMenu(new Menu("AutoLeveler Menu", "AutoLevelerMenu"));
            AutoLevelerMenu.AddItem(new MenuItem("AutoLevelUp", "AutoLevel Up Spells?").SetValue(true));
            AutoLevelerMenu.AddItem(
                new MenuItem("AutoLevelUp1", "First: ").SetValue(new StringList(new[] { "Q", "W", "E", "R" }, 3)));
            AutoLevelerMenu.AddItem(
                new MenuItem("AutoLevelUp2", "Second: ").SetValue(new StringList(new[] { "Q", "W", "E", "R" }, 0)));
            AutoLevelerMenu.AddItem(
                new MenuItem("AutoLevelUp3", "Third: ").SetValue(new StringList(new[] { "Q", "W", "E", "R" }, 1)));
            AutoLevelerMenu.AddItem(
                new MenuItem("AutoLevelUp4", "Fourth: ").SetValue(new StringList(new[] { "Q", "W", "E", "R" }, 2)));
            AutoLevelerMenu.AddItem(
                new MenuItem("AutoLvlStartFrom", "AutoLeveler Start from Level: ").SetValue(new Slider(2, 6, 1)));

            var DrawingMenu = Menu.AddSubMenu(new Menu("Drawing", "Drawing"));
            DrawingMenu.AddItem(new MenuItem("DrawQ", "Draw Q Range").SetValue(true));
            DrawingMenu.AddItem(
                new MenuItem("DrawPassiveBombOnEnemy", "Draw Passive Bomb on Enemy (Range) (Soon)").SetValue(true));
            DrawingMenu.AddItem(new MenuItem("DrawW", "Draw W Range").SetValue(true));
            DrawingMenu.AddItem(new MenuItem("DrawE", "Draw E Range").SetValue(true));
            DrawingMenu.AddItem(new MenuItem("DrawR", "Draw R Range").SetValue(true));

            Menu.AddToMainMenu();

            #endregion

            var SkinMenu = Menu.AddSubMenu(new Menu("Skins Menu", "SkinMenu"));
            SkinMenu.AddItem(new MenuItem("SkinID", "Skin ID")).SetValue(new Slider(5, 0, 5));
            var UseSkin = SkinMenu.AddItem(new MenuItem("UseSkin", "Enabled")).SetValue(true);
            UseSkin.ValueChanged += (sender, eventArgs) =>
            {
                if (!eventArgs.GetNewValue <bool>())
                {
                    ObjectManager.Player.SetSkin(ObjectManager.Player.CharData.BaseSkinName,
                                                 ObjectManager.Player.BaseSkinId);
                }
            };

            #region DrawHPDamage

            var dmgAfterShave = new MenuItem("SurvivorBrand.DrawComboDamage", "Draw Combo Damage").SetValue(true);
            var drawFill      =
                new MenuItem("SurvivorBrand.DrawColour", "Fill Color", true).SetValue(
                    new Circle(true, Color.FromArgb(204, 255, 0, 1)));
            DrawingMenu.AddItem(drawFill);
            DrawingMenu.AddItem(dmgAfterShave);
            DrawDamage.DamageToUnit     = CalculateDamage;
            DrawDamage.Enabled          = dmgAfterShave.GetValue <bool>();
            DrawDamage.Fill             = drawFill.GetValue <Circle>().Active;
            DrawDamage.FillColor        = drawFill.GetValue <Circle>().Color;
            dmgAfterShave.ValueChanged +=
                delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                DrawDamage.Enabled = eventArgs.GetNewValue <bool>();
            };

            drawFill.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                DrawDamage.Fill      = eventArgs.GetNewValue <Circle>().Active;
                DrawDamage.FillColor = eventArgs.GetNewValue <Circle>().Color;
            };

            #endregion

            #region Subscriptions

            Game.OnUpdate += OnUpdate;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            Obj_AI_Base.OnLevelUp          += Obj_AI_Base_OnLevelUp;
            AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
            Drawing.OnDraw += OnDraw;
            Game.PrintChat("<font color='#800040'>[SurvivorSeries] Brand</font> <font color='#ff6600'>Loaded.</font>");
            // Add AntiGapCloser + Interrupter + Killsteal //

            #endregion
        }
Esempio n. 14
0
        private void GameOnGameLoad()
        {
            if (Player.ChampionName != "Khazix")
            {
                return;
            }

            #region Spells && Items

            IgniteSlot = Player.GetSpellSlot("summonerdot");
            var smite = Player.Spellbook.Spells.FirstOrDefault(x => x.Name.ToLower().Contains("smite"));
            Q = new Spell(SpellSlot.Q, 325f);
            W = new Spell(SpellSlot.W, 1000f);
            E = new Spell(SpellSlot.E, 700f);
            R = new Spell(SpellSlot.R, 0);
            W.SetSkillshot(0.225f, 80f, 825f, true, SkillshotType.SkillshotLine);
            E.SetSkillshot(0.25f, 100f, 1000f, false, SkillshotType.SkillshotCircle);
            if (IgniteSlot != SpellSlot.Unknown)
            {
                Ignite = new Spell(IgniteSlot, 550f);
            }
            if ((smite != null) && (smite.Slot != SpellSlot.Unknown))
            {
                Smite = new Spell(smite.Slot, 500f, TargetSelector.DamageType.True);
            }

            Hydra        = new Items.Item(3074, 225f);
            Tiamat       = new Items.Item(3077, 225f);
            Blade        = new Items.Item(3153, 450f);
            Bilgewater   = new Items.Item(3144, 450f);
            Youmuu       = new Items.Item(3142, 185f);
            TitanicHydra = new Items.Item(3748, 225f);

            #endregion

            #region Config

            Config = new Menu("SurvivorKhaZix", "SurvivorKhaZix", true).SetFontStyle(FontStyle.Bold, Color.Crimson);

            var orbwalkerMenu = Config.AddSubMenu(new Menu(":: Orbwalker", "Orbwalker"));
            Orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);

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

            TargetSelector.AddToMenu(targetSelectorMenu);

            #endregion

            #region Config Items

            var comboMenu = Config.AddSubMenu(new Menu(":: Combo", "Combo"));
            comboMenu.AddItem(new MenuItem("ComboUseQ", "Use Q").SetValue(true));
            comboMenu.AddItem(new MenuItem("ComboUseW", "Use W").SetValue(true));
            comboMenu.AddItem(new MenuItem("ComboUseE", "Use E").SetValue(true));
            comboMenu.AddItem(new MenuItem("DontAAInInvisible", "Don't AA while Invisible?").SetValue(true));
            comboMenu.AddItem(
                new MenuItem("ComboDontEUnderTurret", "Don't E (Jump) under Turret?").SetValue(true)
                .SetTooltip("Set it to 'true' to be Safe."));
            comboMenu.AddItem(
                new MenuItem("ComboMinimumREnemies", "Minimum Enemies in E Range Before Casting R").SetValue(
                    new Slider(2, 1, 5)));
            comboMenu.AddItem(
                new MenuItem("ComboUseR", "Use R").SetValue(true)
                .SetTooltip(
                    "Will use R if there's more than 1 target, or if Low HP will go into Survive(Fight) or Die mode."));

            var laneClearMenu = Config.AddSubMenu(new Menu(":: LaneClear", "LaneClear"));
            laneClearMenu.AddItem(new MenuItem("LaneClearQ", "Use Q").SetValue(true));
            laneClearMenu.AddItem(new MenuItem("LaneClearW", "Use W").SetValue(true));
            laneClearMenu.AddItem(new MenuItem("LaneClearE", "Use E").SetValue(false));
            laneClearMenu.AddItem(new MenuItem("LaneClearItems", "Use Hydra/Tiamat to LaneClear?").SetValue(true));
            laneClearMenu.AddItem(
                new MenuItem("LaneClearManaManager", "LaneClear Mana Manager").SetValue(new Slider(50, 0, 100)));
            laneClearMenu.AddItem(
                new MenuItem("MinimumEMinions", "Minimum Minions To Hit Using E?").SetValue(new Slider(3, 0, 10)));

            var jungleClearMenu = Config.AddSubMenu(new Menu(":: JungleClear", "JungleClear"));
            jungleClearMenu.AddItem(new MenuItem("JungleClearQ", "Use Q").SetValue(true));
            jungleClearMenu.AddItem(new MenuItem("JungleClearW", "Use W").SetValue(true));
            jungleClearMenu.AddItem(new MenuItem("JungleClearE", "Use E").SetValue(false));
            jungleClearMenu.AddItem(new MenuItem("JungleClearItems", "Use Hydra/Tiamat to JungleClear?").SetValue(true));
            jungleClearMenu.AddItem(
                new MenuItem("JungleClearDontEQRange", "Don't Use E if Mobs are in Q Range?").SetValue(true));
            jungleClearMenu.AddItem(
                new MenuItem("JungleClearManaManager", "JungleClear Mana Manager").SetValue(new Slider(50, 0, 100)));
            jungleClearMenu.AddItem(
                new MenuItem("MinimumEJungleMobs", "Minimum Mobs in E before Jumping?").SetValue(new Slider(2, 1, 4)));

            var lastHitMenu = Config.AddSubMenu(new Menu(":: LastHit", "LastHit"));
            lastHitMenu.AddItem(new MenuItem("LastHitQ", "Use Q").SetValue(true));
            lastHitMenu.AddItem(new MenuItem("LastHitW", "Use W").SetValue(false));
            lastHitMenu.AddItem(
                new MenuItem("LastHitManaManager", "LastHit Mana Manager Mana Manager").SetValue(new Slider(50, 0, 100)));

            var harassMenu = Config.AddSubMenu(new Menu(":: Harass", "Harass"));
            harassMenu.AddItem(new MenuItem("HarassQ", "Use Q").SetValue(true));
            harassMenu.AddItem(new MenuItem("HarassW", "Use W").SetValue(true));
            harassMenu.AddItem(
                new MenuItem("HarassManaManager", "Harass Mana Manager Mana Manager").SetValue(new Slider(50, 0, 100)));

            var killStealMenu = Config.AddSubMenu(new Menu(":: Killsteal", "Killsteal"));
            killStealMenu.AddItem(new MenuItem("EnableKS", "Enable Killsteal?").SetValue(true));
            killStealMenu.AddItem(new MenuItem("KSQ", "KS with Q?").SetValue(true));
            killStealMenu.AddItem(new MenuItem("KSW", "KS with W").SetValue(true));
            killStealMenu.AddItem(new MenuItem("KSE", "KS with E").SetValue(true));
            killStealMenu.AddItem(new MenuItem("UnavailableService",
                                               "KS with Ignite/Smite is currently (Temporary) Unavailable."));
            killStealMenu.AddItem(new MenuItem("KSIgnite", "KS with Ignite").SetValue(false));
            killStealMenu.AddItem(new MenuItem("KSSmite", "KS with Smite").SetValue(false));

            var drawingMenu = Config.AddSubMenu(new Menu(":: Drawings", "Drawings"));
            drawingMenu.AddItem(new MenuItem("DrawQ", "Draw Q Range").SetValue(true));
            drawingMenu.AddItem(new MenuItem("DrawW", "Draw W Range").SetValue(false));
            drawingMenu.AddItem(new MenuItem("DrawE", "Draw E Range").SetValue(true));
            drawingMenu.AddItem(
                new MenuItem("DrawIsolated", "Draw Isolated?").SetValue(true).SetTooltip("Preferably set to 'true'."));
            drawingMenu.AddItem(new MenuItem("DrawIsMidAirDebug", "Draw isMidAir (Debug)").SetValue(false));

            var miscMenu = Config.AddSubMenu(new Menu(":: Misc", "Misc"));
            miscMenu.AddItem(
                new MenuItem("HitChance", "Hit Chance").SetValue(new StringList(new[] { "Medium", "High", "Very High" }, 1)));

            #region DrawDamage

            var drawdamage = new Menu(":: Draw Damage", "drawdamage");
            {
                var dmgAfterShave =
                    new MenuItem("SurvivorKhaZix.DrawComboDamage", "Draw Damage on Enemy's HP Bar").SetValue(true);
                var drawFill =
                    new MenuItem("SurvivorKhaZix.DrawColour", "Fill Color", true).SetValue(
                        new Circle(true, System.Drawing.Color.Chartreuse));
                drawdamage.AddItem(drawFill);
                drawdamage.AddItem(dmgAfterShave);
                DrawDamage.DamageToUnit     = CalculateDamage;
                DrawDamage.Enabled          = dmgAfterShave.GetValue <bool>();
                DrawDamage.Fill             = drawFill.GetValue <Circle>().Active;
                DrawDamage.FillColor        = drawFill.GetValue <Circle>().Color;
                dmgAfterShave.ValueChanged +=
                    delegate(object sender, OnValueChangeEventArgs eventArgs)
                {
                    DrawDamage.Enabled = eventArgs.GetNewValue <bool>();
                };

                drawFill.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs)
                {
                    DrawDamage.Fill      = eventArgs.GetNewValue <Circle>().Active;
                    DrawDamage.FillColor = eventArgs.GetNewValue <Circle>().Color;
                };
            }

            #endregion

            // Add everything to the main config/menu/root.
            Config.AddToMainMenu();

            #endregion

            #region Subscriptions

            Game.OnUpdate  += GameOnUpdate;
            Drawing.OnDraw += DrawingOnOnDraw;
            //Obj_AI_Base.OnProcessSpellCast += ObjAiHeroOnOnProcessSpellCast;
            GameObject.OnCreate += GameObjectOnOnCreate;
            GameObject.OnDelete += GameObjectOnOnDelete;
            //Obj_AI_Base.OnBuffGain += ObjAiBaseOnOnBuffAdd;
            Chat.Print("<font color='#800040'>[SurvivorSeries] Kha'Zix</font> <font color='#ff6600'>Loaded.</font>");

            #endregion
        }
Esempio n. 15
0
        private static void MainMenu()
        {
            Option = new Menu("Sense Elise", "Sense_Elise", true).SetFontStyle(FontStyle.Regular, SharpDX.Color.SkyBlue);

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

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

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

            var Prediction = new Menu("Prediction Mode", "Prediction Mode");

            {
                Prediction.AddItem(
                    new MenuItem("HitChance", "Human E HitChance").SetValue(
                        new StringList(new[] { "Medium", "High", "VeryHigh" }, 1)));
            }
            Option.AddSubMenu(Prediction);

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

            {
                Harass.SubMenu("Human Skill").AddItem(new MenuItem("Human Harass Q", "Use Q").SetValue(true));
                Harass.SubMenu("Human Skill").AddItem(new MenuItem("Human Harass W", "Use W").SetValue(true));
                Harass.SubMenu("Human Skill").AddItem(new MenuItem("Human Harass E", "Use E").SetValue(true));
                Harass.SubMenu("Spider Skill").AddItem(new MenuItem("Spider Harass Q", "Use Q").SetValue(true));
                Harass.SubMenu("Spider Skill").AddItem(new MenuItem("Spider Harass W", "Use W").SetValue(true));
                Harass.AddItem(new MenuItem("HMana", "Mana Manager (%)").SetValue(new Slider(40)));
            }
            Option.AddSubMenu(Harass);

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

            {
                LaneClear.SubMenu("Human Skill").AddItem(new MenuItem("Human Lane Q", "Use Q").SetValue(true));
                LaneClear.SubMenu("Human Skill").AddItem(new MenuItem("Human Lane W", "Use W").SetValue(true));
                LaneClear.SubMenu("Human Skill").AddItem(new MenuItem("Human Lane E", "Use E").SetValue(true));
                LaneClear.SubMenu("Spider Skill").AddItem(new MenuItem("Spider Lane Q", "Use Q").SetValue(true));
                LaneClear.SubMenu("Spider Skill").AddItem(new MenuItem("Spider Lane W", "Use W").SetValue(true));
                LaneClear.AddItem(new MenuItem("LMana", "Mana Manager (%)").SetValue(new Slider(40)));
            }
            Option.AddSubMenu(LaneClear);

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

            {
                JungleClear.SubMenu("Human Skill").AddItem(new MenuItem("Human Jungle Q", "Use Q").SetValue(true));
                JungleClear.SubMenu("Human Skill").AddItem(new MenuItem("Human Jungle W", "Use W").SetValue(true));
                JungleClear.SubMenu("Human Skill").AddItem(new MenuItem("Human Jungle E", "Use E").SetValue(true));
                JungleClear.SubMenu("Spider Skill").AddItem(new MenuItem("Spider Jungle Q", "Use Q").SetValue(true));
                JungleClear.SubMenu("Spider Skill").AddItem(new MenuItem("Spider Jungle W", "Use W").SetValue(true));
                JungleClear.AddItem(new MenuItem("Jungle R", "Auto Switch Form").SetValue(true));
                JungleClear.AddItem(new MenuItem("JMana", "Mana Manager (%)").SetValue(new Slider(40)));
            }
            Option.AddSubMenu(JungleClear);

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

            {
                Combo.SubMenu("Human Skill").AddItem(new MenuItem("Human Combo Q", "Use Q").SetValue(true));
                Combo.SubMenu("Human Skill").AddItem(new MenuItem("Human Combo W", "Use W").SetValue(true));
                Combo.SubMenu("Human Skill").AddItem(new MenuItem("Human Combo E", "Use E").SetValue(true));
                Combo.SubMenu("Spider Skill").AddItem(new MenuItem("Spider Combo Q", "Use Q").SetValue(true));
                Combo.SubMenu("Spider Skill").AddItem(new MenuItem("Spider Combo W", "Use W").SetValue(true));
                Combo.SubMenu("Spider Skill").AddItem(new MenuItem("Spider Combo E Auto", "Use Auto E").SetValue(false));
                Combo.SubMenu("Spider Skill")
                .AddItem(new MenuItem("Spider Combo E", "Use E").SetValue(new KeyBind('T', KeyBindType.Press)));
                Combo.AddItem(new MenuItem("Combo R", "Auto Switch Form").SetValue(true));
            }
            Option.AddSubMenu(Combo);

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

            {
                Misc.SubMenu("KillSteal").AddItem(new MenuItem("KillSteal Human Q", "Use Q").SetValue(true));
                Misc.SubMenu("KillSteal").AddItem(new MenuItem("KillSteal Human W", "Use W").SetValue(false));
                Misc.SubMenu("KillSteal").AddItem(new MenuItem("KillSteal Spider Q", "Use Q").SetValue(true));
                Misc.SubMenu("Interrupt").AddItem(new MenuItem("Interrupt Human E", "Use Human E").SetValue(true));
                Misc.SubMenu("Anti-GapCloser").AddItem(new MenuItem("GapCloser Human E", "Use Human E").SetValue(true));
                Misc.SubMenu("Anti-GapCloser")
                .AddItem(new MenuItem("GapCloser Spider E", "Use Spider E").SetValue(false));

                /*
                 * Misc.SubMenu("Smite").AddItem(new MenuItem("Smite Blue", "Smite Use Blue").SetValue(false));
                 * Misc.SubMenu("Smite").AddItem(new MenuItem("Smite Red", "Smite Use Red").SetValue(false));
                 * Misc.SubMenu("Smite").AddItem(new MenuItem("Smite Dragon", "Smite Use Dragon").SetValue(true));
                 * Misc.SubMenu("Smite").AddItem(new MenuItem("Smite Baron", "Smite Use Dragon").SetValue(true));
                 * Misc.SubMenu("Smite").AddItem(new MenuItem("Smite Enemy", "Smite Use Enemy(Click the Target)").SetValue(true));
                 */
                Misc.AddItem(
                    new MenuItem("Fast Instant Rappel", "Fast Instant_Rappel").SetValue(new KeyBind('G',
                                                                                                    KeyBindType.Press)));
            }
            Option.AddSubMenu(Misc);

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

            {
                Drawing.SubMenu("Human Skill").AddItem(new MenuItem("Human Q Draw", "Use Q").SetValue(false));
                Drawing.SubMenu("Human Skill").AddItem(new MenuItem("Human W Draw", "Use W").SetValue(false));
                Drawing.SubMenu("Human Skill")
                .AddItem(new MenuItem("Human E Draw Range", "Use E Range").SetValue(false));
                Drawing.SubMenu("Human Skill")
                .AddItem(new MenuItem("Human E Draw Target", "Use E Target").SetValue(true));
                Drawing.SubMenu("Human Skill")
                .AddItem(new MenuItem("Human Skill Cooldown", "Skill Cooldown").SetValue(true));
                Drawing.SubMenu("Spider Skill").AddItem(new MenuItem("Spider Q Draw", "Use Q").SetValue(false));
                Drawing.SubMenu("Spider Skill")
                .AddItem(new MenuItem("Spider E Draw Range", "Use E Range").SetValue(false));
                Drawing.SubMenu("Spider Skill")
                .AddItem(new MenuItem("Spider E Draw Target", "Use E Target").SetValue(true));
                Drawing.SubMenu("Spider Skill")
                .AddItem(new MenuItem("Spider EQ Draw Target", "Use EQ Target").SetValue(true));
                Drawing.SubMenu("Spider Skill")
                .AddItem(new MenuItem("Spider EQ Draw Minion", "Use EQ Target(Minion Jump)").SetValue(true));
                Drawing.SubMenu("Spider Skill")
                .AddItem(new MenuItem("Spider Skill Cooldown", "Skill Cooldown").SetValue(true));
                Drawing.AddItem(new MenuItem("DamageAfterCombo", "Draw Combo Damage").SetValue(true));
            }
            Option.AddSubMenu(Drawing);

            Option.AddToMainMenu();
        }
Esempio n. 16
0
        /// <summary>
        ///     Initialize Extens
        /// </summary>
        public static void Init()
        {
            Menu = new Menu(":: SurvivorIrelia", "SurvivorIrelia", true);
            {
                var orbwalkerMenu = Menu.AddSubMenu(new Menu("Orbwalker", "orbwalker"));
                Orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);
                var combomenu = new Menu(":: Combo Settings", "combosettings");
                {
                    combomenu.AddItem(new MenuItem("q.combo", "Use (Q)")).SetValue(true);
                    combomenu.AddItem(new MenuItem("w.combo", "Use (W)")).SetValue(true);
                    combomenu.AddItem(new MenuItem("e.combo", "Use (E)")).SetValue(true);
                    combomenu.AddItem(new MenuItem("r.combo", "Use (R)")).SetValue(true);

                    /*combomenu.AddItem(
                     *  new MenuItem("rinfo", ":: R Info").SetTooltip(
                     *          "It'll cast R's at enemy once you've activated the ult once.")
                     *      .SetFontStyle(FontStyle.Bold, SharpDX.Color.DeepPink));
                     * combomenu.AddItem(new MenuItem("combo.style", "(COMBO STYLE) -> ").SetValue(new StringList(new[] { "Normal", "Burst" })).SetTooltip("Soon TM!"))
                     * .ValueChanged += (s, ar) =>
                     * {
                     *   combomenu.Item("burst.enemy.killable.check").Show(ar.GetNewValue<StringList>().SelectedIndex == 0);
                     * };
                     * combomenu.AddItem(new MenuItem("burst.enemy.killable.check", "Only Enemy Killable")
                     *  .SetValue(true).SetFontStyle(System.Drawing.FontStyle.Bold))
                     *  .Show(combomenu.Item("combo.style").GetValue<StringList>().SelectedIndex == 0);*/
                    Menu.AddSubMenu(combomenu);
                }
                var laneclearmenu = new Menu(":: LaneClear Settings", "laneclearsettings");
                {
                    laneclearmenu.AddItem(new MenuItem("LCQ", "Use (Q)").SetValue(true));
                    laneclearmenu.AddItem(new MenuItem("LCW", "Use (W)").SetValue(true));
                    laneclearmenu.AddItem(new MenuItem("LCWSlider", "Minimum Minions in Range to (W)")
                                          .SetValue(new Slider(2, 0, 10)));
                    laneclearmenu.AddItem(new MenuItem("LCE", "Use (E)").SetValue(false));
                    laneclearmenu.AddItem(
                        new MenuItem("LaneClearManaManager", "LaneClear Mana Manager (%)").SetValue(new Slider(30, 0,
                                                                                                               100)));
                    Menu.AddSubMenu(laneclearmenu);
                }
                var jungleclearmenu = new Menu(":: Jungle Clear Settings", "jungleclearsettings");
                {
                    jungleclearmenu.AddItem(new MenuItem("JGCQ", "Use (Q)").SetValue(true));
                    jungleclearmenu.AddItem(new MenuItem("JGCW", "Use (W)").SetValue(true));
                    jungleclearmenu.AddItem(new MenuItem("JGCE", "Use (E)").SetValue(false));
                    jungleclearmenu.AddItem(
                        new MenuItem("JungleClearManaManager", "JungleClear Mana Manager (%)").SetValue(new Slider(30, 0,
                                                                                                                   100)));
                    Menu.AddSubMenu(jungleclearmenu);
                }
                var harassmenu = new Menu(":: Harass Settings", "harasssettings");
                {
                    harassmenu.AddItem(new MenuItem("HarassQ", "Use (Q)").SetValue(true));
                    harassmenu.AddItem(new MenuItem("HarassE", "Use (E)").SetValue(true));
                    harassmenu.AddItem(
                        new MenuItem("HarassManaManager", "Harass Mana Manager (%)").SetValue(new Slider(30, 0, 100)));
                    Menu.AddSubMenu(harassmenu);
                }
                var drawingmenu = new Menu(":: Drawings Menu", "drawingsmenu");
                {
                    drawingmenu.AddItem(new MenuItem("DrawAA", "Draw (AA) Range").SetValue(false));
                    drawingmenu.AddItem(new MenuItem("DrawQ", "Draw (Q) Range").SetValue(true));
                    drawingmenu.AddItem(new MenuItem("DrawR", "Draw (R) Range").SetValue(true));
                    drawingmenu.AddItem(new MenuItem("DrawStunnable", "Draw Stunnable?").SetValue(true));
                    drawingmenu.AddItem(
                        new MenuItem("QMinionDrawHelper", "Draw Q Circle on Minion if killable?").SetValue(true));
                    Menu.AddSubMenu(drawingmenu);
                }
                var miscmenu = new Menu(":: Misc Menu", "miscmenu");
                {
                    miscmenu.AddItem(
                        new MenuItem("HitChance", "Hit Chance").SetValue(
                            new StringList(new[] { "Medium", "High", "Very High" }, 1)));
                    miscmenu.AddItem(new MenuItem("KSCheck", "KS if Possible?").SetValue(true));
                    Menu.AddSubMenu(miscmenu);
                }

                #region Skin Changer

                var SkinChangerMenu =
                    Menu.AddSubMenu(new Menu(":: Skin Changer", "SkinChanger").SetFontStyle(FontStyle.Bold,
                                                                                            Color.Chartreuse));
                var SkinChanger =
                    SkinChangerMenu.AddItem(
                        new MenuItem("UseSkinChanger", ":: Use SkinChanger?").SetValue(true)
                        .SetFontStyle(FontStyle.Bold, Color.Crimson));
                var SkinID =
                    SkinChangerMenu.AddItem(
                        new MenuItem("SkinID", ":: Skin").SetValue(new Slider(6, 0, 6))
                        .SetFontStyle(FontStyle.Bold, Color.Crimson));
                SkinID.ValueChanged += (sender, eventArgs) =>
                {
                    if (!SkinChanger.GetValue <bool>())
                    {
                        return;
                    }

                    Player.SetSkin(Player.CharData.BaseSkinName, eventArgs.GetNewValue <Slider>().Value);
                };

                #endregion

                #region DrawHPDamage

                var drawdamage = drawingmenu.AddSubMenu(new Menu(":: Draw Damage", "drawdamage"));
                {
                    var dmgAfterShave =
                        drawingmenu.AddItem(
                            new MenuItem("SurvivorIrelia.DrawComboDamage", "Draw Damage on Enemy's HP Bar").SetValue(
                                true));
                    var drawFill =
                        drawingmenu.AddItem(new MenuItem("SurvivorIrelia.DrawColour", "Fill Color", true).SetValue(
                                                new Circle(true, System.Drawing.Color.Chartreuse)));
                    DrawDamage.DamageToUnit     = CalculateDamage;
                    DrawDamage.Enabled          = dmgAfterShave.GetValue <bool>();
                    DrawDamage.Fill             = drawFill.GetValue <Circle>().Active;
                    DrawDamage.FillColor        = drawFill.GetValue <Circle>().Color;
                    dmgAfterShave.ValueChanged +=
                        delegate(object sender, OnValueChangeEventArgs eventArgs)
                    {
                        DrawDamage.Enabled = eventArgs.GetNewValue <bool>();
                    };

                    drawFill.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs)
                    {
                        DrawDamage.Fill      = eventArgs.GetNewValue <Circle>().Active;
                        DrawDamage.FillColor = eventArgs.GetNewValue <Circle>().Color;
                    };
                }

                #endregion

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

            #region Spells

            Q = new Spell(SpellSlot.Q, 1000f);
            Q.SetSkillshot(0.7f, 55f, float.MaxValue, true, SkillshotType.SkillshotLine);
            W = new Spell(SpellSlot.W, 610f);
            W.SetTargetted(0.103f, 550f);
            E = new Spell(SpellSlot.E, 610f);
            E.SetTargetted(.5f, 550f);
            R = new Spell(SpellSlot.R);
            R.SetSkillshot(2.5f, 450f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            #endregion

            IgniteSlot = Player.GetSpellSlot("summonerdot");
            TearOfGod  = new Items.Item(3070, 0);
            Manamune   = new Items.Item(3004, 0);
            Archangel  = new Items.Item(3003, 0);

            #region Menu

            Menu = new Menu("SurvivorRyze", "SurvivorRyze", true).SetFontStyle(FontStyle.Bold, Color.AliceBlue);

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

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

            var ComboMenu = Menu.AddSubMenu(new Menu("Combo", "Combo"));
            ComboMenu.AddItem(
                new MenuItem("ComboMode", "Combo Mode:").SetValue(
                    new StringList(new[] { "Burst", "Survivor Mode (Shield)" }))
                .SetTooltip("Survivor Mode - Will try to stack Shield 99% of the time."));
            ComboMenu.AddItem(new MenuItem("CUseQ", "Cast Q").SetValue(true));
            ComboMenu.AddItem(new MenuItem("CUseW", "Cast W").SetValue(true));
            ComboMenu.AddItem(new MenuItem("CUseE", "Cast E").SetValue(true));
            ComboMenu.AddItem(new MenuItem("CBlockAA", "Block AA in Combo Mode").SetValue(true));
            ComboMenu.AddItem(
                new MenuItem("Combo2TimesMana", "Champion needs to have mana for atleast 2 times (Q/W/E)?").SetValue(
                    false)
                .SetTooltip(
                    "If it's set to 'false' it'll need atleast mana for Q/W/E [1x] Post in thread if needs a change"));
            ComboMenu.AddItem(new MenuItem("CUseR", "Ultimate (R) in Ultimate Menu"));
            ComboMenu.AddItem(new MenuItem("CUseIgnite", "Use Ignite (Smart)").SetValue(true));

            var HarassMenu = Menu.AddSubMenu(new Menu("Harass", "Harass"));
            HarassMenu.AddItem(new MenuItem("HarassQ", "Use Q").SetValue(true));
            HarassMenu.AddItem(new MenuItem("HarassW", "Use W").SetValue(false));
            HarassMenu.AddItem(new MenuItem("HarassE", "Use E").SetValue(false));
            HarassMenu.AddItem(new MenuItem("HarassManaManager", "Mana Manager (%)").SetValue(new Slider(30, 1, 100)));

            var LaneClearMenu = Menu.AddSubMenu(new Menu("Lane Clear", "LaneClear"));
            LaneClearMenu.AddItem(
                new MenuItem("EnableFarming", "Enable Farming with Spells?").SetValue(true)
                .SetTooltip("You either change the value here by clicking or by Scrolling Down using the mouse"))
            .Permashow(true, "Farming with Spells?");
            LaneClearMenu.AddItem(new MenuItem("UseQLC", "Use Q to LaneClear").SetValue(true));
            LaneClearMenu.AddItem(new MenuItem("UseELC", "Use E to LaneClear").SetValue(true));
            LaneClearMenu.AddItem(
                new MenuItem("LaneClearManaManager", "Mana Manager (%)").SetValue(new Slider(30, 1, 100)));

            var JungleClearMenu = Menu.AddSubMenu(new Menu("Jungle Clear", "JungleClear"));
            JungleClearMenu.AddItem(new MenuItem("UseQJC", "Use Q to JungleClear").SetValue(true));
            JungleClearMenu.AddItem(new MenuItem("UseWJC", "Use W to JungleClear").SetValue(true));
            JungleClearMenu.AddItem(new MenuItem("UseEJC", "Use E to JungleClear").SetValue(true));
            JungleClearMenu.AddItem(
                new MenuItem("JungleClearManaManager", "Mana Manager (%)").SetValue(new Slider(30, 1, 100)));

            var LastHitMenu = Menu.AddSubMenu(new Menu("Last Hit", "LastHit"));
            LastHitMenu.AddItem(new MenuItem("UseQLH", "Use Q to LastHit").SetValue(true));
            LastHitMenu.AddItem(new MenuItem("UseELH", "Use E to LastHit").SetValue(true));
            LastHitMenu.AddItem(new MenuItem("LaneHitManaManager", "Mana Manager (%)").SetValue(new Slider(30, 1, 100)));

            var ItemsMenu = Menu.AddSubMenu(new Menu("Items Menu", "ItemsMenu"));
            ItemsMenu.AddItem(new MenuItem("UsePotions", "Use Potions").SetValue(true));
            ItemsMenu.AddItem(
                new MenuItem("UseSmartPotion", "Use Smart Potion Logic").SetValue(true)
                .SetTooltip("If Enabled, it'll check if enemy's around so it doesn't waste potions."));
            ItemsMenu.AddItem(
                new MenuItem("UsePotionsAtHPPercent", "Use Potions at HP Percent 'X'").SetValue(new Slider(30, 0, 100)));
            ItemsMenu.AddItem(new MenuItem("UseSeraph", "Use [Seraph's Embrace]?").SetValue(true));
            ItemsMenu.AddItem(new MenuItem("Hextech", "Use [Hextech Gunblade]?").SetValue(true));
            ItemsMenu.AddItem(new MenuItem("Protobelt", "Use [Hextech Protobelt-01]?").SetValue(true));
            ItemsMenu.AddItem(new MenuItem("GLP800", "Use [Hextech GLP-800]?").SetValue(true));
            ItemsMenu.AddItem(
                new MenuItem("StackTear", "Stack Tear/Manamune/Archangel in Fountain?").SetValue(true)
                .SetTooltip("Stack it in Fountain?"));
            ItemsMenu.AddItem(
                new MenuItem("StackTearNF", "Stack Tear/Manamune/Archangel if You've Blue Buff?").SetValue(false));

            Menu.Item("UseSmartPotion").ValueChanged += (sender, eventArgs) =>
            {
                if (!Menu.Item("UsePotions").GetValue <bool>() && eventArgs.GetNewValue <bool>())
                {
                    Menu.Item("UsePotions").SetValue(true);
                }
            };

            var SkinMenu = Menu.AddSubMenu(new Menu("Skins Menu", "SkinMenu"));
            SkinMenu.AddItem(new MenuItem("SkinID", "Skin ID")).SetValue(new Slider(10, 0, 10));
            var UseSkin = SkinMenu.AddItem(new MenuItem("UseSkin", "Enabled")).SetValue(true);
            UseSkin.ValueChanged += (sender, eventArgs) =>
            {
                if (!eventArgs.GetNewValue <bool>())
                {
                    ObjectManager.Player.SetSkin(ObjectManager.Player.CharData.BaseSkinName,
                                                 ObjectManager.Player.BaseSkinId);
                }
            };

            var HitChanceMenu = Menu.AddSubMenu(new Menu("HitChance Menu", "HitChance"));
            HitChanceMenu.AddItem(
                new MenuItem("HitChance", "Hit Chance").SetValue(new StringList(new[] { "Medium", "High", "Very High" }, 1)));

            var UltimateMenu = Menu.AddSubMenu(new Menu("Ultimate Menu", "UltMenu"));
            //UltimateMenu.AddItem(new MenuItem("DontREnemyCount", "Don't R If Enemy In 'X' Range").SetValue(new Slider(1000, 0, 2000)));
            //UltimateMenu.AddItem(new MenuItem("DontRIfAlly", "Don't R if Ally is Near Target 'X' Range").SetValue(new Slider(700, 0, 2000)));
            //UltimateMenu.AddItem(new MenuItem("DontRUnderTurret", "Don't use R if enemy is Under Turret").SetValue(true));
            UltimateMenu.AddItem(
                new MenuItem("UseR", "Use R Automatically (Beta)").SetValue(new KeyBind("G".ToCharArray()[0],
                                                                                        KeyBindType.Press))
                .SetTooltip("It'll Use the Ultimate if there's Ally turret nearby to teleport you to it"));
            //UltimateMenu.AddItem(new MenuItem("EnemiesAroundTarget", "Dont R If 'X' Enemies are around the Target").SetValue(new Slider(3, 0, 5)));

            var MiscMenu = Menu.AddSubMenu(new Menu("Misc Menu", "MiscMenu"));
            MiscMenu.AddItem(new MenuItem("KSQ", "Use Q to KS").SetValue(true));
            MiscMenu.AddItem(new MenuItem("KSW", "Use W to KS").SetValue(true));
            MiscMenu.AddItem(new MenuItem("KSE", "Use E to KS").SetValue(true));
            MiscMenu.AddItem(new MenuItem("InterruptWithW", "Use W to Interrupt Channeling Spells").SetValue(true));
            MiscMenu.AddItem(new MenuItem("WGapCloser", "Use W on Enemy GapCloser (Ex. Irelia's Q)").SetValue(true));
            MiscMenu.AddItem(new MenuItem("ChaseWithR", "Use R to Chase (Being Added)"));
            MiscMenu.AddItem(new MenuItem("EscapeWithR", "Use R to Escape (Ultimate Menu)"));

            var AutoLevelerMenu = Menu.AddSubMenu(new Menu("AutoLeveler Menu", "AutoLevelerMenu"));
            AutoLevelerMenu.AddItem(new MenuItem("AutoLevelUp", "AutoLevel Up Spells?").SetValue(true));
            AutoLevelerMenu.AddItem(
                new MenuItem("AutoLevelUp1", "First: ").SetValue(new StringList(new[] { "Q", "W", "E", "R" }, 3)));
            AutoLevelerMenu.AddItem(
                new MenuItem("AutoLevelUp2", "Second: ").SetValue(new StringList(new[] { "Q", "W", "E", "R" }, 0)));
            AutoLevelerMenu.AddItem(
                new MenuItem("AutoLevelUp3", "Third: ").SetValue(new StringList(new[] { "Q", "W", "E", "R" }, 2)));
            AutoLevelerMenu.AddItem(
                new MenuItem("AutoLevelUp4", "Fourth: ").SetValue(new StringList(new[] { "Q", "W", "E", "R" }, 1)));
            AutoLevelerMenu.AddItem(
                new MenuItem("AutoLvlStartFrom", "AutoLeveler Start from Level: ").SetValue(new Slider(2, 6, 1)));

            var DrawingMenu = Menu.AddSubMenu(new Menu("Drawing", "Drawing"));
            DrawingMenu.AddItem(new MenuItem("DrawQ", "Draw Q Range").SetValue(true));
            DrawingMenu.AddItem(new MenuItem("DrawWE", "Draw W/E Range").SetValue(true));
            DrawingMenu.AddItem(new MenuItem("DrawR", "Draw R Range").SetValue(false));
            DrawingMenu.AddItem(new MenuItem("DrawRMinimap", "Draw R Range | On Minimap").SetValue(true));

            Menu.AddToMainMenu();

            #endregion

            #region DrawHPDamage

            var dmgAfterShave = new MenuItem("SurvivorRyze.DrawComboDamage", "Draw Combo Damage").SetValue(true);
            var drawFill      =
                new MenuItem("SurvivorRyze.DrawColour", "Fill Color", true).SetValue(
                    new Circle(true, System.Drawing.Color.SeaGreen));
            DrawingMenu.AddItem(drawFill);
            DrawingMenu.AddItem(dmgAfterShave);
            DrawDamage.DamageToUnit     = CalculateDamage;
            DrawDamage.Enabled          = dmgAfterShave.GetValue <bool>();
            DrawDamage.Fill             = drawFill.GetValue <Circle>().Active;
            DrawDamage.FillColor        = drawFill.GetValue <Circle>().Color;
            dmgAfterShave.ValueChanged +=
                delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                DrawDamage.Enabled = eventArgs.GetNewValue <bool>();
            };

            drawFill.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                DrawDamage.Fill      = eventArgs.GetNewValue <Circle>().Active;
                DrawDamage.FillColor = eventArgs.GetNewValue <Circle>().Color;
            };

            #endregion

            #region Subscriptions

            Drawing.OnDraw        += Drawing_OnDraw;
            Drawing.OnEndScene    += OnEndScene;
            Game.OnUpdate         += Game_OnUpdate;
            Obj_AI_Base.OnLevelUp += Obj_AI_Base_OnLevelUp;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            AntiGapcloser.OnEnemyGapcloser     += AntiGapcloser_OnEnemyGapcloser;
            Game.OnWndProc += OnWndProc;

            #endregion

            Game.PrintChat("<font color='#800040'>[SurvivorSeries] Ryze</font> <font color='#ff6600'>Loaded.</font>");
        }
Esempio n. 18
0
        /// <summary>
        ///     Creates the menu
        /// </summary>
        /// <value>
        ///     Creates the menu
        /// </value>
        private static void GenerateMenu()
        {
            try
            {
                Menu = new Menu("ElZilean", "ElZilean", true);

                var targetselectorMenu = new Menu("Target Selector", "Target Selector");
                {
                    TargetSelector.AddToMenu(targetselectorMenu);
                }

                Menu.AddSubMenu(targetselectorMenu);

                var orbwalkMenu = new Menu("Orbwalker", "Orbwalker");
                {
                    Orbwalker = new Orbwalking.Orbwalker(orbwalkMenu);
                }

                Menu.AddSubMenu(orbwalkMenu);


                var predictionMenu = new Menu("Prediction", "Prediction");
                {
                    predictionMenu.AddItem(
                        new MenuItem("Prediction.Hitchance", "Hitchance: ").SetValue(
                            new StringList(new[] { "Low", "Medium", "High", "Very High" }, 3)))
                    .SetTooltip("Setting for the common prediction");
                    predictionMenu.AddItem(new MenuItem("Prediction.type", "Prediction: ")).SetValue(new StringList(new[] { "Common", "Rewinding", "Sebby" }, 1));
                }

                Menu.AddSubMenu(predictionMenu);

                var comboMenu = new Menu("Combo", "Combo");
                {
                    comboMenu.SubMenu("Q Manager").AddItem(new MenuItem("ElZilean.Combo.Q", "Use Q").SetValue(true));
                    comboMenu.SubMenu("Q Manager").AddItem(new MenuItem("ElZilean.Combo.Focus.Bomb", "Focus target with Q").SetValue(true));
                    comboMenu.SubMenu("Q Manager").AddItem(new MenuItem("ElZilean.Combo.W2", "Always reset Q").SetValue(false)).SetTooltip("Always reset Q even when the target is not marked");

                    comboMenu.SubMenu("Q Manager")
                    .AddItem(new MenuItem("Q.Automatically", "Automatically cast Q if 2 or more").SetValue(new StringList(new[] { "Never", "Always", "Combo" }, 0))).SetTooltip("This option is only available for the 'Rewinding' prediction");


                    comboMenu.AddItem(new MenuItem("ElZilean.Combo.W", "Use W").SetValue(true));
                    comboMenu.AddItem(new MenuItem("ElZilean.Combo.E", "Use E").SetValue(true));
                    comboMenu.AddItem(new MenuItem("ElZilean.Ignite", "Use Ignite").SetValue(true));
                    comboMenu.AddItem(
                        new MenuItem("ElZilean.DoubleBombMouse", "Double bomb to mouse").SetValue(
                            new KeyBind("Y".ToCharArray()[0], KeyBindType.Press)));
                }

                Menu.AddSubMenu(comboMenu);

                var harassMenu = new Menu("Harass", "Harass");
                {
                    harassMenu.AddItem(new MenuItem("ElZilean.Harass.Q", "Use Q").SetValue(true));
                    harassMenu.AddItem(new MenuItem("ElZilean.Harass.W", "Use W").SetValue(true));
                }
                Menu.AddSubMenu(harassMenu);

                var ultimateMenu = new Menu("Ultimate", "Ultimate");
                {
                    ultimateMenu.AddItem(new MenuItem("min-health", "Health percentage").SetValue(new Slider(20, 1)));
                    ultimateMenu.AddItem(
                        new MenuItem("min-damage", "Heal on % incoming damage").SetValue(new Slider(20, 1)));
                    ultimateMenu.AddItem(new MenuItem("ElZilean.Ultimate.R", "Use R").SetValue(true));
                    ultimateMenu.AddItem(new MenuItem("blank-line", ""));
                    foreach (var x in HeroManager.Allies)
                    {
                        ultimateMenu.AddItem(new MenuItem($"R{x.ChampionName}", "Use R on " + x.ChampionName))
                        .SetValue(true);
                    }
                }
                Menu.AddSubMenu(ultimateMenu);

                var laneclearMenu = new Menu("Laneclear", "Laneclear");
                {
                    laneclearMenu.AddItem(new MenuItem("ElZilean.laneclear.Q", "Use Q").SetValue(true));
                    laneclearMenu.AddItem(new MenuItem("ElZilean.laneclear.QMouse", "Cast Q to mouse").SetValue(false))
                    .SetTooltip("Cast Q towards your mouse position");
                    laneclearMenu.AddItem(new MenuItem("ElZilean.laneclear.W", "Use W").SetValue(true));
                    laneclearMenu.AddItem(
                        new MenuItem("ElZilean.laneclear.Mana", "Minimum mana").SetValue(new Slider(20)));
                }

                Menu.AddSubMenu(laneclearMenu);

                var initiatorMenu = new Menu("Initiators", "Initiators");
                {
                    // todo filter out champs that have no speed stuff
                    foreach (var ally in HeroManager.Allies)
                    {
                        initiatorMenu.AddItem(
                            new MenuItem($"Initiator{ally.CharData.BaseSkinName}", "Initiator E: " + ally.ChampionName))
                        .SetValue(true);
                    }
                }

                Menu.AddSubMenu(initiatorMenu);

                var fleeMenu = new Menu("Flee", "Flee");
                {
                    fleeMenu.AddItem(
                        new MenuItem("ElZilean.Flee.Key", "Flee key").SetValue(
                            new KeyBind("A".ToCharArray()[0], KeyBindType.Press)));
                    fleeMenu.AddItem(new MenuItem("ElZilean.Flee.Mana", "Minimum mana").SetValue(new Slider(20)));
                }

                Menu.AddSubMenu(fleeMenu);

                var drawingsMenu = new Menu("Drawings", "Drawings");
                {
                    drawingsMenu.AddItem(new MenuItem("ElZilean.Draw.Off", "Disable drawings").SetValue(false));
                    drawingsMenu.AddItem(new MenuItem("ElZilean.Draw.Q", "Draw Q").SetValue(new Circle()));
                }

                Menu.AddSubMenu(drawingsMenu);

                var miscMenu = new Menu("Misc", "Misc");
                {
                    miscMenu.AddItem(new MenuItem("ElZilean.Combo.AA", "Don't AA before Q").SetValue(true));
                    miscMenu.AddItem(new MenuItem("ElZilean.Q.Stun", "Auto Q on stunned targets").SetValue(false));
                    miscMenu.AddItem(new MenuItem("ElZilean.Q.Interrupt", "Interrupt spells with Q").SetValue(true));
                    miscMenu.AddItem(new MenuItem("ElZilean.E.Slow", "Speed up slowed allies").SetValue(true));
                }

                Menu.AddSubMenu(miscMenu);

                Menu.AddToMainMenu();
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
Esempio n. 19
0
        private static void LoadMenu()
        {
            Config = new Menu("Thresh As the Chain Warden", "锤石As", true);
            Config.AddToMainMenu();
            var OrbMenu = new Menu("Orbwalker", "走砍设置");

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

            var SpellConfig = Config.AddSubMenu(new Menu("Spell Settings", "技能设置"));

            SpellConfig.AddItem(new MenuItem("位移Q", "Auto Q Dash Enemy").SetValue(true));
            SpellConfig.AddItem(new MenuItem("不用Q2", "Don't Auto Q2").SetValue(false));
            SpellConfig.AddItem(new MenuItem("人数比", "Don't Q2 if Enemies > allies").SetValue(new Slider(1, 0, 5)));
            var QListConfig = SpellConfig.AddSubMenu(new Menu("Q List", "Q名单"));

            QListConfig.AddItem(new MenuItem("提示", "if you find some gays seems use L# too,Dont Q him"));
            foreach (var enemy in HeroManager.Enemies)
            {
                QListConfig.AddItem(new MenuItem("QList" + enemy.NetworkId, enemy.ChampionName + "[ " + enemy.Name.ToGBK() + " ]").SetValue(true)).ValueChanged += QListValue_Changed;;
            }

            var FleeConfig = Config.AddSubMenu(new Menu("Flee Settings", "逃跑设置"));

            FleeConfig.AddItem(new MenuItem("逃跑", "Flee").SetValue(new KeyBind('S', KeyBindType.Press)));
            FleeConfig.AddItem(new MenuItem("E推人", "Auto E push").SetValue(true));
            //FleeConfig.AddItem(new MenuItem("Q野怪", "Auto Q Jungle [TEST]").SetValue(true));

            var PredictConfig = Config.AddSubMenu(new Menu("Predict Settings", "预判设置"));

            PredictConfig.AddItem(new MenuItem("预判模式", "Prediction Mode").SetValue(new StringList(new[] { "Common", "OKTW", "S Prediction" }, 1)));
            PredictConfig.AddItem(new MenuItem("命中率", "HitChance").SetValue(new StringList(new[] { "Very High", "High", "Medium" })));
            SPrediction.Prediction.Initialize(PredictConfig);

            var BoxConfig = Config.AddSubMenu(new Menu("Box Settings", "大招设置"));

            BoxConfig.AddItem(new MenuItem("大招人数", "Box Count").SetValue(new Slider(2, 1, 6)));
            BoxConfig.AddItem(new MenuItem("自动大招模式", "Box Mode").SetValue(new StringList(new[] { "Prediction", "Now" })));

            var SupportConfig = Config.AddSubMenu(new Menu("Support Mode", "辅助模式"));

            SupportConfig.AddItem(new MenuItem("辅助模式", "Support Mode").SetValue(true));
            SupportConfig.AddItem(new MenuItem("辅助模式距离", "Support Mode Range").SetValue(new Slider((int)Player.AttackRange + 200, (int)Player.AttackRange, 2000)));
            SupportConfig.AddItem(new MenuItem("辅助目标", "Attack ADC's Target [TEST]").SetValue(false));

            var DrawConfig = Config.AddSubMenu(new Menu("Drawing Settings", "显示设置"));

            DrawConfig.AddItem(new MenuItem("技能可用才显示", "Draw when skill is ready").SetValue(true));
            DrawConfig.AddItem(new MenuItem("显示Q", "Draw Q Range").SetValue(new Circle(false, Color.YellowGreen)));
            DrawConfig.AddItem(new MenuItem("显示W", "Draw W Range").SetValue(new Circle(false, Color.Yellow)));
            DrawConfig.AddItem(new MenuItem("显示E", "Draw E Range").SetValue(new Circle(false, Color.GreenYellow)));
            DrawConfig.AddItem(new MenuItem("显示R", "Draw R Range").SetValue(new Circle(false, Color.LightGreen)));
            DrawConfig.AddItem(new MenuItem("标识目标", "Draw Target").SetValue(new Circle(false, Color.Red)));

            var SmartKeyConfig = Config.AddSubMenu(new Menu("Smart Cast", "智能施法"));

            SmartKeyConfig.AddItem(new MenuItem("智能施法标签", "Enable Follow Options,Prss Q/W/E Auto Cast Spell"));
            SmartKeyConfig.AddItem(new MenuItem("智能Q", "Smart Cast Q").SetValue(true));
            SmartKeyConfig.AddItem(new MenuItem("智能W", "Smart Cast W").SetValue(true));
            SmartKeyConfig.AddItem(new MenuItem("智能E", "Smart Cast E").SetValue(true));

            var TowerConfig = Config.AddSubMenu(new Menu("Turret Settings", "防御塔设置"));

            TowerConfig.AddItem(new MenuItem("控制塔攻击的敌人", "Q/E ally Turret’s target").SetValue(true));
            TowerConfig.AddItem(new MenuItem("拉敌人进塔", "Q/E target into ally turret").SetValue(true));
            TowerConfig.AddItem(new MenuItem("Q不进敌塔", "Don't Q2 in enemy turret").SetValue(true));

            var MultiLanguageConfig = Config.AddSubMenu(new Menu("MultiLanguage Settings", "语言选择"));

            MultiLanguageConfig.AddItem(new MenuItem("选择语言", "Selecte Language").SetValue(new StringList(new[] { "English", "中文" }))).ValueChanged += MultiLanguage_ValueChanged;

            Config.AddItem(new MenuItem("调试", "调试").SetValue(false));

            ChangeLanguage(MultiLanguageConfig.Item("选择语言").GetValue <StringList>().SelectedIndex);
        }