Beispiel #1
0
        /// <summary>
        /// To be done, Oneshot the ward
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>

        /*private static void OnDoCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
         * {
         *  if (Q.IsReady() || Player.Spellbook.GetSpell(SpellSlot.Q).State == SpellState.Surpressed)
         *  {
         *      var ward =
         *          ObjectManager
         *              .Get<Obj_AI_Base>(
         *              )
         *              .FirstOrDefault(
         *                  x =>
         *                      x.IsEnemy && x.IsVisible && x.Distance(Player) < Player.AttackRange + x.BoundingRadius + Player.BoundingRadius &&
         *                      (x.Name.ToLower().Contains("ward") || x.Name.ToLower().Contains("sight") ||
         *                       x.Name.ToLower().Contains("vision")));
         *
         *      if (ward == null) return;
         *
         *      if (ward.Health == 3 || ward.Health == 2)
         *      {
         *          Player.IssueOrder(GameObjectOrder.AttackUnit, ward);
         *      }
         *      if (Orbwalking.IsAutoAttack(args.SData.Name) && (ward.Health == 2 || ward.Health == 1))
         *      {
         *          Q.Cast();
         *      }
         *
         *      if (Player.Spellbook.GetSpell(SpellSlot.Q).State == SpellState.Surpressed)
         *      {
         *          Player.IssueOrder(GameObjectOrder.AttackUnit, ward);
         *      }
         *  }
         * }*/

        private static void LeonaOnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
        {
            if (Q.IsReady() && sender.IsValidTarget(Orbwalking.GetRealAutoAttackRange(Player) + 100) && MenuCheck("leona.inter", Config))
            {
                Q.CastIfHitchanceEquals(sender, HitChance.High);
            }
            else if (E.IsReady() && sender.IsValidTarget(E.Range) && MenuCheck("leona.inter", Config))
            {
                E.CastIfHitchanceEquals(sender, HitChance.High);
            }
        }
Beispiel #2
0
        public static void PoppyOnLoad()
        {
            Q = new Spell(SpellSlot.Q, 430f);
            W = new Spell(SpellSlot.W, 400f);
            E = new Spell(SpellSlot.E, 425f);
            R = new Spell(SpellSlot.R, Orbwalking.GetRealAutoAttackRange(null));

            Q.SetSkillshot(0.25f, 50f, float.MaxValue, false, SkillshotType.SkillshotLine);
            E.SetTargetted(0.25f, float.MaxValue);
            R.SetSkillshot(0.25f, 60, 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("poppy.q.combo", "Use Q").SetValue(true));
                    comboMenu.AddItem(new MenuItem("poppy.e.combo", "Use E").SetValue(true));
                    comboMenu.AddItem(new MenuItem("poppy.r.combo", "Use R").SetValue(true));
                    Config.AddSubMenu(comboMenu);
                }

                var harassMenu = new Menu(":: Harass Settings", ":: Harass Settings");
                {
                    harassMenu.AddItem(new MenuItem("poppy.q.harass", "Use Q").SetValue(true));
                    harassMenu.AddItem(new MenuItem("poppy.e.harass", "Use E").SetValue(true));
                    harassMenu.AddItem(new MenuItem("poppy.harass.mana", "Min. Mana")).SetValue(new Slider(50, 1, 99));
                    Config.AddSubMenu(harassMenu);
                }

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

                Config.AddItem(new MenuItem("poppy.interrupter", "Interrupter").SetValue(true)).SetTooltip("Only cast if enemy spell priorty > danger");
                Config.AddItem(new MenuItem("poppy.gapcloser", "Gapcloser").SetValue(true));
            }

            Config.AddToMainMenu();
            Game.OnUpdate  += PoppyOnUpdate;
            Drawing.OnDraw += PoppyOnDraw;
            Interrupter2.OnInterruptableTarget += PoppyInterrupter;
            AntiGapcloser.OnEnemyGapcloser     += PoppyOnEnemyGapcloser;
        }
