Пример #1
0
 public override void Initialize(ComboProvider combo)
 {
     _brandE = combo.GetSkill<BrandE>();
     _brandQ = combo.GetSkill<BrandQ>();
     Drawing.OnDraw += Draw;
     base.Initialize(combo);
 }
Пример #2
0
 public override void Initialize(ComboProvider combo)
 {
     _brandE         = combo.GetSkill <BrandE>();
     _brandQ         = combo.GetSkill <BrandQ>();
     Drawing.OnDraw += Draw;
     base.Initialize(combo);
 }
Пример #3
0
 public override void Initialize(ComboProvider combo)
 {
     _q = combo.GetSkill <CassQ>();
     _r = combo.GetSkill <CassR>();
     _e = combo.GetSkill <CassE>();
     base.Initialize(combo);
 }
Пример #4
0
        } //TODO: check if TotalMagicDamage is really AP

        public override void Initialize(ComboProvider combo)
        {
            var skills = combo.GetSkills().ToList();

            skills.Remove(this);
            _otherSkills = skills.ToArray();
            _brandE      = combo.GetSkill <BrandE>();
            _brandQ      = combo.GetSkill <BrandQ>();
            base.Initialize(combo);
        }
Пример #5
0
 public override void Initialize(ComboProvider combo)
 {
     _brandQ = combo.GetSkill <BrandQ>();
     Orbwalking.OnNonKillableMinion += OnMinionUnkillable;
     Orbwalking.BeforeAttack        += Orbwalking_BeforeAttack;
     base.Initialize(combo);
 }
Пример #6
0
 public override void Initialize(ComboProvider combo)
 {
     _brandQ = combo.GetSkill<BrandQ>();
     PortAIO.OrbwalkerManager.LSOrbwalker.OnNonKillableMinion += OnMinionUnkillable;
     LSEvents.BeforeAttack += Orbwalking_BeforeAttack;
     base.Initialize(combo);
 }
Пример #7
0
        public override void Initialize(ComboProvider combo)
        {
            _e = combo.GetSkill<CassE>();
            base.Initialize(combo);

            float tickLimiter = 0;
            //float mana = 0;
            Game.OnUpdate += (args) =>
            {
                if (tickLimiter > Game.Time) return;
                tickLimiter = Game.Time + 0.25f;

                if (ObjectManager.Player.Spellbook.Spells.Any(spell => spell.Name == "ItemSeraphsEmbrace")) return;
                //if (mana == ObjectManager.Player.MaxMana)
                //{
                //    StackTear.SetValue(new KeyBind(StackTear.GetValue<KeyBind>().Key, KeyBindType.Toggle));
                //    mana = 0f;
                //}

                if (combo.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.None && CanBeCast() && ObjectManager.Player.CountEnemiesInRange(2000) == 0 && MinTearStackMana < ObjectManager.Player.ManaPercent && !ObjectManager.Player.IsRecalling() && StackTear.IsActive())
                {
                    if (ObjectManager.Get<Obj_AI_Turret>().Any(turret => turret.IsAlly && turret.Distance(ObjectManager.Player) < 1000) || ObjectManager.Player.NearFountain(3500))
                    {
                        var tear = ObjectManager.Player.Spellbook.Spells.FirstOrDefault(spell => spell.Name == "TearsDummySpell" || spell.Name == "ArchAngelsDummySpell");

                        if (tear != null && tear.CooldownExpires < Game.Time)
                            Cast(ObjectManager.Player.Position.Extend(Game.CursorPos, 500));
                        //mana = ObjectManager.Player.MaxMana;
                    }
                }

            };
        }
Пример #8
0
 public override void Initialize(ComboProvider combo)
 {
     _brandQ = combo.GetSkill<BrandQ>();
     Orbwalker.OnUnkillableMinion += OnMinionUnkillable;
     Orbwalker.OnPreAttack += Orbwalking_BeforeAttack;
     base.Initialize(combo);
 }
Пример #9
0
 public override void Initialize(ComboProvider combo)
 {
     var skills = combo.GetSkills().ToList();
     skills.Remove(skills.First(skill => skill is BrandQ));
     _brandQWE = skills.ToArray();
     _w = combo.GetSkill<BrandW>();
     base.Initialize(combo);
 }
Пример #10
0
        public override void Initialize(ComboProvider combo)
        {
            var skills = combo.GetSkills().ToList();

            skills.Remove(skills.First(skill => skill is BrandQ));
            _brandQWE = skills.ToArray();
            _w        = combo.GetSkill <BrandW>();
            base.Initialize(combo);
        }
