Ejemplo n.º 1
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.Hero != ChampionName)
            {
                return;
            }

            Q = new Spell.Chargeable(SpellSlot.Q, 750, 1450, 1500, 500, int.MaxValue, 100)
            {
                AllowedCollisionCount = int.MaxValue
            };
            W = new Spell.Skillshot(SpellSlot.W, 1100, SkillShotType.Circular, 250, int.MaxValue, 100)
            {
                AllowedCollisionCount = int.MaxValue
            };
            E = new Spell.Skillshot(SpellSlot.E, 1000, SkillShotType.Linear, 250, 1600, 70);
            R = new Spell.Skillshot(SpellSlot.R, 3200, SkillShotType.Circular, 600, int.MaxValue, 125)
            {
                AllowedCollisionCount = int.MaxValue
            };

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

            Menuini         = MainMenu.AddMenu("Xerath", "Xerath");
            RMenu           = Menuini.AddSubMenu("R 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");
            MiscMenu        = Menuini.AddSubMenu("Misc Settings");
            DrawMenu        = Menuini.AddSubMenu("Drawings Settings");
            ColorMenu       = Menuini.AddSubMenu("Color Picker");

            RMenu.AddGroupLabel("R Settings");
            RMenu.Add("R", new CheckBox("Use R"));
            RMenu.Add(R.Slot + "hit", new ComboBox("R HitChance", 0, "High", "Medium", "Low"));
            RMenu.Add("scrybR", new CheckBox("Use Scrybing Orb while Ulting"));
            RMenu.Add("Rmode", new ComboBox("R Mode", 0, "Auto", "Custom Delays", "On Tap"));
            RMenu.Add("Rtap", new KeyBind("R Tap Key", false, KeyBind.BindTypes.HoldActive, 'S'));
            RMenu.AddGroupLabel("R Custom Delays");
            for (int i = 1; i <= 5; i++)
            {
                RMenu.Add("delay" + i, new Slider("Delay " + i, 0, 0, 1500));
            }
            RMenu.Add("Rblock", new CheckBox("Block Commands While Casting R"));
            RMenu.Add("Rnear", new CheckBox("Focus Targets Near Mouse Only"));
            RMenu.Add("Mradius", new Slider("Mouse Radius", 750, 300, 1500));

            ComboMenu.AddGroupLabel("Combo Settings");
            ComboMenu.Add("key", new KeyBind("Combo Key", false, KeyBind.BindTypes.HoldActive, 32));
            ComboMenu.Add("Q", new CheckBox("Use Q"));
            ComboMenu.Add(Q.Slot + "hit", new ComboBox("Q HitChance", 0, "High", "Medium", "Low"));
            ComboMenu.Add("W", new CheckBox("Use W"));
            ComboMenu.Add(W.Slot + "hit", new ComboBox("W HitChance", 0, "High", "Medium", "Low"));
            ComboMenu.Add("E", new CheckBox("Use E"));
            ComboMenu.Add(E.Slot + "hit", new ComboBox("E HitChance", 0, "High", "Medium", "Low"));

            HarassMenu.AddGroupLabel("Harass Settings");
            HarassMenu.Add("key", new KeyBind("Harass Key", false, KeyBind.BindTypes.HoldActive, 'C'));
            HarassMenu.Add("toggle", new KeyBind("Auto Harass", false, KeyBind.BindTypes.PressToggle, 'H'));
            HarassMenu.Add("Q", new CheckBox("Use Q"));
            HarassMenu.Add(Q.Slot + "hit", new ComboBox("Q HitChance", 0, "High", "Medium", "Low"));
            HarassMenu.Add("Qmana", new Slider("Use Q if Mana% > [{0}%]"));
            HarassMenu.Add("W", new CheckBox("Use W"));
            HarassMenu.Add(W.Slot + "hit", new ComboBox("W HitChance", 0, "High", "Medium", "Low"));
            HarassMenu.Add("Wmana", new Slider("Use W if Mana% > [{0}%]"));
            HarassMenu.Add("E", new CheckBox("Use E"));
            HarassMenu.Add(E.Slot + "hit", new ComboBox("E HitChance", 0, "High", "Medium", "Low"));
            HarassMenu.Add("Emana", new Slider("Use E if Mana% > [{0}%]"));

            LaneClearMenu.AddGroupLabel("LaneClear Settings");
            LaneClearMenu.Add("key", new KeyBind("LaneClear Key", false, KeyBind.BindTypes.HoldActive, 'V'));
            LaneClearMenu.Add("Q", new CheckBox("Use Q"));
            LaneClearMenu.Add("Qmode", new ComboBox("Q Mode", 0, "LaneClear", "LastHit", "Both"));
            LaneClearMenu.Add("Qmana", new Slider("Use Q if Mana% > [{0}%]"));
            LaneClearMenu.Add("W", new CheckBox("Use W"));
            LaneClearMenu.Add("Wmode", new ComboBox("W Mode", 0, "LaneClear", "LastHit", "Both"));
            LaneClearMenu.Add("Wmana", new Slider("Use W if Mana% > [{0}%]"));
            LaneClearMenu.Add("E", new CheckBox("Use E"));
            LaneClearMenu.Add("Emode", new ComboBox("E Mode", 0, "LaneClear", "LastHit", "Both"));
            LaneClearMenu.Add("Emana", new Slider("Use E if Mana% > [{0}%]"));

            JungleClearMenu.AddGroupLabel("JungleClear Settings");
            JungleClearMenu.Add("key", new KeyBind("JungleClear Key", false, KeyBind.BindTypes.HoldActive, 'V'));
            JungleClearMenu.Add("Q", new CheckBox("Use Q"));
            JungleClearMenu.Add("Qmana", new Slider("Use Q if Mana% > [{0}%]"));
            JungleClearMenu.Add("W", new CheckBox("Use W"));
            JungleClearMenu.Add("Wmana", new Slider("Use W if Mana% > [{0}%]"));
            JungleClearMenu.Add("E", new CheckBox("Use E"));
            JungleClearMenu.Add("Emana", new Slider("Use E if Mana% > [{0}%]"));

            KillStealMenu.AddGroupLabel("KillSteal Settings");
            KillStealMenu.Add("Q", new CheckBox("Use Q"));
            KillStealMenu.Add("W", new CheckBox("Use W"));
            KillStealMenu.Add("E", new CheckBox("Use E"));

            MiscMenu.AddGroupLabel("Misc Settings");
            MiscMenu.Add("gap", new CheckBox("E Anti-GapCloser"));
            MiscMenu.Add("int", new CheckBox("E Interrupter"));
            MiscMenu.Add("danger", new ComboBox("Interrupter Danger Level", 1, "High", "Medium", "Low"));
            MiscMenu.Add("flee", new KeyBind("Escape with E", false, KeyBind.BindTypes.HoldActive, 'A'));
            var notifi = MiscMenu.Add("Notifications", new CheckBox("Use Notifications"));

            MiscMenu.Add("autoECC", new CheckBox("Auto E On CC enemy"));
            MiscMenu.Add("scrybebuy", new CheckBox("Auto Scrybing Orb Buy"));
            MiscMenu.Add("scrybebuylevel", new Slider("Buy Orb at level [{0}]", 9, 1, 18));
            MiscMenu.AddGroupLabel("Anti-GapCloser Spells");
            foreach (var spell in
                     from spell in Gapcloser.GapCloserList
                     from enemy in EntityManager.Heroes.Enemies.Where(enemy => spell.ChampName == enemy.ChampionName)
                     select spell)
            {
                MiscMenu.Add(spell.SpellName, new CheckBox(spell.ChampName + " - " + spell.SpellSlot));
            }

            foreach (var spell in SpellList)
            {
                DrawMenu.Add(spell.Slot.ToString(), new CheckBox(spell.Slot + " Range"));
            }

            DrawMenu.Add("Rmini", new CheckBox("Draw R Range (MiniMap)", false));

            foreach (var spell in SpellList)
            {
                ColorMenu.Add(spell.Slot + "Color", new ColorPicker(spell.Slot + " Color", Color.Chartreuse));
            }

            if (notifi.CurrentValue)
            {
                Common.ShowNotification("KappaXerath - Loaded", 5000);
            }

            Game.OnUpdate      += Game_OnGameUpdate;
            Drawing.OnDraw     += Drawing_OnDraw;
            Drawing.OnEndScene += Drawing_OnEndScene;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
            Obj_AI_Base.OnProcessSpellCast   += Obj_AI_Base_OnProcessSpellCast;
            Orbwalker.OnPreAttack            += Orbwalker_OnPreAttack;
            Player.OnIssueOrder   += Player_OnIssueOrder;
            GameObject.OnCreate   += GameObject_OnCreate;
            Spellbook.OnCastSpell += Spellbook_OnCastSpell;
        }
