示例#1
0
        static Viktor()
        {
            Q = new Spell.Targeted(SpellSlot.Q, 670);
            W = new Spell.Skillshot(SpellSlot.W, 700, SkillShotType.Circular, 500, int.MaxValue, 250)
            {
                AllowedCollisionCount = int.MaxValue
            };
            E = new Spell.Skillshot(SpellSlot.E, 1225, SkillShotType.Linear, 250, int.MaxValue, 100)
            {
                AllowedCollisionCount = int.MaxValue
            };
            R = new Spell.Skillshot(SpellSlot.R, 700, SkillShotType.Circular, 250, int.MaxValue, 450)
            {
                AllowedCollisionCount = int.MaxValue
            };
            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            SpellList.ForEach(
                i =>
            {
                ComboMenu.CreateCheckBox(i.Slot, "Use " + i.Slot);
                if (i != R && i != W)
                {
                    HarassMenu.CreateCheckBox(i.Slot, "Use " + i.Slot);
                    HarassMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60);
                    HarassMenu.AddSeparator(0);
                    LaneClearMenu.CreateCheckBox(i.Slot, "Use " + i.Slot);
                    LaneClearMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60);
                    LaneClearMenu.AddSeparator(0);
                }
                KillStealMenu.CreateCheckBox(i.Slot, i.Slot + " KillSteal");
            });

            AutoMenu.Add("Wmode", new ComboBox("GapCloser W Mode", 1, "Place On Self", "Place On Enemy"));
            AutoMenu.CreateCheckBox("GapW", "Auto W Anti-GapCloser");
            AutoMenu.CreateCheckBox("IntW", "Auto W Interrupter");
            AutoMenu.CreateCheckBox("IntR", "Auto R Interrupter");
            AutoMenu.CreateCheckBox("Qunk", "Auto Q UnKillable Minions");

            ComboMenu.CreateSlider("RAOE", "R AoE Hit Count {0}", 2, 1, 6);
            ComboMenu.CreateSlider("RMulti", "Mutilply R Damage By X{0} Times", 3, 1, 10);

            LaneClearMenu.CreateSlider("Ehits", "E Hit Count {0}", 3, 1, 20);

            Obj_AI_Base.OnProcessSpellCast   += Obj_AI_Base_OnProcessSpellCast;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
            Orbwalker.OnUnkillableMinion     += Orbwalker_OnUnkillableMinion;
        }
示例#2
0
        static void OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Nami")
            {
                return;
            }

            Bilgewater  = new Item(3144, 550);
            Randuin     = new Item(3143, 500);
            Glory       = new Item(3800);
            QSS         = new Item(3140);
            FOTMountain = new Item(3401);
            Mikael      = new Item(3222, 750);
            IronSolari  = new Item(3190, 600);

            menu      = MainMenu.AddMenu("Perfect Nami", "PerfectNami");
            ComboMenu = menu.AddSubMenu("Kombo Ayarları", "ComboMenu");
            ComboMenu.Add("ComboUseQ", new CheckBox("Kullan Q"));
            ComboMenu.Add("ComboUseW", new CheckBox("Kullan W"));
            ComboMenu.Add("ComboUseE", new CheckBox("Kullan E"));
            ComboMenu.Add("ComboUseR", new CheckBox("Kullan R"));

            HarassMenu = menu.AddSubMenu("Dürtme Ayarları", "HarassMenu");
            HarassMenu.Add("HarassUseQ", new CheckBox("Kullan Q"));
            HarassMenu.Add("HarassUseW", new CheckBox("Kullan W"));
            HarassMenu.Add("HarassUseE", new CheckBox("Kullan E"));

            AutoMenu = menu.AddSubMenu("Otomatik Ayarları", "AutoMenu");
            AutoMenu.Add("AutoW", new CheckBox("W Kullan can için)"));
            AutoMenu.Add("AutoWV", new Slider("Dostların Canı < % ", 50, 1, 100));
            AutoMenu.Add("ManaToW", new Slider("Manam <  %", 30, 1, 100));
            AutoMenu.Add("AutoR", new CheckBox("Otomatik R"));
            AutoMenu.Add("AutoRCount", new Slider("otomatik R için say >= ", 3, 1, 5));
            AutoMenu.Add("useItems", new CheckBox("İtemleri Kullan"));
            AutoMenu.AddLabel("Mikail, Dağın Sureti, Glory, Randuin, Solarinin Broşu");
            AutoMenu.Add("AutoQInterrupt", new CheckBox("Otomatik Q Interrupt"));
            AutoMenu.AddLabel("e.g Katarina R");
            AutoMenu.Add("gapcloser", new CheckBox("Otomatik Q Gapcloser"));
            AutoMenu.Add("interrupter", new CheckBox("Otomatik Q Interrupter"));

            DrawMenu = menu.AddSubMenu("Göstergeler", "DrawMenu");
            DrawMenu.Add("DrawAA", new CheckBox("Göster AA"));
            DrawMenu.Add("DrawQ", new CheckBox("Göster Q"));
            DrawMenu.Add("DrawW", new CheckBox("Göster W"));
            DrawMenu.Add("DrawE", new CheckBox("Göster E"));
            DrawMenu.Add("DrawR", new CheckBox("Göster R"));

            Game.OnTick    += Game_OnTick;
            Drawing.OnDraw += Drawing_OnDraw;
            AIHeroClient.OnProcessSpellCast  += AIHeroClient_OnProcessSpellCast;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapCloser;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
        }
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (user == null || user.Hero != Champion.Kled)
            {
                return;
            }

            Q = new Spell.Skillshot(SpellSlot.Q, 750, SkillShotType.Linear, 250, 3000, 40)
            {
                AllowedCollisionCount = 0
            };
            E = new Spell.Skillshot(SpellSlot.E, 550, SkillShotType.Linear, 250, 950, 100)
            {
                AllowedCollisionCount = int.MaxValue
            };

            MenuIni       = MainMenu.AddMenu("KappaKled", "KappaKled");
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            AutoMenu.Add("GapQkled", new CheckBox("Rakibe Yaklaşma/Uzaklaşma için Q (Kled)"));
            AutoMenu.Add("GapQskaarl", new CheckBox("Rakibe Yaklaşma/Uzaklaşma için Q (Skaarl)"));

            ComboMenu.Add("Q", new CheckBox("Kullan Q"));
            ComboMenu.Add("selectedQ", new CheckBox("Qyu sadece seçilen hedefe Kullan (Skaarl)", false));
            ComboMenu.Add("E", new CheckBox("Kullan E"));
            ComboMenu.Add("E2mouse", new CheckBox("E2'yi mouse'a doğru Kullan", false));
            ComboMenu.Add("E2ally", new CheckBox("E2 Dostlara doğru Kullan"));

            HarassMenu.Add("Q", new CheckBox("Kullan Q"));
            HarassMenu.Add("E", new CheckBox("Kullan E"));


            KillStealMenu.Add("Q", new CheckBox("Kullan Q"));
            KillStealMenu.Add("E", new CheckBox("Kullan E"));

            State.Init();
            Modes.Base.Init();
            Game.OnTick += Game_OnTick;
            //Drawing.OnDraw += Drawing_OnDraw;
        }