Пример #11
0
        //public override void Draw()
        //{
        //    var farmLocation = MinionManager.GetBestCircularFarmLocation(MinionManager.GetMinions(900, MinionTypes.All, MinionTeam.NotAlly).Select(minion => minion.Position.To2D()).ToList(), Instance.SData.CastRadius, 850);
        //    Drawing.DrawText(200, 200, Color.Red, farmLocation.MinionsHit.ToString() + " / " + FarmIfMoreOrEqual);

        //}

        public override void Initialize(ComboProvider combo)
        {
            _e = combo.GetSkill <CassE>();
            base.Initialize(combo);

            float tickLimiter = 0;

            //float mana = 0;
            Game.OnUpdate += (args) =>
            {
                if (tickLimiter > Game.Time)
                {
                    return;
                }
                tickLimiter = Game.Time + 0.25f;

                if (ObjectManager.Player.Spellbook.Spells.Any(spell => spell.Name == "ItemSeraphsEmbrace"))
                {
                    return;
                }
                //if (mana == ObjectManager.Player.MaxMana)
                //{
                //    StackTear.SetValue(new KeyBind(StackTear.GetValue<KeyBind>().Key, KeyBindType.Toggle));
                //    mana = 0f;
                //}


                if (combo.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.None && CanBeCast() && ObjectManager.Player.CountEnemiesInRange(2000) == 0 && MinTearStackMana < ObjectManager.Player.ManaPercent && !ObjectManager.Player.IsRecalling() && StackTear.IsActive())
                {
                    if (ObjectManager.Get <Obj_AI_Turret>().Any(turret => turret.IsAlly && turret.Distance(ObjectManager.Player) < 1000) || ObjectManager.Player.NearFountain(3500))
                    {
                        var tear = ObjectManager.Player.Spellbook.Spells.FirstOrDefault(spell => spell.Name == "TearsDummySpell" || spell.Name == "ArchAngelsDummySpell");

                        if (tear != null && tear.CooldownExpires < Game.Time)
                        {
                            Cast(ObjectManager.Player.Position.Extend(Game.CursorPos, 500));
                        }
                        //mana = ObjectManager.Player.MaxMana;
                    }
                }
            };
        }
Пример #12
0
 public override void Initialize(ComboProvider combo)
 {
     var skills = combo.GetSkills().ToList();
     skills.Remove(this);
     _otherSkills = skills.ToArray();
     _brandE = combo.GetSkill<BrandE>();
     _brandQ = combo.GetSkill<BrandQ>();
     base.Initialize(combo);
 }
