Beispiel #1
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (User.ChampionName != "Ezreal")
            {
                return;
            }

            Q = new Spell.Skillshot(spellSlot: SpellSlot.Q, spellRange: 1150, skillShotType: SkillShotType.Linear, castDelay: 250, spellSpeed: 2000, spellWidth: 60)
            {
                AllowedCollisionCount = 0
            };

            W = new Spell.Skillshot(spellSlot: SpellSlot.W, spellRange: 1000, skillShotType: SkillShotType.Linear, castDelay: 250, spellSpeed: 1550, spellWidth: 80)
            {
                AllowedCollisionCount = int.MaxValue
            };

            E = new Spell.Skillshot(spellSlot: SpellSlot.E, spellRange: 475, skillShotType: SkillShotType.Circular, castDelay: 250, spellSpeed: null, spellWidth: 750);

            R = new Spell.Skillshot(spellSlot: SpellSlot.R, spellRange: 3000, skillShotType: SkillShotType.Linear, castDelay: 1000, spellSpeed: 2000, spellWidth: 160)
            {
                AllowedCollisionCount = int.MaxValue
            };

            EzrealMenu = MainMenu.AddMenu("BSEzreal", "BSEzreal");

            ComboMenu = EzrealMenu.AddSubMenu("Combo");

            ComboMenu.Add("Q", new CheckBox("Use Q"));
            ComboMenu.Add("W", new CheckBox("Use W"));
            ComboMenu.Add("E", new CheckBox("Use E"));
            ComboMenu.Add("R", new CheckBox("Use R"));
            ComboMenu.Add("CQHitChance", new Slider("Q Hitchance for Combo: ", 3, 1, 5));
            ComboMenu.AddLabel("1 = Low 2 = Average 3 = Medium 4 = High 5 = Immobile");
            ComboMenu.Add("ManaCW", new Slider("Block W if Mana % is Below: ", 30, 0, 100));

            AutoHarassMenu = EzrealMenu.AddSubMenu("Auto Harass");

            AutoHarassMenu.Add("AQ", new CheckBox("Auto Q"));
            AutoHarassMenu.AddSeparator();
            AutoHarassMenu.Add("PriorityAutoH", new Slider("Use Auto Q only if Target Selector is >=: ", 4, 0, 5));
            AutoHarassMenu.Add("ManaAQ", new Slider("Mana % for Auto Q: ", 60, 0, 100));
            AutoHarassMenu.Add("AQHitChance", new Slider("Q Hitchance for Auto Harass: ", 4, 1, 5));
            AutoHarassMenu.AddLabel("1 = Low 2 = Average 3 = Medium 4 = High 5 = Immobile");

            HarassMenu = EzrealMenu.AddSubMenu("Harass");

            HarassMenu.Add("HQ", new CheckBox("Use Q"));
            HarassMenu.Add("HW", new CheckBox("Use W"));
            HarassMenu.Add("HQHitChance", new Slider("Q Hitchance for Harass: ", 4, 1, 5));
            HarassMenu.AddLabel("1 = Low 2 = Average 3 = Medium 4 = High 5 = Immobile");
            HarassMenu.Add("ManaHW", new Slider("Block W if Mana % is Below: ", 40, 0, 100));

            LastHitMenu = EzrealMenu.AddSubMenu("Farm");

            LastHitMenu.Add("LHQ", new CheckBox("Use Q to Last Hit"));
            LastHitMenu.Add("ManaLHQ", new Slider("Mana % for Last Hit Q: ", 70, 0, 100));
            LastHitMenu.Add("CanAutoLHQ", new CheckBox("Only if Orbwalker cannot kill minion"));

            DrawMenu = EzrealMenu.AddSubMenu("Draws");

            DrawMenu.Add("usedraw", new CheckBox("Enable Drawings", true));
            DrawMenu.Add("IfReady", new CheckBox("Draw Only If Spell is Ready", true));
            DrawMenu.AddSeparator(1);
            DrawMenu.Add("drawQ", new CheckBox(" Draw Q", true));
            DrawMenu.Add("drawW", new CheckBox(" Draw W", true));
            DrawMenu.Add("drawR", new CheckBox(" Draw R", false));

            if (DrawMenu["usedraw"].Cast <CheckBox>().CurrentValue)
            {
                Drawing.OnDraw += Game_OnDraw;
            }
            DrawMenu["usedraw"].Cast <CheckBox>().OnValueChange += (sender, vargs) =>
            {
                if (vargs.NewValue)
                {
                    Drawing.OnDraw += Game_OnDraw;
                }
                else
                {
                    Drawing.OnDraw -= Game_OnDraw;
                }
            };

            Game.OnTick += Game_OnTick;
        }