private static void Drawing_OnEndScene(EventArgs args) { if (_Player.IsDead) { return; } if (!DrawMenu["DamageIndicator"].Cast <CheckBox>().CurrentValue) { return; } foreach (var aiHeroClient in EntityManager.Heroes.Enemies) { if (!aiHeroClient.IsHPBarRendered || !aiHeroClient.VisibleOnScreen) { continue; } { if (aiHeroClient.Distance(_Player) < 1500) { foreach (var enemy in EntityManager.Heroes.Enemies.Where(a => !a.IsDead && a.IsHPBarRendered)) { var damage = DmgLib.DmgCalc(enemy); var damagepercent = (enemy.TotalShieldHealth() - damage > 0 ? enemy.TotalShieldHealth() - damage : 0) / (enemy.MaxHealth + enemy.AllShield + enemy.AttackShield + enemy.MagicShield); var hppercent = enemy.TotalShieldHealth() / (enemy.MaxHealth + enemy.AllShield + enemy.AttackShield + enemy.MagicShield); var start = new Vector2((int)(enemy.HPBarPosition.X + Offset.X + damagepercent * 104), (int)(enemy.HPBarPosition.Y + Offset.Y) - -9); var end = new Vector2((int)(enemy.HPBarPosition.X + Offset.X + hppercent * 104) + 2, (int)(enemy.HPBarPosition.Y + Offset.Y) - -9); Drawing.DrawLine(start, end, 9, System.Drawing.Color.Chartreuse); } } } } }
static void Game_OnUpdate(EventArgs args) { if (CheckSkin()) { EloBuddy.Player.SetSkinId(SkinId()); } { if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { var alvo = TargetSelector.GetTarget(Q.Range, DamageType.Magical); var rmax = EntityManager.Heroes.Enemies.Where(t => t.IsInRange(Player.Instance.Position, R.Range) && !t.IsDead && t.IsValid && !t.IsInvulnerable).Count(); if (!alvo.IsValid()) { return; } if (Q.IsReady() && Q.IsInRange(alvo) && ComboMenu["ComboQ"].Cast <CheckBox>().CurrentValue) { Q.Cast(alvo); } if (W.IsReady() && _Player.Distance(alvo) <= _Player.GetAutoAttackRange() + 50 && ComboMenu["ComboW"].Cast <CheckBox>().CurrentValue) { W.Cast(); } if (E.IsReady() && E.IsInRange(alvo) && ComboMenu["ComboE"].Cast <CheckBox>().CurrentValue) { E.Cast(alvo); } if (R.IsReady() && R.IsInRange(alvo) && ComboMenu["ComboE"].Cast <CheckBox>().CurrentValue&& !(rmax >= ComboMenu["MaxR"].Cast <Slider>().CurrentValue)) { R.Cast(alvo); } } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass)) { var alvo = TargetSelector.GetTarget(Q.Range, DamageType.Magical); if (!alvo.IsValid()) { return; } if ((_Player.ManaPercent <= ComboMenu["ManaH"].Cast <Slider>().CurrentValue)) { return; } if (Q.IsReady() && Q.IsInRange(alvo) && ComboMenu["HarassQ"].Cast <CheckBox>().CurrentValue) { Q.Cast(alvo); } if (W.IsReady() && _Player.Distance(alvo) <= _Player.GetAutoAttackRange() + 50 && ComboMenu["HarassW"].Cast <CheckBox>().CurrentValue) { W.Cast(); } if (E.IsReady() && E.IsInRange(alvo) && ComboMenu["HarassE"].Cast <CheckBox>().CurrentValue) { E.Cast(alvo); } if (R.IsReady() && R.IsInRange(alvo) && ComboMenu["HarassR"].Cast <CheckBox>().CurrentValue) { R.Cast(alvo); } } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear)) { var minions = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, _Player.Position, Q.Range).OrderByDescending(x => x.MaxHealth).FirstOrDefault(); var minion = EntityManager.MinionsAndMonsters.EnemyMinions.Where(t => t.IsInRange(Player.Instance.Position, E.Range) && !t.IsDead && t.IsValid && !t.IsInvulnerable).Count(); if ((_Player.ManaPercent <= FarmMenu["ManaF"].Cast <Slider>().CurrentValue)) { return; } if (Q.IsReady() && Q.IsInRange(minions) && FarmMenu["FarmQ"].Cast <CheckBox>().CurrentValue&& minions.Health < DmgLib.QCalc(minions)) { Q.Cast(minions); } if (E.IsReady() && E.IsInRange(minions) && FarmMenu["FarmE"].Cast <CheckBox>().CurrentValue&& (minion >= FarmMenu["MinionE"].Cast <Slider>().CurrentValue)) { E.Cast(minions); } if (R.IsReady() && R.IsInRange(minions) && FarmMenu["FarmR"].Cast <CheckBox>().CurrentValue) { R.Cast(minions); } if (W.IsReady() && _Player.Distance(minions) <= _Player.GetAutoAttackRange() + 50 && FarmMenu["FarmW"].Cast <CheckBox>().CurrentValue) { W.Cast(); } } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit)) { var minions = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, _Player.Position, Q.Range).OrderByDescending(x => x.MaxHealth).FirstOrDefault(); var minion = EntityManager.MinionsAndMonsters.EnemyMinions.Where(t => t.IsInRange(Player.Instance.Position, E.Range) && !t.IsDead && t.IsValid && !t.IsInvulnerable).Count(); if (Q.IsReady() && Q.IsInRange(minions) && FarmMenu["LastQ"].Cast <CheckBox>().CurrentValue&& minions.Health < DmgLib.QCalc(minions)) { Q.Cast(minions); } if (W.IsReady() && _Player.Distance(minions) <= _Player.GetAutoAttackRange() + 50 && FarmMenu["LastW"].Cast <CheckBox>().CurrentValue&& minions.Health < DmgLib.WCalc(minions)) { W.Cast(); } if (E.IsReady() && E.IsInRange(minions) && FarmMenu["LastE"].Cast <CheckBox>().CurrentValue&& (minion >= FarmMenu["MinionE"].Cast <Slider>().CurrentValue&& minions.Health < DmgLib.ECalc(minions))) { E.Cast(minions); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee)) { var Mpos = Game.CursorPos; if (R.IsReady()) { R.Cast(Mpos); } } } } }