Пример #13
0
        public void Load()
        {
            if (ObjectManager.Player.ChampionName != "Garen")
            {
                return;
            }
            Notifications.AddNotification("Yule VIP :215226086", 3);

            var mainMenu           = new Menu("The Garen", "The Garen", true);
            var orbwalkerMenu      = mainMenu.CreateSubmenu("Orbwalker");
            var targetSelectorMenu = mainMenu.CreateSubmenu("Target Selector");
            var comboMenu          = mainMenu.CreateSubmenu("Combo");
            var laneClearMenu      = mainMenu.CreateSubmenu("Lane Clear");
            var miscMenu           = mainMenu.CreateSubmenu("Misc");
            var items           = mainMenu.CreateSubmenu("Items");
            var gapcloserMenu   = mainMenu.CreateSubmenu("Gapcloser");
            var interrupterMenu = mainMenu.CreateSubmenu("Interrupter");
            var autoLevel       = mainMenu.CreateSubmenu("Auto-level Spells");
            var drawingMenu     = mainMenu.CreateSubmenu("Drawing");


            var orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);

            _comboProvider = new ComboProvider(500, new Skill[] { new GarenQ((SpellSlot.Q)), new GarenW((SpellSlot.W)), new GarenE((SpellSlot.E)), new GarenR((SpellSlot.R)) }.ToList(), orbwalker);
            _r             = _comboProvider.GetSkill <GarenR>();
            _flash         = ObjectManager.Player.Spellbook.Spells.FirstOrDefault(spell => spell.Name == "summonerflash");
            _comboProvider.CreateBasicMenu(targetSelectorMenu, comboMenu, null, null, null, gapcloserMenu, interrupterMenu, null, false);
            _comboProvider.CreateLaneclearMenu(laneClearMenu, false, SpellSlot.W);
            _comboProvider.GetSkill <GarenE>().ItemManager = _comboProvider.CreateItemsMenu(items, new RavenousHydra(), new BilgewaterCutlass(), new YoumusBlade(), new Botrk());
            _comboProvider.CreateAutoLevelMenu(autoLevel, ComboProvider.SpellOrder.REQW, ComboProvider.SpellOrder.REQW);

            comboMenu.AddMItem("Q after Auto Attack", true, (sender, args) => _comboProvider.GetSkill <GarenQ>().OnlyAfterAuto   = args.GetNewValue <bool>());
            comboMenu.AddMItem("E after Auto Attack", true, (sender, args) => _comboProvider.GetSkill <GarenE>().OnlyAfterAuto   = args.GetNewValue <bool>());
            comboMenu.AddMItem("Use R to KS", false, (sender, args) => _comboProvider.GetSkill <GarenR>().Killsteal              = args.GetNewValue <bool>());
            comboMenu.AddMItem("Q to Get in Range", true, (sender, args) => _comboProvider.GetSkill <GarenQ>().UseWhenOutOfRange = args.GetNewValue <bool>());

            miscMenu.AddMItem("Use W Out of Combo", true, (sender, args) => _comboProvider.GetSkill <GarenW>().UseAlways = args.GetNewValue <bool>());
            miscMenu.AddMItem("Min. Incoming Damage for W in %HP", new Slider(2, 1, 15), (sender, args) => _comboProvider.GetSkill <GarenW>().MinDamagePercent = args.GetNewValue <Slider>().Value);
            miscMenu.AddMItem("Always W Enemy Ults", true, (sender, args) => _comboProvider.GetSkill <GarenW>().UseOnUltimates = args.GetNewValue <bool>());

            gapcloserMenu.AddMItem("(Use W if Enabled)");

            laneClearMenu.AddMItem("E if X Minions", new Slider(1, 1, 8), (sender, args) => _comboProvider.GetSkill <GarenE>().MinFarmMinions = args.GetNewValue <Slider>().Value);
            laneClearMenu.AddMItem("Use Hydra", true, (sender, args) => _comboProvider.GetSkill <GarenE>().UseHydra = args.GetNewValue <bool>());

            drawingMenu.AddMItem("Damage Indicator", new Circle(true, Color.FromArgb(100, Color.Goldenrod)), (sender, args) =>
            {
                DamageIndicator.DamageToUnit = _comboProvider.GetComboDamage;
                DamageIndicator.Enabled      = args.GetNewValue <Circle>().Active;
                DamageIndicator.FillColor    = args.GetNewValue <Circle>().Color;
                DamageIndicator.Fill         = true;
                DamageIndicator.Color        = Color.FromArgb(255, DamageIndicator.FillColor);
            });
            drawingMenu.AddMItem("Draw R Range", new Circle(true, Color.Goldenrod), (sender, args) => _drawR            = args.GetNewValue <Circle>());
            drawingMenu.AddMItem("Draw Flash-R Indicator", new Circle(true, Color.Red), (sender, args) => _drawFlashUlt = args.GetNewValue <Circle>());
            drawingMenu.AddMItem("Damage Indicator by xSalice / detuks!");

            //mainMenu.AddMItem("Max order: R > E > Q > W! Have fun!");
            mainMenu.AddToMainMenu();
            _comboProvider.Initialize();
            //DevAssistant.Init();
            Game.OnUpdate  += Tick;
            Drawing.OnDraw += Draw;
        }