示例#4
0
        static Viktor()
        {
            MenuIni       = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu      = MenuIni.AddSubMenu("Auto");
            ComboMenu     = MenuIni.AddSubMenu("Combo");
            HarassMenu    = MenuIni.AddSubMenu("Harass");
            LaneClearMenu = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu = MenuIni.AddSubMenu("KillSteal");

            SpellList.ForEach(
                i =>
            {
                ComboMenu.CreateCheckBox(i.Slot, "Use " + i.Slot);
                if (i != R && i != W)
                {
                    HarassMenu.CreateCheckBox(i.Slot, "Use " + i.Slot);
                    HarassMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60);
                    HarassMenu.AddSeparator(0);
                    LaneClearMenu.CreateCheckBox(i.Slot, "Use " + i.Slot);
                    LaneClearMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60);
                    LaneClearMenu.AddSeparator(0);
                }
                KillStealMenu.CreateCheckBox(i.Slot, i.Slot + " KillSteal");
            });

            AutoMenu.Add("Wmode", new ComboBox("GapCloser W Mode", 1, "Place On Self", "Place On Enemy"));
            AutoMenu.CreateCheckBox("GapW", "Auto W Anti-GapCloser");
            AutoMenu.CreateCheckBox("IntW", "Auto W Interrupter");
            AutoMenu.CreateCheckBox("IntR", "Auto R Interrupter");
            AutoMenu.CreateCheckBox("Qunk", "Auto Q UnKillable Minions");

            ComboMenu.CreateSlider("RAOE", "R AoE Hit Count {0}", 2, 1, 6);
            ComboMenu.CreateSlider("RMulti", "Mutilply R Damage By X{0} Times", 3, 1, 10);

            LaneClearMenu.CreateSlider("Ehits", "E Hit Count {0}", 3, 1, 20);

            Obj_AI_Base.OnProcessSpellCast   += Obj_AI_Base_OnProcessSpellCast;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
            Orbwalker.OnUnkillableMinion     += Orbwalker_OnUnkillableMinion;
            GameObject.OnCreate += GameObject_OnCreate;
            GameObject.OnDelete += GameObject_OnDelete;
        }