Ejemplo n.º 2
0
        public static void Execute()
        {
            if (Player.Instance.ChampionName != ChampName)
            {
                return;
            }

            menuIni = MainMenu.AddMenu("KappaDarius", "KappaDarius");
            menuIni.AddGroupLabel("Darius The Dank Memes Master!");
            menuIni.AddGroupLabel("Global Settings");
            menuIni.Add("Items", new CheckBox("Use Items?"));
            menuIni.Add("Combo", new CheckBox("Use Combo?"));
            menuIni.Add("Harass", new CheckBox("Use Harass?"));
            menuIni.Add("Clear", new CheckBox("Use Clear?"));
            menuIni.Add("Drawings", new CheckBox("Use Drawings?"));
            menuIni.Add("KillSteal", new CheckBox("Use KillSteal?"));

            QMenu = menuIni.AddSubMenu("Q Settings");
            QMenu.AddGroupLabel("Q Settings");
            QMenu.Add("Combo", new CheckBox("Q Combo"));
            QMenu.Add("Harass", new CheckBox("Q Harass"));
            QMenu.AddGroupLabel("Q LaneClear Settings");
            QMenu.Add("Clear", new CheckBox("Q LaneClear"));
            QMenu.Add("Qlc", new Slider("Q On Hit Minions >=", 3, 1, 10));
            QMenu.AddSeparator();
            QMenu.AddGroupLabel("Extra Settings");
            QMenu.Add("QE", new CheckBox("Always Q Before E", false));
            QMenu.Add("Stick", new CheckBox("Stick to Target while Casting Q"));
            QMenu.Add("QAA", new CheckBox("Use Q if AA is in Cooldown", false));
            QMenu.Add("range", new CheckBox("Dont Cast Q when Enemy in AA range", false));
            QMenu.Add("Flee", new CheckBox("Q On Flee (Ignores Stick to target)"));
            QMenu.Add("QFlee", new Slider("Cast Q flee When HP is below %", 90, 0, 100));
            QMenu.Add("Qaoe", new CheckBox("Auto Q AoE"));
            QMenu.Add("Qhit", new Slider("Q Aoe Hit >=", 3, 1, 5));

            WMenu = menuIni.AddSubMenu("W Settings");
            WMenu.AddGroupLabel("W Settings");
            WMenu.Add("Combo", new CheckBox("W Combo"));
            WMenu.Add("Harass", new CheckBox("W Harass"));
            WMenu.Add("Clear", new CheckBox("W LaneClear"));
            WMenu.AddGroupLabel("Extra Settings");
            WMenu.Add("AAr", new CheckBox("W AA Reset"));

            EMenu = menuIni.AddSubMenu("E Settings");
            EMenu.AddGroupLabel("E Settings");
            EMenu.Add("Combo", new CheckBox("E Combo"));
            EMenu.Add("Harass", new CheckBox("E Harass"));
            EMenu.AddGroupLabel("Extra Settings");
            EMenu.Add("Interrupt", new CheckBox("E To Interrupt"));

            RMenu = menuIni.AddSubMenu("R Settings");
            RMenu.AddGroupLabel("R Settings");
            RMenu.Add("Combo", new CheckBox("R Combo Finisher"));
            RMenu.Add("stack", new CheckBox("Use R On Stacks", false));
            RMenu.Add("count", new Slider("Cast R On Stacks >=", 5, 0, 5));
            RMenu.Add("SaveR", new CheckBox("Dont Ult if target killable with AA", false));
            RMenu.Add("SR", new Slider("Dont Use Ult if target can be kill With X AA", 1, 0, 6));
            RMenu.Add("semiR", new KeyBind("Semi-Auto R", false, KeyBind.BindTypes.HoldActive));

            KillStealMenu = menuIni.AddSubMenu("KillSteal");
            KillStealMenu.AddGroupLabel("KillSteal Settings");
            KillStealMenu.Add("Rks", new CheckBox("R KillSteal"));

            if (Player.Spells.FirstOrDefault(o => o.SData.Name.Contains("SummonerDot")) != null)
            {
                KillStealMenu.Add("IGP", new CheckBox("Ignite + Passive Kill"));
                KillStealMenu.Add("IG", new CheckBox("Ignite Only", false));
                KillStealMenu.AddLabel("Iginte + Passive takes in account Max Ignite + Passive dmg");
                Ignite = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600);
            }

            ManaMenu = menuIni.AddSubMenu("Mana Manager");
            ManaMenu.AddGroupLabel("Harass");
            ManaMenu.Add("harassmana", new Slider("Harass Mana %", 75, 0, 100));
            ManaMenu.AddGroupLabel("Lane Clear");
            ManaMenu.Add("lanemana", new Slider("Lane Clear Mana %", 60, 0, 100));

            ItemsMenu = menuIni.AddSubMenu("Items");
            ItemsMenu.AddGroupLabel("Items Settings");
            ItemsMenu.Add("Hydra", new CheckBox("Use Hydra / Timat / Titanic"));
            ItemsMenu.Add("useGhostblade", new CheckBox("Use Youmuu's Ghostblade"));
            ItemsMenu.Add("UseBOTRK", new CheckBox("Use Blade of the Ruined King"));
            ItemsMenu.Add("UseBilge", new CheckBox("Use Bilgewater Cutlass"));
            ItemsMenu.AddSeparator();
            ItemsMenu.Add("eL", new Slider("Use On Enemy health", 65, 0, 100));
            ItemsMenu.Add("oL", new Slider("Use On My health", 65, 0, 100));

            DrawMenu = menuIni.AddSubMenu("Drawings");
            DrawMenu.AddGroupLabel("Drawing Settings");
            DrawMenu.Add("Q", new CheckBox("Draw Q"));
            DrawMenu.Add("W", new CheckBox("Draw W"));
            DrawMenu.Add("E", new CheckBox("Draw E"));
            DrawMenu.Add("R", new CheckBox("Draw R"));
            DrawMenu.AddSeparator();
            DrawMenu.AddGroupLabel("Ultimate Drawings");
            DrawMenu.Add("DrawD", new CheckBox("Draw R Damage"));
            DrawMenu.Add("Killable", new CheckBox("Draw Killable"));
            DrawMenu.Add("Stacks", new CheckBox("Draw Passive Stacks"));
            DrawMenu.Add("PPx", new Slider("Passive Stacks Position X", 100, 0, 150));
            DrawMenu.Add("PPy", new Slider("Passive Stacks Position Y", 100, 0, 150));
            DrawMenu.Add("RHealth", new CheckBox("Draw After R health"));
            DrawMenu.Add("RHx", new Slider("After R health Position", 135, 0, 150));

            Q = new Spell.Active(SpellSlot.Q, 400);
            W = new Spell.Active(SpellSlot.W, 300);
            E = new Spell.Skillshot(SpellSlot.E, 550, SkillShotType.Cone, 250, 666, 100);
            R = new Spell.Targeted(SpellSlot.R, 460);

            Game.OnUpdate                    += OnUpdate;
            Drawing.OnDraw                   += OnDraw;
            Drawing.OnEndScene               += OnEndScene;
            Orbwalker.OnPostAttack           += OnAfterAttack;
            Obj_AI_Base.OnSpellCast          += Obj_AI_Base_OnSpellCast;
            Interrupter.OnInterruptableSpell += OnInterruptableTarget;
        }
