コード例 #1
0
        public static void Harass()
        {
            var target = TargetSelector2.GetTarget(GetCustomRange(), DamageType.Physical);

            switch ((int)_Player.Mana)
            {
            case 5:
                if (Program.HarassMenu["save5StacksHarass"].Cast <CheckBox>().CurrentValue)
                {
                    return;
                }
                var ferocityMode = Program.HarassMenu["selectedStackedSpellHarass"].Cast <Slider>().CurrentValue;
                switch (ferocityMode)
                {
                case 0:
                    if (Orbwalker.IsAutoAttacking || target == null || !target.IsValidTarget(_Player.GetAutoAttackRange(target)) || !Program.Q.IsReady())
                    {
                        return;
                    }
                    Program.Q.Cast();
                    break;

                case 1:
                    if (!Program.W.IsReady())
                    {
                        return;
                    }
                    Program.W.Cast();
                    break;

                case 2:
                    if (target == null || !Program.E.IsReady())
                    {
                        return;
                    }
                    Program.E.Cast(target);
                    break;
                }
                break;

            default:
                if (Program.W.IsReady() && target.IsValidTarget(Program.W.Range) && Program.HarassMenu["wHarass"].Cast <CheckBox>().CurrentValue)
                {
                    Program.W.Cast();
                }
                if (Program.Q.IsReady() && Program.HarassMenu["qHarass"].Cast <CheckBox>().CurrentValue&& !Orbwalker.IsAutoAttacking && target.IsValidTarget(_Player.GetAutoAttackRange(target)))
                {
                    Program.Q.Cast();
                }
                if (Program.E.IsReady() && Program.HarassMenu["eHarass"].Cast <CheckBox>().CurrentValue&& target.IsValidTarget(Program.E.Range))
                {
                    Program.E.Cast(target);
                }
                break;
            }
        }
コード例 #2
0
 public static void Orbwalk()
 {
     if (CanAttack())
     {
         var target = TargetSelector2.GetTarget(ObjectManager.Player.GetAutoAttackRange(), DamageType.Physical);
         if (target != null)
         {
             Player.IssueOrder(GameObjectOrder.AttackUnit, target);
             _lastAaTick = Environment.TickCount;
             return;
         }
     }
     if (CanMove())
     {
         Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
         return;
     }
 }
コード例 #3
0
        public static void Combo()
        {
            if (Player.HasBuff("RengarR") && Program.DisableAntiSkills)
            {
                var item = _Player.InventoryItems.FirstOrDefault(a => a.Id == ItemId.Youmuus_Ghostblade);
                if (Program.ComboMenu["useYomuus"].Cast <CheckBox>().CurrentValue&& item != null && item.CanUseItem())
                {
                    item.Cast();
                }
                return;
            }
            var target = TargetSelector2.GetTarget(GetCustomRange(), DamageType.Physical);

            switch ((int)_Player.Mana)
            {
            case 5:
                if (Program.ComboMenu["ferocity"].Cast <CheckBox>().CurrentValue)
                {
                    if (Program.ComboMenu["modeType"].Cast <CheckBox>().CurrentValue)
                    {
                        var healthPercent = Program.ComboMenu["wHealthPercentSlider"].Cast <Slider>().CurrentValue;
                        if (Program.W.IsReady() && _Player.HealthPercent <= healthPercent && Program.ComboMenu["wHealthPercent"].Cast <CheckBox>().CurrentValue)
                        {
                            Program.W.Cast();
                        }
                        else if (!Orbwalker.IsAutoAttacking && Program.ComboMenu["qInRange"].Cast <CheckBox>().CurrentValue&& Program.Q.IsReady() && target.IsValidTarget(_Player.GetAutoAttackRange(target)))
                        {
                            Program.Q.Cast();
                        }
                        else if (Program.E.IsReady() && Program.ComboMenu["eOutOfRange"].Cast <CheckBox>().CurrentValue)
                        {
                            Program.E.Cast(target);
                        }
                    }
                    else
                    {
                        var ferocityMode = Program.ComboMenu["selectedStackedSpell"].Cast <Slider>().CurrentValue;
                        switch (ferocityMode)
                        {
                        case 0:
                            if (Orbwalker.IsAutoAttacking || target == null || !target.IsValidTarget(_Player.GetAutoAttackRange(target)) || !Program.Q.IsReady())
                            {
                                return;
                            }
                            Program.Q.Cast();
                            break;

                        case 1:
                            if (!Program.W.IsReady())
                            {
                                return;
                            }
                            Program.W.Cast();
                            break;

                        case 2:
                            if (target == null || !Program.E.IsReady())
                            {
                                return;
                            }
                            Program.E.Cast(target);
                            break;
                        }
                    }
                }
                break;

            default:
                if (Program.W.IsReady() && target.IsValidTarget(Program.W.Range) && Program.ComboMenu["wCombo"].Cast <CheckBox>().CurrentValue)
                {
                    Program.W.Cast();
                    return;
                }
                if (Program.Q.IsReady() && Program.ComboMenu["qCombo"].Cast <CheckBox>().CurrentValue&& !Orbwalker.IsAutoAttacking && target.IsValidTarget(_Player.GetAutoAttackRange(target)))
                {
                    Program.Q.Cast();
                    return;
                }
                if (Program.E.IsReady() && Program.ComboMenu["eCombo"].Cast <CheckBox>().CurrentValue&& target.IsValidTarget(Program.E.Range))
                {
                    Program.E.Cast(target);
                    return;
                }
                break;
            }
        }
