예제 #1
0
        private static void Game_OnStart(EventArgs args)
        {
            if (!_Player.ChampionName.ToLower().Contains("vayne"))
            {
                return;
            }

            Q = new Spell.Skillshot(SpellSlot.Q, int.MaxValue, SkillShotType.Linear);
            E = new Spell.Targeted(SpellSlot.E, 550);
            Condemn.ESpell = new Spell.Skillshot(SpellSlot.E, 550, SkillShotType.Linear, 250, 1200);
            R = new Spell.Active(SpellSlot.R);


            Menu = MainMenu.AddMenu("Crayz Vayne", "CrayzVayne");

            Menu.AddGroupLabel("Crayz Vayne");
            Menu.AddLabel("Version: " + "7.5.179.44");
            Menu.AddSeparator();
            Menu.AddLabel("By Crayz Turkis ;)");
            Menu.AddSeparator();
            Menu.AddLabel("Have Fun !");

            ComboMenu = Menu.AddSubMenu("Combo", "Combo");
            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.Add("useQCombo", new CheckBox("Use Q"));
            ComboMenu.Add("useQKite", new CheckBox("Use Q to Kite Melee", false));
            ComboMenu.Add("useECombo", new CheckBox("Use E (Execute)"));
            ComboMenu.AddLabel("R Settings");
            ComboMenu.Add("useRCombo", new CheckBox("Use R", false));
            ComboMenu.Add("noRUnderTurret", new CheckBox("Disable R if Target is under enemy turret"));

            CondemnPriorityMenu = Menu.AddSubMenu("Auto Condemn", "AutoCondemn");
            CondemnPriorityMenu.AddGroupLabel("Condemn Priority");
            foreach (var enem in ObjectManager.Get <AIHeroClient>().Where(a => a.IsEnemy))
            {
                var champValue = CondemnPriorityMenu.Add(enem.ChampionName + "priority",
                                                         new Slider(enem.ChampionName + ": ", 1, 1, 5));
                var enem1 = enem;
                champValue.OnValueChange += delegate
                {
                    champValue.DisplayName = enem1.ChampionName + ": " + PriorityValues[champValue.CurrentValue];
                };
                champValue.DisplayName = enem1.ChampionName + ": " + PriorityValues[champValue.CurrentValue];
            }
            CondemnPriorityMenu.AddSeparator();
            var sliderValue = CondemnPriorityMenu.Add("minSliderAutoCondemn",
                                                      new Slider("Min Priority for Auto Condemn: ", 2, 1, 5));

            sliderValue.OnValueChange += delegate
            {
                sliderValue.DisplayName = "Min Priority for Auto Condemn: " + PriorityValues[sliderValue.CurrentValue];
            };
            sliderValue.DisplayName = "Min Priority for Auto Condemn: " + PriorityValues[sliderValue.CurrentValue];
            CondemnPriorityMenu.Add("autoCondemnToggle",
                                    new KeyBind("Auto Condemn", false, KeyBind.BindTypes.PressToggle, 'H'));
            CondemnPriorityMenu.AddSeparator();

            CondemnMenu = Menu.AddSubMenu("Condemn", "Condemn");
            CondemnMenu.AddGroupLabel("Condemn Settings");
            CondemnMenu.AddSeparator();
            CondemnMenu.Add("pushDistance", new Slider("Push Distance", 410, 350, 420));
            CondemnMenu.Add("condemnPercent", new Slider("Condemn Percent", 33, 1));
            CondemnMenu.AddSeparator();
            CondemnMenu.AddLabel("Active Mode Settings");
            CondemnMenu.Add("smartVsCheap",
                            new CheckBox("On (saves fps) OFF (360 degree check)", true));
            CondemnMenu.AddSeparator();
            CondemnMenu.Add("condemnCombo", new CheckBox("Condemn in Combo", true));
            CondemnMenu.Add("condemnComboTrinket", new CheckBox("Trinket Bush After E", true));
            CondemnMenu.Add("condemnHarass", new CheckBox("Condemn in Harass", true));

            HarassMenu = Menu.AddSubMenu("Harass", "Harass");
            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.Add("useQHarass", new CheckBox("Use Q", true));

            FarmMenu = Menu.AddSubMenu("Farming", "Farming");
            FarmMenu.AddGroupLabel("Farming Settings");
            FarmMenu.Add("onlyTumbleToCursor", new CheckBox("Only Tumble To Cursor", false));
            FarmMenu.AddLabel("Last Hit");
            FarmMenu.Add("useQLastHit", new CheckBox("Use Q Last", true));
            FarmMenu.AddLabel("WaveClear");
            FarmMenu.Add("useQWaveClear", new CheckBox("Use Q WaveClear", true));

            DrawMenu = Menu.AddSubMenu("Misc Menu", "Misc");
            DrawMenu.AddGroupLabel("Draw Settings");
            DrawMenu.Add("drawERange", new CheckBox("Draw E Range", false));
            DrawMenu.Add("condemnVisualiser", new CheckBox("Draw Condemn", false));
            DrawMenu.Add("drawStacks", new CheckBox("Draw W Stacks", false));
            DrawMenu.AddLabel("Misc");
            DrawMenu.Add("wallJumpKey", new KeyBind("Tumble Walls", false, KeyBind.BindTypes.HoldActive, 'Z'));
            DrawMenu.Add("condemnNextAA", new KeyBind("Condemn Next AA", false, KeyBind.BindTypes.PressToggle, 'E'));
            DrawMenu.AddLabel("Anti-Champions");
            DrawMenu.Add("antiKalista", new CheckBox("Anti-Kalista"));
            DrawMenu.Add("antiRengar", new CheckBox("Anti-Rengar"));

            InterruptorMenu = Menu.AddSubMenu("Interrupter", "Interrupter");
            InterruptorMenu.AddGroupLabel("Interrupter Menu");
            InterruptorMenu.Add("enableInterrupter", new CheckBox("Enable Interrupter"));
            InterruptorMenu.AddSeparator();
            var dangerSlider        = InterruptorMenu.Add("dangerLevel", new Slider("Set Your Danger Level: ", 3, 1, 3));
            var dangerSliderDisplay = InterruptorMenu.Add("dangerLevelDisplay",
                                                          new Label("Danger Level: " + DangerSliderValues[dangerSlider.Cast <Slider>().CurrentValue - 1]));

            dangerSlider.Cast <Slider>().OnValueChange += delegate
            {
                dangerSliderDisplay.Cast <Label>().DisplayName =
                    "Danger Level: " + DangerSliderValues[dangerSlider.Cast <Slider>().CurrentValue - 1];
            };

            GapCloserMenu = Menu.AddSubMenu("Anti-GapClosers", "Anti-GapClosers");
            GapCloserMenu.AddGroupLabel("Anti-GapCloser Menu");
            GapCloserMenu.Add("enableGapCloser", new CheckBox("Enable Anti-GapCloser"));

            Orbwalker.OnPreAttack            += Events.Orbwalker_OnPreAttack;
            Game.OnUpdate                    += Game_OnUpdate;
            Drawing.OnDraw                   += Drawing_OnDraw;
            Gapcloser.OnGapcloser            += Events.Gapcloser_OnGapCloser;
            Interrupter.OnInterruptableSpell += Events.Interrupter_OnInterruptableSpell;
            Obj_AI_Base.OnProcessSpellCast   += AIHeroClient_OnProcessSpellCast;
            Obj_AI_Base.OnSpellCast          += Obj_AI_Base_OnSpellCast;
            Obj_AI_Base.OnBasicAttack        += Events.ObjAiBaseOnOnBasicAttack;
            GameObject.OnCreate              += Events.GameObject_OnCreate;
        }