Пример #14
0
        public void Load()
        {
            if (ObjectManager.Player.ChampionName != "Garen")
            {
                return;
            }
            Notifications.AddNotification("The Garen v2 loaded!", 3);

            var mainMenu           = new Menu("The Garen", "The Garen", true);
            var orbwalkerMenu      = mainMenu.CreateSubmenu("Orbwalker");
            var targetSelectorMenu = mainMenu.CreateSubmenu("Target Selector");
            var comboMenu          = mainMenu.CreateSubmenu("Combo");
            var laneClearMenu      = mainMenu.CreateSubmenu("Laneclear");
            var miscMenu           = mainMenu.CreateSubmenu("Misc");
            var items           = mainMenu.CreateSubmenu("Items");
            var gapcloserMenu   = mainMenu.CreateSubmenu("Gapcloser");
            var interrupterMenu = mainMenu.CreateSubmenu("Interrupter");
            var drawingMenu     = mainMenu.CreateSubmenu("Drawing");


            var orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);

            TargetSelector.AddToMenu(targetSelectorMenu);

            _comboProvider = new ComboProvider(500, new Skill[] { new GarenQ(new Spell(SpellSlot.Q)), new GarenW(new Spell(SpellSlot.W)), new GarenE(new Spell(SpellSlot.E)), new GarenR(new Spell(SpellSlot.R)) }.ToList(), orbwalker);
            _r             = _comboProvider.GetSkill <GarenR>();
            _flash         = ObjectManager.Player.Spellbook.Spells.FirstOrDefault(spell => spell.Name == "summonerflash");
            _comboProvider.CreateBasicMenu(comboMenu, null, null, gapcloserMenu, interrupterMenu, null, mainMenu.CreateSubmenu("Ignite"), items, false);
            _comboProvider.CreateLaneclearMenu(laneClearMenu, false, SpellSlot.W);

            comboMenu.AddMItem("Q After Auto Attack", true, (sender, args) => _comboProvider.GetSkill <GarenQ>().OnlyAfterAuto   = args.GetNewValue <bool>());
            comboMenu.AddMItem("E After Auto Attack", true, (sender, args) => _comboProvider.GetSkill <GarenE>().OnlyAfterAuto   = args.GetNewValue <bool>());
            comboMenu.AddMItem("R Killsteal", false, (sender, args) => _comboProvider.GetSkill <GarenR>().Killsteal              = args.GetNewValue <bool>());
            comboMenu.AddMItem("Q if not in range", true, (sender, args) => _comboProvider.GetSkill <GarenQ>().UseWhenOutOfRange = args.GetNewValue <bool>());
            comboMenu.ProcStoredValueChanged <bool>();

            miscMenu.AddMItem("Also W out of combo", true, (sender, args) => _comboProvider.GetSkill <GarenW>().UseAlways = args.GetNewValue <bool>());
            miscMenu.AddMItem("Min incomming DPS for W in health %", new Slider(2, 1, 15), (sender, args) => _comboProvider.GetSkill <GarenW>().MinDamagePercent = args.GetNewValue <Slider>().Value).ProcStoredValueChanged <Slider>();
            miscMenu.AddMItem("Always W enemy ults", true, (sender, args) => _comboProvider.GetSkill <GarenW>().UseOnUltimates = args.GetNewValue <bool>());
            miscMenu.ProcStoredValueChanged <bool>();

            gapcloserMenu.AddMItem("(Using W if enabled)");

            laneClearMenu.AddMItem("E min. minions", new Slider(1, 1, 8), (sender, args) => _comboProvider.GetSkill <GarenE>().MinFarmMinions = args.GetNewValue <Slider>().Value).ProcStoredValueChanged <Slider>();
            laneClearMenu.AddMItem("Use Hydra", true, (sender, args) => _comboProvider.GetSkill <GarenE>().UseHydra = args.GetNewValue <bool>()).ProcStoredValueChanged <bool>();

            drawingMenu.AddMItem("Damage Indicator", new Circle(true, Color.FromArgb(100, Color.Goldenrod)), (sender, args) =>
            {
                DamageIndicator.DamageToUnit = _comboProvider.GetComboDamage;
                DamageIndicator.Enabled      = args.GetNewValue <Circle>().Active;
                DamageIndicator.FillColor    = args.GetNewValue <Circle>().Color;
                DamageIndicator.Fill         = true;
                DamageIndicator.Color        = Color.FromArgb(255, DamageIndicator.FillColor);
            });
            drawingMenu.AddMItem("R Range", new Circle(true, Color.Goldenrod), (sender, args) => _drawR = args.GetNewValue <Circle>());
            drawingMenu.AddMItem("Draw possible flash-ult", new Circle(true, Color.Red), (sender, args) => _drawFlashUlt = args.GetNewValue <Circle>());
            drawingMenu.AddMItem("Damage Indicator by xSalice!");
            drawingMenu.ProcStoredValueChanged <Circle>();

            mainMenu.AddMItem("Max order: R > E > Q > W! Have fun!");
            mainMenu.AddToMainMenu();
            _comboProvider.Initialize();

            Game.OnUpdate  += Tick;
            Drawing.OnDraw += Draw;
        }
Пример #15
0
 public override void Initialize(ComboProvider combo)
 {
     base.Initialize(combo);
     _twitchE = combo.GetSkill <TwitchE>();
 }