示例#5
0
文件: Azir.cs 项目: jitart/adc
        static Azir()
        {
            try
            {
                Q = new Spell.Skillshot(SpellSlot.Q, 1000, SkillShotType.Linear, 250, 1000, 65)
                {
                    AllowedCollisionCount = int.MaxValue
                };
                W = new Spell.Skillshot(SpellSlot.W, 525, SkillShotType.Circular);
                E = new Spell.Skillshot(SpellSlot.E, 1100, SkillShotType.Linear, 250, 1200, 80)
                {
                    AllowedCollisionCount = int.MaxValue
                };
                R = new Spell.Skillshot(SpellSlot.R, 350, SkillShotType.Linear, 500, 1000, 220)
                {
                    AllowedCollisionCount = int.MaxValue
                };

                if (Player.Spells.FirstOrDefault(o => o.SData.Name.Contains("SummonerFlash")) != null)
                {
                    Flash = new Spell.Skillshot(user.GetSpellSlotFromName("SummonerFlash"), 450, SkillShotType.Circular);
                }

                SpellList.Add(Q);
                SpellList.Add(W);
                SpellList.Add(E);
                SpellList.Add(R);

                Menuini         = MainMenu.AddMenu("KappAzir", "KappAzir");
                AutoMenu        = Menuini.AddSubMenu("Auto Settings");
                JumperMenu      = Menuini.AddSubMenu("Jumper Settings");
                ComboMenu       = Menuini.AddSubMenu("Combo Settings");
                HarassMenu      = Menuini.AddSubMenu("Harass Settings");
                LaneClearMenu   = Menuini.AddSubMenu("LaneClear Settings");
                JungleClearMenu = Menuini.AddSubMenu("JungleClear Settings");
                KillStealMenu   = Menuini.AddSubMenu("KillSteal Settings");
                DrawMenu        = Menuini.AddSubMenu("Drawings Settings");
                ColorMenu       = Menuini.AddSubMenu("ColorPicker");

                foreach (var spell in SpellList.Where(s => s != E))
                {
                    Menuini.Add(spell.Slot + "hit", new ComboBox(spell.Slot + " HitChance", 0, "High", "Medium", "Low"));
                    Menuini.AddSeparator(0);
                }

                AutoMenu.AddGroupLabel("Settings");
                AutoMenu.Add("gap", new CheckBox("Anti-GapCloser"));
                AutoMenu.Add("int", new CheckBox("Interrupter"));
                AutoMenu.Add("Danger", new ComboBox("Interrupter DangerLevel", 1, "High", "Medium", "Low"));
                AutoMenu.AddGroupLabel("Turret Settings");
                AutoMenu.Add("tower", new CheckBox("Create Turrets"));
                AutoMenu.Add("Tenemy", new Slider("Create Turret If [{0}] Enemies Near", 3, 1, 6));
                if (EntityManager.Heroes.Enemies.Any(e => e.Hero == Champion.Rengar))
                {
                    AutoMenu.Add("rengar", new CheckBox("Anti-Rengar Leap"));
                }

                JumperMenu.Add("jump", new KeyBind("WEQ Flee Key", false, KeyBind.BindTypes.HoldActive, 'A'));
                JumperMenu.Add("normal", new KeyBind("Normal Insec Key", false, KeyBind.BindTypes.HoldActive, 'S'));
                JumperMenu.Add("new", new KeyBind("New Insec Key", false, KeyBind.BindTypes.HoldActive, 'Z'));
                JumperMenu.Add("flash", new CheckBox("Use Flash for Possible AoE"));
                JumperMenu.Add("delay", new Slider("Delay EQ", 200, 0, 500));
                JumperMenu.Add("range", new Slider("Check for soldiers Range", 800, 0, 1000));

                ComboMenu.AddGroupLabel("Combo Settings");
                ComboMenu.AddGroupLabel("Q Settings");
                ComboMenu.Add("Q", new CheckBox("Use Q"));
                ComboMenu.Add("WQ", new CheckBox("Use W > Q"));
                ComboMenu.Add("Qaoe", new CheckBox("Use Q Aoe", false));
                ComboMenu.Add("QS", new Slider("Soldiers To Use Q", 1, 1, 3));
                ComboMenu.AddSeparator(0);
                ComboMenu.AddGroupLabel("W Settings");
                ComboMenu.Add("W", new CheckBox("Use W"));
                ComboMenu.Add("Wsave", new CheckBox("Save 1 W Stack", false));
                ComboMenu.Add("WS", new Slider("Soldier Limit To Create", 3, 1, 3));
                ComboMenu.AddSeparator(0);
                ComboMenu.AddGroupLabel("E Settings");
                ComboMenu.Add("E", new CheckBox("Use E"));
                ComboMenu.Add("Ekill", new CheckBox("E Killable Enemy Only"));
                ComboMenu.Add("Edive", new CheckBox("E Dive Turrets", false));
                ComboMenu.Add("EHP", new Slider("Only E if my HP is more than [{0}%]", 50));
                ComboMenu.Add("Esafe", new Slider("Dont E Into [{0}] Enemies", 3, 1, 6));
                ComboMenu.AddSeparator(0);
                ComboMenu.AddGroupLabel("R Settings");
                ComboMenu.Add("R", new CheckBox("Use R"));
                ComboMenu.Add("Rkill", new CheckBox("R Finisher"));
                ComboMenu.Add("insec", new CheckBox("Try to insec in Combo"));
                ComboMenu.Add("Raoe", new Slider("R AoE Hit [{0}] Enemies", 3, 1, 6));
                ComboMenu.Add("Rsave", new CheckBox("R Save Self"));
                ComboMenu.Add("RHP", new Slider("Push Enemy If my health is less than [{0}%]", 35));

                HarassMenu.AddGroupLabel("Harass Settings");
                HarassMenu.Add("toggle", new KeyBind("Auto Harass Key", false, KeyBind.BindTypes.PressToggle, 'H'));
                HarassMenu.AddSeparator(0);
                HarassMenu.AddGroupLabel("Q Settings");
                HarassMenu.Add("Q", new CheckBox("Use Q"));
                HarassMenu.Add("WQ", new CheckBox("Use W > Q"));
                HarassMenu.Add("QS", new Slider("Soldiers To Use Q", 1, 1, 3));
                HarassMenu.Add(Q.Slot + "mana", new Slider("Stop using Q if Mana < [{0}%]", 65));
                HarassMenu.AddSeparator(0);
                HarassMenu.AddGroupLabel("W Settings");
                HarassMenu.Add("W", new CheckBox("Use W"));
                HarassMenu.Add("Wsave", new CheckBox("Save 1 W Stack"));
                HarassMenu.Add("WS", new Slider("Soldier Limit To Create", 3, 1, 3));
                HarassMenu.Add(W.Slot + "mana", new Slider("Stop using W if Mana < [{0}%]", 65));
                HarassMenu.AddSeparator(0);
                HarassMenu.AddGroupLabel("E Settings");
                HarassMenu.Add("E", new CheckBox("Use E"));
                HarassMenu.Add("Edive", new CheckBox("E Dive Turrets", false));
                HarassMenu.Add("EHP", new Slider("Only E if my HP is more than [{0}%]", 50));
                HarassMenu.Add("Esafe", new Slider("Dont E Into [{0}] Enemies", 3, 1, 6));
                HarassMenu.Add(E.Slot + "mana", new Slider("Stop using E if Mana < [{0}%]", 65));

                LaneClearMenu.AddGroupLabel("LaneClear Settings");
                LaneClearMenu.Add("Q", new CheckBox("Use Q"));
                LaneClearMenu.Add(Q.Slot + "mana", new Slider("Stop using Q if Mana < [{0}%]", 65));
                LaneClearMenu.Add("W", new CheckBox("Use W"));
                LaneClearMenu.Add("Wsave", new CheckBox("Save 1 W Stack"));
                LaneClearMenu.Add(W.Slot + "mana", new Slider("Stop using W if Mana < [{0}%]", 65));

                JungleClearMenu.AddGroupLabel("JungleClear Settings");
                JungleClearMenu.Add("Q", new CheckBox("Use Q"));
                JungleClearMenu.Add(Q.Slot + "mana", new Slider("Stop using Q if Mana < [{0}%]", 65));
                JungleClearMenu.Add("W", new CheckBox("Use W"));
                JungleClearMenu.Add("Wsave", new CheckBox("Save 1 W Stack"));
                JungleClearMenu.Add(W.Slot + "mana", new Slider("Stop using W if Mana < [{0}%]", 65));

                KillStealMenu.AddGroupLabel("Stealer Settings");
                foreach (var spell in SpellList.Where(s => s != W && s != E))
                {
                    KillStealMenu.Add(spell.Slot + "ks", new CheckBox("KillSteal " + spell.Slot));
                    KillStealMenu.Add(spell.Slot + "js", new CheckBox("JungleSteal " + spell.Slot));
                }

                DrawMenu.Add("damage", new CheckBox("Draw Combo Damage"));
                DrawMenu.AddLabel("Draws = ComboDamage / Enemy Current Health");
                DrawMenu.AddSeparator(1);
                foreach (var spell in SpellList)
                {
                    DrawMenu.Add(spell.Slot.ToString(), new CheckBox(spell.Slot + " Range"));
                    ColorMenu.Add(spell.Slot.ToString(), new ColorPicker(spell.Slot + " Color", System.Drawing.Color.Chartreuse));
                }

                DrawMenu.Add("insec", new CheckBox("Draw Insec Helpers"));

                Obj_AI_Base.OnProcessSpellCast   += Obj_AI_Base_OnProcessSpellCast;
                Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
                Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
                GameObject.OnCreate   += GameObject_OnCreate;
                Orbwalker.OnPreAttack += Orbwalker_OnPreAttack;
            }
            catch (Exception e)
            {
                Common.Logger.Error(e.ToString());
            }
        }