コード例 #4
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.ChampionName != Champion.Rengar.ToString())
            {
                return;
            }

            Bootstrap.Init(null);
            TargetSelector2.init();

            Q = new Spell.Active(SpellSlot.Q);
            W = new Spell.Active(SpellSlot.W, 500);
            E = new Spell.Skillshot(SpellSlot.E, 1000, SkillShotType.Linear, 250, 1500, 70);
            R = new Spell.Active(SpellSlot.R);

            menu = MainMenu.AddMenu("RengarBuddy", "rengarbuddy");
            menu.AddGroupLabel("Rengar Buddy");
            menu.AddLabel("query me? jgottabekiddingme");
            menu.AddLabel("that was a jq joke, i hope you got it");
            menu.AddLabel("oh yea, this is made by fluxy (woot?)");

            ComboMenu = menu.AddSubMenu("Combo Menu", "comboMenuRB");

            ComboMenu.AddGroupLabel("5 Ferocity Settings");
            ComboMenu.Add("ferocity", new CheckBox("Use 5 Ferocity"));
            ComboMenu.AddLabel("Smart Mode Settings");
            ComboMenu.Add("modeType", new CheckBox("Smart Mode Active"));
            ComboMenu.AddLabel("Smart Spell Settings");
            ComboMenu.Add("qInRange", new CheckBox("Q In AA Range"));
            ComboMenu.Add("eOutOfRange", new CheckBox("E Out Of Range"));
            ComboMenu.Add("wHealthPercent", new CheckBox("W <= % Health"));
            ComboMenu.Add("wHealthPercentSlider", new Slider("% Health", 30));
            ComboMenu.AddSeparator();
            ComboMenu.AddLabel("Regular Mode Settings");
            var stacks = ComboMenu.Add("selectedStackedSpell", new Slider("Selected Spell", 0, 0, 2));

            stacks.OnValueChange += delegate
            {
                stacks.DisplayName = "5 Ferocity Priority: " + new[] { "Q", "W", "E" }[stacks.CurrentValue];
            };
            stacks.DisplayName = "5 Ferocity Priority: " + new[] { "Q", "W", "E" }[stacks.CurrentValue];
            ComboMenu.AddSeparator();
            ComboMenu.AddGroupLabel("Regular Combo");
            ComboMenu.Add("qCombo", new CheckBox("Use Q"));
            ComboMenu.Add("wCombo", new CheckBox("Use W"));
            ComboMenu.Add("eCombo", new CheckBox("Use E"));
            ComboMenu.AddSeparator();
            ComboMenu.Add("useYomuus", new CheckBox("use Yomuus in R"));


            HarassMenu = menu.AddSubMenu("Harass Menu", "harassMenuRB");
            HarassMenu.Add("save5StacksHarass", new CheckBox("Save 5 Stacks"));
            var stacks2 = HarassMenu.Add("selectedStackedSpellHarass", new Slider("Selected Spell", 0, 0, 2));

            stacks2.OnValueChange += delegate
            {
                stacks2.DisplayName = "5 Ferocity Priority: " + new[] { "Q", "W", "E" }[stacks.CurrentValue];
            };
            stacks.DisplayName = "5 Ferocity Priority: " + new[] { "Q", "W", "E" }[stacks.CurrentValue];
            HarassMenu.AddSeparator();
            HarassMenu.Add("qHarass", new CheckBox("Use Q"));
            HarassMenu.Add("wHarass", new CheckBox("Use W"));
            HarassMenu.Add("eHarass", new CheckBox("Use E"));


            FarmMenu = menu.AddSubMenu("Farm Menu", "farmMenuRB");
            FarmMenu.AddGroupLabel("Wave Clear");
            FarmMenu.Add("qWaveClear", new CheckBox("Use Q"));
            FarmMenu.Add("wWaveClear", new CheckBox("Use W"));
            FarmMenu.Add("eWaveClear", new CheckBox("Use E"));
            FarmMenu.Add("saveStacksWC", new CheckBox("Save Stacks In WC"));
            var stacks3 = FarmMenu.Add("selectedStackedSpellWC", new Slider("Selected Spell", 0, 0, 2));

            stacks3.OnValueChange += delegate
            {
                stacks3.DisplayName = "5 Ferocity Priority: " + new[] { "Q", "W", "E" }[stacks.CurrentValue];
            };
            FarmMenu.AddGroupLabel("Last Hit");
            FarmMenu.Add("qLastHit", new CheckBox("Use Q"));
            FarmMenu.Add("eLastHit", new CheckBox("Use E"));


            JungleMenu = menu.AddSubMenu("Jungle Menu", "jungleMenuRB");
            JungleMenu.Add("saveStacksJungle", new CheckBox("Save Stacks In Jungle"));
            var stacks4 = JungleMenu.Add("selectedStackedSpellJNG", new Slider("Selected Spell", 0, 0, 2));

            stacks4.OnValueChange += delegate
            {
                stacks4.DisplayName = "5 Ferocity Priority: " + new[] { "Q", "W", "E" }[stacks.CurrentValue];
            };
            JungleMenu.Add("qJng", new CheckBox("Use Q"));
            JungleMenu.Add("wJng", new CheckBox("Use W"));
            JungleMenu.Add("eJng", new CheckBox("Use E"));

            DrawMenu = menu.AddSubMenu("Draw Menu", "drawmenu");
            DrawMenu.Add("drawW", new CheckBox("Draw W"));
            DrawMenu.Add("drawE", new CheckBox("Draw E"));

            Game.OnTick += Game_OnTick;
            AIHeroClient.OnProcessSpellCast += AIHeroClient_OnProcessSpellCast;
            Drawing.OnDraw      += Drawing_OnDraw;
            GameObject.OnCreate += GameObject_OnCreate;
        }