Пример #1
0
        private static void Game_OnStart(EventArgs args)
        {
            if (_Player.ChampionName == "Rengar")
            {
                Chat.Print("RengarHelper Loaded!", Color1.AliceBlue);
                Chat.Print("Made by Capitao Addon", Color1.LightBlue);
            }

            if (_Player.ChampionName != "Rengar")
            {
                Chat.Print("Y U NOT USING RENGO", Color1.Red);
                return;
            }

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

            Menu = MainMenu.AddMenu("RengarHelper", "rengoh");
            Menu.AddLabel("Made by Capitão Addon");

            DrawMenu = Menu.AddSubMenu("Drawings", "draws");
            DrawMenu.Add("ddd", new CheckBox("Disable draws"));
            DrawMenu.Add("fpsd", new CheckBox("High quality draws"));
            DrawMenu.Add("dw", new CheckBox("Draw W", false));
            DrawMenu.Add("de", new CheckBox("Draw E"));

            HelpMenu = Menu.AddSubMenu("Helper", "help");
            HelpMenu.Add("autoq", new CheckBox("Auto Q in mid air"));
            HelpMenu.Add("autow", new CheckBox("Auto W in mid air"));
            HelpMenu.Add("autoe", new CheckBox("Auto E in mid air"));
            HelpMenu.AddSeparator();
            HelpMenu.Add("autoe5", new KeyBind("Auto snare in mid air", false, KeyBind.BindTypes.PressToggle, 'J'));
            HelpMenu.Add("dautoe5", new CheckBox("Draw Auto snare in mid air"));

            ComboMenu = Menu.AddSubMenu("Combo", "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("q2combo", new Slider("Use empowered Q if target % health ", 30, 0, 100));
            ComboMenu.Add("w2combo", new Slider("Use empowered W if player % health ", 30, 0, 100));
            ComboMenu.Add("e2combo", new CheckBox("Use snare if enemy away"));
            HarassMenu = Menu.AddSubMenu("Harass", "har");
            HarassMenu.Add("hq", new CheckBox("Use Q in Harass"));
            HarassMenu.Add("hw", new CheckBox("Use W in Harass"));
            HarassMenu.Add("he", new CheckBox("Use E in Harass"));
            HarassMenu.AddSeparator();
            HarassMenu.Add("hpe", new CheckBox("Use empowered E"));
            HarassMenu.Add("ht", new KeyBind("Harass Toggle", false, KeyBind.BindTypes.PressToggle, 'L'));
            HarassMenu.Add("dht", new CheckBox("Draw Harass Toggle"));

            SkinMenu   = Menu.AddSubMenu("Skin Changer", "skins");
            SkinSelect = SkinMenu.Add("skint", new Slider("Skin", 2, 0, 3));

            _Player.SetSkinId(SkinMenu["skint"].Cast <Slider>().CurrentValue);
            SkinSelect.OnValueChange += delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs skiniddd)
            {
                _Player.SetSkinId(skiniddd.NewValue);
            };
        }