private static void Heal() { if (KindredActivator.heal.IsReady() && Player.Instance.HealthPercent <= KindredMenu.spellsHealhp()) { KindredActivator.heal.Cast(); } }
private static void Flee() { var target = TargetSelector.GetTarget(ObjectManager.Player.AttackRange + Q.Range, DamageType.Physical); if (target != null) { if (!Q.IsReady() || !KindredMenu.fleeSmart() || !(KindredMenu.MinmanaFlee() >= Player.Instance.ManaPercent)) { return; } if (ObjectManager.Player.Distance(target.Position) <= ObjectManager.Player.GetAutoAttackRange() && Player.Instance.HealthPercent <= KindredMenu.minQcombo() || ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >= KindredMenu.minQaggresive()) { Player.CastSpell(SpellSlot.Q, -1 * target.Position); } else if (ObjectManager.Player.Distance(target.Position) >= (ObjectManager.Player.GetAutoAttackRange() + Q.Range)) { Player.CastSpell(SpellSlot.Q, target.Position); } else { Player.CastSpell(SpellSlot.Q, Game.ActiveCursorPos); } } else { if (Q.IsReady() && KindredMenu.MinmanaFlee() >= Player.Instance.ManaPercent) { Player.CastSpell(SpellSlot.Q, Game.CursorPos); } } }
private static void OnLoadingComplete(EventArgs args) { if (Player.Instance.ChampionName != "Kindred") { return; } AbilitySequence = new int[] { 2, 1, 3, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3 }; Chat.Print("Kindred Dude Loaded!", Color.CornflowerBlue); Chat.Print("Enjoy the game and DONT FEED!", Color.Red); KindredMenu.loadMenu(); KindredActivator.loadSpells(); Game.OnTick += GameOnTick; Game.OnUpdate += OnGameUpdate; #region Skill Q = new Spell.Skillshot(SpellSlot.Q, (uint)ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).SData.CastRangeDisplayOverride, SkillShotType.Linear); W = new Spell.Active(SpellSlot.W); E = new Spell.Targeted(SpellSlot.E, (uint)ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).SData.CastRange); R = new Spell.Targeted(SpellSlot.R, (uint)ObjectManager.Player.Spellbook.GetSpell(SpellSlot.R).SData.CastRange); #endregion Game.OnUpdate += OnGameUpdate; Drawing.OnDraw += GameOnDraw; Gapcloser.OnGapcloser += AntiGapCloser; }
public void Heal() { if (KindredSpells.heal.IsReady() && Player.Instance.HealthPercent <= KindredMenu.spellsHealhp()) { KindredSpells.heal.Cast(); } }
public void jungleClear() { var minions = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Instance.Position, Player.Instance.AttackRange + KindredSpells.privQ.Range, true).FirstOrDefault(); if (minions == null) { return; } if (KindredSpells.privQ.IsReady() && KindredMenu.useQjungle()) { Player.CastSpell(SpellSlot.Q, Game.CursorPos); } if (KindredSpells.privW.IsReady() && KindredMenu.useWjungle()) { KindredSpells.privW.Cast(minions); } if (KindredSpells.privE.IsReady() && KindredMenu.useEjungle()) { KindredSpells.privE.Cast(minions); } if (KindredSpells.smite.IsReady() && KindredMenu.useSmitejungle()) { KindredSpells.smite.Cast(minions); } }
public void combo() { var target = TargetSelector.GetTarget(ObjectManager.Player.AttackRange + KindredSpells.privQ.Range + 70, DamageType.Physical); if (target == null) { return; } gTarget = target; if (KindredSpells.privR.IsReady() && ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >= KindredMenu.minRcombo() && KindredMenu.useR()) { KindredSpells.privR.Cast(Player.Instance); } if ((ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >= KindredMenu.itemsYOUMUSSenemys() || Player.Instance.HealthPercent >= KindredMenu.itemsYOUMUSShp()) && KindredSpells.youmus.IsReady()) { KindredSpells.youmus.Cast(); } if (Player.Instance.HealthPercent <= KindredMenu.itemsBOTRKhp() && KindredSpells.botrk.IsReady()) { KindredSpells.botrk.Cast(target); } if (KindredSpells.privE.IsReady() && KindredMenu.useE()) { KindredSpells.privE.Cast(target); } if (KindredSpells.privW.IsReady() && KindredMenu.useW()) { KindredSpells.privW.Cast(target); } if (KindredSpells.privQ.IsReady() && KindredMenu.useQ()) { if (KindredMenu.smartQCombo()) { if (ObjectManager.Player.Distance(target.Position) <= ObjectManager.Player.GetAutoAttackRange() && Player.Instance.HealthPercent <= KindredMenu.minQcombo() || ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >= KindredMenu.minQaggresive()) { Player.CastSpell(SpellSlot.Q, -1 * (target.Position)); } else if (ObjectManager.Player.Distance(target.Position) >= (ObjectManager.Player.GetAutoAttackRange() + KindredSpells.privQ.Range)) { Player.CastSpell(SpellSlot.Q, target.Position); } else { Player.CastSpell(SpellSlot.Q, Game.CursorPos); } } else { Player.CastSpell(SpellSlot.Q, Game.CursorPos); } } if (KindredSpells.smite.IsReady() && KindredMenu.useSmiteCombo()) { KindredSpells.smite.Cast(target); } }
private static void OnCombo() { Target = TargetSelector.GetTarget(700, DamageType.Magical); if (Target == null) { return; } if (!Target.IsValidTarget()) { return; } var alvo = TargetSelector.GetTarget(1000, DamageType.Physical); if (alvo == null || !alvo.IsValid || alvo.IsDead || alvo.IsZombie || _Player.IsDead) { return; } if (E.IsReady() && KindredMenu.kincombo["combo.E"].Cast <CheckBox>().CurrentValue&& alvo.Distance(_Player) <= 500) { E.Cast(alvo); } if (W.State == SpellState.Ready && KindredMenu.kincombo["combo.W"].Cast <CheckBox>().CurrentValue&& alvo.Distance(_Player) <= 700) { W.Cast(); } if (Q.IsReady() && KindredMenu.kincombo["combo.Q"].Cast <CheckBox>().CurrentValue&& alvo.Distance(_Player) <= Q.Range + 500) { Player.CastSpell(SpellSlot.Q, Game.CursorPos); } if ((ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >= KindredMenu.itemsYOUMUSenemys() || Player.Instance.HealthPercent >= KindredMenu.itemsYOUMUShp()) && KindredActivator.youmus.IsReady() && KindredMenu.kincombo["combo.Youmuss"].Cast <CheckBox>().CurrentValue&& KindredActivator.youmus.IsOwned()) { KindredActivator.youmus.Cast(); return; } if (Player.Instance.HealthPercent <= KindredMenu.itemsbilgewaterHp() && KindredMenu.kincombo["combo.Bilgewater"].Cast <CheckBox>().CurrentValue&& KindredActivator.bilgewater.IsReady() && KindredActivator.bilgewater.IsOwned()) { KindredActivator.bilgewater.Cast(Target); return; } if (Player.Instance.HealthPercent <= KindredMenu.itemsBOTRKhp() && KindredMenu.kincombo["combo.Botrk"].Cast <CheckBox>().CurrentValue&& KindredActivator.botrk.IsReady() && KindredActivator.botrk.IsOwned()) { KindredActivator.botrk.Cast(Target); } }
private static void OnGameUpdate(EventArgs args) { if (KindredActivator.smite != null) { smite(); } if (KindredActivator.heal != null) { Heal(); } if (KindredActivator.ignite != null) { ignite(); } Player.SetSkinId(KindredMenu.skinId()); }
public void laneClear() { var minions = ObjectManager.Get <Obj_AI_Minion>().Where(minion => minion.IsValid() && Player.Instance.IsInAutoAttackRange(minion)).FirstOrDefault(); if (minions == null) { return; } if (KindredSpells.privQ.IsReady() && KindredMenu.useQlc()) { Player.CastSpell(SpellSlot.Q, Game.CursorPos); } if (KindredSpells.privW.IsReady() && KindredMenu.useWlc()) { KindredSpells.privW.Cast(minions); } if (KindredSpells.privE.IsReady() && KindredMenu.useElc()) { KindredSpells.privE.Cast(minions); } }
public static void gameUpdate(EventArgs args) { if (KindredSpells.smite != null) { k.smite(); } if (KindredSpells.heal != null) { k.Heal(); } if (KindredSpells.ignite != null) { k.ignite(); } if (KindredSpells.privR.IsReady()) { k.activatorR(); } k.ks(KindredMenu.ksQ(), KindredMenu.ksW(), KindredMenu.ksE(), KindredMenu.ksSmite()); Player.SetSkinId(KindredMenu.skinId()); }
// private static KindredMenu mMenu= new KindredMenu(); public static void actives(EventArgs args) { skills(KindredMenu.drawingsQ(), KindredMenu.drawingsW(), KindredMenu.drawingsE(), KindredMenu.drawingsR()); others(KindredMenu.drawingsTarget(), KindredMenu.drawTargetRange()); }
private static void ignite() { var autoIgnite = TargetSelector.GetTarget(KindredActivator.ignite.Range, DamageType.True); if (autoIgnite != null && autoIgnite.Health <= Player.Instance.GetSpellDamage(autoIgnite, KindredActivator.ignite.Slot) || autoIgnite != null && autoIgnite.HealthPercent <= KindredMenu.spellsHealignite()) { KindredActivator.ignite.Cast(autoIgnite); } }
private static void GameOnDraw(EventArgs args) { if (KindredMenu.nodraw()) { return; } if (!KindredMenu.onlyReady()) { if (KindredMenu.drawingsQ()) { new Circle() { Color = Color.AliceBlue, Radius = 340, BorderWidth = 2f }.Draw(_Player.Position); } if (KindredMenu.drawingsW()) { new Circle() { Color = Color.OrangeRed, Radius = 800, BorderWidth = 2f }.Draw(_Player.Position); } if (KindredMenu.drawingsE()) { new Circle() { Color = Color.Cyan, Radius = 500, BorderWidth = 2f }.Draw(_Player.Position); } if (KindredMenu.drawingsR()) { new Circle() { Color = Color.SkyBlue, Radius = 500, BorderWidth = 2f }.Draw(_Player.Position); } } else { if (!Q.IsOnCooldown && KindredMenu.drawingsQ()) { new Circle() { Color = Color.AliceBlue, Radius = 340, BorderWidth = 2f }.Draw(_Player.Position); } if (!W.IsOnCooldown && KindredMenu.drawingsW()) { new Circle() { Color = Color.OrangeRed, Radius = 800, BorderWidth = 2f }.Draw(_Player.Position); } if (!E.IsOnCooldown && KindredMenu.drawingsE()) { new Circle() { Color = Color.Cyan, Radius = 500, BorderWidth = 2f }.Draw(_Player.Position); } if (!R.IsOnCooldown && KindredMenu.drawingsR()) { new Circle() { Color = Color.SkyBlue, Radius = 500, BorderWidth = 2f }.Draw(_Player.Position); } } }
public void activatorR() { if ((ObjectManager.Player.CountEnemiesInRange(Player.Instance.AttackRange) >= KindredMenu.utilitiesRenemys() || ObjectManager.Player.HealthPercent <= KindredMenu.utilitiesRhp()) && KindredMenu.utilitiesUseR()) { KindredSpells.privR.Cast(Player.Instance); } foreach (var ally in ObjectManager.Get <AIHeroClient>().Where(a => a.IsAlly && KindredVariables.championNames.Contains(a.ChampionName) && KindredMenu.utilitiesPage[a.ChampionName].Cast <CheckBox>().CurrentValue&&a.HealthPercent <= 12)) { KindredSpells.privR.Cast(ally); } }
public void ignite() { var autoIgnite = TargetSelector.GetTarget(KindredSpells.ignite.Range, DamageType.True); if (autoIgnite != null && autoIgnite.Health <= DamageLibrary.GetSpellDamage(Player.Instance, autoIgnite, KindredSpells.ignite.Slot) || autoIgnite != null && autoIgnite.HealthPercent <= KindredMenu.spellsHealignite()) { KindredSpells.ignite.Cast(autoIgnite); } }