예제 #1
0
        public static void SonaOnLoad()
        {
            Q = new Spell(SpellSlot.Q, 850f);
            W = new Spell(SpellSlot.W, 1000f);
            E = new Spell(SpellSlot.E, 350f);
            R = new Spell(SpellSlot.R, 1000f);

            R.SetSkillshot(0.5f, 125, 3000f, false, SkillshotType.SkillshotLine);

            Config = new Menu("vSupport Series: " + ObjectManager.Player.ChampionName, "vSupport Series", true);
            {
                Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker Settings"));

                var comboMenu = new Menu("Combo Settings", "Combo Settings");
                {
                    comboMenu.AddItem(new MenuItem("sona.q.combo", "Use Q").SetValue(true));
                    comboMenu.AddItem(new MenuItem("sona.r.combo", "Use R").SetValue(true));

                    Config.AddSubMenu(comboMenu);
                }

                var healManager = new Menu("(W) Heal Settings", "(W) Heal Settings");
                {
                    healManager.AddItem(new MenuItem("sona.heal.disable", "Disable healing?").SetValue(false));
                    healManager.AddItem(new MenuItem("sona.heal.limit", "Min. sona HP Percent for Heal").SetValue(new Slider(40, 1, 99)));
                    healManager.AddItem(new MenuItem("blabla", "(W) heal Settings"));

                    var wsettings = new Menu("(W) Priority", "(W) Priority").SetFontStyle(FontStyle.Bold, SharpDX.Color.Gold);
                    {
                        foreach (var ally in ObjectManager.Get <AIHeroClient>().Where(o => o.IsAlly && o.IsValid && !o.IsMe))
                        {
                            if (LowPriority.Contains(ally.ChampionName))
                            {
                                wsettings.AddItem(new MenuItem("sona.heal" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                                wsettings.AddItem(new MenuItem("sona.heal.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(15, 1, 99)));
                            }
                            if (MediumPriority.Contains(ally.ChampionName))
                            {
                                wsettings.AddItem(new MenuItem("sona.heal" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                                wsettings.AddItem(new MenuItem("sona.heal.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(20, 1, 99)));
                            }
                            if (HighChamps.Contains(ally.ChampionName))
                            {
                                wsettings.AddItem(new MenuItem("sona.heal" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                                wsettings.AddItem(new MenuItem("sona.heal.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(30, 1, 99)));
                            }
                        }
                        healManager.AddSubMenu(wsettings);
                    }
                    Config.AddSubMenu(healManager);
                }

                var rSettings = new Menu("(R) Ult Settings", "(R) Ult Settings");
                {
                    rSettings.AddItem(new MenuItem("sona.r.killsteal", "Killsteal using R").SetValue(false));

                    Config.AddSubMenu(rSettings);
                }

                var harass = new Menu("Harass Settings", "Harass Settings");
                {
                    harass.AddItem(new MenuItem("sona.q.harass", "Use Q").SetValue(true));
                    harass.AddItem(new MenuItem("sona.harass.mana", "Min. Mana Percent").SetValue(new Slider(50, 1, 99)));

                    Config.AddSubMenu(harass);
                }

                var misc = new Menu("Miscellaneous", "Miscellaneous");
                {
                    misc.AddItem(new MenuItem("sona.anti", "Gapcloser (Q)").SetValue(true));
                    misc.AddItem(new MenuItem("sona.inter", "Interrupt (R)").SetValue(true));

                    Config.AddSubMenu(misc);
                }

                var drawing = new Menu("Draw Settings", "Draw Settings");
                {
                    drawing.AddItem(new MenuItem("sona.q.draw", "Q Range").SetValue(new Circle(true, Color.Chartreuse)));
                    drawing.AddItem(new MenuItem("sona.w.draw", "W Range").SetValue(new Circle(true, Color.Yellow)));
                    drawing.AddItem(new MenuItem("sona.e.draw", "E Range").SetValue(new Circle(true, Color.White)));
                    drawing.AddItem(new MenuItem("sona.r.draw", "R Range").SetValue(new Circle(true, Color.SandyBrown)));

                    Config.AddSubMenu(drawing);
                }

                Config.AddItem(new MenuItem("sona.hitchance", "Skillshot Hit Chance").SetValue(new StringList(HitchanceNameArray, 2)));
            }

            SPrediction.Prediction.Initialize(Config, ":: Prediction Settings");
            Config.AddToMainMenu();
            Game.OnUpdate  += SonaOnUpdate;
            Drawing.OnDraw += SonaOnDraw;
            AntiGapcloser.OnEnemyGapcloser     += SonaOnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += SonaOnInterruptableTarget;
        }
예제 #2
0
파일: Lux.cs 프로젝트: Hikii/vSeries
        public static void LuxOnLoad()
        {
            Q = new Spell(SpellSlot.Q, 1175f);
            W = new Spell(SpellSlot.W, 1075f);
            E = new Spell(SpellSlot.E, 1100f);
            R = new Spell(SpellSlot.R, 3340f);

            Q.SetSkillshot(0.25f, 70f, 1200f, false, SkillshotType.SkillshotLine);
            W.SetSkillshot(0.25f, 70f, 1400f, false, SkillshotType.SkillshotLine);
            E.SetSkillshot(0.25f, 275f, 1300f, false, SkillshotType.SkillshotCircle);
            R.SetSkillshot(1f, 190f, float.MaxValue, false, SkillshotType.SkillshotLine);

            Config = new Menu("vSupport Series: " + ObjectManager.Player.ChampionName, "vSupport Series", true);
            {
                Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker Settings"));

                var comboMenu = new Menu("Combo Settings", "Combo Settings");
                {
                    comboMenu.AddItem(new MenuItem("lux.q.combo", "Use Q").SetValue(true));
                    comboMenu.AddItem(new MenuItem("lux.e.combo", "Use E").SetValue(true));
                    comboMenu.AddItem(new MenuItem("lux.r.combo", "Use R").SetValue(true));

                    Config.AddSubMenu(comboMenu);
                }

                var shieldManager = new Menu("(W) Shield Settings", "(W) Shield Settings");
                {
                    shieldManager.AddItem(new MenuItem("lux.shield.disable", "Disable shielding?").SetValue(false));
                    shieldManager.AddItem(new MenuItem("lux.shield.limit", "Min. Lux HP Percent for Shield").SetValue(new Slider(20, 1, 99)));

                    var wsettings = new Menu("(W) Priority", "(W) Priority").SetFontStyle(FontStyle.Bold, SharpDX.Color.Gold);
                    {
                        foreach (var ally in ObjectManager.Get <Obj_AI_Hero>().Where(o => o.IsAlly && o.IsValid && !o.IsMe))
                        {
                            if (LowPriority.Contains(ally.ChampionName))
                            {
                                wsettings.AddItem(new MenuItem("lux.shield" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                                wsettings.AddItem(new MenuItem("lux.shield.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(15, 1, 99)));
                            }
                            if (MediumPriority.Contains(ally.ChampionName))
                            {
                                wsettings.AddItem(new MenuItem("lux.shield" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                                wsettings.AddItem(new MenuItem("lux.shield.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(20, 1, 99)));
                            }
                            if (HighChamps.Contains(ally.ChampionName))
                            {
                                wsettings.AddItem(new MenuItem("lux.shield" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                                wsettings.AddItem(new MenuItem("lux.shield.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(30, 1, 99)));
                            }
                        }
                        shieldManager.AddSubMenu(wsettings);
                    }
                    Config.AddSubMenu(shieldManager);
                }

                var rSettings = new Menu("(R) Ult Settings", "(R) Ult Settings");
                {
                    rSettings.AddItem(new MenuItem("lux.r.killsteal", "Killsteal using R").SetValue(false));

                    Config.AddSubMenu(rSettings);
                }

                var harass = new Menu("Harass Settings", "Harass Settings");
                {
                    harass.AddItem(new MenuItem("lux.q.harass", "Use Q").SetValue(true));
                    harass.AddItem(new MenuItem("lux.e.harass", "Use E").SetValue(true));
                    harass.AddItem(new MenuItem("lux.harass.mana", "Min. Mana Percent").SetValue(new Slider(50, 1, 99)));

                    Config.AddSubMenu(harass);
                }

                var misc = new Menu("Miscellaneous", "Miscellaneous");
                {
                    misc.AddItem(new MenuItem("lux.anti", "Gapcloser (Q)").SetValue(true));

                    Config.AddSubMenu(misc);
                }

                var drawing = new Menu("Draw Settings", "Draw Settings");
                {
                    drawing.AddItem(new MenuItem("lux.q.draw", "Q Range").SetValue(new Circle(true, Color.Chartreuse)));
                    drawing.AddItem(new MenuItem("lux.w.draw", "W Range").SetValue(new Circle(true, Color.Yellow)));
                    drawing.AddItem(new MenuItem("lux.e.draw", "E Range").SetValue(new Circle(true, Color.White)));
                    drawing.AddItem(new MenuItem("lux.r.draw", "R Range").SetValue(new Circle(true, Color.SandyBrown)));

                    Config.AddSubMenu(drawing);
                }

                Config.AddItem(new MenuItem("lux.hitchance", "Skillshot Hit Chance").SetValue(new StringList(HitchanceNameArray, 2)));

                Config.AddItem(new MenuItem("prediction", ":: Choose Prediction").SetValue(new StringList(new[] { "Common", "Sebby", "sPrediction" }, 1)))
                .ValueChanged += (s, ar) =>
                {
                    Config.Item("pred.info").Show(ar.GetNewValue <StringList>().SelectedIndex == 2);
                };
                Config.AddItem(new MenuItem("pred.info", "                 PRESS F5 FOR LOAD SPREDICTION").SetFontStyle(System.Drawing.FontStyle.Bold)).Show(Config.Item("prediction").GetValue <StringList>().SelectedIndex == 0);
                if (Config.Item("prediction").GetValue <StringList>().SelectedIndex == 2)
                {
                    SPrediction.Prediction.Initialize(Config, ":: sPrediction Settings");
                }
            }

            SPrediction.Prediction.Initialize(Config, ":: Prediction Settings");
            Config.AddToMainMenu();
            Game.OnUpdate                  += LuxOnUpdate;
            GameObject.OnCreate            += OnCreate;
            GameObject.OnDelete            += OnDelete;
            Drawing.OnDraw                 += LuxOnDraw;
            AntiGapcloser.OnEnemyGapcloser += LuxOnEnemyGapcloser;
        }
예제 #3
0
        private static void ThreshOnLoad()
        {
            Q = new Spell(SpellSlot.Q, 1100f);
            W = new Spell(SpellSlot.W, 950f);
            E = new Spell(SpellSlot.E, 400f);
            R = new Spell(SpellSlot.R, 450f);

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

            Config = new Menu("vSupport Series: " + ObjectManager.Player.ChampionName, "vSupport Series", true);
            {
                Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker Settings"));

                var comboMenu = new Menu(":: Combo Settings", ":: Combo Settings");
                {
                    comboMenu.AddItem(new MenuItem("thresh.q.combo", "Use Q").SetValue(true));
                    comboMenu.AddItem(new MenuItem("thresh.w.combo", "Use W").SetValue(true));
                    comboMenu.AddItem(new MenuItem("thresh.e.combo", "Use E").SetValue(true));
                    comboMenu.AddItem(new MenuItem("thresh.r.combo", "Use R").SetValue(true));

                    var rsettings = new Menu(":: R Settings", ":: R Settings");
                    {
                        rsettings.AddItem(new MenuItem("thresh.r.count", "Min. Enemy Count").SetValue(new Slider(2, 1, 5)));

                        comboMenu.AddSubMenu(rsettings);
                    }

                    Config.AddSubMenu(comboMenu);
                }

                var whitelist = new Menu(":: (Q) Whitelist", ":: (Q) Whitelist");
                {
                    foreach (var enemy in HeroManager.Enemies)
                    {
                        whitelist.AddItem(new MenuItem("thresh.q." + enemy.ChampionName, "(Q): " + enemy.ChampionName).SetValue(true));
                    }

                    Config.AddSubMenu(whitelist);
                }

                var harassMenu = new Menu(":: Harass Settings", ":: Harass Settings");
                {
                    harassMenu.AddItem(new MenuItem("thresh.q.harass", "Use Q").SetValue(true));
                    harassMenu.AddItem(new MenuItem("thresh.e.harass", "Use E").SetValue(true));

                    Config.AddSubMenu(harassMenu);
                }

                var lanternMenu = new Menu(":: Auto Lantern Settings", ":: Auto Lantern Settings");
                {
                    lanternMenu.AddItem(new MenuItem("thresh.auto.w", "Auto W Logic").SetValue(true));
                    lanternMenu.AddItem(new MenuItem("blabla", "(W) Lantern Settings"));

                    foreach (var ally in ObjectManager.Get <Obj_AI_Hero>().Where(o => o.IsAlly && o.IsValid && !o.IsMe))
                    {
                        if (LowPriority.Contains(ally.ChampionName))
                        {
                            lanternMenu.AddItem(new MenuItem("thresh.lantern" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                            lanternMenu.AddItem(new MenuItem("thresh.lantern.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(15, 1, 99)));
                        }
                        if (MediumPriority.Contains(ally.ChampionName))
                        {
                            lanternMenu.AddItem(new MenuItem("thresh.lantern" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                            lanternMenu.AddItem(new MenuItem("thresh.lantern.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(20, 1, 99)));
                        }
                        if (HighChamps.Contains(ally.ChampionName))
                        {
                            lanternMenu.AddItem(new MenuItem("thresh.lantern" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                            lanternMenu.AddItem(new MenuItem("thresh.lantern.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(30, 1, 99)));
                        }
                    }
                    Config.AddSubMenu(lanternMenu);
                }

                var drawing = new Menu(":: Draw Settings", ":: Draw Settings");
                {
                    drawing.AddItem(new MenuItem("thresh.q.draw", "Q Range").SetValue(new Circle(true, Color.Chartreuse)));
                    drawing.AddItem(new MenuItem("thresh.w.draw", "W Range").SetValue(new Circle(true, Color.Yellow)));
                    drawing.AddItem(new MenuItem("thresh.e.draw", "E Range").SetValue(new Circle(true, Color.White)));
                    drawing.AddItem(new MenuItem("thresh.r.draw", "R Range").SetValue(new Circle(true, Color.SandyBrown)));
                    Config.AddSubMenu(drawing);
                }

                SPrediction.Prediction.Initialize(Config, ":: Prediction Settings");

                Config.AddItem(new MenuItem("thresh.interrupter", "Interrupter").SetValue(true)).SetTooltip("Only cast if enemy spell priorty > danger");
                Config.AddItem(new MenuItem("thresh.q.hitchance", "Skillshot Hit Chance").SetValue(new StringList(HitchanceNameArray, 2)));
                Config.AddItem(new MenuItem("prediction", ":: Choose Prediction").SetValue(new StringList(new[] { "Common", "Sebby", "sPrediction" }, 1)))
                .ValueChanged += (s, ar) =>
                {
                    Config.Item("pred.info").Show(ar.GetNewValue <StringList>().SelectedIndex == 2);
                };
                Config.AddItem(new MenuItem("pred.info", "                 PRESS F5 FOR LOAD SPREDICTION").SetFontStyle(System.Drawing.FontStyle.Bold)).Show(Config.Item("prediction").GetValue <StringList>().SelectedIndex == 0);
                if (Config.Item("prediction").GetValue <StringList>().SelectedIndex == 2)
                {
                    SPrediction.Prediction.Initialize(Config, ":: sPrediction Settings");
                }
            }

            Config.AddToMainMenu();
            Game.OnUpdate += ThreshOnUpdate;
            Interrupter2.OnInterruptableTarget += ThreshInterrupter;
            Drawing.OnDraw += ThreshOnDraw;
        }
예제 #4
0
파일: Soraka.cs 프로젝트: Hikii/vSeries
        public static void SorakaOnLoad()
        {
            Q = new Spell(SpellSlot.Q, 800f);
            W = new Spell(SpellSlot.W, 550f);
            E = new Spell(SpellSlot.E, 925f);
            R = new Spell(SpellSlot.R);

            Q.SetSkillshot(0.5f, 235f, 1600f, false, SkillshotType.SkillshotCircle);

            Config = new Menu("vSupport Series: " + ObjectManager.Player.ChampionName, "vSupport Series", true);
            {
                Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker Settings"));

                var comboMenu = new Menu("Combo Settings", "Combo Settings");
                {
                    comboMenu.AddItem(new MenuItem("soraka.q.combo", "Use Q").SetValue(true));
                    comboMenu.AddItem(new MenuItem("soraka.e.combo", "Use E").SetValue(true));
                    Config.AddSubMenu(comboMenu);
                }
                var healManager = new Menu("(W) Heal Settings", "(W) Heal Settings");
                {
                    healManager.AddItem(new MenuItem("soraka.heal.disable", "Disable Heal?").SetValue(false));
                    healManager.AddItem(new MenuItem("soraka.heal.limit", "Min. Soraka HP Percent for Heal").SetValue(new Slider(20, 1, 99)));
                    healManager.AddItem(new MenuItem("ayrac1", "                  (W) Heal Settings"));
                    foreach (var ally in ObjectManager.Get <Obj_AI_Hero>().Where(o => o.IsAlly && o.IsValid && !o.IsMe))
                    {
                        if (LowPriority.Contains(ally.ChampionName))
                        {
                            healManager.AddItem(new MenuItem("soraka.heal." + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                            healManager.AddItem(new MenuItem("soraka.heal.percent." + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(10, 1, 99)));
                        }
                        if (MediumPriority.Contains(ally.ChampionName))
                        {
                            healManager.AddItem(new MenuItem("soraka.heal." + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                            healManager.AddItem(new MenuItem("soraka.heal.percent." + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(20, 1, 99)));
                        }
                        if (HighChamps.Contains(ally.ChampionName))
                        {
                            healManager.AddItem(new MenuItem("soraka.heal." + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                            healManager.AddItem(new MenuItem("soraka.heal.percent." + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(30, 1, 99)));
                        }
                    }
                    Config.AddSubMenu(healManager);
                }
                var rsettings = new Menu("(R) Heal Settings", "(R) Heal Settings");
                {
                    rsettings.AddItem(new MenuItem("soraka.r.disable", "Disable Heal?").SetValue(false));
                    rsettings.AddItem(new MenuItem("ayracx", "                  (R) Heal Settings"));
                    foreach (var ally in ObjectManager.Get <Obj_AI_Hero>().Where(o => o.IsAlly && o.IsValid && !o.IsMe))
                    {
                        if (LowPriority.Contains(ally.ChampionName))
                        {
                            rsettings.AddItem(new MenuItem("soraka.r." + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                            rsettings.AddItem(new MenuItem("soraka.r.percent." + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(10, 1, 99)));
                        }
                        if (MediumPriority.Contains(ally.ChampionName))
                        {
                            rsettings.AddItem(new MenuItem("soraka.r." + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                            rsettings.AddItem(new MenuItem("soraka.r.percent." + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(20, 1, 99)));
                        }
                        if (HighChamps.Contains(ally.ChampionName))
                        {
                            rsettings.AddItem(new MenuItem("soraka.r." + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                            rsettings.AddItem(new MenuItem("soraka.r.percent." + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(30, 1, 99)));
                        }
                    }
                    Config.AddSubMenu(rsettings);
                }

                var harass = new Menu("Harass Settings", "Harass Settings");
                {
                    harass.AddItem(new MenuItem("soraka.q.harass", "Use Q").SetValue(true));
                    harass.AddItem(new MenuItem("soraka.harass.mana", "Min. Mana Percent").SetValue(new Slider(50, 1, 99)));
                    Config.AddSubMenu(harass);
                }
                var misc = new Menu("Miscellaneous", "Miscellaneous");
                {
                    misc.AddItem(new MenuItem("soraka.anti", "Gapcloser (E)").SetValue(true));
                    misc.AddItem(new MenuItem("soraka.inter", "Interrupt (E)").SetValue(true));
                    Config.AddSubMenu(misc);
                }
                var drawing = new Menu("Draw Settings", "Draw Settings");
                {
                    drawing.AddItem(new MenuItem("soraka.q.draw", "Q Range").SetValue(new Circle(true, Color.Chartreuse)));
                    drawing.AddItem(new MenuItem("soraka.w.draw", "W Range").SetValue(new Circle(true, Color.Yellow)));
                    drawing.AddItem(new MenuItem("soraka.e.draw", "E Range").SetValue(new Circle(true, Color.White)));
                    drawing.AddItem(new MenuItem("soraka.r.draw", "R Range").SetValue(new Circle(true, Color.SandyBrown)));
                    Config.AddSubMenu(drawing);
                }
                Config.AddItem(new MenuItem("soraka.hitchance", "Skillshot Hit Chance").SetValue(new StringList(HitchanceNameArray, 2)));
                Config.AddItem(new MenuItem("prediction", ":: Choose Prediction").SetValue(new StringList(new[] { "Common", "Sebby", "sPrediction" }, 1)))
                .ValueChanged += (s, ar) =>
                {
                    Config.Item("pred.info").Show(ar.GetNewValue <StringList>().SelectedIndex == 2);
                };
                Config.AddItem(new MenuItem("pred.info", "                 PRESS F5 FOR LOAD SPREDICTION").SetFontStyle(System.Drawing.FontStyle.Bold)).Show(Config.Item("prediction").GetValue <StringList>().SelectedIndex == 0);
                if (Config.Item("prediction").GetValue <StringList>().SelectedIndex == 2)
                {
                    SPrediction.Prediction.Initialize(Config, ":: sPrediction Settings");
                }
            }

            SPrediction.Prediction.Initialize(Config, ":: Prediction Settings");
            Config.AddToMainMenu();
            Game.OnUpdate  += SorakaOnUpdate;
            Drawing.OnDraw += SorakaOnDraw;
            AntiGapcloser.OnEnemyGapcloser     += SorakaOnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += SorakaOnInterruptableTarget;
        }
예제 #5
0
파일: Sona.cs 프로젝트: volder1/PortAIO
        public static void SonaOnLoad()
        {
            Q = new Spell(SpellSlot.Q, 850f);
            W = new Spell(SpellSlot.W, 1000f);
            E = new Spell(SpellSlot.E, 350f);
            R = new Spell(SpellSlot.R, 1000f);

            R.SetSkillshot(0.5f, 125, 3000f, false, SkillshotType.SkillshotLine);

            Config = MainMenu.AddMenu("vSupport Series: " + ObjectManager.Player.ChampionName, "vSupport Series");

            comboMenu = Config.AddSubMenu("Combo Settings", "Combo Settings");
            comboMenu.Add("sona.q.combo", new CheckBox("Use Q"));
            comboMenu.Add("sona.r.combo", new CheckBox("Use R"));

            healManager = Config.AddSubMenu("(W) Heal Settings", "(W) Heal Settings");
            healManager.Add("sona.heal.disable", new CheckBox("Disable healing?", false));
            healManager.Add("sona.heal.limit", new Slider("Min. sona HP Percent for Heal", 40, 1));

            heal = Config.AddSubMenu("(W) Prio", "PRIOASD");
            foreach (var ally in ObjectManager.Get <AIHeroClient>().Where(o => o.IsAlly && o.IsValid && !o.IsMe))
            {
                if (LowPriority.Contains(ally.ChampionName))
                {
                    heal.Add("sona.heal" + ally.ChampionName, new CheckBox("Heal: " + ally.ChampionName));
                    heal.Add("sona.heal.percent" + ally.ChampionName, new Slider("Min. " + ally.ChampionName + " HP Percent", 15, 1, 99));
                }
                if (MediumPriority.Contains(ally.ChampionName))
                {
                    heal.Add("sona.heal" + ally.ChampionName, new CheckBox("Heal: " + ally.ChampionName));
                    heal.Add("sona.heal.percent" + ally.ChampionName, new Slider("Min. " + ally.ChampionName + " HP Percent", 20, 1, 99));
                }
                if (HighChamps.Contains(ally.ChampionName))
                {
                    heal.Add("sona.heal" + ally.ChampionName, new CheckBox("Heal: " + ally.ChampionName));
                    heal.Add("sona.heal.percent" + ally.ChampionName, new Slider("Min. " + ally.ChampionName + " HP Percent", 30, 1, 99));
                }
            }

            rSettings = Config.AddSubMenu("(R) Ult Settings", "(R) Ult Settings");
            rSettings.Add("sona.r.killsteal", new CheckBox("Killsteal using R", false));

            harass = Config.AddSubMenu("Harass Settings", "Harass Settings");
            harass.Add("sona.q.harass", new CheckBox("Use Q"));
            harass.Add("sona.harass.mana", new Slider("Min. Mana Percent", 50, 1));

            misc = Config.AddSubMenu("Miscellaneous", "Miscellaneous");
            misc.Add("sona.anti", new CheckBox("Gapcloser (Q)"));
            misc.Add("sona.inter", new CheckBox("Interrupt (R)"));

            drawing = Config.AddSubMenu("Draw Settings", "Draw Settings");
            drawing.Add("sona.q.draw", new CheckBox("Q Range")); //.SetValue(new Circle(true, Color.Chartreuse)));
            drawing.Add("sona.w.draw", new CheckBox("W Range")); //.SetValue(new Circle(true, Color.Yellow)));
            drawing.Add("sona.e.draw", new CheckBox("E Range")); //.SetValue(new Circle(true, Color.White)));
            drawing.Add("sona.r.draw", new CheckBox("R Range")); //.SetValue(new Circle(true, Color.SandyBrown)));

            Config.Add("sona.hitchance", new ComboBox("Skillshot Hit Chance", 2, HitchanceNameArray));

            Game.OnUpdate  += SonaOnUpdate;
            Drawing.OnDraw += SonaOnDraw;
            AntiGapcloser.OnEnemyGapcloser     += SonaOnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += SonaOnInterruptableTarget;
        }
예제 #6
0
파일: Taric.cs 프로젝트: wade1990/PortAIO
        public static void TaricOnLoad()
        {
            Q = new Spell(SpellSlot.Q, 750f);
            W = new Spell(SpellSlot.W, 200f);
            E = new Spell(SpellSlot.E, 625f);
            R = new Spell(SpellSlot.R, 200f);

            Config = new Menu("vSupport Series: " + ObjectManager.Player.ChampionName, "vSupport Series", true);
            {
                Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker Settings"));

                var comboMenu = new Menu("Combo Settings", "Combo Settings");
                {
                    comboMenu.AddItem(new MenuItem("taric.q.combo", "Use Q").SetValue(true));
                    comboMenu.AddItem(new MenuItem("taric.w.combo", "Use W").SetValue(true));
                    comboMenu.AddItem(new MenuItem("taric.e.combo", "Use E").SetValue(true));
                    comboMenu.AddItem(new MenuItem("taric.r.combo", "Use R").SetValue(true));
                    comboMenu.AddItem(new MenuItem("taric.r.count", "Min. Enemies in range for R").SetValue(new Slider(2, 1, 5)));

                    Config.AddSubMenu(comboMenu);
                }

                var healManager = new Menu("(Q) Heal Settings", "(W) Heal Settings");
                {
                    healManager.AddItem(new MenuItem("taric.heal.disable", "Disable Heal?").SetValue(false));
                    healManager.AddItem(new MenuItem("taric.heal.limit", "Min. Taric HP Percent for Heal").SetValue(new Slider(20, 1, 99)));
                    healManager.AddItem(new MenuItem("blabla", "(Q) Heal Settings"));

                    foreach (var ally in ObjectManager.Get <AIHeroClient>().Where(o => o.IsAlly && o.IsValid && !o.IsMe))
                    {
                        if (LowPriority.Contains(ally.ChampionName))
                        {
                            healManager.AddItem(new MenuItem("taric.heal" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                            healManager.AddItem(new MenuItem("taric.heal.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(10, 1, 99)));
                        }
                        if (MediumPriority.Contains(ally.ChampionName))
                        {
                            healManager.AddItem(new MenuItem("taric.heal" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                            healManager.AddItem(new MenuItem("taric.heal.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(20, 1, 99)));
                        }
                        if (HighChamps.Contains(ally.ChampionName))
                        {
                            healManager.AddItem(new MenuItem("taric.heal" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                            healManager.AddItem(new MenuItem("taric.heal.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(30, 1, 99)));
                        }
                    }
                    Config.AddSubMenu(healManager);
                }

                var harass = new Menu("Harass Settings", "Harass Settings");
                {
                    harass.AddItem(new MenuItem("taric.w.harass", "Use W for Resist?").SetValue(true));
                    harass.AddItem(new MenuItem("taric.e.harass", "Use E").SetValue(true));
                    harass.AddItem(new MenuItem("taric.harass.mana", "Min. Mana Percent").SetValue(new Slider(50, 1, 99)));

                    Config.AddSubMenu(harass);
                }

                var misc = new Menu("Miscellaneous", "Miscellaneous");
                {
                    misc.AddItem(new MenuItem("taric.inter", "Interrupt (E)").SetValue(true));

                    Config.AddSubMenu(misc);
                }

                var drawing = new Menu("Draw Settings", "Draw Settings");
                {
                    drawing.AddItem(new MenuItem("taric.q.draw", "Q Range").SetValue(new Circle(true, Color.Chartreuse)));
                    drawing.AddItem(new MenuItem("taric.w.draw", "W Range").SetValue(new Circle(true, Color.Yellow)));
                    drawing.AddItem(new MenuItem("taric.e.draw", "E Range").SetValue(new Circle(true, Color.White)));
                    drawing.AddItem(new MenuItem("taric.r.draw", "R Range").SetValue(new Circle(true, Color.SandyBrown)));

                    Config.AddSubMenu(drawing);
                }

                // Config.AddItem(new MenuItem("taric.hitchance", "Skillshot Hit Chance").SetValue(new StringList(HitchanceNameArray, 1)));
            }

            SPrediction.Prediction.Initialize(Config, ":: Prediction Settings");
            Config.AddToMainMenu();
            Game.OnUpdate  += TaricOnUpdate;
            Drawing.OnDraw += TaricOnDraw;
            AntiGapcloser.OnEnemyGapcloser     += TaricOnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += TaricOnInterruptableTarget;
        }
예제 #7
0
        private static void AlistarOnLoad()
        {
            Q = new Spell(SpellSlot.Q);
            W = new Spell(SpellSlot.W, 650f);
            E = new Spell(SpellSlot.E, 575f);
            R = new Spell(SpellSlot.R);

            Config = new Menu("vSupport Series: " + ObjectManager.Player.ChampionName, "vSupport Series", true);
            {
                Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker Settings"));

                var comboMenu = new Menu(":: Combo Settings", ":: Combo Settings");
                {
                    comboMenu.AddItem(new MenuItem("alistar.q.combo", "Use Q").SetValue(true));
                    comboMenu.AddItem(new MenuItem("alistar.e.combo", "Use E").SetValue(true));
                    comboMenu.AddItem(new MenuItem("alistar.r.combo", "Use R").SetValue(true));

                    Config.AddSubMenu(comboMenu);
                }

                var healManager = new Menu("(E) Heal Settings", "(E) Heal Settings");
                {
                    healManager.AddItem(new MenuItem("alistar.heal.disable", "Disable Heal?").SetValue(false));
                    healManager.AddItem(new MenuItem("alistar.heal.limit", "Min. Alistar HP Percent for Heal").SetValue(new Slider(40, 1, 99)));
                    healManager.AddItem(new MenuItem("ayrac1", "                  (W) Heal Settings"));
                    foreach (var ally in ObjectManager.Get <AIHeroClient>().Where(o => o.IsAlly && o.IsValid && !o.IsMe))
                    {
                        if (LowPriority.Contains(ally.ChampionName))
                        {
                            healManager.AddItem(new MenuItem("alistar.heal" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                            healManager.AddItem(new MenuItem("alistar.heal.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(20, 1, 99)));
                        }
                        if (MediumPriority.Contains(ally.ChampionName))
                        {
                            healManager.AddItem(new MenuItem("alistar.heal" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                            healManager.AddItem(new MenuItem("alistar.heal.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(30, 1, 99)));
                        }
                        if (HighChamps.Contains(ally.ChampionName))
                        {
                            healManager.AddItem(new MenuItem("alistar.heal" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                            healManager.AddItem(new MenuItem("alistar.heal.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(45, 1, 99)));
                        }
                    }

                    Config.AddSubMenu(healManager);
                }

                var ult = new Menu("(R) Auto Ultimate", "(R) Auto Ultimate");
                {
                    ult.AddItem(new MenuItem("alistar.auto.ult", "Auto Ult (R)")).SetValue(true);
                    ult.AddItem(new MenuItem("alistar.min.ult", "Min. HP Percent to Ult")).SetValue(new Slider(40, 1, 99));
                    ult.AddItem(new MenuItem("alistar.min.enemy", "Min. Enemies to Ult")).SetValue(new Slider(2, 1, 5));
                }

                var misc = new Menu("Miscellaneous", "Miscellaneous");
                {
                    misc.AddItem(new MenuItem("alistar.anti", "Gapcloser (W)").SetValue(true));
                    misc.AddItem(new MenuItem("alistar.inter", "Interrupt (W)").SetValue(true));

                    Config.AddSubMenu(misc);
                }

                var drawing = new Menu(":: Draw Settings", ":: Draw Settings");
                {
                    drawing.AddItem(new MenuItem("alistar.w.draw", "W Range").SetValue(new Circle(true, Color.Yellow)));
                    drawing.AddItem(new MenuItem("alistar.e.draw", "E Range").SetValue(new Circle(true, Color.White)));
                    Config.AddSubMenu(drawing);
                }
            }

            Config.AddToMainMenu();
            Game.OnUpdate += AlistarOnUpdate;
            Interrupter2.OnInterruptableTarget += AlistarInterrupter;
            AntiGapcloser.OnEnemyGapcloser     += AlistarGapcloser;
            Drawing.OnDraw += AlistarOnDraw;
        }
예제 #8
0
파일: Karma.cs 프로젝트: Hikii/vSeries
        public static void KarmaOnLoad()
        {
            Q = new Spell(SpellSlot.Q, 950f);
            W = new Spell(SpellSlot.W, 675f);
            E = new Spell(SpellSlot.E, 800f);
            R = new Spell(SpellSlot.R);

            Q.SetSkillshot(0.25f, 60f, 1700f, true, SkillshotType.SkillshotLine);
            W.SetTargetted(0.25f, float.MaxValue);
            E.SetTargetted(0.25f, float.MaxValue);

            Config = new Menu("vSupport Series:  " + ObjectManager.Player.ChampionName, "vSupport Series", true);
            {
                Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu(":: Orbwalker Settings"));

                var comboMenu = new Menu(":: Combo Settings", ":: Combo Settings");
                {
                    comboMenu.AddItem(new MenuItem("karma.q.combo", "Use Q").SetValue(true));
                    comboMenu.AddItem(new MenuItem("karma.w.combo", "Use W").SetValue(true));
                    comboMenu.AddItem(new MenuItem("karma.r.combo", "Use R").SetValue(true));
                    var comborsettings = new Menu(":: R Settings", ":: R Settings");
                    {
                        comborsettings.AddItem(new MenuItem("combo.r.q", "Empower Q?").SetValue(true));
                        comborsettings.AddItem(new MenuItem("combo.r.w", "Empower W?").SetValue(true));
                        comborsettings.AddItem(new MenuItem("combo.r.w.health", "Min. Health to Empower W").SetValue(new Slider(40, 1, 99)));

                        comboMenu.AddSubMenu(comborsettings);
                    }

                    Config.AddSubMenu(comboMenu);
                }

                var healManager = new Menu("(E) Shield Settings", "(E) Shield Settings");
                {
                    healManager.AddItem(new MenuItem("karma.shield.disable", "Disable shielding?").SetValue(false));
                    healManager.AddItem(new MenuItem("karma.shield.limit", "Min. Karma HP Percent for Shield").SetValue(new Slider(40, 1, 99)));
                    healManager.AddItem(new MenuItem("blabla", "(W) Shield Settings"));

                    var wsettings = new Menu("(E) Priority", "(E) Priority").SetFontStyle(FontStyle.Bold, SharpDX.Color.Gold);
                    {
                        foreach (var ally in ObjectManager.Get <Obj_AI_Hero>().Where(o => o.IsAlly && o.IsValid && !o.IsMe))
                        {
                            if (LowPriority.Contains(ally.ChampionName))
                            {
                                wsettings.AddItem(new MenuItem("karma.shield" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                                wsettings.AddItem(new MenuItem("karma.shield.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(15, 1, 99)));
                            }
                            if (MediumPriority.Contains(ally.ChampionName))
                            {
                                wsettings.AddItem(new MenuItem("karma.shield" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                                wsettings.AddItem(new MenuItem("karma.shield.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(20, 1, 99)));
                            }
                            if (HighChamps.Contains(ally.ChampionName))
                            {
                                wsettings.AddItem(new MenuItem("karma.shield" + ally.ChampionName, "Heal: " + ally.ChampionName).SetValue(true));
                                wsettings.AddItem(new MenuItem("karma.shield.percent" + ally.ChampionName, "Min. " + ally.ChampionName + " HP Percent").SetValue(new Slider(30, 1, 99)));
                            }
                        }
                        healManager.AddSubMenu(wsettings);
                    }
                    Config.AddSubMenu(healManager);
                }

                var harass = new Menu(":: Harass Settings", ":: Harass Settings");
                {
                    harass.AddItem(new MenuItem("karma.q.harass", "Use Q").SetValue(true));
                    harass.AddItem(new MenuItem("karma.w.harass", "Use W").SetValue(true));
                    var harassrsettings = new Menu(":: R Settings", ":: R Settings");
                    {
                        harassrsettings.AddItem(new MenuItem("karma.rq.harass", "Empower Q?").SetValue(true));
                        harassrsettings.AddItem(new MenuItem("karma.rw.harass", "Empower W?").SetValue(true));
                        harassrsettings.AddItem(new MenuItem("karma.rw.health", "Min. Health to Empower W").SetValue(new Slider(40, 1, 99)));

                        harass.AddSubMenu(harassrsettings);
                    }
                    harass.AddItem(new MenuItem("karma.harass.mana", "Min. Mana Percent").SetValue(new Slider(50, 1, 99)));

                    Config.AddSubMenu(harass);
                }

                var misc = new Menu(":: Miscellaneous", ":: Miscellaneous");
                {
                    misc.AddItem(new MenuItem("karma.anti.q", "Gapcloser (Q)").SetValue(true));
                    misc.AddItem(new MenuItem("karma.anti.e", "Gapcloser (E)").SetValue(true));

                    Config.AddSubMenu(misc);
                }

                var drawing = new Menu(":: Draw Settings", ":: Draw Settings");
                {
                    drawing.AddItem(new MenuItem("karma.q.draw", "Q Range").SetValue(new Circle(true, Color.Chartreuse)));
                    drawing.AddItem(new MenuItem("karma.w.draw", "W Range").SetValue(new Circle(true, Color.Yellow)));
                    drawing.AddItem(new MenuItem("karma.e.draw", "E Range").SetValue(new Circle(true, Color.White)));

                    Config.AddSubMenu(drawing);
                }

                Config.AddItem(new MenuItem("karma.q.hitchance", ":: Skillshot Hit Chance").SetValue(new StringList(HitchanceNameArray, 2)));

                Config.AddItem(new MenuItem("prediction", ":: Choose Prediction").SetValue(new StringList(new[] { "Common", "Sebby", "sPrediction" }, 1)))
                .ValueChanged += (s, ar) =>
                {
                    Config.Item("pred.info").Show(ar.GetNewValue <StringList>().SelectedIndex == 2);
                };
                Config.AddItem(new MenuItem("pred.info", "                 PRESS F5 FOR LOAD SPREDICTION").SetFontStyle(System.Drawing.FontStyle.Bold)).Show(Config.Item("prediction").GetValue <StringList>().SelectedIndex == 0);
                if (Config.Item("prediction").GetValue <StringList>().SelectedIndex == 2)
                {
                    SPrediction.Prediction.Initialize(Config, ":: sPrediction Settings");
                }
            }

            SPrediction.Prediction.Initialize(Config, ":: Prediction Settings");
            Config.AddToMainMenu();
            Game.OnUpdate  += KarmaOnUpdate;
            Drawing.OnDraw += KarmaOnDraw;
            AntiGapcloser.OnEnemyGapcloser += KarmaOnEnemyGapcloser;
        }