Ejemplo n.º 3
0
        public static void Execute()
        {
            if (Player.Instance.ChampionName != ChampName)
            {
                return;
            }

            menuIni = MainMenu.AddMenu("KappaDarius", "KappaDarius");
            menuIni.AddGroupLabel("Darius The Dank Memes Master!");
            menuIni.AddGroupLabel("Global Settings");
            menuIni.Add("Items", new CheckBox("Item Kullanilsin?"));
            menuIni.Add("Combo", new CheckBox("Kullan Kombo?"));
            menuIni.Add("Harass", new CheckBox("Durtme Kullan?"));
            menuIni.Add("Clear", new CheckBox("Temizleme Kullan?"));
            menuIni.Add("Drawings", new CheckBox("Gosterge Kullan?"));
            menuIni.Add("KillSteal", new CheckBox("Oldurme sekli kullan?"));

            QMenu = menuIni.AddSubMenu("Q Settings");
            QMenu.AddGroupLabel("Q Settings");
            QMenu.Add("Combo", new CheckBox("Komboda Q"));
            QMenu.Add("Harass", new CheckBox("Durtmede Q"));
            QMenu.AddGroupLabel("Q LaneClear Settings");
            QMenu.Add("Clear", new CheckBox("Koridor Temizlemede Q"));
            QMenu.Add("Qlc", new Slider("Minyona son vurus Q >=", 3, 1, 10));
            QMenu.AddSeparator();
            QMenu.AddGroupLabel("Extra Settings");
            QMenu.Add("QE", new CheckBox("E den once surekli Q", false));
            QMenu.Add("Stick", new CheckBox("Secili hedefe Q"));
            QMenu.Add("QAA", new CheckBox("AA beklemede ise Q kullan", false));
            QMenu.Add("range", new CheckBox("AA araliginda dusman oldugunda Q atmayin", false));
            QMenu.Add("Flee", new CheckBox("Kacarken Q (Secili hedefi yok sayar)"));
            QMenu.Add("QFlee", new Slider("Kacarken Q canim sundan dusukse %", 90));
            QMenu.Add("Qaoe", new CheckBox("Otomatik Q AoE"));
            QMenu.Add("Qhit", new Slider("Q Aoe Hit >=", 3, 1, 5));

            WMenu = menuIni.AddSubMenu("W Settings");
            WMenu.AddGroupLabel("W Settings");
            WMenu.Add("Combo", new CheckBox("Komboda W"));
            WMenu.Add("Harass", new CheckBox("Durtmede W"));
            WMenu.Add("Clear", new CheckBox("Koridor temizlemede W"));
            WMenu.AddGroupLabel("Extra Settings");
            WMenu.Add("AAr", new CheckBox("W ile AA sifirla"));

            EMenu = menuIni.AddSubMenu("E Settings");
            EMenu.AddGroupLabel("E Settings");
            EMenu.Add("Combo", new CheckBox("Komboda E"));
            EMenu.Add("Harass", new CheckBox("Durtmede E"));
            EMenu.AddGroupLabel("Extra Settings");
            EMenu.Add("Interrupt", new CheckBox("Keserken E"));

            RMenu = menuIni.AddSubMenu("R Settings");
            RMenu.AddGroupLabel("R Settings");
            RMenu.Add("Combo", new CheckBox("Kombo bitirmede R"));
            RMenu.Add("stack", new CheckBox("Pasif biriktirmede R", false));
            RMenu.Add("count", new Slider("R icin gereken pasif >=", 5, 0, 5));
            RMenu.Add("SaveR", new CheckBox("Hedef AA ile olucekse R kullanma", false));
            RMenu.Add("SR", new Slider("Dont Use Ult if target can be kill With X AA", 1, 0, 6));
            RMenu.Add("semiR", new KeyBind("Yari otomatik R", false, KeyBind.BindTypes.HoldActive));

            KillStealMenu = menuIni.AddSubMenu("KillSteal");
            KillStealMenu.AddGroupLabel("KillSteal Settings");
            KillStealMenu.Add("Rks", new CheckBox("R ile oldur"));

            if (Player.Spells.FirstOrDefault(o => o.SData.Name.Contains("SummonerDot")) != null)
            {
                KillStealMenu.Add("IGP", new CheckBox("Tutustur + Pasif ile oldur"));
                KillStealMenu.Add("IG", new CheckBox("Sadece Tutustur", false));
                KillStealMenu.AddLabel("Tutustur + Pasif, Max Tutustur + Pasif hasarini hesaba katar.");
                Ignite = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600);
            }

            ManaMenu = menuIni.AddSubMenu("Mana Manager");
            ManaMenu.AddGroupLabel("Harass");
            ManaMenu.Add("harassmana", new Slider("Durtme Mana %", 75));
            ManaMenu.AddGroupLabel("Lane Clear");
            ManaMenu.Add("lanemana", new Slider("Koridor temizleme Mana %", 60));

            ItemsMenu = menuIni.AddSubMenu("Items");
            ItemsMenu.AddGroupLabel("Items Settings");
            ItemsMenu.Add("Hydra", new CheckBox("Kullan Hydra / Timat / Titanic"));
            ItemsMenu.Add("useGhostblade", new CheckBox("Kullan Youmuu's Ghostblade"));
            ItemsMenu.Add("UseBOTRK", new CheckBox("Kullan Mahvolmus"));
            ItemsMenu.Add("UseBilge", new CheckBox("Kullan Bilgewater Palasi"));
            ItemsMenu.AddSeparator();
            ItemsMenu.Add("eL", new Slider("Use On Enemy health", 65));
            ItemsMenu.Add("oL", new Slider("Use On My health", 65));

            DrawMenu = menuIni.AddSubMenu("Drawings");
            DrawMenu.AddGroupLabel("Drawing Settings");
            DrawMenu.Add("Q", new CheckBox("Goster Q"));
            DrawMenu.Add("W", new CheckBox("Goster W"));
            DrawMenu.Add("E", new CheckBox("Goster E"));
            DrawMenu.Add("R", new CheckBox("Goster R"));
            DrawMenu.AddSeparator();
            DrawMenu.AddGroupLabel("Ultimate Drawings");
            DrawMenu.Add("DrawD", new CheckBox("Goster R Hasari"));
            DrawMenu.Add("Killable", new CheckBox("Goster Oldurulebilir"));
            DrawMenu.Add("Stacks", new CheckBox("Goster Pasif Sayisi"));
            DrawMenu.Add("PPx", new Slider("Passive Stacks Position X", 100, 0, 150));
            DrawMenu.Add("PPy", new Slider("Passive Stacks Position Y", 100, 0, 150));
            DrawMenu.Add("RHealth", new CheckBox("Goster R den sonra kalicak cani"));
            DrawMenu.Add("RHx", new Slider("After R health Position", 135, 0, 150));

            Q = new Spell.Active(SpellSlot.Q, 400);
            W = new Spell.Active(SpellSlot.W, 300);
            E = new Spell.Skillshot(SpellSlot.E, 550, SkillShotType.Cone, 250, 666, 100);
            R = new Spell.Targeted(SpellSlot.R, 460);

            Game.OnUpdate                    += OnUpdate;
            Drawing.OnDraw                   += OnDraw;
            Drawing.OnEndScene               += OnEndScene;
            Orbwalker.OnPostAttack           += OnAfterAttack;
            Obj_AI_Base.OnSpellCast          += Obj_AI_Base_OnSpellCast;
            Interrupter.OnInterruptableSpell += OnInterruptableTarget;
        }
