public static void LoadOKTW() { Q = new Spell(SpellSlot.Q, 625f); W = new Spell(SpellSlot.W, 550f); E = new Spell(SpellSlot.E); R = new Spell(SpellSlot.R, 625f); FR = new Spell(SpellSlot.R, 1000f); Q.SetTargetted(0.25f, 1400f); W.SetSkillshot(0.3f, 80f, float.MaxValue, false, SkillshotType.SkillshotLine); R.SetSkillshot(0.25f, 180f, float.MaxValue, false, SkillshotType.SkillshotCircle); FR.SetSkillshot(0.25f, 180f, float.MaxValue, false, SkillshotType.SkillshotCircle); flash = Player.GetSpellSlot("summonerflash"); drawMenu = Config.AddSubMenu("线圈"); drawMenu.Add("qRange", new CheckBox("Q 范围")); drawMenu.Add("wRange", new CheckBox("W 范围")); drawMenu.Add("rRange", new CheckBox("R 范围")); drawMenu.Add("onlyRdy", new CheckBox("只显示无冷却技能")); QMenu = Config.AddSubMenu("Q 设置"); QMenu.Add("autoQ", new CheckBox("自动 Q")); QMenu.Add("harrasQ", new CheckBox("骚扰 Q")); WMenu = Config.AddSubMenu("W 设置"); WMenu.Add("autoW", new CheckBox("自动 W")); WMenu.Add("harrasW", new CheckBox("骚扰 W")); EMenu = Config.AddSubMenu("E 设置"); EMenu.Add("autoE", new CheckBox("自动叠加E")); RMenu = Config.AddSubMenu("R 设置"); RMenu.AddLabel("0 : 普通"); RMenu.AddLabel("1 : 一直"); RMenu.AddLabel("2 : 从不"); RMenu.AddLabel("3 : 可晕眩时"); foreach (var enemy in ObjectManager.Get <AIHeroClient>().Where(enemy => enemy.IsEnemy)) { RMenu.Add("UM" + enemy.NetworkId, new Slider(enemy.ChampionName, 0, 0, 3)); } RMenu.AddSeparator(); RMenu.Add("autoRks", new CheckBox("自动 R 抢头")); RMenu.Add("autoRcombo", new CheckBox("连招自动R,如果可晕眩")); RMenu.Add("rCount", new Slider("自动 R X 数量", 3, 2, 5)); RMenu.Add("tibers", new CheckBox("自动移动熊")); if (flash != SpellSlot.Unknown) { RMenu.Add("rCountFlash", new Slider("自动闪现 + R 可击晕敌人数量", 4, 2, 5)); } FarmMenu = Config.AddSubMenu("农兵"); FarmMenu.Add("farmQ", new CheckBox("尾兵 Q")); FarmMenu.Add("farmW", new CheckBox("清线 W")); FarmMenu.Add("Mana", new Slider("清线蓝量", 60)); Game.OnUpdate += Game_OnGameUpdate; GameObject.OnCreate += Obj_AI_Base_OnCreate; Drawing.OnDraw += Drawing_OnDraw; }
public static void LoadOKTW() { Q = new Spell(SpellSlot.Q, 625f); W = new Spell(SpellSlot.W, 550f); E = new Spell(SpellSlot.E); R = new Spell(SpellSlot.R, 625f); FR = new Spell(SpellSlot.R, 1000f); Q.SetTargetted(0.25f, 1400f); W.SetSkillshot(0.3f, 80f, float.MaxValue, false, SkillshotType.SkillshotLine); R.SetSkillshot(0.20f, 250f, float.MaxValue, false, SkillshotType.SkillshotCircle); FR.SetSkillshot(0.20f, 250f, float.MaxValue, false, SkillshotType.SkillshotCircle); flash = Player.GetSpellSlot("summonerflash"); drawMenu = Config.AddSubMenu("Draw"); drawMenu.Add("qRange", new CheckBox("Q range")); drawMenu.Add("wRange", new CheckBox("W range")); drawMenu.Add("rRange", new CheckBox("R range")); drawMenu.Add("onlyRdy", new CheckBox("Draw only ready spells")); QMenu = Config.AddSubMenu("Q Config"); QMenu.Add("autoQ", new CheckBox("Auto Q")); QMenu.Add("harrasQ", new CheckBox("Harass Q")); WMenu = Config.AddSubMenu("W Config"); WMenu.Add("autoW", new CheckBox("Auto W")); WMenu.Add("harrasW", new CheckBox("Harass W")); EMenu = Config.AddSubMenu("E Config"); EMenu.Add("autoE", new CheckBox("Auto E stack stun")); RMenu = Config.AddSubMenu("R Config"); RMenu.AddLabel("0 : Normal"); RMenu.AddLabel("1 : Always"); RMenu.AddLabel("2 : Never"); RMenu.AddLabel("3 : Always Stun"); foreach (var enemy in ObjectManager.Get <AIHeroClient>().Where(enemy => enemy.IsEnemy)) { RMenu.Add("UM" + enemy.NetworkId, new Slider(enemy.ChampionName, 0, 0, 3)); } RMenu.AddSeparator(); RMenu.Add("autoRks", new CheckBox("Auto R KS")); RMenu.Add("autoRcombo", new CheckBox("Auto R Combo if stun is ready")); RMenu.Add("rCount", new Slider("Auto R x enemies", 3, 2, 5)); RMenu.Add("tibers", new CheckBox("Tibbers Auto Pilot")); if (flash != SpellSlot.Unknown) { RMenu.Add("rCountFlash", new Slider("Auto flash + R stun x enemies", 4, 2, 5)); } FarmMenu = Config.AddSubMenu("Farm"); FarmMenu.Add("farmQ", new CheckBox("Farm Q")); FarmMenu.Add("farmW", new CheckBox("Lane clear W")); FarmMenu.Add("Mana", new Slider("LaneClear Mana", 60)); Game.OnUpdate += Game_OnGameUpdate; GameObject.OnCreate += Obj_AI_Base_OnCreate; Drawing.OnDraw += Drawing_OnDraw; }
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); } }