public static void Execute8() { //Cast Q var minionQ = EntityManager.MinionsAndMonsters.Get(EntityManager.MinionsAndMonsters.EntityType.Minion, EntityManager.UnitTeam.Enemy, Player.Instance.ServerPosition, SpellsManager.Q.Range) .FirstOrDefault(m => SpellsManager.Q.IsReady() && m.IsValidTarget(SpellsManager.Q.Range) && Prediction.Health.GetPrediction(m, SpellsManager.Q.CastDelay) <= SpellsManager.GetRealDamage(m, SpellSlot.E)); if (Menus.LaneClearMenu["QLastHit"].Cast <CheckBox>().CurrentValue&& SpellsManager.Q.IsReady() && minionQ.IsValidTarget(SpellsManager.Q.Range)) { SpellsManager.Q.Cast(minionQ); } var minione = EntityManager.MinionsAndMonsters.Get(EntityManager.MinionsAndMonsters.EntityType.Minion, EntityManager.UnitTeam.Enemy, Player.Instance.ServerPosition, SpellsManager.E.Range) .FirstOrDefault(); if (Menus.LaneClearMenu["ELastHit"].Cast <CheckBox>().CurrentValue&& SpellsManager.E.IsReady()) { if (minione.Health < SpellsManager.GetRealDamage(minione, SpellSlot.E)) { SpellsManager.E.Cast(minione); } } }
public static void Execute8() { //Cast Q var minionq = EntityManager.MinionsAndMonsters.Get(EntityManager.MinionsAndMonsters.EntityType.Minion, EntityManager.UnitTeam.Enemy, Player.Instance.ServerPosition, SpellsManager.Q.Range) .FirstOrDefault(); if (Menus.LastHitMenu["Q"].Cast <CheckBox>().CurrentValue&& SpellsManager.Q.IsReady()) { /*if (SpellsManager.Q.IsReady() && minionq.IsValidTarget(SpellsManager.Q.Range) && * Prediction.Health.GetPrediction(minionq, SpellsManager.Q.CastDelay) <= * SpellsManager.GetRealDamage(minionq, SpellSlot.Q))*/ if (minionq.Health < SpellsManager.GetRealDamage(minionq, SpellSlot.Q)) { SpellsManager.Q.Cast(minionq); } } var minionw = EntityManager.MinionsAndMonsters.Get(EntityManager.MinionsAndMonsters.EntityType.Minion, EntityManager.UnitTeam.Enemy, Player.Instance.ServerPosition, SpellsManager.W.Range) .FirstOrDefault(); if (Menus.LastHitMenu["W"].Cast <CheckBox>().CurrentValue&& SpellsManager.W.IsReady()) { /* if (SpellsManager.W.IsReady() && minionw.IsValidTarget((SpellsManager.W.Range)) && * Prediction.Health.GetPrediction(minionw, SpellsManager.W.CastDelay) <= * SpellsManager.GetRealDamage(minionw, SpellSlot.W))*/ if (minionw.Health < SpellsManager.GetRealDamage(minionw, SpellSlot.W) && SpellsManager.Q.IsOnCooldown) { SpellsManager.W.Cast(); } } var minione = EntityManager.MinionsAndMonsters.Get(EntityManager.MinionsAndMonsters.EntityType.Minion, EntityManager.UnitTeam.Enemy, Player.Instance.ServerPosition, SpellsManager.E.Range) .FirstOrDefault(); if (Menus.LastHitMenu["E"].Cast <CheckBox>().CurrentValue&& SpellsManager.E.IsReady()) { /* if (SpellsManager.E.IsReady() && minione.IsValidTarget((SpellsManager.E.Range)) && * Prediction.Health.GetPrediction(minione, SpellsManager.E.CastDelay) <= * SpellsManager.GetRealDamage(minione, SpellSlot.E))*/ if (minione.Health < SpellsManager.GetRealDamage(minione, SpellSlot.E)) { SpellsManager.E.Cast(minione); } } }
public static void Execute2() { var qtarget = TargetSelector.GetTarget(SpellsManager.Q.Range, DamageType.Magical); if ((qtarget == null) || qtarget.IsInvulnerable) { return; } //Cast Q if (SpellsManager.Q.IsReady() && qtarget.IsValidTarget(SpellsManager.Q.Range) && Prediction.Health.GetPrediction(qtarget, SpellsManager.Q.CastDelay) <= SpellsManager.GetRealDamage(qtarget, SpellSlot.Q)) { SpellsManager.Q.Cast(qtarget); } }
public static void Execute5() { var rtarget = TargetSelector.GetTarget(SpellsManager.R.Range, DamageType.Mixed); if ((rtarget == null) || rtarget.IsInvulnerable) { return; } //Cast R if (SpellsManager.R.IsReady() && rtarget.IsValidTarget((SpellsManager.R.Range)) && Prediction.Health.GetPrediction(rtarget, SpellsManager.R.CastDelay) <= SpellsManager.GetRealDamage(rtarget, SpellSlot.R)) { SpellsManager.R.Cast(rtarget); } }
public static void Execute4() { var etarget = TargetSelector.GetTarget(SpellsManager.E.Range, DamageType.Magical); if ((etarget == null) || etarget.IsInvulnerable) { return; } //Cast E if (SpellsManager.E.IsReady() && etarget.IsValidTarget((SpellsManager.E.Range)) && Prediction.Health.GetPrediction(etarget, SpellsManager.E.CastDelay) <= SpellsManager.GetRealDamage(etarget, SpellSlot.E)) { SpellsManager.E.Cast(etarget); } }
public static void Execute3() { var wtarget = TargetSelector.GetTarget(SpellsManager.W.Range, DamageType.Mixed); if ((wtarget == null) || wtarget.IsInvulnerable) { return; } //Cast E if (SpellsManager.W.IsReady() && wtarget.IsValidTarget((SpellsManager.W.Range)) && Prediction.Health.GetPrediction(wtarget, SpellsManager.W.CastDelay) <= SpellsManager.GetRealDamage(wtarget, SpellSlot.W)) { SpellsManager.W.Cast(wtarget); } }
private static void Loading_OnLoadingComplete(EventArgs bla) { if (Player.Instance.Hero != Champion.Katarina) { return; } SpellsManager.InitializeSpells(); Menus.CreateMenu(); ModeManager.InitializeModes(); DrawingsManager.InitializeDrawings(); Obj_AI_Base.OnProcessSpellCast += delegate(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (sender.IsMe && (int)args.Slot == 3 && (int)args.Slot == 0) { LockedSpellCasts = true; } }; Obj_AI_Base.OnSpellCast += delegate(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (sender.IsMe && (int)args.Slot == 3 && (int)args.Slot == 0) { LockedSpellCasts = false; } }; Game.OnTick += delegate { if (_lockedTime > 0 && LockedSpellCasts && Core.GameTickCount - _lockedTime > 250) { LockedSpellCasts = false; } }; Chat.Print("Wladis Kata loaded", System.Drawing.Color.OrangeRed); Chat.Print("Credits to Tarakan and Hellsing"); }