示例#6
0
文件: Zilean.cs 项目: tekintr/AIO
        protected override void CreateMenu()
        {
            try
            {
                #region Mainmenu
                Menu = MainMenu.AddMenu("UB" + player.Hero, "UBAddons.MainMenu" + player.Hero, "UB" + player.Hero + " - UBAddons - by U.Boruto");
                Menu.AddGroupLabel("General Setting");
                Menu.CreatSlotHitChance(SpellSlot.Q, 60);

                #endregion

                #region R
                AutoMenu = Menu.AddSubMenu("R", "UBAddons.RMenu" + player.Hero, "Settings your R saver below");
                {
                    string BeginText = Variables.AddonName + "." + Player.Instance.Hero + ".Saver.";
                    AutoMenu.Add(BeginText + "Enable", new CheckBox("Use R"));
                    AutoMenu.AddSeparator();
                    foreach (var champ in EntityManager.Heroes.Allies)
                    {
                        AutoMenu.Add(BeginText + "Enable." + champ.Hero, new CheckBox("Use on " + champ.ChampionName));
                        AutoMenu.Add(BeginText + "Prediction." + champ.Hero, new CheckBox("Use Prediction"));
                        AutoMenu.Add(BeginText + "HP." + champ.Hero, new Slider("Use R if " + champ.ChampionName + "'s HP below {0}%", 20, 0, 100));
                        AutoMenu.Add(BeginText + "Priority." + champ.Hero, new Slider(champ.ChampionName + "'s priority", CrazyTargetSelector.GetPriority(champ), 1, 5));
                        AutoMenu.AddSeparator();
                    }
                }
                #endregion

                #region Combo
                ComboMenu = Menu.AddSubMenu("Combo", "UBAddons.ComboMenu" + player.Hero, "Settings your combo below");
                {
                    ComboMenu.CreatSlotCheckBox(SpellSlot.Q);
                    ComboMenu.CreatSlotCheckBox(SpellSlot.W);
                    ComboMenu.CreatSlotCheckBox(SpellSlot.E);
                    ComboMenu.CreatSlotComboBox(SpellSlot.E, 0, "Smart", "Slow", "Speed");
                }
                #endregion

                #region Harass
                HarassMenu = Menu.AddSubMenu("Harass", "UBAddons.HarassMenu" + player.Hero, "Settings your harass below");
                {
                    HarassMenu.CreatSlotCheckBox(SpellSlot.Q);
                    HarassMenu.CreatSlotCheckBox(SpellSlot.W);
                    HarassMenu.CreatSlotCheckBox(SpellSlot.E);
                    HarassMenu.CreatManaLimit();
                    HarassMenu.CreatHarassKeyBind();
                }
                #endregion

                #region LaneClear
                LaneClearMenu = Menu.AddSubMenu("LaneClear", "UBAddons.LaneClear" + player.Hero, "Settings your laneclear below");
                {
                    LaneClearMenu.CreatLaneClearOpening();
                    LaneClearMenu.CreatSlotCheckBox(SpellSlot.Q, null, false);
                    LaneClearMenu.CreatSlotCheckBox(SpellSlot.W, null, false);
                    LaneClearMenu.CreatManaLimit();
                }
                #endregion

                #region JungleClear
                JungleClearMenu = Menu.AddSubMenu("JungleClear", "UBAddons.JungleClear" + player.Hero, "Settings your jungleclear below");
                {
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.Q);
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.W, null, false);
                    JungleClearMenu.CreatManaLimit();
                }
                #endregion

                #region Misc
                MiscMenu = Menu.AddSubMenu("Misc", "UBAddons.Misc" + player.Hero, "Settings your misc below");
                {
                    MiscMenu.AddGroupLabel("Anti Gapcloser settings");
                    MiscMenu.CreatMiscGapCloser();
                    MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "GapCloser");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.W, "GapCloser");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.E, "GapCloser");
                    MiscMenu.AddGroupLabel("Interrupter settings");
                    MiscMenu.CreatDangerValueBox();
                    MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "Interrupter");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.W, "Interrupter");
                    MiscMenu.AddGroupLabel("Killsteal settings");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "KillSteal");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.W, "KillSteal");
                }
                #endregion

                #region Drawings
                DrawMenu = Menu.AddSubMenu("Drawings", "UBAddons.Drawings" + player.Hero, "Settings your drawings below");
                {
                    DrawMenu.CreatDrawingOpening();
                    DrawMenu.CreatColorPicker(SpellSlot.Q);
                    DrawMenu.CreatColorPicker(SpellSlot.E);
                    DrawMenu.CreatColorPicker(SpellSlot.R);
                    DrawMenu.CreatColorPicker(SpellSlot.Unknown);
                }
                #endregion

                DamageIndicator.Initalize(MenuValue.Drawings.ColorDmg);
            }
            catch (Exception exception)
            {
                Debug.Print(exception.ToString(), Console_Message.Error);
            }
        }
示例#7
0
文件: Jhin.cs 项目: spall9/KappAIO
        static Jhin()
        {
            Q = new Spell.Targeted(SpellSlot.Q, 600)
            {
                DamageType = DamageType.Physical
            };
            W = new Spell.Skillshot(SpellSlot.W, 2500, SkillShotType.Linear, 750, 5000, 40)
            {
                AllowedCollisionCount = -1, DamageType = DamageType.Physical
            };
            E = new Spell.Skillshot(SpellSlot.E, 750, SkillShotType.Circular, 250, 1600, 300)
            {
                DamageType = DamageType.Magical
            };
            R = new Spell.Skillshot(SpellSlot.R, 3500, SkillShotType.Linear, 200, 4500, 80)
            {
                AllowedCollisionCount = -1, DamageType = DamageType.Physical
            };
            SpellList.Add(Q);
            SpellList.Add(E);
            SpellList.Add(W);
            //SpellList.Add(R);

            EntityManager.Heroes.Enemies.ForEach(e => StalkedEnemies.Add(new StalkEnemies(e, Core.GameTickCount, e.ServerPosition)));

            MenuIni         = MainMenu.AddMenu(MenuName, MenuName);
            AutoMenu        = MenuIni.AddSubMenu("Auto");
            ComboMenu       = MenuIni.AddSubMenu("Combo");
            HarassMenu      = MenuIni.AddSubMenu("Harass");
            JungleClearMenu = MenuIni.AddSubMenu("JungleClear");
            LaneClearMenu   = MenuIni.AddSubMenu("LaneClear");
            KillStealMenu   = MenuIni.AddSubMenu("KillSteal");
            DrawMenu        = MenuIni.AddSubMenu("Drawings");

            SpellList.ForEach(
                i =>
            {
                ComboMenu.CreateCheckBox(i.Slot, "Use " + i.Slot);
                HarassMenu.CreateCheckBox(i.Slot, "Use " + i.Slot);
                HarassMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60);
                HarassMenu.AddSeparator(0);
                LaneClearMenu.CreateCheckBox(i.Slot, "Use " + i.Slot);
                LaneClearMenu.CreateSlider(i.Slot + "hit", i.Slot + " Hit {0} Minions", 3, 1, 20);
                LaneClearMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60);
                LaneClearMenu.AddSeparator(0);
                JungleClearMenu.CreateCheckBox(i.Slot, "Use " + i.Slot);
                JungleClearMenu.CreateSlider(i.Slot + "mana", i.Slot + " Mana Manager {0}%", 60);
                JungleClearMenu.AddSeparator(0);
                KillStealMenu.CreateCheckBox(i.Slot, i.Slot + " KillSteal");
                DrawMenu.CreateCheckBox(i.Slot, "Draw " + i.Slot);
            });

            AutoMenu.CreateCheckBox("crit", "Try to Save Critcal AA For KS", false);
            AutoMenu.CreateCheckBox("Qunk", "Q UnKillable Minions");
            AutoMenu.CreateCheckBox("Wunk", "W UnKillable Minions", false);
            AutoMenu.CreateCheckBox("AutoW", "Auto W Targets With Buff");
            AutoMenu.CreateCheckBox("WGap", "W Gap Closers");
            AutoMenu.AddGroupLabel("R Settings");
            AutoMenu.Add("Rmode", new ComboBox("R Mode", 0, "Auto R", "On Tap R"));
            AutoMenu.CreateCheckBox("R", "Use R");
            AutoMenu.CreateCheckBox("RKS", "R Kill Steal");
            AutoMenu.CreateCheckBox("Blue", "Use Blue Trinket");
            AutoMenu.CreateCheckBox("Rmouse", "Focus Targets Near Mouse", false);
            AutoMenu.CreateCheckBox("Commands", "Block All Commands While Casting R", false);
            AutoMenu.CreateSlider("RHit", "R HitChance {0}%", 45);
            AutoMenu.CreateSlider("MouseRange", "Focus Near Mouse Radius {0}", 700, 150, 1250);
            AutoMenu.CreateKeyBind("RTap", "R Tap Key", false, KeyBind.BindTypes.HoldActive, 'S').OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args) { RTap = args.NewValue; };

            ComboMenu.CreateCheckBox("WAA", "W If Target is Out Of AA Range");
            ComboMenu.CreateCheckBox("WBUFF", "W Snare Targets Only");

            DrawMenu.CreateCheckBox("RSector", "Draw R Sector", false);
            DrawMenu.CreateCheckBox("Notifications", "Enable Notifications");
            DrawMenu.CreateCheckBox("LV", "Draw Last Visible Position");

            Player.OnIssueOrder            += Player_OnIssueOrder;
            Gapcloser.OnGapcloser          += Gapcloser_OnGapcloser;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            Orbwalker.OnUnkillableMinion   += Orbwalker_OnUnkillableMinion;
            Spellbook.OnCastSpell          += Spellbook_OnCastSpell;
            Orbwalker.OnPreAttack          += Orbwalker_OnPreAttack;
        }
