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; }
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); } }
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()); } }