static Lucian() { Q = new Spell.Targeted(SpellSlot.Q, 750); W = new Spell.Skillshot(SpellSlot.W, 1000, SkillShotType.Circular, 250, 1500, 80); E = new Spell.Skillshot(SpellSlot.E, 420, SkillShotType.Linear); R = new Spell.Skillshot(SpellSlot.R, 1150, SkillShotType.Linear, 250, 2000, 110); ColorPicker = new ColorPicker[3]; ColorPicker[0] = new ColorPicker("LucianQ", new ColorBGRA(10, 106, 138, 255)); ColorPicker[1] = new ColorPicker("LucianR", new ColorBGRA(177, 67, 191, 255)); ColorPicker[2] = new ColorPicker("LucianHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize( System.Drawing.Color.FromArgb(ColorPicker[2].Color.R, ColorPicker[2].Color.G, ColorPicker[2].Color.B)); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[2].OnColorChange += (a, b) => { DamageIndicator.Color = System.Drawing.Color.FromArgb(b.Color.A, b.Color.R, b.Color.G, b.Color.B); }; Orbwalker.OnPostAttack += Orbwalker_OnPostAttack; Game.OnPostTick += args => IsPreAttack = false; Orbwalker.OnPreAttack += Orbwalker_OnPreAttack; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; PermaShow = new PermaShow("Lucian PermaShow", new Vector2(200, 200)); }
static Lucian() { Q = new Spell.Targeted(SpellSlot.Q, 650); W = new Spell.Skillshot(SpellSlot.W, 1000, SkillShotType.Circular, 320, 1600, 100); E = new Spell.Skillshot(SpellSlot.E, 475, SkillShotType.Linear); R = new Spell.Skillshot(SpellSlot.R, 1150, SkillShotType.Linear, 250, 2000, 110); ColorPicker = new ColorPicker[3]; ColorPicker[0] = new ColorPicker("LucianQ", new ColorBGRA(10, 106, 138, 255)); ColorPicker[1] = new ColorPicker("LucianR", new ColorBGRA(177, 67, 191, 255)); ColorPicker[2] = new ColorPicker("LucianHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize(ColorPicker[2].Color); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[2].OnColorChange += (a, b) => { DamageIndicator.Color = b.Color; }; Orbwalker.OnPostAttack += Orbwalker_OnPostAttack; Orbwalker.OnPreAttack += Orbwalker_OnPreAttack; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; GameObject.OnCreate += GameObject_OnCreate; Spellbook.OnCastSpell += Spellbook_OnCastSpell; }
static Corki() { Q = new Spell.Skillshot(SpellSlot.Q, 825, SkillShotType.Circular, 250, 1000, 250) { AllowedCollisionCount = int.MaxValue }; W = new Spell.Skillshot(SpellSlot.W, 600, SkillShotType.Linear, 250, 650, 120) { AllowedCollisionCount = int.MaxValue }; E = new Spell.Active(SpellSlot.E, 1000); R = new Spell.Skillshot(SpellSlot.R, 1300, SkillShotType.Linear, 175, 2000, 40) { AllowedCollisionCount = 0 }; ColorPicker = new ColorPicker[4]; ColorPicker[0] = new ColorPicker("CorkiQ", new ColorBGRA(243, 109, 160, 255)); ColorPicker[1] = new ColorPicker("CorkiW", new ColorBGRA(255, 210, 54, 255)); ColorPicker[2] = new ColorPicker("CorkiR", new ColorBGRA(1, 109, 160, 255)); ColorPicker[3] = new ColorPicker("CorkiHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize(ColorPicker[3].Color, 1300); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[3].OnColorChange += (sender, args) => { DamageIndicator.Color = args.Color; }; }
static Urgot() { Q = new Spell.Skillshot(SpellSlot.Q, 900, SkillShotType.Linear, 150, 1600, 60); SecondQ = new Spell.Skillshot(SpellSlot.Q, 1200, SkillShotType.Linear, 250, 1600, 60) { AllowedCollisionCount = int.MaxValue }; W = new Spell.Active(SpellSlot.W); E = new Spell.Skillshot(SpellSlot.E, 900, SkillShotType.Circular, 250, 1500, 250); R = new Spell.Targeted(SpellSlot.R, 500); ColorPicker = new ColorPicker[4]; ColorPicker[0] = new ColorPicker("UrgotQ", new ColorBGRA(10, 106, 138, 255)); ColorPicker[1] = new ColorPicker("UrgotE", new ColorBGRA(177, 67, 191, 255)); ColorPicker[2] = new ColorPicker("UrgotR", new ColorBGRA(177, 67, 191, 255)); ColorPicker[3] = new ColorPicker("UrgotHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize(ColorPicker[3].Color); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[3].OnColorChange += (a, b) => DamageIndicator.Color = b.Color; Game.OnTick += Game_OnTick; Game.OnPostTick += args => { Q.Range = 900; Q.AllowedCollisionCount = 0; }; Orbwalker.OnPreAttack += Orbwalker_OnPreAttack; }
static Twitch() { Q = new Spell.Active(SpellSlot.Q); W = new Spell.Skillshot(SpellSlot.W, 900, SkillShotType.Circular, 250, 1400, 275) { AllowedCollisionCount = int.MaxValue }; E = new Spell.Active(SpellSlot.E, 1200); R = new Spell.Active(SpellSlot.R, 950); ColorPicker = new ColorPicker[4]; ColorPicker[0] = new ColorPicker("TwitchW", new ColorBGRA(243, 109, 160, 255)); ColorPicker[1] = new ColorPicker("TwitchE", new ColorBGRA(255, 210, 54, 255)); ColorPicker[2] = new ColorPicker("TwitchR", new ColorBGRA(241, 188, 160, 255)); ColorPicker[3] = new ColorPicker("TwitchHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize(ColorPicker[3].Color, (int)E.Range); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[3].OnColorChange += (sender, args) => { DamageIndicator.Color = args.Color; }; Text = new Text("", new Font("calibri", 15, FontStyle.Regular)); Orbwalker.OnPreAttack += Orbwalker_OnPreAttack; Orbwalker.OnPostAttack += Orbwalker_OnPostAttack; Spellbook.OnCastSpell += Spellbook_OnCastSpell; Game.OnNotify += Game_OnNotify; }
static Varus() { Q = new Spell.Chargeable(SpellSlot.Q, 1000, 1600, 1500, 0, 1900, 70) { AllowedCollisionCount = int.MaxValue }; W = new Spell.Active(SpellSlot.W); E = new Spell.Skillshot(SpellSlot.E, 925, SkillShotType.Circular, 250, 1500, 235); R = new Spell.Skillshot(SpellSlot.R, 1250, SkillShotType.Linear, 250, 1950, 120); ColorPicker = new ColorPicker[4]; ColorPicker[0] = new ColorPicker("VarusQ", new ColorBGRA(10, 106, 138, 255)); ColorPicker[1] = new ColorPicker("VarusE", new ColorBGRA(177, 67, 191, 255)); ColorPicker[2] = new ColorPicker("VarusR", new ColorBGRA(255, 134, 0, 255)); ColorPicker[3] = new ColorPicker("VarusHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize(ColorPicker[3].Color, (int)R.Range); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[3].OnColorChange += (a, b) => { DamageIndicator.Color = b.Color; }; Orbwalker.OnPostAttack += (sender, args) => IsPreAttack = false; Orbwalker.OnPreAttack += (target, args) => IsPreAttack = true; }
static Tristana() { Q = new Spell.Active(SpellSlot.Q); W = new Spell.Skillshot(SpellSlot.W, 900, SkillShotType.Circular, 400, 1400, 150); E = new Spell.Targeted(SpellSlot.E, 600); R = new Spell.Targeted(SpellSlot.R, 600); ColorPicker = new ColorPicker[2]; ColorPicker[0] = new ColorPicker("TristanaW", new ColorBGRA(243, 109, 160, 255)); ColorPicker[1] = new ColorPicker("TristanaHpBar", new ColorBGRA(255, 134, 0, 255)); Text = new Text("", new Font("calibri", 15, FontStyle.Regular)); Orbwalker.OnPreAttack += Orbwalker_OnPreAttack; Orbwalker.OnPostAttack += (sender, args) => { IsPreAttack = false; if (W.IsReady() && Settings.Combo.UseW && Settings.Combo.DoubleWKeybind) { var possibleTargets = EntityManager.Heroes.Enemies.Where( x => x.IsValidTarget(W.Range) && HasExplosiveChargeBuff(x) && CountEStacks(x) == 2); var target = TargetSelector.GetTarget(possibleTargets, DamageType.Physical); if (target != null && !target.Position.IsVectorUnderEnemyTower()) { var buff = target.Buffs.Find(x => x.Name.ToLowerInvariant() == "tristanaechargesound").EndTime; if (buff - Game.Time > Player.Instance.Distance(target) / 1300 + 0.5) { var wPrediction = W.GetPrediction(target); if (wPrediction.HitChance >= HitChance.Medium) { Wtarg = target; Checkw = true; W.Cast(wPrediction.CastPosition); Core.DelayAction(() => WTarget = null, 3000); } } } } }; DamageIndicator.Initalize(ColorPicker[1].Color, 1300); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[1].OnColorChange += (a, b) => { DamageIndicator.Color = b.Color; }; GameObject.OnCreate += GameObject_OnCreate; Messages.OnMessage += Messages_OnMessage; }
static Jhin() { Q = new Spell.Targeted(SpellSlot.Q, 600); W = new Spell.Skillshot(SpellSlot.W, 2500, SkillShotType.Linear, 750, int.MaxValue, 40) { AllowedCollisionCount = -1 }; E = new Spell.Skillshot(SpellSlot.E, 750, SkillShotType.Circular, 750, null, 120); R = new Spell.Skillshot(SpellSlot.R, 3500, SkillShotType.Linear, 200, 5000, 80) { AllowedCollisionCount = -1 }; Cache = StaticCacheProvider.Cache; Damages = Cache.Resolve <CustomCache <int, float> >(); Damages.RefreshRate = 1000; HasBuff = Cache.Resolve <CustomCache <int, bool> >(); HasBuff.RefreshRate = 200; ColorPicker = new ColorPicker[5]; ColorPicker[0] = new ColorPicker("JhinQ", new ColorBGRA(10, 106, 138, 255)); ColorPicker[1] = new ColorPicker("JhinW", new ColorBGRA(177, 67, 191, 255)); ColorPicker[2] = new ColorPicker("JhinE", new ColorBGRA(177, 67, 191, 255)); ColorPicker[3] = new ColorPicker("JhinR", new ColorBGRA(177, 67, 191, 255)); ColorPicker[4] = new ColorPicker("JhinHpBar", new ColorBGRA(255, 134, 0, 255)); Orbwalker.OnPreAttack += (s, a) => { IsPreAttack = true; if (!HasReloadingBuff) { return; } a.Process = false; IsPreAttack = false; }; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; Orbwalker.OnPostAttack += (target, args) => IsPreAttack = false; ChampionTracker.Initialize(ChampionTrackerFlags.VisibilityTracker); Spellbook.OnCastSpell += Spellbook_OnCastSpell; DamageIndicator.Initalize(ColorPicker[4].Color, (int)W.Range); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[4].OnColorChange += (a, b) => { DamageIndicator.Color = b.Color; }; }
static Caitlyn() { Q = new Spell.Skillshot(SpellSlot.Q, 1300, SkillShotType.Linear, 625, 2200, 90) { AllowedCollisionCount = -1 }; W = new Spell.Skillshot(SpellSlot.W, 800, SkillShotType.Circular, 1600) { Width = 20 }; E = new Spell.Skillshot(SpellSlot.E, 800, SkillShotType.Linear, 150, 1600, 80) { AllowedCollisionCount = 0 }; R = new Spell.Targeted(SpellSlot.R, 2000); ColorPicker = new ColorPicker[4]; ColorPicker[0] = new ColorPicker("CaitlynQ", new ColorBGRA(10, 106, 138, 255)); ColorPicker[1] = new ColorPicker("CaitlynE", new ColorBGRA(177, 67, 191, 255)); ColorPicker[2] = new ColorPicker("CaitlynR", new ColorBGRA(255, 134, 0, 255)); ColorPicker[3] = new ColorPicker("CaitlynHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize(ColorPicker[3].Color, (int)R.Range); DamageIndicator.DamageDelegate = HandleDamageIndicator; ChampionTracker.Initialize(ChampionTrackerFlags.LongCastTimeTracker); ColorPicker[3].OnColorChange += (a, b) => { DamageIndicator.Color = b.Color; }; Orbwalker.OnPostAttack += (sender, args) => { IsPreAttack = false; if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { Modes.Combo.Execute(); } }; Orbwalker.OnPreAttack += (target, args) => IsPreAttack = true; Text = new Text("", new Font("calibri", 15, FontStyle.Regular)); ChampionTracker.OnLongSpellCast += ChampionTracker_OnLongSpellCast; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; }
static Quinn() { Q = new Spell.Skillshot(SpellSlot.Q, 1025, SkillShotType.Linear, 250, 1550, 60) { AllowedCollisionCount = 0 }; W = new Spell.Active(SpellSlot.W, 2100); E = new Spell.Targeted(SpellSlot.E, 760); R = new Spell.Active(SpellSlot.R); ColorPicker = new ColorPicker[3]; ColorPicker[0] = new ColorPicker("QuinnQ", new ColorBGRA(10, 106, 138, 255)); ColorPicker[1] = new ColorPicker("QuinnE", new ColorBGRA(255, 134, 0, 255)); ColorPicker[2] = new ColorPicker("QuinnHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize(ColorPicker[2].Color, 1400); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[2].OnColorChange += (a, b) => { DamageIndicator.Color = b.Color; }; Orbwalker.OnPostAttack += (sender, args) => { IsAfterAttack = true; IsPreAttack = false; }; Obj_AI_Base.OnProcessSpellCast += (sender, args) => { if (sender.IsMe && (args.Slot == SpellSlot.E)) { Orbwalker.ResetAutoAttack(); } }; Orbwalker.OnPreAttack += (target, args) => IsPreAttack = true; Game.OnPostTick += args => { IsAfterAttack = false; }; Text = new Text("", new Font("calibri", 15, FontStyle.Regular)); ChampionTracker.Initialize(ChampionTrackerFlags.VisibilityTracker); }
static MissFortune() { Q = new Spell.Targeted(SpellSlot.Q, 720); W = new Spell.Active(SpellSlot.W); E = new Spell.Skillshot(SpellSlot.E, 1000, SkillShotType.Circular) { Width = 350 }; R = new Spell.Skillshot(SpellSlot.R, 1400, SkillShotType.Cone) { Width = (int)Math.PI / 180 * 35 }; CachedComboDamage = Cache.Resolve <CustomCache <KeyValuePair <int, int>, float> >(1000); ColorPicker = new ColorPicker[4]; ColorPicker[0] = new ColorPicker("MissFortuneQ", new ColorBGRA(10, 106, 138, 255)); ColorPicker[1] = new ColorPicker("MissFortuneE", new ColorBGRA(177, 67, 191, 255)); ColorPicker[2] = new ColorPicker("MissFortuneR", new ColorBGRA(255, 134, 0, 255)); ColorPicker[3] = new ColorPicker("MissFortuneHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize(ColorPicker[3].Color, (int)R.Range); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[3].OnColorChange += (a, b) => { DamageIndicator.Color = b.Color; }; Orbwalker.OnPostAttack += (sender, args) => { IsAfterAttack = true; IsPreAttack = false; }; Orbwalker.OnPreAttack += (target, args) => IsPreAttack = true; Game.OnPostTick += args => IsAfterAttack = false; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; Spellbook.OnCastSpell += Spellbook_OnCastSpell; Player.OnIssueOrder += Player_OnIssueOrder; Obj_AI_Base.OnPlayAnimation += Obj_AI_Base_OnPlayAnimation; }
static Corki() { Q = new Spell.Skillshot(SpellSlot.Q, 825, SkillShotType.Circular, 250, 1000, 250) { AllowedCollisionCount = int.MaxValue }; W = new Spell.Skillshot(SpellSlot.W, 600, SkillShotType.Linear, 250, 650, 120) { AllowedCollisionCount = int.MaxValue }; E = new Spell.Active(SpellSlot.E, 1000); R = new Spell.Skillshot(SpellSlot.R, 1300, SkillShotType.Linear, 175, 2000, 40) { AllowedCollisionCount = 0 }; ColorPicker = new ColorPicker[4]; ColorPicker[0] = new ColorPicker("CorkiQ", new ColorBGRA(243, 109, 160, 255)); ColorPicker[1] = new ColorPicker("CorkiW", new ColorBGRA(255, 210, 54, 255)); ColorPicker[2] = new ColorPicker("CorkiR", new ColorBGRA(1, 109, 160, 255)); ColorPicker[3] = new ColorPicker("CorkiHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize(ColorPicker[3].Color, 1300); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[3].OnColorChange += (sender, args) => { DamageIndicator.Color = args.Color; }; ChampionTracker.Initialize(ChampionTrackerFlags.PostBasicAttackTracker); ChampionTracker.OnPostBasicAttack += (sender, args) => IsPreAttack = false; Orbwalker.OnPreAttack += (target, args) => IsPreAttack = true; Obj_AI_Base.OnBuffGain += (sender, args) => { if (sender.IsMe) { R.Range = HasBigRMissile ? (uint)1500 : 1300; } }; }
static Tristana() { Q = new Spell.Active(SpellSlot.Q); W = new Spell.Skillshot(SpellSlot.W, 900, SkillShotType.Circular, 400, 1400, 150); E = new Spell.Targeted(SpellSlot.E, 600); R = new Spell.Targeted(SpellSlot.R, 600); ColorPicker = new ColorPicker[2]; ColorPicker[0] = new ColorPicker("TristanaW", new ColorBGRA(243, 109, 160, 255)); ColorPicker[1] = new ColorPicker("TristanaHpBar", new ColorBGRA(255, 134, 0, 255)); Text = new Text("", new Font("calibri", 15, FontStyle.Regular)); Orbwalker.OnPreAttack += Orbwalker_OnPreAttack; Game.OnPostTick += a => IsPreAttack = false; DamageIndicator.Initalize(System.Drawing.Color.FromArgb(ColorPicker[1].Color.R, ColorPicker[1].Color.G, ColorPicker[1].Color.B), 1300); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[1].OnColorChange += (a, b) => { DamageIndicator.Color = System.Drawing.Color.FromArgb(b.Color.A, b.Color.R, b.Color.G, b.Color.B); }; }
static Graves() { Q = new Spell.Skillshot(SpellSlot.Q, 825, SkillShotType.Linear, 250, 3000, 40) { AllowedCollisionCount = int.MaxValue }; W = new Spell.Skillshot(SpellSlot.W, 900, SkillShotType.Circular, 250, 1500, 225); E = new Spell.Skillshot(SpellSlot.E, 440, SkillShotType.Linear); R = new Spell.Skillshot(SpellSlot.R, 1100, SkillShotType.Linear, 250, 2100, 100) { AllowedCollisionCount = -1 }; RCone = new Spell.Skillshot(SpellSlot.R, 700, SkillShotType.Cone, 0, 2000, 110) { ConeAngleDegrees = (int)(Math.PI / 180 * 70) }; ColorPicker = new ColorPicker[3]; ColorPicker[0] = new ColorPicker("GravesQ", new ColorBGRA(10, 106, 138, 255)); ColorPicker[1] = new ColorPicker("GravesR", new ColorBGRA(177, 67, 191, 255)); ColorPicker[2] = new ColorPicker("GravesHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize(ColorPicker[2].Color); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[2].OnColorChange += (a, b) => { DamageIndicator.Color = b.Color; }; Orbwalker.OnPostAttack += Orbwalker_OnPostAttack; ChampionTracker.Initialize(ChampionTrackerFlags.LongCastTimeTracker); ChampionTracker.OnLongSpellCast += ChampionTracker_OnLongSpellCast; Obj_AI_Base.OnSpellCast += Obj_AI_Base_OnSpellCast; Obj_AI_Base.OnPlayAnimation += Obj_AI_Base_OnPlayAnimation; }
static Graves() { Q = new Spell.Skillshot(SpellSlot.Q, 950, SkillShotType.Linear, 500, 2500, 50) { AllowedCollisionCount = int.MaxValue }; W = new Spell.Skillshot(SpellSlot.W, 950, SkillShotType.Circular, 250, 1200, 250); E = new Spell.Skillshot(SpellSlot.E, 425, SkillShotType.Linear); R = new Spell.Skillshot(SpellSlot.R, 1000, SkillShotType.Linear, 250, 2000, 110) { AllowedCollisionCount = 0 }; RCone = new Spell.Skillshot(SpellSlot.R, 800, SkillShotType.Cone, 250, 2000, 110) { ConeAngleDegrees = (int)(Math.PI / 180 * 70) }; ColorPicker = new ColorPicker[3]; ColorPicker[0] = new ColorPicker("GravesQ", new ColorBGRA(10, 106, 138, 255)); ColorPicker[1] = new ColorPicker("GravesR", new ColorBGRA(177, 67, 191, 255)); ColorPicker[2] = new ColorPicker("GravesHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize(System.Drawing.Color.FromArgb(ColorPicker[2].Color.R, ColorPicker[2].Color.G, ColorPicker[2].Color.B)); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[2].OnColorChange += (a, b) => { DamageIndicator.Color = System.Drawing.Color.FromArgb(b.Color.A, b.Color.R, b.Color.G, b.Color.B); }; Orbwalker.OnPostAttack += Orbwalker_OnPostAttack; Orbwalker.OnPreAttack += Orbwalker_OnPreAttack; ChampionTracker.Initialize(ChampionTrackerFlags.LongCastTimeTracker); ChampionTracker.OnLongSpellCast += ChampionTracker_OnLongSpellCast; Spellbook.OnCastSpell += Spellbook_OnCastSpell; }
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.R); Menu.AddGroupLabel("E Settings"); Menu.Add("UBAddons.Warwick.E.Combo.Only", new CheckBox("Auto use on Combo Only")); Menu.Add("UBAddons.Warwick.E.Attack.Enable", new CheckBox("E on Enemy/Turret/Monster Attack")); Menu.Add("UBAddons.Warwick.E.Spell.Enable", new CheckBox("E on Enemy spell")); #endregion #region Combo ComboMenu = Menu.AddSubMenu("Combo", "UBAddons.ComboMenu" + player.Hero, "Settings your combo below"); { ComboMenu.CreatSlotCheckBox(SpellSlot.Q); ComboMenu.Add("UBAddons.Warwick.Q.HP", new Slider("Min HP for Q behind target", 20)); ComboMenu.CreatSlotCheckBox(SpellSlot.W); ComboMenu.CreatSlotCheckBox(SpellSlot.E); ComboMenu.CreatSlotHitSlider(SpellSlot.E, 2, 1, 6); ComboMenu.CreatSlotCheckBox(SpellSlot.R); } #endregion #region JungleClear JungleClearMenu = Menu.AddSubMenu("JungleClear", "UBAddons.JungleClear" + player.Hero, "Settings your jungleclear below"); { JungleClearMenu.CreatSlotCheckBox(SpellSlot.Q); JungleClearMenu.CreatSlotCheckBox(SpellSlot.E); JungleClearMenu.CreatManaLimit(); } #endregion FleeMenu = Menu.AddSubMenu("Flee", "UBAddons.Flee" + player.Hero, "Setting your flee below"); { string BeginText = Variables.AddonName + "." + Player.Instance.Hero + "."; FleeMenu.Add(BeginText + "Q.ToMinion", new CheckBox("AA to minion")); FleeMenu.Add(BeginText + "Q.ToMonster", new CheckBox("AA to monster")); FleeMenu.Add(BeginText + "Q.ToChamp", new CheckBox("AA to champ")); FleeMenu.Add(BeginText + "Q.HP", new Slider("Min {0}% HP for AA champ & monster", 15)); } #region Misc MiscMenu = Menu.AddSubMenu("Misc", "UBAddons.Misc" + player.Hero, "Settings your misc below"); { MiscMenu.AddGroupLabel("Interrupter settings"); MiscMenu.CreatDangerValueBox(); MiscMenu.CreatSlotCheckBox(SpellSlot.R, "Interrupter"); MiscMenu.AddGroupLabel("Killsteal settings"); MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "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); } }
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 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, "Spam E", "Hold it On"); } #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.CreatSlotComboBox(SpellSlot.E, 0, "Spam E", "Hold it On"); 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.CreatSlotHitSlider(SpellSlot.Q, 5, 1, 10); LaneClearMenu.CreatSlotCheckBox(SpellSlot.E, null, false); LaneClearMenu.CreatSlotComboBox(SpellSlot.E, 0, "Spam E", "Hold it On"); LaneClearMenu.CreatSlotHitSlider(SpellSlot.E, 5, 1, 10); LaneClearMenu.CreatManaLimit(); } #endregion #region JungleClear JungleClearMenu = Menu.AddSubMenu("JungleClear", "UBAddons.JungleClear" + player.Hero, "Settings your jungleclear below"); { JungleClearMenu.CreatSlotCheckBox(SpellSlot.Q); JungleClearMenu.CreatSlotCheckBox(SpellSlot.E); JungleClearMenu.CreatSlotComboBox(SpellSlot.E, 0, "Spam E", "Hold it On"); 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.CreatSlotCheckBox(SpellSlot.E); LastHitMenu.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.W, "GapCloser"); 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.Unknown); } #endregion DamageIndicator.Initalize(MenuValue.Drawings.ColorDmg); } catch (Exception exception) { Debug.Print(exception.ToString(), Console_Message.Error); } }
static Urgot() { Q = new Spell.Skillshot(SpellSlot.Q, 900, SkillShotType.Linear, 150, 1600, 60) { AllowedCollisionCount = 0 }; W = new Spell.Active(SpellSlot.W); E = new Spell.Skillshot(SpellSlot.E, 900, SkillShotType.Circular, 250, 1500, 250) { AllowedCollisionCount = int.MaxValue }; R = new Spell.Targeted(SpellSlot.R, 500); CorrosiveDebufTargets = new List <Obj_AI_Base>(); ColorPicker = new ColorPicker[4]; CachedHasBuff = StaticCacheProvider.Cache.Resolve <Cache.Modules.CustomCache <int, bool> >(200); ColorPicker[0] = new ColorPicker("UrgotQ", new ColorBGRA(10, 106, 138, 255)); ColorPicker[1] = new ColorPicker("UrgotE", new ColorBGRA(177, 67, 191, 255)); ColorPicker[2] = new ColorPicker("UrgotR", new ColorBGRA(177, 67, 191, 255)); ColorPicker[3] = new ColorPicker("UrgotHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize(ColorPicker[3].Color); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[3].OnColorChange += (a, b) => DamageIndicator.Color = b.Color; TearStacker.Initializer(new Dictionary <SpellSlot, float> { { SpellSlot.Q, 2150 } }, () => (Player.Instance.CountEnemiesInRangeCached(1500) == 0) && (Player.Instance.CountEnemyMinionsInRangeCached(1500) == 0) && !HasAnyOrbwalkerFlags); ChampionTracker.Initialize(ChampionTrackerFlags.VisibilityTracker); ChampionTracker.OnLoseVisibility += ChampionTracker_OnLoseVisibility; Game.OnPreTick += args => { if (Core.GameTickCount - _lastScanTick < 100) { return; } CorrosiveDebufTargets.Clear(); }; Game.OnTick += Game_OnTick; GameObject.OnCreate += (sender, args) => { if (!Settings.Combo.UseW || !HasAnyOrbwalkerFlags) { return; } var missileClient = sender as MissileClient; if ((missileClient != null) && missileClient.SpellCaster.IsMe && W.IsReady() && ((missileClient.IsAutoAttack() && (missileClient.Target?.Type == GameObjectType.AIHeroClient)) || StaticCacheProvider.GetChampions(CachedEntityType.EnemyHero, x => x.IsValidTarget() && missileClient.EndPosition.IsInRange(x, missileClient.SData.LineWidth)).Any())) { W.Cast(); } }; }
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); } }
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.Add("UBAddons.Annie.E.Attack.Enable", new CheckBox("E on Enemy/Turret/Monster Attack")); Menu.Add("UBAddons.Annie.E.Spell.Enable", new CheckBox("E on Enemy spell")); Menu.Add("UBAddons.Annie.EQ.Enable", new CheckBox("E on On Q - CanStun")); Menu.CreatSlotHitChance(SpellSlot.W); Menu.CreatSlotHitChance(SpellSlot.R); #endregion #region Combo ComboMenu = Menu.AddSubMenu("Combo", "UBAddons.ComboMenu" + player.Hero, "UB" + player.Hero + " - Settings your combo below"); { ComboMenu.CreatSlotCheckBox(SpellSlot.Q); ComboMenu.CreatSlotCheckBox(SpellSlot.W); ComboMenu.CreatSlotCheckBox(SpellSlot.R); ComboMenu.CreatSlotHitSlider(SpellSlot.R, 2, 1, 5); } #endregion #region Harass HarassMenu = Menu.AddSubMenu("Harass", "UBAddons.HarassMenu" + player.Hero, "UB" + player.Hero + " - Settings your harass below"); { HarassMenu.CreatSlotCheckBox(SpellSlot.Q); HarassMenu.CreatSlotCheckBox(SpellSlot.W); HarassMenu.CreatSlotHitSlider(SpellSlot.W, 1, 1, 5); HarassMenu.CreatManaLimit(); } #endregion #region LaneClear LaneClearMenu = Menu.AddSubMenu("LaneClear", "UBAddons.LaneClear" + player.Hero, "UB" + player.Hero + " - Settings your laneclear below"); { LaneClearMenu.CreatLaneClearOpening(); LaneClearMenu.Add("UBAddons.Annie.Passive.Off", new CheckBox("Stop if I has stun")); LaneClearMenu.Add("UBAddons.Annie.Passive.Count.Buff", new Slider("Stop if my stacks", 3, 1, 4)); LaneClearMenu.CreatSlotCheckBox(SpellSlot.Q); LaneClearMenu.CreatSlotCheckBox(SpellSlot.W, null, false); LaneClearMenu.CreatSlotHitSlider(SpellSlot.W, 5, 1, 10); LaneClearMenu.CreatManaLimit(); } #endregion #region JungleClear JungleClearMenu = Menu.AddSubMenu("JungleClear", "UBAddons.JungleClear" + player.Hero, "UB" + player.Hero + " - Settings your jungleclear below"); { JungleClearMenu.Add("UBAddons.Annie.Passive.Off", new CheckBox("Stop if I has stun", false)); JungleClearMenu.CreatSlotCheckBox(SpellSlot.Q, null, false); JungleClearMenu.CreatSlotCheckBox(SpellSlot.W, null, false); JungleClearMenu.CreatSlotHitSlider(SpellSlot.W, 1, 1, 6); JungleClearMenu.CreatManaLimit(); } #endregion #region Lasthit LastHitMenu = Menu.AddSubMenu("Lasthit", "UBAddons.Lasthit" + player.Hero, "UB" + player.Hero + " - Settings your unkillable minion below"); { LastHitMenu.CreatLasthitOpening(); LastHitMenu.Add("UBAddons.Annie.Passive.Off", new CheckBox("Stop if I has stun")); LastHitMenu.Add("UBAddons.Annie.Passive.Count.Buff", new Slider("Stop if my stacks", 4, 1, 4)); LastHitMenu.CreatSlotCheckBox(SpellSlot.Q); LastHitMenu.CreatSlotCheckBox(SpellSlot.W); LastHitMenu.CreatManaLimit(); } #endregion #region Misc MiscMenu = Menu.AddSubMenu("Misc", "UBAddons.Misc" + player.Hero, "UB" + player.Hero + " - Settings your misc below"); { MiscMenu.AddGroupLabel("Anti Gapcloser settings"); MiscMenu.CreatMiscGapCloser(); MiscMenu.AddLabel("Will Check if only stun"); MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "GapCloser"); MiscMenu.CreatSlotCheckBox(SpellSlot.W, "GapCloser"); MiscMenu.CreatSlotCheckBox(SpellSlot.E, "GapCloser"); MiscMenu.CreatSlotCheckBox(SpellSlot.W, "GapCloser"); MiscMenu.AddGroupLabel("Interrupter settings"); MiscMenu.AddLabel("[repeat] Will Check if only stun"); MiscMenu.CreatDangerValueBox(); MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "Interrupter"); MiscMenu.CreatSlotCheckBox(SpellSlot.W, "Interrupter"); MiscMenu.CreatSlotCheckBox(SpellSlot.E, "Interrupter"); MiscMenu.CreatSlotCheckBox(SpellSlot.R, "Interrupter"); MiscMenu.AddGroupLabel("Killsteal settings"); MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "KillSteal"); MiscMenu.CreatSlotCheckBox(SpellSlot.W, "KillSteal"); MiscMenu.CreatSlotCheckBox(SpellSlot.R, "KillSteal"); } #endregion #region Drawings DrawMenu = Menu.AddSubMenu("Drawings"); { DrawMenu.CreatDrawingOpening(); DrawMenu.CreatColorPicker(SpellSlot.Q); DrawMenu.CreatColorPicker(SpellSlot.W); DrawMenu.CreatColorPicker(SpellSlot.R); DrawMenu.CreatColorPicker(SpellSlot.Unknown); } #endregion DamageIndicator.Initalize(MenuValue.Drawings.ColorDmg); } catch (Exception exception) { Debug.Print(exception.ToString(), Console_Message.Error); } }
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.W); Menu.Add("UBAddons.Viktor.E.Direction", new CheckBox("Allow use E direction")); Menu.AddLabel("Tips: Turn on direction will make your E look like human"); Menu.CreatSlotHitChance(SpellSlot.E); Menu.CreatSlotHitChance(SpellSlot.R); Menu.AddGroupLabel("Immobile Setting"); Menu.Add("UBAddons.Viktor.W.CC", new CheckBox("W CC stacks")); Menu.Add("UBAddons.Viktor.W.Teleport", new CheckBox("W Teleport")); Menu.Add("UBAddons.Viktor.W.Revive", new CheckBox("W Revive")); #endregion #region Combo ComboMenu = Menu.AddSubMenu("Combo", "UBAddons.ComboMenu" + player.Hero, "UB" + player.Hero + " - Settings your combo below"); { ComboMenu.CreatSlotCheckBox(SpellSlot.Q); ComboMenu.CreatSlotCheckBox(SpellSlot.W, null, false); ComboMenu.CreatSlotHitSlider(SpellSlot.W, 1, 1, 5); ComboMenu.CreatSlotCheckBox(SpellSlot.E); ComboMenu.CreatSlotCheckBox(SpellSlot.R); ComboMenu.CreatSlotHitSlider(SpellSlot.R, 2, 1, 5); } #endregion #region Harass HarassMenu = Menu.AddSubMenu("Harass", "UBAddons.HarassMenu" + player.Hero, "UB" + player.Hero + " - Settings your harass below"); { HarassMenu.CreatSlotCheckBox(SpellSlot.Q); HarassMenu.CreatSlotCheckBox(SpellSlot.W, null, false); HarassMenu.CreatSlotHitSlider(SpellSlot.W, 1, 1, 5); HarassMenu.CreatSlotCheckBox(SpellSlot.E); HarassMenu.CreatManaLimit(); } #endregion #region LaneClear LaneClearMenu = Menu.AddSubMenu("LaneClear", "UBAddons.LaneClear" + player.Hero, "UB" + player.Hero + " - Settings your laneclear below"); { LaneClearMenu.CreatLaneClearOpening(); LaneClearMenu.CreatSlotCheckBox(SpellSlot.Q, null, false); LaneClearMenu.CreatSlotCheckBox(SpellSlot.W, null, false); LaneClearMenu.AddLabel("W only work if you upgraded"); LaneClearMenu.CreatSlotHitSlider(SpellSlot.W, 5, 1, 10); LaneClearMenu.CreatSlotCheckBox(SpellSlot.E, null, false); LaneClearMenu.CreatSlotHitSlider(SpellSlot.E, 5, 1, 10); LaneClearMenu.CreatManaLimit(); } #endregion #region JungleClear JungleClearMenu = Menu.AddSubMenu("JungleClear", "UBAddons.JungleClear" + player.Hero, "UB" + player.Hero + " - Settings your jungleclear below"); { JungleClearMenu.CreatSlotCheckBox(SpellSlot.Q, null, false); //JungleClearMenu.CreatSlotCheckBox(SpellSlot.W, null, false); //JungleClearMenu.CreatSlotHitSlider(SpellSlot.W, 1, 1, 6); 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.CreatSlotCheckBox(SpellSlot.E, null, false); LasthitMenu.CreatManaLimit(); } #endregion #region Misc MiscMenu = Menu.AddSubMenu("Misc", "UBAddons.Misc" + player.Hero, "UB" + 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.W, "Interrupter"); MiscMenu.CreatSlotCheckBox(SpellSlot.R, "Interrupter", false); 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"); { 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); } }
static Tristana() { Q = new Spell.Active(SpellSlot.Q); W = new Spell.Skillshot(SpellSlot.W, 900, SkillShotType.Circular, 400, 1400, 150); E = new Spell.Targeted(SpellSlot.E, 600); R = new Spell.Targeted(SpellSlot.R, 600); ColorPicker = new ColorPicker[2]; ColorPicker[0] = new ColorPicker("TristanaW", new ColorBGRA(243, 109, 160, 255)); ColorPicker[1] = new ColorPicker("TristanaHpBar", new ColorBGRA(255, 134, 0, 255)); Text = new Text("", new Font("calibri", 15, FontStyle.Regular)); ComboDamages = Cache.Resolve <CustomCache <int, float> >(1000); Orbwalker.OnPreAttack += Orbwalker_OnPreAttack; Orbwalker.OnPostAttack += (sender, args) => { IsPreAttack = false; if (!W.IsReady() || !Settings.Combo.UseW || !Settings.Combo.DoubleWKeybind) { return; } var possibleTargets = StaticCacheProvider.GetChampions(CachedEntityType.EnemyHero, x => x.IsValidTarget(W.Range) && HasExplosiveChargeBuff(x) && (CountEStacks(x) == 2)); var target = TargetSelector.GetTarget(possibleTargets, DamageType.Physical); if ((target == null) || target.Position.IsVectorUnderEnemyTower()) { return; } var buff = target.Buffs.Find(x => x.Name.ToLowerInvariant() == "tristanaechargesound").EndTime; if (buff - Game.Time < Player.Instance.Distance(target) / 1300 + 0.5) { return; } var wPrediction = W.GetPrediction(target); if (wPrediction.HitChance < HitChance.Medium) { return; } Wtarg = target; Checkw = true; W.Cast(wPrediction.CastPosition); Core.DelayAction(() => WTarget = null, 3000); }; DamageIndicator.Initalize(ColorPicker[1].Color, 1300); DamageIndicator.DamageDelegate = HandleDamageIndicator; ChampionTracker.Initialize(ChampionTrackerFlags.PostBasicAttackTracker); ChampionTracker.OnPostBasicAttack += (sender, args) => { var target = args.Target as AIHeroClient; if ((target != null) && args.Sender.IsMe && (CountEStacks(target) == 2) && (target.TotalHealthWithShields() <= Damage.GetEPhysicalDamage(target, 3) + Damage.GetRDamage(target))) { R.Cast(target); } }; ColorPicker[1].OnColorChange += (a, b) => { DamageIndicator.Color = b.Color; }; GameObject.OnCreate += GameObject_OnCreate; Messages.OnMessage += Messages_OnMessage; }
protected override void CreateMenu() { try { #region Mainmenu Menu = MainMenu.AddMenu("UB" + player.Hero, "UBAddons.MainMenu" + player.Hero, "UB" + player.Hero + " - UBAddons - by U.Boruto"); #endregion #region Combo ComboMenu = Menu.AddSubMenu("Combo", "UBAddons.ComboMenu" + player.Hero, "UB" + player.Hero + " - Settings your combo below"); { ComboMenu.CreatSlotCheckBox(SpellSlot.Q); ComboMenu.CreatSlotCheckBox(SpellSlot.W); ComboMenu.Add("UBAddons.Akali.W.Energy.Min", new Slider("Min energy for W", 175, 0, 200)); ComboMenu.CreatSlotCheckBox(SpellSlot.E); ComboMenu.CreatSlotCheckBox(SpellSlot.R); ComboMenu.Add("UBAddons.Akali.R.Turret", new ComboBox("R to turret if:", 0, "Killable with combo", "Always", "Never")); } #endregion #region Harass HarassMenu = Menu.AddSubMenu("Harass", "UBAddons.HarassMenu" + player.Hero, "UB" + player.Hero + " - Settings your harass below"); { HarassMenu.CreatSlotCheckBox(SpellSlot.Q); HarassMenu.CreatSlotCheckBox(SpellSlot.E); HarassMenu.CreatManaLimit(true); HarassMenu.CreatHarassKeyBind(); } #endregion #region LaneClear LaneClearMenu = Menu.AddSubMenu("LaneClear", "UBAddons.LaneClear" + player.Hero, "UB" + player.Hero + " - Settings your laneclear below"); { LaneClearMenu.CreatLaneClearOpening(); LaneClearMenu.CreatSlotCheckBox(SpellSlot.Q, null, false); LaneClearMenu.CreatSlotCheckBox(SpellSlot.E, null, false); LaneClearMenu.CreatSlotHitSlider(SpellSlot.E, 5, 1, 15); LaneClearMenu.CreatManaLimit(true); } #endregion #region JungleClear JungleClearMenu = Menu.AddSubMenu("JungleClear", "UBAddons.JungleClear" + player.Hero, "UB" + player.Hero + " - Settings your jungleclear below"); { JungleClearMenu.CreatSlotCheckBox(SpellSlot.Q, null, false); JungleClearMenu.CreatSlotCheckBox(SpellSlot.E, null, false); JungleClearMenu.CreatManaLimit(true); } #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, null, false); LasthitMenu.CreatSlotCheckBox(SpellSlot.E, null, false); LasthitMenu.CreatManaLimit(true); } #endregion #region Misc MiscMenu = Menu.AddSubMenu("Misc", "UBAddons.Misc" + player.Hero, "UB" + player.Hero + " - Settings your misc below"); { 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"); { 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); } }
static Ezreal() { Q = new Spell.Skillshot(SpellSlot.Q, 1300, SkillShotType.Linear, 250, 2000, 60); W = new Spell.Skillshot(SpellSlot.W, 1050, SkillShotType.Linear, 250, 1600, 80) { AllowedCollisionCount = int.MaxValue }; E = new Spell.Skillshot(SpellSlot.E, 475, SkillShotType.Linear); R = new Spell.Skillshot(SpellSlot.R, 6000, SkillShotType.Linear, 1000, 2000, 160) { AllowedCollisionCount = int.MaxValue }; ComboDamages = Cache.Resolve <CustomCache <int, float> >(1000); ColorPicker = new ColorPicker[4]; ColorPicker[0] = new ColorPicker("EzrealQ", new ColorBGRA(10, 106, 138, 255)); ColorPicker[1] = new ColorPicker("EzrealW", new ColorBGRA(177, 67, 191, 255)); ColorPicker[2] = new ColorPicker("EzrealE", new ColorBGRA(255, 134, 0, 255)); ColorPicker[3] = new ColorPicker("EzrealHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize(ColorPicker[3].Color); DamageIndicator.DamageDelegate = HandleDamageIndicator; ChampionTracker.Initialize(ChampionTrackerFlags.LongCastTimeTracker); Obj_AI_Base.OnBasicAttack += Obj_AI_Base_OnBasicAttack; Text = new Text("", new Font("calibri", 15, FontStyle.Regular)); ColorPicker[3].OnColorChange += (a, b) => { DamageIndicator.Color = b.Color; }; TearStacker.Initializer(new Dictionary <SpellSlot, float> { { SpellSlot.Q, 5000 }, { SpellSlot.W, 15000 } }, () => Player.Instance.CountEnemiesInRange(1000) == 0 && Player.Instance.CountEnemyMinionsInRange(1000) == 0 && !HasAnyOrbwalkerFlags()); Orbwalker.OnPreAttack += (a, b) => { if (a.IsMe) { return; } IsPreAttack = true; }; Orbwalker.OnPostAttack += (a, b) => { IsPreAttack = false; IsPostAttack = true; }; ChampionTracker.OnLongSpellCast += ChampionTracker_OnLongSpellCast; ChampionTracker.OnPostBasicAttack += ChampionTracker_OnPostBasicAttack; }
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 + ".Alistar.R.Turret", new CheckBox("R when turret hit me")); Menu.Add(Variables.AddonName + ".Alistar.R.Enemy", new Slider("R when around me has Enemy champ", 4, 1, 6)); Menu.Add(Variables.AddonName + ".Alistar.R.HP", new Slider("R when my HP below", 50)); #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); ComboMenu.CreatSlotCheckBox(SpellSlot.R); } #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.CreatSlotHitSlider(SpellSlot.Q, 5, 1, 10); LaneClearMenu.CreatSlotCheckBox(SpellSlot.W, null, false); LaneClearMenu.CreatSlotCheckBox(SpellSlot.E, null, false); LaneClearMenu.CreatSlotHitSlider(SpellSlot.E, 5, 1, 10); 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.W); 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.CreatSlotCheckBox(SpellSlot.W, null, false); LasthitMenu.CreatSlotCheckBox(SpellSlot.E, null, false); LasthitMenu.CreatManaLimit(); } #endregion #region Flee FleeMenu = Menu.AddSubMenu("Flee", Variables.AddonName + ".Flee" + player.Hero, "Setting your flee below"); { string BeginText = Variables.AddonName + "." + Player.Instance.Hero + "."; FleeMenu.Add(BeginText + "W", new CheckBox("W for flee")); FleeMenu.Add(BeginText + "W.ToMonster", new CheckBox("W to monster")); FleeMenu.Add(BeginText + "W.ToChamp", new CheckBox("W to champ")); FleeMenu.Add(BeginText + "W.HP", new Slider("Min {0}% HP for AA champ & monster", 15)); } #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("Interrupter settings"); MiscMenu.CreatDangerValueBox(); MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "Interrupter"); MiscMenu.CreatSlotCheckBox(SpellSlot.W, "Interrupter", false); MiscMenu.AddGroupLabel("Killsteal settings"); MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "KillSteal"); MiscMenu.CreatSlotCheckBox(SpellSlot.W, "KillSteal"); MiscMenu.CreatSlotCheckBox(SpellSlot.E, "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.Unknown); } #endregion DamageIndicator.Initalize(MenuValue.Drawings.ColorDmg); } catch (Exception exception) { Log.Debug.Print(exception.ToString(), Console_Message.Error); } }
protected override void CreateMenu() { try { #region Mainmenu Menu = MainMenu.AddMenu("UB" + player.Hero, "UBMiddle.MainMenu" + player.Hero, "UB" + player.Hero + " - UBMiddle - by U.Boruto"); Menu.AddGroupLabel("General Setting"); Menu.CreatSlotHitChance(SpellSlot.E); Menu.CreatSlotHitChance(SpellSlot.R); #endregion #region Combo ComboMenu = Menu.AddSubMenu("Combo", "UBMiddle.ComboMenu" + player.Hero, "UB" + player.Hero + " - Settings your combo below"); { ComboMenu.CreatSlotCheckBox(SpellSlot.Q); ComboMenu.CreatSlotCheckBox(SpellSlot.W); ComboMenu.CreatSlotComboBox(SpellSlot.W, 0, "After AA", "Before AA"); ComboMenu.CreatSlotCheckBox(SpellSlot.E); ComboMenu.CreatSlotCheckBox(SpellSlot.R); ComboMenu.Add("UBMiddle.Kassadin.R.HP.Enemy", new Slider("Enemy HP {0}% for R", 60)); ComboMenu.Add("UBMiddle.Kassadin.R.HP.My", new Slider("My HP {0}% for R", 30)); } #endregion #region Harass HarassMenu = Menu.AddSubMenu("Harass", "UBMiddle.HarassMenu" + player.Hero, "UB" + player.Hero + " - Settings your harass below"); { HarassMenu.CreatSlotCheckBox(SpellSlot.Q); HarassMenu.CreatSlotCheckBox(SpellSlot.W); HarassMenu.CreatSlotComboBox(SpellSlot.W, 0, "After AA", "Before AA"); HarassMenu.CreatSlotCheckBox(SpellSlot.E); HarassMenu.CreatManaLimit(true); } #endregion #region LaneClear LaneClearMenu = Menu.AddSubMenu("LaneClear", "UBMiddle.LaneClear" + player.Hero, "UB" + player.Hero + " - Settings your laneclear below"); { LaneClearMenu.CreatLaneClearOpening(); LaneClearMenu.CreatSlotCheckBox(SpellSlot.Q, null, false); LaneClearMenu.CreatSlotCheckBox(SpellSlot.W, null, false); LaneClearMenu.CreatSlotCheckBox(SpellSlot.E, null, false); LaneClearMenu.CreatSlotHitSlider(SpellSlot.E, 5, 1, 10); LaneClearMenu.CreatSlotCheckBox(SpellSlot.R); LaneClearMenu.CreatSlotHitSlider(SpellSlot.R, 5, 1, 10); LaneClearMenu.Add("UBMiddle.Kassadin.R.Stack", new Slider("R stack limit", 1, 1, 4)); LaneClearMenu.CreatManaLimit(true); } #endregion #region JungleClear JungleClearMenu = Menu.AddSubMenu("JungleClear", "UBMiddle.JungleClear" + player.Hero, "UB" + player.Hero + " - Settings your jungleclear below"); { JungleClearMenu.CreatSlotCheckBox(SpellSlot.Q, null, false); JungleClearMenu.CreatSlotCheckBox(SpellSlot.W); JungleClearMenu.CreatSlotCheckBox(SpellSlot.E, null, false); JungleClearMenu.CreatSlotCheckBox(SpellSlot.R, null, false); JungleClearMenu.Add("UBMiddle.Kassadin.R.Stack", new Slider("R stack limit", 1, 1, 4)); JungleClearMenu.CreatManaLimit(true); } #endregion #region Lasthit LasthitMenu = Menu.AddSubMenu("Lasthit", "UBMiddle.Lasthit" + player.Hero, "UB" + player.Hero + " - Settings your unkillable minion below"); { LasthitMenu.CreatLasthitOpening(); LasthitMenu.CreatSlotCheckBox(SpellSlot.Q); LasthitMenu.CreatSlotCheckBox(SpellSlot.W); LasthitMenu.CreatSlotCheckBox(SpellSlot.E); LasthitMenu.CreatSlotCheckBox(SpellSlot.R, null, false); LasthitMenu.Add("UBMiddle.Kassadin.R.Stack", new Slider("R stack limit", 1, 1, 4)); LasthitMenu.CreatManaLimit(); } #endregion #region Misc MiscMenu = Menu.AddSubMenu("Misc", "UBMiddle.Misc" + player.Hero, "UB" + 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.Q, "Interrupter"); MiscMenu.AddGroupLabel("Killsteal settings"); MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "KillSteal"); MiscMenu.CreatSlotCheckBox(SpellSlot.W, "KillSteal"); MiscMenu.CreatSlotCheckBox(SpellSlot.E, "KillSteal"); MiscMenu.CreatSlotCheckBox(SpellSlot.R, "KillSteal"); MiscMenu.AddGroupLabel("Deny Recall settings"); MiscMenu.CreatSlotCheckBox(SpellSlot.Q, Misc_Menu_Value.DenyRecall.ToString()); MiscMenu.CreatSlotCheckBox(SpellSlot.E, Misc_Menu_Value.DenyRecall.ToString()); MiscMenu.CreatSlotCheckBox(SpellSlot.R, Misc_Menu_Value.DenyRecall.ToString()); } #endregion #region Drawings DrawMenu = Menu.AddSubMenu("Drawings"); { 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); } }
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.CreatSlotHitChance(SpellSlot.Q); Menu.CreatSlotHitChance(SpellSlot.E, 85); #endregion #region DashMenu DashMenu = Menu.AddSubMenu("R", Variables.AddonName + "RMenu" + player.Hero, "Settings your R Logic below"); { var xxx = Variables.AddonName + "." + player.Hero; DashMenu.CreatSlotComboBox(SpellSlot.R, 0, "To Mouse", "To Side", "To Target"); DashMenu.Add(xxx + ".Dash.Dangerous", new CheckBox("Dangerous Check")); //DashMenu.Add(xxx + ".Dash.Wall", new CheckBox("Check Wall")); DashMenu.Add(xxx + ".Dash.Correct", new CheckBox("Allow Correct the Direction")); DashMenu.Add(xxx + ".Dash.TryE", new CheckBox("Try R for E")); DashMenu.AddLabel("Try R for E only avaiable for To Side"); DashMenu.AddGroupLabel("Dive Turret Calculator"); DashMenu.Add(xxx + ".Dash.DiveTurret", new ComboBox("Dive turret logic", 1, "Not dive turret", "Logic dive turret", "Always allow dive turret")); DashMenu.Add(xxx + ".Dash.DiveTurret.MyHP", new Slider("My min HP for dive turret", 50)); DashMenu.Add(xxx + ".Dash.DiveTurret.Flash", new CheckBox("Don't dive if target has Flash/ Flee spell")); } #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); ComboMenu.CreatSlotCheckBox(SpellSlot.R); } #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.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.CreatSlotHitSlider(SpellSlot.Q, 5, 1, 10); LaneClearMenu.CreatSlotCheckBox(SpellSlot.W, 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.W); JungleClearMenu.CreatSlotCheckBox(SpellSlot.E, null, false); 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); LasthitMenu.CreatSlotCheckBox(SpellSlot.W); LasthitMenu.CreatSlotCheckBox(SpellSlot.E, 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.E, "GapCloser"); MiscMenu.AddGroupLabel("Interrupter settings"); MiscMenu.CreatDangerValueBox(); MiscMenu.CreatSlotCheckBox(SpellSlot.E, "Interrupter"); MiscMenu.AddGroupLabel("Killsteal settings"); MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "KillSteal"); MiscMenu.CreatSlotCheckBox(SpellSlot.W, "KillSteal"); MiscMenu.CreatSlotCheckBox(SpellSlot.E, "KillSteal"); MiscMenu.CreatSlotCheckBox(SpellSlot.R, "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); } }
static Lucian() { Q = new Spell.Targeted(SpellSlot.Q, 650); W = new Spell.Skillshot(SpellSlot.W, 1000, SkillShotType.Circular, 320, 1600, 100); E = new Spell.Skillshot(SpellSlot.E, 475, SkillShotType.Linear); R = new Spell.Skillshot(SpellSlot.R, 1150, SkillShotType.Linear, 250, 2000, 110); CachedComboDamage = Cache.Resolve <CustomCache <KeyValuePair <int, int>, float> >(1000); ColorPicker = new ColorPicker[3]; ColorPicker[0] = new ColorPicker("LucianQ", new ColorBGRA(10, 106, 138, 255)); ColorPicker[1] = new ColorPicker("LucianR", new ColorBGRA(177, 67, 191, 255)); ColorPicker[2] = new ColorPicker("LucianHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize(ColorPicker[2].Color); DamageIndicator.DamageDelegate = HandleDamageIndicator; ColorPicker[2].OnColorChange += (a, b) => { DamageIndicator.Color = b.Color; }; Orbwalker.OnPostAttack += Orbwalker_OnPostAttack; Orbwalker.OnPreAttack += Orbwalker_OnPreAttack; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; GameObject.OnCreate += GameObject_OnCreate; Game.OnPostTick += args => IsPostAttack = false; Obj_AI_Base.OnPlayAnimation += (sender, args) => { if (sender.IsMe && ((args.Animation == "Spell1") || (args.Animation == "Spell2") || (args.Animation == "Spell3")) && HasAnyOrbwalkerFlags) { Player.ForceIssueOrder(GameObjectOrder.MoveTo, Game.CursorPos, false); } }; Spellbook.OnCastSpell += (sender, args) => { if (!sender.Owner.IsMe) { return; } if ((args.Slot != SpellSlot.Q) && (args.Slot != SpellSlot.W) && (args.Slot != SpellSlot.E)) { return; } if (HasAnyOrbwalkerFlags) { if (IsPreAttack) { args.Process = false; return; } if (args.Slot == SpellSlot.E) { LastETime = Core.GameTickCount; } } LastSpellCastTime = Core.GameTickCount; }; }
static Ezreal() { Q = new Spell.Skillshot(SpellSlot.Q, 1300, SkillShotType.Linear, 250, 2000, 60); W = new Spell.Skillshot(SpellSlot.W, 1050, SkillShotType.Linear, 250, 1600, 80) { AllowedCollisionCount = int.MaxValue }; E = new Spell.Skillshot(SpellSlot.E, 475, SkillShotType.Linear); R = new Spell.Skillshot(SpellSlot.R, 6000, SkillShotType.Linear, 1000, 2000, 160) { AllowedCollisionCount = int.MaxValue }; ComboDamages = Cache.Resolve <CustomCache <int, float> >(1000); ColorPicker = new ColorPicker[4]; ColorPicker[0] = new ColorPicker("EzrealQ", new ColorBGRA(10, 106, 138, 255)); ColorPicker[1] = new ColorPicker("EzrealW", new ColorBGRA(177, 67, 191, 255)); ColorPicker[2] = new ColorPicker("EzrealE", new ColorBGRA(255, 134, 0, 255)); ColorPicker[3] = new ColorPicker("EzrealHpBar", new ColorBGRA(255, 134, 0, 255)); DamageIndicator.Initalize(ColorPicker[3].Color); DamageIndicator.DamageDelegate = HandleDamageIndicator; ChampionTracker.Initialize(ChampionTrackerFlags.LongCastTimeTracker); Obj_AI_Base.OnBasicAttack += Obj_AI_Base_OnBasicAttack; Text = new Text("", new Font("calibri", 15, FontStyle.Regular)); ColorPicker[3].OnColorChange += (a, b) => { DamageIndicator.Color = b.Color; }; TearStacker.Initializer(new Dictionary <SpellSlot, float> { { SpellSlot.Q, 3000 }, { SpellSlot.W, 4200 } }, () => (Player.Instance.CountEnemiesInRange(1000) == 0) && (Player.Instance.CountEnemyMinionsInRange(1000) == 0) && !HasAnyOrbwalkerFlags()); Orbwalker.OnPreAttack += (a, b) => { if (a.IsMe) { return; } IsPreAttack = true; }; Orbwalker.OnPostAttack += (a, b) => { IsPreAttack = false; IsPostAttack = true; }; Orbwalker.OnUnkillableMinion += (target, args) => { if (FarmMode && Q.IsReady() && (Q.GetPrediction(target).Collision == false) && (Prediction.Health.GetPrediction(target, (int)((target.DistanceCached(Player.Instance) + Q.CastDelay) / Q.Speed * 1000)) > 0)) { Q.Cast(target.ServerPosition); } }; ChampionTracker.OnLongSpellCast += ChampionTracker_OnLongSpellCast; ChampionTracker.OnPostBasicAttack += ChampionTracker_OnPostBasicAttack; Obj_AI_Base.OnSpellCast += (sender, args) => { if (Settings.Combo.WEComboKeybind && E.IsReady() && sender.IsMe && (args.Slot == SpellSlot.W)) { E.Cast(Player.Instance.Position.Extend(args.End, E.Range - 15).To3D()); } }; }
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); Menu.AddGroupLabel("Card Selector Key"); var Bluekey = Menu.Add(Variables.AddonName + "." + Player.Instance.Hero + ".Key.Blue", new KeyBind("Pick Blue", false, KeyBind.BindTypes.HoldActive, 'S')); Bluekey.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args) { if (args.NewValue && W.IsReady()) { Pick(CardType.Blue); } }; var Redkey = Menu.Add(Variables.AddonName + "." + Player.Instance.Hero + ".Key.Red", new KeyBind("Pick Red", false, KeyBind.BindTypes.HoldActive, 'E')); Redkey.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args) { if (args.NewValue && W.IsReady()) { Pick(CardType.Red); } }; var Goldkey = Menu.Add(Variables.AddonName + "." + Player.Instance.Hero + ".Key.Gold", new KeyBind("Pick Gold", false, KeyBind.BindTypes.HoldActive, 'W')); Goldkey.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args) { if (args.NewValue && W.IsReady()) { Pick(CardType.Yellow); } }; Menu.AddGroupLabel("W Smart Setting (For all mode)"); Menu.Add(Variables.AddonName + "." + Player.Instance.Hero + ".W.Blue.Mana", new Slider("Pick Blue when Mana < {0}%", 20)); Menu.Add(Variables.AddonName + "." + Player.Instance.Hero + ".W.Red", new Slider("Pick Red when can hit {0} unit", 4, 1, 8)); #endregion #region Combo ComboMenu = Menu.AddSubMenu("Combo", "UBAddons.ComboMenu" + player.Hero, "Settings your combo below"); { ComboMenu.CreatSlotCheckBox(SpellSlot.Q); ComboMenu.Add(Variables.AddonName + "." + Player.Instance.Hero + ".Q.Immobilize", new CheckBox("Only immobilize", false)); ComboMenu.CreatSlotCheckBox(SpellSlot.W); ComboMenu.CreatSlotComboBox(SpellSlot.W, 0, "Smart", "Gold", "Red", "Blue"); ComboMenu.Add(Variables.AddonName + "." + Player.Instance.Hero + ".R.AutoPick", new CheckBox("Pick Yellow Card when R")); } #endregion #region Harass HarassMenu = Menu.AddSubMenu("Harass", "UBAddons.HarassMenu" + player.Hero, "Settings your harass below"); { HarassMenu.CreatSlotCheckBox(SpellSlot.Q); HarassMenu.Add(Variables.AddonName + "." + Player.Instance.Hero + ".Q.Immobilize", new CheckBox("Only immobilize", false)); HarassMenu.CreatSlotCheckBox(SpellSlot.W); HarassMenu.CreatSlotComboBox(SpellSlot.W, 0, "Smart", "Gold", "Red", "Blue"); 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); LaneClearMenu.CreatSlotComboBox(SpellSlot.W, 0, "Smart", "Gold", "Red", "Blue"); 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.CreatSlotComboBox(SpellSlot.W, 0, "Smart", "Gold", "Red", "Blue"); 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 Misc MiscMenu = Menu.AddSubMenu("Misc", "UBAddons.Misc" + player.Hero, "Settings your misc below"); { MiscMenu.AddGroupLabel("Interrupter settings"); MiscMenu.CreatDangerValueBox(); MiscMenu.CreatSlotCheckBox(SpellSlot.W, "Interrupter"); MiscMenu.AddGroupLabel("Killsteal settings"); MiscMenu.CreatSlotCheckBox(SpellSlot.Q, "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.R); DrawMenu.CreatColorPicker(SpellSlot.Unknown); } #endregion } catch (Exception exception) { Debug.Print(exception.ToString(), Console_Message.Error); } DamageIndicator.Initalize(MenuValue.Drawings.ColorDmg); }