示例#8
0
文件: Kindred.cs 项目: jitart/adc
        static Kindred()
        {
            Q = new Spell.Skillshot(SpellSlot.Q, 800, SkillShotType.Linear, 250, int.MaxValue, -1);
            W = new Spell.Active(SpellSlot.W, 900);
            E = new Spell.Targeted(SpellSlot.E, 550);
            R = new Spell.Active(SpellSlot.R, 500);

            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            Menuini   = MainMenu.AddMenu("Kindred", "Kindred");
            AutoMenu  = Menuini.AddSubMenu("Auto");
            ComboMenu = Menuini.AddSubMenu("Combo");
            ComboMenu.AddGroupLabel("Combo");
            HarassMenu = Menuini.AddSubMenu("Harass");
            HarassMenu.AddGroupLabel("Harass");
            LaneClearMenu = Menuini.AddSubMenu("LaneClear");
            LaneClearMenu.AddGroupLabel("LaneClear");
            JungleClearMenu = Menuini.AddSubMenu("JungleClear");
            JungleClearMenu.AddGroupLabel("JungleClear");
            KillStealMenu = Menuini.AddSubMenu("Stealer");
            DrawMenu      = Menuini.AddSubMenu("Drawings");
            DrawMenu.AddGroupLabel("Drawings");
            ColorMenu = Menuini.AddSubMenu("ColorPicker");
            ColorMenu.AddGroupLabel("ColorPicker");

            Menuini.Add("focusE", new CheckBox("Focus Target With E Mark"));
            Menuini.Add("focusP", new CheckBox("Focus Target Passive Mark", false));
            Menuini.Add("wr", new Slider("Reduce W Range by [800 - {0}]", 250, 0, 500));

            AutoMenu.AddGroupLabel("Auto Settings");
            AutoMenu.Add("Gap", new CheckBox("Anti GapCloser - Q"));
            AutoMenu.AddSeparator(0);
            AutoMenu.AddGroupLabel("AutoR Settings");
            AutoMenu.Add("R", new CheckBox("Use R"));
            AutoMenu.Add("Rhp", new Slider("Use R If MY HP under [{0}%]", 35));
            AutoMenu.Add("Rally", new Slider("Use R If ALLY HP under [{0}%]", 25));

            ComboMenu.Add("Qmode", new ComboBox("Q Mode", 0, "Auto", "Kite", "Chase", "To Mouse"));
            HarassMenu.Add("Qmode", new ComboBox("Q Mode", 0, "Auto", "Kite", "Chase", "To Mouse"));
            foreach (var spell in SpellList)
            {
                if (spell != R)
                {
                    ComboMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                    HarassMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                    HarassMenu.Add(spell.Slot + "mana", new Slider("Use " + spell.Slot + " if Mana% is more than [{0}%]", 65));
                    LaneClearMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                    LaneClearMenu.Add(spell.Slot + "mana", new Slider("Use " + spell.Slot + " if Mana% is more than [{0}%]", 65));
                    JungleClearMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                    JungleClearMenu.Add(spell.Slot + "mana", new Slider("Use " + spell.Slot + " if Mana% is more than [{0}%]", 65));
                }

                DrawMenu.Add(spell.Slot.ToString(), new CheckBox(spell.Slot + " Range"));
                ColorMenu.Add(spell.Slot.ToString(), new ColorPicker(spell.Slot + " Color", Color.Chartreuse));
            }

            ComboMenu.AddGroupLabel("Extra Settings");
            ComboMenu.Add("QW", new CheckBox("Use Smart W Q"));

            KillStealMenu.Add(Q.Slot + "ks", new CheckBox("Q Killsteal"));
            KillStealMenu.Add(Q.Slot + "js", new CheckBox("Q JungleSteal"));

            DrawMenu.Add("damage", new CheckBox("Draw Combo Damage"));
            DrawMenu.AddLabel("Draws = ComboDamage / Enemy Current Health");

            Orbwalker.OnUnkillableMinion   += Clear.Orbwalker_OnUnkillableMinion;
            Orbwalker.OnPostAttack         += Compat.Orbwalker_OnPostAttack;
            Obj_AI_Base.OnProcessSpellCast += Auto.Obj_AI_Base_OnProcessSpellCast;
            Gapcloser.OnGapcloser          += Auto.Gapcloser_OnGapcloser;
            OnIncDmg += Kindred_OnIncDmg;
        }