Beispiel #3
0
        private static void BlitzcrankOnLoad()
        {
            Q = new Spell(SpellSlot.Q, 925f);
            W = new Spell(SpellSlot.W);
            E = new Spell(SpellSlot.E, Orbwalking.GetRealAutoAttackRange(null));
            R = new Spell(SpellSlot.R, 600f);

            Q.SetSkillshot(0.25f, 70f, 1750f, 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("blitzcrank.q.combo", "Use Q").SetValue(true));
                    comboMenu.AddItem(new MenuItem("blitzcrank.e.combo", "Use E").SetValue(true));
                    comboMenu.AddItem(new MenuItem("blitzcrank.r.combo", "Use R").SetValue(true));
                    var rsettings = new Menu(":: R Settings", ":: R Settings");
                    {
                        rsettings.AddItem(new MenuItem("blitz.r.count", "Min. Enemy Count").SetValue(new Slider(3, 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("blitzcrank.q." + enemy.ChampionName, "(Q): " + enemy.ChampionName).SetValue(true));
                    }
                    Config.AddSubMenu(whitelist);
                }
                var drawing = new Menu(":: Draw Settings", ":: Draw Settings");
                {
                    drawing.AddItem(new MenuItem("blitzcrank.q.draw", "Q Range").SetValue(new Circle(true, Color.Chartreuse)));
                    drawing.AddItem(new MenuItem("blitzcrank.w.draw", "W Range").SetValue(new Circle(true, Color.Yellow)));
                    drawing.AddItem(new MenuItem("blitzcrank.e.draw", "E Range").SetValue(new Circle(true, Color.White)));
                    drawing.AddItem(new MenuItem("blitzcrank.r.draw", "R Range").SetValue(new Circle(true, Color.SandyBrown)));
                    Config.AddSubMenu(drawing);
                }
                Config.AddItem(new MenuItem("blitzcrank.interrupter", "Interrupter").SetValue(true)).SetTooltip("Only cast if enemy spell priorty > danger");
                Config.AddItem(new MenuItem("blitzcrank.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 += BlitzcrankOnUpdate;
            Interrupter2.OnInterruptableTarget += BlitzcrankInterrupter;
            Drawing.OnDraw += BlitzcrankOnDraw;
        }
Beispiel #4
0
        public static void LeonaOnLoad()
        {
            Q = new Spell(SpellSlot.Q, Orbwalking.GetRealAutoAttackRange(Player) + 100);
            W = new Spell(SpellSlot.W, 275f);
            E = new Spell(SpellSlot.E, 875f);
            R = new Spell(SpellSlot.R, 1200f);

            E.SetSkillshot(0.25f, 70f, 2000f, false, SkillshotType.SkillshotLine);
            R.SetSkillshot(0.75f, 250f, float.MaxValue, 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("leona.q.combo", "Use Q").SetValue(true));
                    comboMenu.AddItem(new MenuItem("leona.w.combo", "Use W").SetValue(true));
                    comboMenu.AddItem(new MenuItem("leona.e.combo", "Use E").SetValue(true));
                    comboMenu.AddItem(new MenuItem("leona.r.combo", "Use R").SetValue(true));
                    var rsettings = new Menu(":: R Settings", ":: R Settings");
                    {
                        rsettings.AddItem(new MenuItem("leona.r.count", "Min. Enemy Count").SetValue(new Slider(3, 1, 5)));
                        comboMenu.AddSubMenu(rsettings);
                    }
                    Config.AddSubMenu(comboMenu);
                }

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

                    Config.AddSubMenu(harass);
                }

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

                    Config.AddSubMenu(misc);
                }

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

                    Config.AddSubMenu(drawing);
                }

                Config.AddItem(new MenuItem("leona.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  += LeonaOnUpdate;
            Drawing.OnDraw += LeonaOnDraw;
            AntiGapcloser.OnEnemyGapcloser     += LeonaOnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += LeonaOnInterruptableTarget;
            // Obj_AI_Base.OnDoCast += OnDoCast;
        }
Beispiel #5
0
 private static void LeonaOnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (Q.IsReady() && MenuCheck("leona.anti", Config) && gapcloser.Sender.IsValidTarget(Orbwalking.GetRealAutoAttackRange(Player) + 100))
     {
         Q.Cast(gapcloser.Sender);
     }
     else if (E.IsReady() && MenuCheck("leona.anti", Config) && E.GetPrediction(gapcloser.Sender).Hitchance > HitChance.High &&
              gapcloser.Sender.IsValidTarget(E.Range))
     {
         E.Cast(gapcloser.Sender);
     }
 }