Пример #16
0
        public void Load(EventArgs eArgs)
        {
            _comboProvider = new ComboProvider(new Skill[] { new EkkoQ(new Spell(SpellSlot.Q)), new EkkoW(new Spell(SpellSlot.W)), new EkkoE(new Spell(SpellSlot.E)), new EkkoR(new Spell(SpellSlot.R)) }.ToList(), 1000);

            _mainMenu = CreateMenu("The Ekko", true);
            var orbwalkerMenu      = CreateMenu("Orbwalker", _mainMenu);
            var targetSelectorMenu = CreateMenu("Target Selector", _mainMenu);
            var comboMenu          = CreateMenu("Combo", _mainMenu);
            var harassMenu         = CreateMenu("Harass", _mainMenu);
            //var laneClear = CreateMenu("Laneclear", _mainMenu);
            var antiGapcloser = CreateMenu("Anti Gapcloser", _mainMenu);

            ManaManager.Initialize(_mainMenu, "Manamanager", true, false, false);
            IgniteManager.Initialize(_mainMenu);
            var drawingMenu = CreateMenu("Drawing", _mainMenu);
            var miscMenu    = CreateMenu("Misc", _mainMenu);

            _orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);
            TargetSelector.AddToMenu(targetSelectorMenu);

            comboMenu.AddMItem("Use Q", true, (sender, args) => _comboProvider.SetEnabled <EkkoQ>(Orbwalking.OrbwalkingMode.Combo, args.GetNewValue <bool>()));
            comboMenu.AddMItem("Use W", true, (sender, args) => _comboProvider.SetEnabled <EkkoW>(Orbwalking.OrbwalkingMode.Combo, args.GetNewValue <bool>()));
            comboMenu.AddMItem("Use E", true, (sender, args) => _comboProvider.SetEnabled <EkkoE>(Orbwalking.OrbwalkingMode.Combo, args.GetNewValue <bool>()));
            comboMenu.AddMItem("Use R", true, (sender, args) => _comboProvider.SetEnabled <EkkoR>(Orbwalking.OrbwalkingMode.Combo, args.GetNewValue <bool>()));
            comboMenu.ProcStoredValueChanged <bool>();
            comboMenu.AddMItem("Min Ult Enemies", new Slider(3, 1, HeroManager.Enemies.Count));
            comboMenu.AddMItem("Min Ult Health %", new Slider(30));
            comboMenu.AddMItem("Ult for Save", true);

            harassMenu.AddMItem("Use Q", true, (sender, args) => _comboProvider.SetEnabled <EkkoQ>(Orbwalking.OrbwalkingMode.Mixed, args.GetNewValue <bool>()));
            harassMenu.ProcStoredValueChanged <bool>();

            //laneClear.AddMItem("Use Q", true, (sender, args) => _comboProvider.SetEnabled<EkkoQ>(Orbwalking.OrbwalkingMode.LaneClear, args.GetNewValue<bool>()));
            //laneClear.ProcStoredValueChanged<bool>();
            ////laneClear.AddMItem("Min Q Farm", new Slider(4, 1, 10), (sender,args) => _comboProvider.GetSkill<EkkoQ>().MinFarm = args.GetNewValue<Slider>().Value);


            var gapcloserSpells = CreateMenu("Enemies");

            _comboProvider.AddGapclosersToMenu(gapcloserSpells);
            antiGapcloser.AddSubMenu(gapcloserSpells);
            antiGapcloser.AddMItem("W on Gapcloser", true, (sender, args) => _comboProvider.GetSkill <EkkoW>().AntiGapcloser = args.GetNewValue <bool>()).ProcStoredValueChanged <bool>();


            _drawQ   = drawingMenu.AddMItem("Draw Q", new Circle(true, Color.OrangeRed));
            _drawQEx = drawingMenu.AddMItem("Draw Q Ex", new Circle(false, Color.Yellow));
            _drawR   = drawingMenu.AddMItem("Draw R", new Circle(true, Color.Red));

            drawingMenu.AddMItem("Damage indicator", new Circle(true, Color.Yellow), (sender, args) =>
            {
                DamageIndicator.Enabled      = args.GetNewValue <Circle>().Active;
                DamageIndicator.Fill         = true;
                DamageIndicator.FillColor    = Color.FromArgb(100, args.GetNewValue <Circle>().Color);
                DamageIndicator.Color        = Color.FromArgb(200, DamageIndicator.FillColor);
                DamageIndicator.DamageToUnit = _comboProvider.GetComboDamage;
            }).ProcStoredValueChanged <Circle>();

            miscMenu.AddMItem("When clearing harass if enemy near", true, (sender, args) => _comboProvider.GetSkills().ToList().ForEach(skill => skill.SwitchClearToHarassOnTarget = args.GetNewValue <bool>()));

            _mainMenu.AddToMainMenu();


            Game.OnUpdate  += Update;
            Drawing.OnDraw += Draw;

            _comboProvider.Initialize(this);
        }
Пример #17
0
 public override void Initialize(ComboProvider combo)
 {
     _q = combo.GetSkill<CassQ>();
     _r = combo.GetSkill<CassR>();
     base.Initialize(combo);
 }
Пример #18
0
 public override void Initialize(ComboProvider combo)
 {
     _q = combo.GetSkill <GarenQ>();
     _r = combo.GetSkill <GarenR>();
     base.Initialize(combo);
 }