示例#9
0
文件: Brand.cs 项目: jitart/adc
        static Brand()
        {
            try
            {
                Q = new Spell.Skillshot(SpellSlot.Q, 1000, SkillShotType.Linear, 250, 1600, 120);
                W = new Spell.Skillshot(SpellSlot.W, 900, SkillShotType.Circular, 650, -1, 200);
                E = new Spell.Targeted(SpellSlot.E, 630);
                R = new Spell.Targeted(SpellSlot.R, 750);

                SpellList.Add(Q);
                SpellList.Add(W);
                SpellList.Add(E);
                SpellList.Add(R);

                Menuini    = MainMenu.AddMenu("Brand", "Brand");
                AutoMenu   = Menuini.AddSubMenu("Auto");
                ComboMenu  = Menuini.AddSubMenu("Combo");
                HarassMenu = Menuini.AddSubMenu("Harass");
                HarassMenu.AddGroupLabel("Harass");
                LaneClearMenu = Menuini.AddSubMenu("LaneClear");
                LaneClearMenu.AddGroupLabel("LaneClear");
                JungleClearMenu = Menuini.AddSubMenu("JungleClear");
                JungleClearMenu.AddGroupLabel("JungleClear");
                KillStealMenu = Menuini.AddSubMenu("Stealer");
                DrawMenu      = Menuini.AddSubMenu("Drawings");
                ColorMenu     = Menuini.AddSubMenu("Colors");

                foreach (var spell in SpellList.Where(s => s != E && s != R))
                {
                    Menuini.Add(spell.Slot + "hit", new ComboBox(spell.Slot + " HitChance", 0, "High", "Medium", "Low"));
                    Menuini.AddSeparator(0);
                }

                AutoMenu.AddGroupLabel("Auto Settings");
                AutoMenu.Add("AutoR", new Slider("Auto R AoE hit [{0}] Targets or more", 2, 1, 6));
                AutoMenu.Add("Gap", new CheckBox("Anti GapCloser"));
                AutoMenu.Add("Int", new CheckBox("Auto Interrupter"));
                AutoMenu.Add("Danger", new ComboBox("Interrupter Danger Level", 1, "High", "Medium", "Low"));
                AutoMenu.AddSeparator(0);
                AutoMenu.AddGroupLabel("Auto Hit Passive");
                AutoMenu.Add("AutoQ", new CheckBox("Auto Q Dotnate Passive"));
                AutoMenu.Add("AutoW", new CheckBox("Auto W Dotnate Passive", false));
                AutoMenu.Add("AutoE", new CheckBox("Auto E Dotnate Passive"));

                ComboMenu.AddGroupLabel("Combo Settings");
                ComboMenu.Add("Q", new CheckBox("Use Q"));
                ComboMenu.AddLabel("Extra Q Settings");
                ComboMenu.Add("Qp", new CheckBox("Q Only for stun"));
                ComboMenu.Add(Q.Slot + "mana", new Slider("Use Q if Mana% is more than [{0}%]", 10));
                ComboMenu.AddSeparator(1);

                ComboMenu.Add("W", new CheckBox("Use W"));
                ComboMenu.AddLabel("Extra W Settings");
                ComboMenu.Add("Wp", new CheckBox("W Only if target has brand passive", false));
                ComboMenu.Add(W.Slot + "mana", new Slider("Use W if Mana% is more than [{0}%]", 5));
                ComboMenu.AddSeparator(1);

                ComboMenu.Add("E", new CheckBox("Use E"));
                ComboMenu.AddLabel("Extra E Settings");
                ComboMenu.Add("Ep", new CheckBox("E Only if target has brand passive", false));
                ComboMenu.Add(E.Slot + "mana", new Slider("Use E if Mana% is more than [{0}%]", 15));
                ComboMenu.AddSeparator(1);

                ComboMenu.Add("RFinisher", new CheckBox("Use R Finisher"));
                ComboMenu.Add("RAoe", new CheckBox("Use R Aoe"));
                ComboMenu.Add("Rhit", new Slider("R AoE hit [{0}] Targets or more", 2, 1, 6));
                ComboMenu.Add(R.Slot + "mana", new Slider("Use R if Mana% is more than [{0}%]"));

                foreach (var spell in SpellList.Where(s => s.Slot != SpellSlot.R))
                {
                    HarassMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                    HarassMenu.Add(spell.Slot + "mana", new Slider("Use " + spell.Slot + " if Mana% is more than [{0}%]", 65));
                    HarassMenu.AddSeparator(1);
                    LaneClearMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                    LaneClearMenu.Add(spell.Slot + "mana", new Slider("Use " + spell.Slot + " if Mana% is more than [{0}%]", 65));
                    LaneClearMenu.AddSeparator(1);
                    JungleClearMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                    JungleClearMenu.Add(spell.Slot + "mana", new Slider("Use " + spell.Slot + " if Mana% is more than [{0}%]", 65));
                    JungleClearMenu.AddSeparator(1);
                }

                KillStealMenu.AddGroupLabel("KillSteal");
                foreach (var spell in SpellList)
                {
                    KillStealMenu.Add(spell.Slot + "ks", new CheckBox("Use " + spell.Slot));
                }

                KillStealMenu.AddSeparator(0);
                KillStealMenu.AddGroupLabel("JungleSteal");
                foreach (var spell in SpellList)
                {
                    KillStealMenu.Add(spell.Slot + "js", new CheckBox("Use " + spell.Slot));
                }

                DrawMenu.AddGroupLabel("Drawings");
                DrawMenu.Add("damage", new CheckBox("Draw Combo Damage"));
                DrawMenu.AddLabel("Draws = ComboDamage / Enemy Current Health");
                DrawMenu.AddSeparator(1);
                foreach (var spell in SpellList)
                {
                    DrawMenu.Add(spell.Slot.ToString(), new CheckBox(spell.Slot + " Range"));
                    ColorMenu.Add(spell.Slot.ToString(), new ColorPicker(spell.Slot + " Color", System.Drawing.Color.Chartreuse));
                }

                Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
                Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
                Orbwalker.OnUnkillableMinion     += Orbwalker_OnUnkillableMinion;
            }
            catch (Exception e)
            {
                Common.Log(e.ToString());
            }
        }