Beispiel #6
0
        public static void TrundleOnLoad()
        {
            Q = new Spell(SpellSlot.Q, Orbwalking.GetRealAutoAttackRange(null));
            W = new Spell(SpellSlot.W, 900f);
            E = new Spell(SpellSlot.E, 1000f);
            R = new Spell(SpellSlot.R, 1000f);

            E.SetSkillshot(0.5f, 188f, 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("trundle.q.combo", "Use Q").SetValue(true));
                    comboMenu.AddItem(new MenuItem("trundle.w.combo", "Use Q").SetValue(true));
                    comboMenu.AddItem(new MenuItem("trundle.e.combo", "Use E").SetValue(true));
                    comboMenu.AddItem(new MenuItem("trundle.r.combo", "Use R").SetValue(true));
                    comboMenu.AddItem(new MenuItem("trundle.r.slider", "If Trundle health > slider amount, cast (R)")).SetValue(new Slider(50, 1, 99));
                    Config.AddSubMenu(comboMenu);
                    var rwhitelist = new Menu(":: (R) Whitelist", ":: (R) Whitelist");
                    {
                        foreach (var enemy in HeroManager.Enemies)
                        {
                            rwhitelist.AddItem(new MenuItem("trundle.r." + enemy.ChampionName, "(R): " + enemy.ChampionName).SetValue(true));
                        }
                        comboMenu.AddSubMenu(rwhitelist);
                    }
                }

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

                var harassMenu = new Menu(":: Harass Settings", ":: Harass Settings");
                {
                    harassMenu.AddItem(new MenuItem("trundle.q.harass", "Use Q").SetValue(true));
                    harassMenu.AddItem(new MenuItem("trundle.w.harass", "Use W").SetValue(true));
                    harassMenu.AddItem(new MenuItem("trundle.e.harass", "Use E").SetValue(true));
                    harassMenu.AddItem(new MenuItem("trundle.harass.mana", "Min. Mana")).SetValue(new Slider(50, 1, 99));
                    Config.AddSubMenu(harassMenu);
                }

                var trickMenu = new Menu(":: Trick Settings", ":: Trick Settings");
                {
                    /*foreach (var spell in HeroManager.Allies.SelectMany(ally => SpellDatabase.TrundleSpells.Where(p => p.ChampionName == ally.ChampionName)))
                     * {
                     *  trickMenu.AddItem(new MenuItem(string.Format("trick.{0}", spell.SpellName), string.Format("Trick: {0} ({1})", spell.ChampionName, spell.Slot)).SetValue(true));
                     * }
                     * Config.AddSubMenu(trickMenu);*/
                }

                var drawing = new Menu("Draw Settings", "Draw Settings");
                {
                    drawing.AddItem(new MenuItem("trundle.q.draw", "Q Range").SetValue(new Circle(true, Color.Chartreuse)));
                    drawing.AddItem(new MenuItem("trundle.w.draw", "W Range").SetValue(new Circle(true, Color.Yellow)));
                    drawing.AddItem(new MenuItem("trundle.e.draw", "E Range").SetValue(new Circle(true, Color.White)));
                    drawing.AddItem(new MenuItem("trundle.r.draw", "R Range").SetValue(new Circle(true, Color.SandyBrown)));
                    Config.AddSubMenu(drawing);
                }
                Config.AddItem(new MenuItem("trundle.pillar.block", "Use (E) for Blitzcrank Q").SetValue(true));
                Config.AddItem(new MenuItem("trundle.interrupter", "Interrupter").SetValue(true)).SetTooltip("Only cast if enemy spell priorty > danger");
            }
            Config.AddToMainMenu();
            Game.OnUpdate  += TrundleOnUpdate;
            Drawing.OnDraw += TrundleOnDraw;
            Interrupter2.OnInterruptableTarget += TrundleInterrupter;
            Obj_AI_Base.OnProcessSpellCast     += TrundleOnProcessSpellCast;
        }
Beispiel #7
0
        public static void LeonaOnLoad()
        {
            Q = new Spell(SpellSlot.Q, Orbwalking.GetRealAutoAttackRange(Player) + 100);
            W = new Spell(SpellSlot.W, 200f);
            E = new Spell(SpellSlot.E, 700f);
            R = new Spell(SpellSlot.R, 1200f);

            E.SetSkillshot(0.25f, 120f, 2000f, false, SkillshotType.SkillshotLine);
            R.SetSkillshot(1f, 300f, float.MaxValue, 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("leona.q.combo", "Use Q").SetValue(true));
                    comboMenu.AddItem(new MenuItem("leona.w.combo", "Use W").SetValue(true));
                    comboMenu.AddItem(new MenuItem("leona.e.combo", "Use E").SetValue(true));
                    comboMenu.AddItem(new MenuItem("leona.r.combo", "Use R").SetValue(true));
                    var rsettings = new Menu(":: R Settings", ":: R Settings");
                    {
                        rsettings.AddItem(new MenuItem("leona.r.count", "Min. Enemy Count").SetValue(new Slider(3, 1, 5)));
                        comboMenu.AddSubMenu(rsettings);
                    }
                    Config.AddSubMenu(comboMenu);
                }

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

                    Config.AddSubMenu(harass);
                }

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

                    Config.AddSubMenu(misc);
                }

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

                    Config.AddSubMenu(drawing);
                }

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

            SPrediction.Prediction.Initialize(Config, ":: Prediction Settings");
            Config.AddToMainMenu();
            Game.OnUpdate  += LeonaOnUpdate;
            Drawing.OnDraw += LeonaOnDraw;
            AntiGapcloser.OnEnemyGapcloser     += LeonaOnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += LeonaOnInterruptableTarget;
            // Obj_AI_Base.OnSpellCast += OnSpellCast;
        }