Ejemplo n.º 4
0
        protected override void CreateMenu()
        {
            try
            {
                #region Mainmenu
                Menu = MainMenu.AddMenu("UB" + player.Hero, Variables.AddonName + ".MainMenu" + player.Hero, "UB" + player.Hero + " - UBAddons - by U.Boruto");
                Menu.AddGroupLabel("General Setting");
                Menu.Add(Variables.AddonName + ".Kayle.W.Enable", new CheckBox("Auto W"));
                Menu.Add(Variables.AddonName + ".Kayle.W.HP", new Slider("When HP", 50));
                Menu.Add(Variables.AddonName + ".Kayle.W.ManaLimit", new Slider("Stop when my MP below", 30));
                foreach (var champ in EntityManager.Heroes.Allies)
                {
                    Menu.Add(Variables.AddonName + ".Kayle.W.Enable." + champ.Hero, new CheckBox("Use W on " + champ.ChampionName, champ.IsMe));
                }
                #endregion

                #region R
                RMenu = Menu.AddSubMenu("R", "UBAddons.RMenu" + player.Hero, "Settings your R saver below");
                {
                    string BeginText = Variables.AddonName + "." + Player.Instance.Hero + ".R.";
                    RMenu.Add(BeginText + "Enable", new CheckBox("Use R"));
                    RMenu.AddSeparator();
                    foreach (var champ in EntityManager.Heroes.Allies)
                    {
                        RMenu.AddGroupLabel(champ.ChampionName);
                        RMenu.Add(BeginText + "Enable." + champ.Hero, new CheckBox("Use on " + champ.ChampionName));
                        if (champ.IsMe)
                        {
                            RMenu.Add(Variables.AddonName + ".Kayle.R.Turret", new CheckBox("R when turret hit me"));
                        }
                        RMenu.Add(BeginText + "HP." + champ.Hero, new Slider("Use R if " + champ.ChampionName + "'s HP below {0}%", 20, 0, 100));
                        RMenu.Add(BeginText + "Spell.Damage." + champ.Hero, new Slider("R if enemy spell damage more than", 500, 300, 3000));
                        RMenu.Add(BeginText + "Priority." + champ.Hero, new Slider(champ.ChampionName + "'s priority", CrazyTargetSelector.GetPriority(champ), 1, 5));
                        RMenu.AddSeparator();
                    }
                }
                #endregion

                #region Combo
                ComboMenu = Menu.AddSubMenu("Combo", Variables.AddonName + ".ComboMenu" + player.Hero, "Settings your combo below");
                {
                    ComboMenu.CreatSlotCheckBox(SpellSlot.Q);
                    ComboMenu.CreatSlotCheckBox(SpellSlot.W);
                    ComboMenu.CreatSlotCheckBox(SpellSlot.E);
                }
                #endregion

                #region Harass
                HarassMenu = Menu.AddSubMenu("Harass", Variables.AddonName + ".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", Variables.AddonName + ".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", Variables.AddonName + ".JungleClear" + player.Hero, "Settings your jungleclear below");
                {
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.Q);
                    JungleClearMenu.CreatSlotCheckBox(SpellSlot.E);
                    JungleClearMenu.CreatManaLimit();
                }
                #endregion

                #region Lasthit
                LasthitMenu = Menu.AddSubMenu("Lasthit", Variables.AddonName + ".Lasthit" + player.Hero, "Settings your unkillable minion below");
                {
                    LasthitMenu.CreatLasthitOpening();
                    LasthitMenu.CreatSlotCheckBox(SpellSlot.Q, null, false);
                    LasthitMenu.CreatManaLimit();
                }
                #endregion

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

                #region Drawings
                DrawMenu = Menu.AddSubMenu("Drawings", Variables.AddonName + ".Drawing" + player.Hero, "Setting 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)
            {
                Log.Debug.Print(exception.ToString(), Console_Message.Error);
            }
        }
Ejemplo n.º 5
0
        public static void Execute()
        {
            if (Player.Instance.ChampionName != ChampName)
            {
                return;
            }

            menuIni = MainMenu.AddMenu("KappaDarius", "KappaDarius");
            menuIni.AddGroupLabel("Darius The Dank Memes Master!");
            menuIni.AddGroupLabel("Çeviri tradana");
            menuIni.AddGroupLabel("Genel Ayarlar");
            menuIni.Add("Items", new CheckBox("İtemleri Kullan?"));
            menuIni.Add("Combo", new CheckBox("Kombo Kullan?"));
            menuIni.Add("Harass", new CheckBox("Dürtme KUllan?"));
            menuIni.Add("Clear", new CheckBox("QSS Kullan?"));
            menuIni.Add("Drawings", new CheckBox("Göstergeler Aç?"));
            menuIni.Add("KillSteal", new CheckBox("Killçal?"));

            QMenu = menuIni.AddSubMenu("Q Settings");
            QMenu.AddGroupLabel("Q Ayarları");
            QMenu.Add("Combo", new CheckBox("Kombo'da Q"));
            QMenu.Add("Harass", new CheckBox("Dürtmede Q"));
            QMenu.AddGroupLabel("Lanetemizleme Ayarı Q için");
            QMenu.Add("Clear", new CheckBox("Q İle Lanetemizleme"));
            QMenu.Add("Qlc", new Slider("Q için en az minyon >=", 3, 1, 10));
            QMenu.AddSeparator();
            QMenu.AddGroupLabel("Ek Ayarlar");
            QMenu.Add("QE", new CheckBox("Her zaman Qdan Önce E", false));
            QMenu.Add("Stick", new CheckBox("Q atılacak Hedefe Doğru Yürü"));
            QMenu.Add("QAA", new CheckBox("Diğer düz vuruşu beklerken Q Kullan", false));
            QMenu.Add("range", new CheckBox("Düşman düzvuruş menzilindeyken Q atma", false));
            QMenu.Add("Flee", new CheckBox("Kaçarken Q (Hedef Takip Etmeyi Yok Say)"));
            QMenu.Add("QFlee", new Slider("Kaçarken Q için canım şundan az %", 90, 0, 100));
            QMenu.Add("Qaoe", new CheckBox("Alan Hasarı için Otomatik Q"));
            QMenu.Add("Qhit", new Slider("Q kaç kişiye vuracaksa >=", 3, 1, 5));

            WMenu = menuIni.AddSubMenu("W Settings");
            WMenu.AddGroupLabel("W Ayarları");
            WMenu.Add("Combo", new CheckBox("Komboda W"));
            WMenu.Add("Harass", new CheckBox("Dürtmede W"));
            WMenu.Add("Clear", new CheckBox("Lanetemizlemede W"));
            WMenu.AddGroupLabel("Ek Ayarlar");
            WMenu.Add("AAr", new CheckBox("W ile Düzvuruş Resetle"));

            EMenu = menuIni.AddSubMenu("E Settings");
            EMenu.AddGroupLabel("E Ayarları");
            EMenu.Add("Combo", new CheckBox("Komboda E"));
            EMenu.Add("Harass", new CheckBox("Dürtmede E"));
            EMenu.AddGroupLabel("Ek Ayarları");
            EMenu.Add("Interrupt", new CheckBox("Tehlikeli yeteneği bozmak için E kullan"));

            RMenu = menuIni.AddSubMenu("R Settings");
            RMenu.AddGroupLabel("R Ayarları");
            RMenu.Add("Combo", new CheckBox("R ile Komboyu bitir(hedefi mahvet)"));
            RMenu.Add("stack", new CheckBox("R kullanmak için Yük(kanama)", false));
            RMenu.Add("count", new Slider("R için Yük Say >=", 5, 0, 5));
            RMenu.Add("SaveR", new CheckBox("Eğer hedef düzvuruşla ölecek mesafedeyse R kullanma", false));
            RMenu.Add("SR", new Slider("Eğer hedef şu kadar düzvuruşla ölecekse R Kullanma X", 1, 0, 6));
            RMenu.Add("semiR", new KeyBind("Yarı Otomatik R", false, KeyBind.BindTypes.HoldActive));

            KillStealMenu = menuIni.AddSubMenu("KillSteal");
            KillStealMenu.AddGroupLabel("KillÇalma Ayarları");
            KillStealMenu.Add("Rks", new CheckBox("R İle çal"));

            if (Player.Spells.FirstOrDefault(o => o.SData.Name.Contains("SummonerDot")) != null)
            {
                KillStealMenu.Add("IGP", new CheckBox("Tutuştur+Kanamayla öldür"));
                KillStealMenu.Add("IG", new CheckBox("Sadece Tutuştur", false));
                KillStealMenu.AddLabel("Tutuştur ve Kanamanın hasarını hesaplayarak hareket et");
                Ignite = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600);
            }

            ManaMenu = menuIni.AddSubMenu("Mana Manager");
            ManaMenu.AddGroupLabel("Dürtme");
            ManaMenu.Add("harassmana", new Slider("En az mana %", 75, 0, 100));
            ManaMenu.AddGroupLabel("Lanetemizleme");
            ManaMenu.Add("lanemana", new Slider("En az mana %", 60, 0, 100));

            ItemsMenu = menuIni.AddSubMenu("Items");
            ItemsMenu.AddGroupLabel("İtem Ayarları");
            ItemsMenu.Add("Hydra", new CheckBox("Kullan Hydra / Timat / Haşmetli Hydra"));
            ItemsMenu.Add("useGhostblade", new CheckBox("Kullan Youmuu'nun kılıcı"));
            ItemsMenu.Add("UseBOTRK", new CheckBox("Mahvolmuş Kılıç Kullan"));
            ItemsMenu.Add("UseBilge", new CheckBox("BilgeWater Palası Kullan"));
            ItemsMenu.AddSeparator();
            ItemsMenu.Add("eL", new Slider("Kullanmak için düşmanın canı", 65, 0, 100));
            ItemsMenu.Add("oL", new Slider("Kullanmak için benim canım", 65, 0, 100));

            DrawMenu = menuIni.AddSubMenu("Drawings");
            DrawMenu.AddGroupLabel("Gösterge Ayarları");
            DrawMenu.Add("Q", new CheckBox("Göster Q"));
            DrawMenu.Add("W", new CheckBox("Göster W"));
            DrawMenu.Add("E", new CheckBox("Göster E"));
            DrawMenu.Add("R", new CheckBox("Göster R"));
            DrawMenu.AddSeparator();
            DrawMenu.AddGroupLabel("Ulti Göstergesi");
            DrawMenu.Add("DrawD", new CheckBox("T hasarını Göster"));
            DrawMenu.Add("Killable", new CheckBox("Ölecek hedefi Göster"));
            DrawMenu.Add("Stacks", new CheckBox("Pasif Yükü Göster"));
            DrawMenu.Add("PPx", new Slider("Pasif Yük Pozisyonu X", 100, 0, 150));
            DrawMenu.Add("PPy", new Slider("Pasid Yük Pozisyonu Y", 100, 0, 150));
            DrawMenu.Add("RHealth", new CheckBox("R den sonraki canı göster"));
            DrawMenu.Add("RHx", new Slider("Rden sonra Can Pozisyonu", 135, 0, 150));

            Q = new Spell.Active(SpellSlot.Q, 400);
            W = new Spell.Active(SpellSlot.W, 300);
            E = new Spell.Skillshot(SpellSlot.E, 550, SkillShotType.Cone, 250, 666, 100);
            R = new Spell.Targeted(SpellSlot.R, 460);

            Game.OnUpdate                    += OnUpdate;
            Drawing.OnDraw                   += OnDraw;
            Drawing.OnEndScene               += OnEndScene;
            Orbwalker.OnPostAttack           += OnAfterAttack;
            Obj_AI_Base.OnSpellCast          += Obj_AI_Base_OnSpellCast;
            Interrupter.OnInterruptableSpell += OnInterruptableTarget;
        }