示例#10
0
文件: Ekko.cs 项目: tekintr/AIO
        protected override void CreateMenu()
        {
            try
            {
                #region Mainmenu
                Menu = MainMenu.AddMenu("UB" + player.Hero, "UBAddons.MainMenu" + player.Hero, "UB" + player.Hero + " - UBAddons - by U.Boruto");
                Menu.AddGroupLabel("General Setting");
                Menu.CreatSlotHitChance(SpellSlot.Q);

                #endregion

                #region Auto
                AutoMenu = Menu.AddSubMenu("R Settings", "UBAddons.R" + player.Hero, "Settings your R below");
                {
                    string BeginText = Variables.AddonName + "." + Player.Instance.Hero + ".R.";
                    AutoMenu.Add(BeginText + "Enable", new CheckBox("Use R"));
                    AutoMenu.Add(BeginText + "NotCombo", new CheckBox("Prevent R when I not in Combo"));
                    AutoMenu.Add(BeginText + "Hit", new Slider("R when hit {0} champ", 3, 1, 6));
                    AutoMenu.Add(BeginText + "MyHP", new Slider("Use R when my HP below", 15));
                    AutoMenu.Add(BeginText + "Prediction", new CheckBox("Use Prediction"));
                }
                #endregion

                #region Combo
                ComboMenu = Menu.AddSubMenu("Combo", "UBAddons.ComboMenu" + player.Hero, "Settings your combo below");
                {
                    ComboMenu.CreatSlotCheckBox(SpellSlot.Q);
                    ComboMenu.CreatSlotCheckBox(SpellSlot.W);
                    ComboMenu.Add(Variables.AddonName + "." + Player.Instance.Hero + "W.Prediction", new CheckBox("Use W Prediction", false));
                    ComboMenu.CreatSlotCheckBox(SpellSlot.E);
                    ComboMenu.CreatSlotComboBox(SpellSlot.E, 0, "To Mouse", "To Side", "To Target");
                }
                #endregion

                #region Harass
                HarassMenu = Menu.AddSubMenu("Harass", "UBAddons.HarassMenu" + player.Hero, "Settings your harass below");
                {
                    HarassMenu.CreatSlotCheckBox(SpellSlot.Q);
                    HarassMenu.CreatSlotCheckBox(SpellSlot.E);
                    HarassMenu.CreatSlotComboBox(SpellSlot.E, 0, "To Mouse", "To Side", "To Target");
                    HarassMenu.CreatManaLimit();
                    HarassMenu.CreatHarassKeyBind();
                }
                #endregion

                #region LaneClear
                LaneClearMenu = Menu.AddSubMenu("LaneClear", "UBAddons.LaneClear" + player.Hero, "Settings your laneclear below");
                {
                    LaneClearMenu.CreatLaneClearOpening();
                    LaneClearMenu.CreatSlotCheckBox(SpellSlot.Q, null, false);
                    LaneClearMenu.CreatSlotCheckBox(SpellSlot.E, null, false);
                    LaneClearMenu.CreatManaLimit();
                }
                #endregion

                #region JungleClear
                JungleClearMenu = Menu.AddSubMenu("JungleClear", "UBAddons.JungleClear" + player.Hero, "Settings your jungleclear below");
                {
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.Q);
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.W, null, false);
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.E, null, false);
                    JungleClearMenu.CreatManaLimit();
                }
                #endregion

                #region Lasthit
                LastHitMenu = Menu.AddSubMenu("Lasthit", "UBAddons.Lasthit" + player.Hero, "UB" + player.Hero + " - Settings your unkillable minion below");
                {
                    LastHitMenu.CreatLasthitOpening();
                    LastHitMenu.CreatSlotCheckBox(SpellSlot.Q);
                    LastHitMenu.CreatManaLimit();
                }
                #endregion

                #region Flee
                FleeMenu = Menu.AddSubMenu("Flee", "UBAddons.Flee" + player.Hero, "Setting your flee below");
                {
                    string BeginText = Variables.AddonName + "." + Player.Instance.Hero + ".";
                    FleeMenu.Add(BeginText + "E", new CheckBox("Use E for flee"));
                    FleeMenu.Add(BeginText + "E.Disable", new CheckBox("Disable E when jump spot near"));
                    FleeMenu.Add(BeginText + "E.Distance", new Slider("Range for disable", 600, 0, 1000));
                    FleeMenu.Add(BeginText + "AA.ToMinion", new CheckBox("AA to minion"));
                    FleeMenu.Add(BeginText + "AA.ToMonster", new CheckBox("AA to monster"));
                    FleeMenu.Add(BeginText + "AA.ToChamp", new CheckBox("AA to champ"));
                    FleeMenu.Add(BeginText + "AA.HP", new Slider("Min {0}% HP for AA champ & monster", 15));
                }
                #endregion

                #region Misc
                MiscMenu = Menu.AddSubMenu("Misc", "UBAddons.Misc" + player.Hero, "Settings your misc below");
                {
                    MiscMenu.AddGroupLabel("Anti Gapcloser settings");
                    MiscMenu.CreatMiscGapCloser();
                    MiscMenu.CreatSlotCheckBox(SpellSlot.E, "GapCloser");
                    MiscMenu.AddGroupLabel("Interrupter settings");
                    MiscMenu.CreatDangerValueBox();
                    MiscMenu.CreatSlotCheckBox(SpellSlot.W, "Interrupter");
                    MiscMenu.AddGroupLabel("Killsteal settings");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "KillSteal");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.E, "KillSteal");
                    MiscMenu.CreatSlotCheckBox(SpellSlot.R, "KillSteal");
                }
                #endregion

                #region Drawings
                DrawMenu = Menu.AddSubMenu("Drawings", "UBAddons.Drawings" + player.Hero, "Settings your drawings below");
                {
                    DrawMenu.CreatDrawingOpening();
                    DrawMenu.CreatColorPicker(SpellSlot.Q);
                    DrawMenu.CreatColorPicker(SpellSlot.W);
                    DrawMenu.CreatColorPicker(SpellSlot.E);
                    DrawMenu.CreatColorPicker(SpellSlot.R);
                    DrawMenu.CreatColorPicker(SpellSlot.Unknown);
                }
                #endregion

                DamageIndicator.Initalize(MenuValue.Drawings.ColorDmg);
            }
            catch (Exception exception)
            {
                Debug.Print(exception.ToString(), Console_Message.Error);
            }
        }
示例#11
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            Chat.Print("<font color='#07667F'>Flipper's Morgana 1.1 Loaded Successfully</font> ");
            Chat.Print("<font color='#E11610'>Please Report Any Issues in the Thread.</font> ");


            if (User.ChampionName != "Morgana")
            {
                return;
            }
            Q = new Spell.Skillshot(spellSlot: SpellSlot.Q, spellRange: 1150, skillShotType: SkillShotType.Linear,
                                    castDelay: 250, spellSpeed: 1200, spellWidth: 70)
            {
                AllowedCollisionCount = 0
            };

            W = new Spell.Skillshot(spellSlot: SpellSlot.W, spellRange: 1000, skillShotType: SkillShotType.Circular,
                                    castDelay: 250, spellSpeed: 2200, spellWidth: 200)
            {
                AllowedCollisionCount = -1
            };

            E = new Spell.Targeted(SpellSlot.E, 800);

            R            = new Spell.Active(SpellSlot.R, 600);
            R.DamageType = DamageType.Magical;

            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);


            MorganaMenu       = MainMenu.AddMenu("Morgana", "Morgana");
            QConfig           = MorganaMenu.AddSubMenu("QConfig");
            WConfig           = MorganaMenu.AddSubMenu("WConfig");
            ComboMenu         = MorganaMenu.AddSubMenu("ComboMenu");
            HarassMenu        = MorganaMenu.AddSubMenu("HarassMenu");
            LaneClearMenu     = MorganaMenu.AddSubMenu("LaneClearMenu");
            SpellsToShield    = MorganaMenu.AddSubMenu("SpellsToShield");
            BlackShieldAllies = MorganaMenu.AddSubMenu("BlackShieldAllies");
            DrawingsMenu      = MorganaMenu.AddSubMenu("Drawings");
            AutoMenu          = MorganaMenu.AddSubMenu("AutoRConfig");



            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("SpamW", new CheckBox("Spam W even if target can move?"));
            HarassMenu.Add("Q", new CheckBox("Use Q"));
            HarassMenu.Add("W", new CheckBox("Use W"));
            HarassMenu.Add("SpamW", new CheckBox("Spam W even if target can move?"));
            LaneClearMenu.Add("W", new CheckBox("Use W on minions"));
            AutoMenu.Add("Rcount", new Slider("Use R If Hit Enemy ", 3, 1, 5));
            LaneClearMenu.Add("minionCount", new Slider("Use W if hit minions ", 3, 1, 5));

            foreach (var Spell in SpellList)
            {
                DrawingsMenu.Add(Spell.Slot.ToString(), new CheckBox("Draw " + Spell.Slot));
            }

            foreach (AIHeroClient client in EntityManager.Heroes.Enemies)
            {
                QConfig.Add(client.ChampionName, new CheckBox("Q Enabled on" + client.ChampionName));
                WConfig.Add(client.ChampionName, new CheckBox("W Enabled on" + client.ChampionName));
                foreach (SpellInfo info in SpellDatabase.SpellList)
                {
                    if (info.ChampionName == client.ChampionName)
                    {
                        EnemyProjectileInformation.Add(info);
                    }
                }
            }

            foreach (AIHeroClient client in EntityManager.Heroes.Allies)
            {
                BlackShieldAllies.Add(client.ChampionName, new CheckBox("Shield" + client.ChampionName));
            }

            foreach (SpellInfo spell in EnemyProjectileInformation)
            {
                Console.WriteLine(spell.SpellName);
                SpellsToShield.Add(spell.MissileName, new CheckBox("Shield" + spell.MissileName));
            }

            Game.OnTick                  += Game_OnTick;
            Game.OnUpdate                += GameOnUpdate;
            Drawing.OnDraw               += Drawing_OnDraw;
            GameObject.OnCreate          += OnCreate;
            GameObject.OnDelete          += OnDelete;
            Obj_AI_Base.OnUpdatePosition += OnUpdate;
        }