Пример #19
0
        public void Load(EventArgs eArgs)
        {
            _comboProvider = new ComboProvider(new Skill[] { new EkkoQ(new Spell(SpellSlot.Q)), new EkkoW(new Spell(SpellSlot.W)), new EkkoE(new Spell(SpellSlot.E)), new EkkoR(new Spell(SpellSlot.R)) }.ToList(), 1000);

            _mainMenu = CreateMenu("The Ekko", true);
            var orbwalkerMenu = CreateMenu("Orbwalker", _mainMenu);
            var targetSelectorMenu = CreateMenu("Target Selector", _mainMenu);
            var comboMenu = CreateMenu("Combo", _mainMenu);
            var harassMenu = CreateMenu("Harass", _mainMenu);
            //var laneClear = CreateMenu("Laneclear", _mainMenu);
            var antiGapcloser = CreateMenu("Anti Gapcloser", _mainMenu);
            ManaManager.Initialize(_mainMenu, "Manamanager", true, false, false);
            IgniteManager.Initialize(_mainMenu);
            var drawingMenu = CreateMenu("Drawing", _mainMenu);
            var miscMenu = CreateMenu("Misc", _mainMenu);

            _orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);
            TargetSelector.AddToMenu(targetSelectorMenu);

            comboMenu.AddMItem("Use Q", true, (sender, args) => _comboProvider.SetEnabled<EkkoQ>(Orbwalking.OrbwalkingMode.Combo, args.GetNewValue<bool>()));
            comboMenu.AddMItem("Use W", true, (sender, args) => _comboProvider.SetEnabled<EkkoW>(Orbwalking.OrbwalkingMode.Combo, args.GetNewValue<bool>()));
            comboMenu.AddMItem("Use E", true, (sender, args) => _comboProvider.SetEnabled<EkkoE>(Orbwalking.OrbwalkingMode.Combo, args.GetNewValue<bool>()));
            comboMenu.AddMItem("Use R", true, (sender, args) => _comboProvider.SetEnabled<EkkoR>(Orbwalking.OrbwalkingMode.Combo, args.GetNewValue<bool>()));
            comboMenu.ProcStoredValueChanged<bool>();
            comboMenu.AddMItem("Min Ult Enemies", new Slider(3, 1, HeroManager.Enemies.Count));
            comboMenu.AddMItem("Min Ult Health %", new Slider(30));
            comboMenu.AddMItem("Ult for Save", true);

            harassMenu.AddMItem("Use Q", true, (sender, args) => _comboProvider.SetEnabled<EkkoQ>(Orbwalking.OrbwalkingMode.Mixed, args.GetNewValue<bool>()));
            harassMenu.ProcStoredValueChanged<bool>();

            //laneClear.AddMItem("Use Q", true, (sender, args) => _comboProvider.SetEnabled<EkkoQ>(Orbwalking.OrbwalkingMode.LaneClear, args.GetNewValue<bool>()));
            //laneClear.ProcStoredValueChanged<bool>();
            ////laneClear.AddMItem("Min Q Farm", new Slider(4, 1, 10), (sender,args) => _comboProvider.GetSkill<EkkoQ>().MinFarm = args.GetNewValue<Slider>().Value);

            var gapcloserSpells = CreateMenu("Enemies");
            _comboProvider.AddGapclosersToMenu(gapcloserSpells);
            antiGapcloser.AddSubMenu(gapcloserSpells);
            antiGapcloser.AddMItem("W on Gapcloser", true, (sender, args) => _comboProvider.GetSkill<EkkoW>().AntiGapcloser = args.GetNewValue<bool>()).ProcStoredValueChanged<bool>();

            _drawQ = drawingMenu.AddMItem("Draw Q", new Circle(true, Color.OrangeRed));
            _drawQEx = drawingMenu.AddMItem("Draw Q Ex", new Circle(false, Color.Yellow));
            _drawR = drawingMenu.AddMItem("Draw R", new Circle(true, Color.Red));

            drawingMenu.AddMItem("Damage indicator", new Circle(true, Color.Yellow), (sender, args) =>
            {
                DamageIndicator.Enabled = args.GetNewValue<Circle>().Active;
                DamageIndicator.Fill = true;
                DamageIndicator.FillColor = Color.FromArgb(100, args.GetNewValue<Circle>().Color);
                DamageIndicator.Color = Color.FromArgb(200, DamageIndicator.FillColor);
                DamageIndicator.DamageToUnit = _comboProvider.GetComboDamage;
            }).ProcStoredValueChanged<Circle>();

            miscMenu.AddMItem("When clearing harass if enemy near", true, (sender, args) => _comboProvider.GetSkills().ToList().ForEach(skill => skill.SwitchClearToHarassOnTarget = args.GetNewValue<bool>()));

            _mainMenu.AddToMainMenu();

            Game.OnUpdate += Update;
            Drawing.OnDraw += Draw;

            _comboProvider.Initialize(this);
        }