Ejemplo n.º 6
0
        static Xerath()
        {
            Scryb = new Item((int)ItemId.Farsight_Alteration, 3500f);
            Q     = new Spell.Chargeable(SpellSlot.Q, 750, 1500, 1500, 500, int.MaxValue, 100)
            {
                AllowedCollisionCount = int.MaxValue
            };
            W = new Spell.Skillshot(SpellSlot.W, 1100, SkillShotType.Circular, 250, int.MaxValue, 100)
            {
                AllowedCollisionCount = int.MaxValue
            };
            E = new Spell.Skillshot(SpellSlot.E, 1050, SkillShotType.Linear, 250, 1600, 70)
            {
                AllowedCollisionCount = 0
            };
            R = new Spell.Skillshot(SpellSlot.R, 3200, SkillShotType.Circular, 500, int.MaxValue, 120)
            {
                AllowedCollisionCount = int.MaxValue
            };

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

            Menuini   = MainMenu.AddMenu("Xerath", "Xerath");
            RMenu     = Menuini.AddSubMenu("R 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("Stealer");
            KillStealMenu.AddGroupLabel("Stealer Settings");
            MiscMenu  = Menuini.AddSubMenu("Misc Settings");
            DrawMenu  = Menuini.AddSubMenu("Drawings Settings");
            ColorMenu = Menuini.AddSubMenu("Color Picker");

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

            RMenu.AddGroupLabel("R Settings");
            RMenu.Add("R", new CheckBox("Use R"));
            RMenu.Add("scrybR", new CheckBox("Use Scrybing Orb while Ulting"));
            RMenu.Add("Rmode", new ComboBox("R Mode", 0, "Auto", "Custom Delays", "On Tap"));
            RMenu.Add("Rtap", new KeyBind("R Tap Key", false, KeyBind.BindTypes.HoldActive, 'S'));
            RMenu.AddGroupLabel("R Custom Delays");
            for (var i = 1; i <= 5; i++)
            {
                RMenu.Add("delay" + i, new Slider("Delay " + i, 0, 0, 1500));
            }

            RMenu.Add("Rblock", new CheckBox("Block Commands While Casting R"));
            RMenu.Add("Rnear", new CheckBox("Focus Targets Near Mouse Only"));
            RMenu.Add("Mradius", new Slider("Mouse Radius", 750, 300, 1500));

            HarassMenu.Add("toggle", new KeyBind("Auto Harass", false, KeyBind.BindTypes.PressToggle, 'H'));

            foreach (var spell in SpellList.Where(s => s != 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% > [{0}%]"));
                HarassMenu.AddSeparator(0);

                LaneClearMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                LaneClearMenu.Add(spell.Slot + "mode", new ComboBox(spell.Slot + " Mode", 0, "LaneClear", "LastHit", "Both"));
                LaneClearMenu.Add(spell.Slot + "mana", new Slider("Use " + spell.Slot + " if Mana% > [{0}%]"));
                LaneClearMenu.AddSeparator(0);

                JungleClearMenu.Add(spell.Slot.ToString(), new CheckBox("Use " + spell.Slot));
                JungleClearMenu.Add(spell.Slot + "mana", new Slider("Use " + spell.Slot + " if Mana% > [{0}%]"));
                JungleClearMenu.AddSeparator(0);

                KillStealMenu.Add(spell.Slot + "ks", new CheckBox("KillSteal " + spell.Slot));
                KillStealMenu.Add(spell.Slot + "js", new CheckBox("JungleSteal " + spell.Slot));
                KillStealMenu.AddSeparator(0);
            }

            MiscMenu.AddGroupLabel("Misc Settings");
            MiscMenu.Add("gap", new CheckBox("E Anti-GapCloser"));
            MiscMenu.Add("int", new CheckBox("E Interrupter"));
            MiscMenu.Add("Danger", new ComboBox("Interrupter Danger Level", 1, "High", "Medium", "Low"));
            MiscMenu.Add("flee", new KeyBind("Escape with E", false, KeyBind.BindTypes.HoldActive, 'A'));
            MiscMenu.Add("Notifications", new CheckBox("Use Notifications"));
            MiscMenu.Add("autoECC", new CheckBox("Auto E On CC enemy"));
            MiscMenu.Add("scrybebuy", new CheckBox("Auto Scrybing Orb Buy"));
            MiscMenu.Add("scrybebuylevel", new Slider("Buy Orb at level [{0}]", 9, 1, 18));

            foreach (var spell in SpellList)
            {
                DrawMenu.Add(spell.Slot.ToString(), new CheckBox(spell.Slot + " Range"));
            }

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

            foreach (var spell in SpellList)
            {
                ColorMenu.Add(spell.Slot.ToString(), new ColorPicker(spell.Slot + " Color", Color.Chartreuse));
            }

            Drawing.OnEndScene += Drawing_OnEndScene;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
            Obj_AI_Base.OnProcessSpellCast   += Obj_AI_Base_OnProcessSpellCast;
            Orbwalker.OnPreAttack            += Orbwalker_OnPreAttack;
            Player.OnIssueOrder += Player_OnIssueOrder;
            GameObject.OnCreate += GameObject_OnCreate;
        }