示例#12
0
文件: AurelionSol.cs 项目: jitart/adc
        static AurelionSol()
        {
            Q  = new Spell.Skillshot(SpellSlot.Q, 600, SkillShotType.Linear, 0, 1000, 180);
            W  = new Spell.Active(SpellSlot.W, 600);
            W2 = new Spell.Active(SpellSlot.W, 350);
            R  = new Spell.Skillshot(SpellSlot.R, 1475, SkillShotType.Linear, 250, 1750, 180);

            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(R);

            Menuini   = MainMenu.AddMenu("AurelionSol", "AurelionSol");
            AutoMenu  = Menuini.AddSubMenu("Auto Settings");
            ComboMenu = Menuini.AddSubMenu("Combo Settings");
            ComboMenu.AddGroupLabel("Combo Settings");
            HarassMenu = Menuini.AddSubMenu("Harass Settings");
            HarassMenu.AddGroupLabel("Harass Settings");
            LaneClearMenu = Menuini.AddSubMenu("LaneClear Settings");
            LaneClearMenu.AddGroupLabel("LaneClear Settings");
            JungleClearMenu = Menuini.AddSubMenu("JungleClear Settings");
            JungleClearMenu.AddGroupLabel("JungleClear Settings");
            KillStealMenu = Menuini.AddSubMenu("KillSteal Settings");
            KillStealMenu.AddGroupLabel("Stealer Settings");
            DrawMenu = Menuini.AddSubMenu("Drawings");
            DrawMenu.AddGroupLabel("Drawings");
            ColorMenu = Menuini.AddSubMenu("ColorPicker");
            ColorMenu.AddGroupLabel("Color Picker");

            Menuini.AddGroupLabel("Global Settings");
            Menuini.Add("qrange", new Slider("Q Range [{0}]", 800, 350, 1500));
            Menuini.Add("wmax", new Slider("Max W Range [{0}]", 750, 600, 1500));
            Menuini.Add("wmin", new Slider("Min W Range [{0}]", 400, 200, 599));
            foreach (var spell in SpellList.Where(s => s != W))
            {
                Menuini.Add(spell.Slot + "hit", new ComboBox(spell.Slot + " HitChance", 0, "High", "Medium", "Low"));
            }

            AutoMenu.AddGroupLabel("Automated Settings");
            AutoMenu.Add("GapQ", new CheckBox("Anti-Gapcloser Q"));
            AutoMenu.Add("GapR", new CheckBox("Anti-Gapcloser R"));
            AutoMenu.Add("IntQ", new CheckBox("Interrupter Q"));
            AutoMenu.Add("IntR", new CheckBox("Interrupter R"));
            AutoMenu.Add("Danger", new ComboBox("Interrupter DangerLevel", 1, "High", "Medium", "Low"));

            DrawMenu.Add("damage", new CheckBox("Draw Combo Damage"));
            DrawMenu.AddLabel("Draws = ComboDamage / Enemy Current Health");
            DrawMenu.AddSeparator(1);
            foreach (var spell in SpellList)
            {
                ComboMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                if (spell != R)
                {
                    HarassMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                    HarassMenu.Add(spell.Slot + "mana", new Slider("Use " + spell.Slot + " if Mana% is more than [{0}%]", 65));
                    if (spell != W)
                    {
                        LaneClearMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                        LaneClearMenu.Add(spell.Slot + "mana", new Slider("Use " + spell.Slot + " if Mana% is more than [{0}%]", 65));
                        JungleClearMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                        JungleClearMenu.Add(spell.Slot + "mana", new Slider("Use " + spell.Slot + " if Mana% is more than [{0}%]", 65));
                    }
                }

                if (spell == W)
                {
                    DrawMenu.Add(spell.Slot.ToString(), new CheckBox(spell.Slot + " Max Range"));
                    ColorMenu.Add(spell.Slot.ToString(), new ColorPicker(spell.Slot + " Color", Color.Chartreuse));
                }

                if (spell != W)
                {
                    DrawMenu.Add(spell.Slot.ToString(), new CheckBox(spell.Slot + " Range"));
                    ColorMenu.Add(spell.Slot.ToString(), new ColorPicker(spell.Slot + " Color", Color.Chartreuse));
                    KillStealMenu.Add(spell.Slot + "ks", new CheckBox("KillSteal " + spell.Slot));
                    KillStealMenu.Add(spell.Slot + "js", new CheckBox("JungleSteal " + spell.Slot));
                }
            }

            ComboMenu.AddSeparator(0);
            ComboMenu.AddGroupLabel("Extra Settings");
            ComboMenu.Add("disableAA", new CheckBox("Disable AA When W Active", false));
            ComboMenu.Add("qmode", new ComboBox("Cast Q2 mode", 0, "Anyone", "Only Target"));
            ComboMenu.Add("Rfinisher", new CheckBox("R Finisher"));
            ComboMenu.Add("Raoe", new Slider("R AoE hit", 2, 1, 6));

            HarassMenu.AddSeparator(0);
            HarassMenu.AddGroupLabel("Extra Settings");
            HarassMenu.Add("qmode", new ComboBox("Q2 mode", 0, "Anyone", "Only Target"));

            DrawMenu.Add("w2", new CheckBox("W Min Range"));
            ColorMenu.Add("w2", new ColorPicker("W2 Color", Color.Chartreuse));

            Gapcloser.OnGapcloser            += Auto.Gapcloser_OnGapcloser;
            Interrupter.OnInterruptableSpell += Auto.Interrupter_OnInterruptableSpell;
            GameObject.OnCreate += GameObject_OnCreate;
            GameObject.OnDelete += GameObject_OnDelete;
        }