Пример #20
0
        public void Load()
        {
            if (ObjectManager.Player.ChampionName != "Garen")
                return;
            Notifications.AddNotification("The Garen v2 loaded!", 3);

            var mainMenu = new Menu("The Garen", "The Garen", true);
            var orbwalkerMenu = mainMenu.CreateSubmenu("Orbwalker");
            var targetSelectorMenu = mainMenu.CreateSubmenu("Target Selector");
            var comboMenu = mainMenu.CreateSubmenu("Combo");
            var laneClearMenu = mainMenu.CreateSubmenu("Lane Clear");
            var miscMenu = mainMenu.CreateSubmenu("Misc");
            var items = mainMenu.CreateSubmenu("Items");
            var gapcloserMenu = mainMenu.CreateSubmenu("Gapcloser");
            var interrupterMenu = mainMenu.CreateSubmenu("Interrupter");
            var autoLevel = mainMenu.CreateSubmenu("Auto-level Spells");
            var drawingMenu = mainMenu.CreateSubmenu("Drawing");

            var orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);

            _comboProvider = new ComboProvider(500, new Skill[] { new GarenQ((SpellSlot.Q)), new GarenW((SpellSlot.W)), new GarenE((SpellSlot.E)), new GarenR((SpellSlot.R)) }.ToList(), orbwalker);
            _r = _comboProvider.GetSkill<GarenR>();
            _flash = ObjectManager.Player.Spellbook.Spells.FirstOrDefault(spell => spell.Name == "summonerflash");
            _comboProvider.CreateBasicMenu(targetSelectorMenu, comboMenu, null, null, null, gapcloserMenu, interrupterMenu, null, false);
            _comboProvider.CreateLaneclearMenu(laneClearMenu, false, SpellSlot.W);
            _comboProvider.GetSkill<GarenE>().ItemManager = _comboProvider.CreateItemsMenu(items, new RavenousHydra(), new BilgewaterCutlass(), new YoumusBlade(), new Botrk());
            _comboProvider.CreateAutoLevelMenu(autoLevel, ComboProvider.SpellOrder.REQW, ComboProvider.SpellOrder.REQW);

            comboMenu.AddMItem("Q after Auto Attack", true, (sender, args) => _comboProvider.GetSkill<GarenQ>().OnlyAfterAuto = args.GetNewValue<bool>());
            comboMenu.AddMItem("E after Auto Attack", true, (sender, args) => _comboProvider.GetSkill<GarenE>().OnlyAfterAuto = args.GetNewValue<bool>());
            comboMenu.AddMItem("Use R to KS", false, (sender, args) => _comboProvider.GetSkill<GarenR>().Killsteal = args.GetNewValue<bool>());
            comboMenu.AddMItem("Q to Get in Range", true, (sender, args) => _comboProvider.GetSkill<GarenQ>().UseWhenOutOfRange = args.GetNewValue<bool>());

            miscMenu.AddMItem("Use W Out of Combo", true, (sender, args) => _comboProvider.GetSkill<GarenW>().UseAlways = args.GetNewValue<bool>());
            miscMenu.AddMItem("Min. Incoming Damage for W in %HP", new Slider(2, 1, 15), (sender, args) => _comboProvider.GetSkill<GarenW>().MinDamagePercent = args.GetNewValue<Slider>().Value);
            miscMenu.AddMItem("Always W Enemy Ults", true, (sender, args) => _comboProvider.GetSkill<GarenW>().UseOnUltimates = args.GetNewValue<bool>());

            gapcloserMenu.AddMItem("(Use W if Enabled)");

            laneClearMenu.AddMItem("E if X Minions", new Slider(1, 1, 8), (sender, args) => _comboProvider.GetSkill<GarenE>().MinFarmMinions = args.GetNewValue<Slider>().Value);
            laneClearMenu.AddMItem("Use Hydra", true, (sender, args) => _comboProvider.GetSkill<GarenE>().UseHydra = args.GetNewValue<bool>());

            drawingMenu.AddMItem("Damage Indicator", new Circle(true, Color.FromArgb(100, Color.Goldenrod)), (sender, args) =>
            {
                DamageIndicator.DamageToUnit = _comboProvider.GetComboDamage;
                DamageIndicator.Enabled = args.GetNewValue<Circle>().Active;
                DamageIndicator.FillColor = args.GetNewValue<Circle>().Color;
                DamageIndicator.Fill = true;
                DamageIndicator.Color = Color.FromArgb(255, DamageIndicator.FillColor);
            });
            drawingMenu.AddMItem("Draw R Range", new Circle(true, Color.Goldenrod), (sender, args) => _drawR = args.GetNewValue<Circle>());
            drawingMenu.AddMItem("Draw Flash-R Indicator", new Circle(true, Color.Red), (sender, args) => _drawFlashUlt = args.GetNewValue<Circle>());
            drawingMenu.AddMItem("Damage Indicator by xSalice / detuks!");

            //mainMenu.AddMItem("Max order: R > E > Q > W! Have fun!");
            mainMenu.AddToMainMenu();
            _comboProvider.Initialize();
            //DevAssistant.Init();
            Game.OnUpdate += Tick;
            Drawing.OnDraw += Draw;
        }