예제 #2
0
        public void LoadMiscMenu(AzirMain azir)
        {
            List <String> spellsin = new List <string>();

            foreach (AIHeroClient hero in HeroManager.Enemies)
            {
                for (int i = 0; i < 4; i++)
                {
                    //  hero.GetSpell(Trans(i)).Name;
                    foreach (String s in azir.Interrupt)
                    {
                        if (s == hero.GetSpell(azir.Trans(i)).Name)
                        {
                            spellsin.Add("[" + hero.ChampionName + "]" + s);
                        }
                    }
                }
            }
            azir.InterruptSpell = spellsin;
            int num           = 0;
            var interruptMenu = GetMenu.AddSubMenu("Spell Interrupt", "R Interrupt spells");

            {
                interruptMenu.Add("UseRInterrupt", new CheckBox("Use R Interrupt"));
                foreach (String s in spellsin)
                {
                    interruptMenu.Add("S" + num, new CheckBox(s));
                    num++;
                }
            }
            azir.InterruptNum = num;
            List <String> spellgap = new List <string>();

            foreach (AIHeroClient hero in HeroManager.Enemies)
            {
                for (int i = 0; i < 4; i++)
                {
                    foreach (String s in azir.Gapcloser)
                    {
                        if (s == hero.GetSpell(azir.Trans(i)).Name)
                        {
                            spellgap.Add("[" + hero.ChampionName + "]" + s);
                        }
                    }
                }
            }
            int numg = 0;

            azir.InterruptSpell = spellgap;
            GapCloserMenu       = GetMenu.AddSubMenu("Spell Gapcloser", "R to Gapcloser");
            {
                GapCloserMenu.Add("UseRGapcloser", new CheckBox("Use R Gapcloser"));
                foreach (String s in spellgap)
                {
                    GapCloserMenu.Add("G" + numg, new CheckBox(s));
                    numg++;
                }
            }
            numg      = azir.GapcloserNum;
            _miscMenu = GetMenu.AddSubMenu("Misc", "Harash Menu");
            {
                _miscMenu.Add("FMJ", new CheckBox("Max Range Jump Only"));
                _miscMenu.Add("ARUT", new CheckBox("auto R under the Turret"));
            }
        }