Пример #21
0
        public void Load()
        {
            if (ObjectManager.Player.ChampionName != "Garen")
                return;
            Notifications.AddNotification("The Garen v2 loaded!", 3);

            var mainMenu = new Menu("The Garen", "The Garen", true);
            var orbwalkerMenu = mainMenu.CreateSubmenu("Orbwalker");
            var targetSelectorMenu = mainMenu.CreateSubmenu("Target Selector");
            var comboMenu = mainMenu.CreateSubmenu("Combo");
            var laneClearMenu = mainMenu.CreateSubmenu("Laneclear");
            var miscMenu = mainMenu.CreateSubmenu("Misc");
            var items = mainMenu.CreateSubmenu("Items");
            var gapcloserMenu = mainMenu.CreateSubmenu("Gapcloser");
            var interrupterMenu = mainMenu.CreateSubmenu("Interrupter");
            var drawingMenu = mainMenu.CreateSubmenu("Drawing");

            var orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);
            TargetSelector.AddToMenu(targetSelectorMenu);

            _comboProvider = new ComboProvider(500, new Skill[] { new GarenQ(new Spell(SpellSlot.Q)), new GarenW(new Spell(SpellSlot.W)), new GarenE(new Spell(SpellSlot.E)), new GarenR(new Spell(SpellSlot.R)) }.ToList(), orbwalker);
            _r = _comboProvider.GetSkill<GarenR>();
            _flash = ObjectManager.Player.Spellbook.Spells.FirstOrDefault(spell => spell.Name == "summonerflash");
            _comboProvider.CreateBasicMenu(comboMenu, null, null, gapcloserMenu, interrupterMenu, null, mainMenu.CreateSubmenu("Ignite"), items, false);
            _comboProvider.CreateLaneclearMenu(laneClearMenu, false, SpellSlot.W);

            comboMenu.AddMItem("Q After Auto Attack", true, (sender, args) => _comboProvider.GetSkill<GarenQ>().OnlyAfterAuto = args.GetNewValue<bool>());
            comboMenu.AddMItem("E After Auto Attack", true, (sender, args) => _comboProvider.GetSkill<GarenE>().OnlyAfterAuto = args.GetNewValue<bool>());
            comboMenu.AddMItem("R Killsteal", false, (sender, args) => _comboProvider.GetSkill<GarenR>().Killsteal = args.GetNewValue<bool>());
            comboMenu.AddMItem("Q if not in range", true, (sender, args) => _comboProvider.GetSkill<GarenQ>().UseWhenOutOfRange = args.GetNewValue<bool>());
            comboMenu.ProcStoredValueChanged<bool>();

            miscMenu.AddMItem("Also W out of combo", true, (sender, args) => _comboProvider.GetSkill<GarenW>().UseAlways = args.GetNewValue<bool>());
            miscMenu.AddMItem("Min incomming DPS for W in health %", new Slider(2, 1, 15), (sender, args) => _comboProvider.GetSkill<GarenW>().MinDamagePercent = args.GetNewValue<Slider>().Value).ProcStoredValueChanged<Slider>();
            miscMenu.AddMItem("Always W enemy ults", true, (sender, args) => _comboProvider.GetSkill<GarenW>().UseOnUltimates = args.GetNewValue<bool>());
            miscMenu.ProcStoredValueChanged<bool>();

            gapcloserMenu.AddMItem("(Using W if enabled)");

            laneClearMenu.AddMItem("E min. minions", new Slider(1, 1, 8), (sender, args) => _comboProvider.GetSkill<GarenE>().MinFarmMinions = args.GetNewValue<Slider>().Value).ProcStoredValueChanged<Slider>();
            laneClearMenu.AddMItem("Use Hydra", true, (sender, args) => _comboProvider.GetSkill<GarenE>().UseHydra = args.GetNewValue<bool>()).ProcStoredValueChanged<bool>();

            drawingMenu.AddMItem("Damage Indicator", new Circle(true, Color.FromArgb(100, Color.Goldenrod)), (sender, args) =>
            {
                DamageIndicator.DamageToUnit = _comboProvider.GetComboDamage;
                DamageIndicator.Enabled = args.GetNewValue<Circle>().Active;
                DamageIndicator.FillColor = args.GetNewValue<Circle>().Color;
                DamageIndicator.Fill = true;
                DamageIndicator.Color = Color.FromArgb(255, DamageIndicator.FillColor);
            });
            drawingMenu.AddMItem("R Range", new Circle(true, Color.Goldenrod), (sender, args) => _drawR = args.GetNewValue<Circle>());
            drawingMenu.AddMItem("Draw possible flash-ult", new Circle(true, Color.Red), (sender, args) => _drawFlashUlt = args.GetNewValue<Circle>());
            drawingMenu.AddMItem("Damage Indicator by xSalice!");
            drawingMenu.ProcStoredValueChanged<Circle>();

            mainMenu.AddMItem("Max order: R > E > Q > W! Have fun!");
            mainMenu.AddToMainMenu();
            _comboProvider.Initialize();

            Game.OnUpdate += Tick;
            Drawing.OnDraw += Draw;
        }