private void Harass() { if (targetObj == null || Player.Health * 100 / Player.MaxHealth < Config.Item(Name + "harMode").GetValue <Slider>().Value) { return; } if (SkillE.IsReady() && SkillE.Instance.Name == "RenektonSliceAndDice" && SkillE.InRange(targetObj.Position)) { SkillE.Cast(targetObj.Position + Vector3.Normalize(targetObj.Position - Player.Position) * 200, PacketCast); } if (Config.Item(Name + "useHarW").GetValue <bool>() && SkillW.InRange(targetObj.Position) && !ECasted && SkillW.IsReady()) { SkillW.Cast(PacketCast); } if (Config.Item(Name + "useHarQ").GetValue <bool>() && SkillQ.IsReady() && SkillQ.InRange(targetObj.Position) && !ECasted) { SkillQ.Cast(PacketCast); } if (SkillE.IsReady() && SkillE.Instance.Name != "RenektonSliceAndDice" && !ECasted) { SkillE.Cast(DashBackPos, PacketCast); } if (!SkillE.IsReady()) { DashBackPos = default(Vector3); } }
private void NormalCombo(string Mode) { if (targetObj == null) { return; } if (ItemBool(Mode, "W") && SkillW.IsReady() && SkillW.InRange(targetObj.Position) && (Mode == "Combo" || Player.Distance3D(targetObj) <= Orbwalk.GetAutoAttackRange() + 100)) { SkillW.CastOnUnit(targetObj, PacketCast()); } if (ItemBool(Mode, "E") && SkillE.IsReady() && SkillE.InRange(targetObj.Position) && (Mode == "Combo" || Player.Distance3D(targetObj) <= Orbwalk.GetAutoAttackRange() + 100)) { SkillE.Cast(targetObj.Position, PacketCast()); } if (ItemBool(Mode, "Q") && SkillQ.IsReady() && Player.Distance3D(targetObj) <= Orbwalk.GetAutoAttackRange() + 50) { var DmgAA = Player.GetAutoAttackDamage(targetObj) * Math.Floor(SkillQ.Instance.Cooldown / (1 / (Player.PercentMultiplicativeAttackSpeedMod * 0.638))); if (SkillQ.GetHealthPrediction(targetObj) + 5 <= GetBonusDmg(targetObj) || SkillQ.GetHealthPrediction(targetObj) + 5 > DmgAA + GetBonusDmg(targetObj)) { Orbwalk.SetAttack(false); Player.IssueOrder(GameObjectOrder.AttackUnit, targetObj); Orbwalk.SetAttack(true); } } if (ItemBool(Mode, "Item") && Mode == "Combo" && Items.CanUseItem(Randuin) && Player.CountEnemysInRange(450) >= 1) { Items.UseItem(Randuin); } if (ItemBool(Mode, "Ignite") && Mode == "Combo") { CastIgnite(targetObj); } }
private void NormalCombo() { if (targetObj == null) { return; } if (Config.Item(Name + "eusage").GetValue <bool>() && SkillE.IsReady() && SkillE.Instance.Name == "RenektonSliceAndDice" && SkillE.InRange(targetObj.Position)) { SkillE.Cast(targetObj.Position + Vector3.Normalize(targetObj.Position - Player.Position) * 200, PacketCast); } if (Config.Item(Name + "wusage").GetValue <bool>() && SkillW.InRange(targetObj.Position) && !ECasted && SkillW.IsReady()) { SkillW.Cast(PacketCast); } if (Config.Item(Name + "qusage").GetValue <bool>() && SkillQ.IsReady() && SkillQ.InRange(targetObj.Position) && !ECasted) { SkillQ.Cast(PacketCast); } if (Config.Item(Name + "eusage").GetValue <bool>() && SkillE.IsReady() && SkillE.Instance.Name != "RenektonSliceAndDice" && !ECasted && SkillE.InRange(targetObj.Position)) { SkillE.Cast(targetObj.Position + Vector3.Normalize(targetObj.Position - Player.Position) * 200, PacketCast); } if (Config.Item(Name + "iusage").GetValue <bool>() && !ECasted) { UseItem(targetObj); } if (Config.Item(Name + "ignite").GetValue <bool>()) { CastIgnite(targetObj); } }
private void NormalCombo() { if (Config.Item(Name + "wusage").GetValue <bool>() && SkillW.IsReady() && Player.HasBuff("BurningAgony") && Player.CountEnemysInRange(500) == 0) { SkillW.Cast(); } if (targetObj == null) { return; } if (Config.Item(Name + "qusage").GetValue <bool>() && SkillQ.IsReady()) { if (Config.Item(Name + "smite").GetValue <bool>() && SkillQ.GetPrediction(targetObj).Hitchance == HitChance.Collision) { if (!SmiteCollision(targetObj, SkillQ)) { SkillQ.CastIfHitchanceEquals(targetObj, HitChance.VeryHigh, PacketCast); } } else { SkillQ.CastIfHitchanceEquals(targetObj, HitChance.VeryHigh, PacketCast); } } if (Config.Item(Name + "wusage").GetValue <bool>() && SkillW.IsReady()) { if (Player.Health * 100 / Player.MaxHealth >= Config.Item(Name + "autowusage").GetValue <Slider>().Value) { if (SkillW.InRange(targetObj.Position)) { if (!Player.HasBuff("BurningAgony")) { SkillW.Cast(PacketCast); } } else if (Player.HasBuff("BurningAgony")) { SkillW.Cast(PacketCast); } } else if (Player.HasBuff("BurningAgony")) { SkillW.Cast(PacketCast); } } if (Config.Item(Name + "eusage").GetValue <bool>() && SkillE.IsReady() && LXOrbwalker.InAutoAttackRange(targetObj)) { SkillE.Cast(PacketCast); } if (Config.Item(Name + "iusage").GetValue <bool>() && Items.CanUseItem(Rand) && Player.CountEnemysInRange(450) >= 1) { Items.UseItem(Rand); } if (Config.Item(Name + "ignite").GetValue <bool>()) { CastIgnite(targetObj); } }
private void NormalCombo() { if (targetObj == null) { return; } if (Config.Item("eusage").GetValue <bool>() && SkillE.IsReady() && SkillQ.InRange(targetObj.Position)) { SkillE.Cast(Player.Distance(targetObj) < 450 ? targetObj.Position : targetObj.Position + Vector3.Normalize(targetObj.Position - Player.Position) * 100, PacketCast()); } if (Config.Item("eusage").GetValue <bool>() && flagPos != default(Vector3) && targetObj.IsValidTarget(180, true, flagPos)) { if (Config.Item("qusage").GetValue <bool>() && SkillQ.InRange(targetObj.Position) && SkillQ.IsReady()) { SkillQ.Cast(flagPos, PacketCast()); } } else if (Config.Item("qusage").GetValue <bool>() && SkillQ.InRange(targetObj.Position) && SkillQ.IsReady()) { SkillQ.Cast(targetObj.Position, PacketCast()); } if (Config.Item("rusage").GetValue <bool>() && SkillR.IsReady() && wallObj == null) { switch (Config.Item("ruseMode").GetValue <StringList>().SelectedIndex) { case 0: if (SkillR.InRange(targetObj.Position) && CanKill(targetObj, SkillR)) { SkillR.CastOnUnit(targetObj, PacketCast()); } break; case 1: var UltiObj = ObjectManager.Get <Obj_AI_Hero>().FirstOrDefault(i => i.IsValidTarget(SkillR.Range) && i.CountEnemysInRange(325) >= Config.Item("rmulti").GetValue <Slider>().Value); if (UltiObj != null) { SkillR.CastOnUnit(UltiObj, PacketCast()); } break; } } if (Config.Item("wusage").GetValue <bool>() && SkillW.IsReady() && SkillW.InRange(targetObj.Position) && Player.Health * 100 / Player.MaxHealth <= Config.Item("autowusage").GetValue <Slider>().Value) { SkillW.Cast(PacketCast()); } if (Config.Item("iusage").GetValue <bool>()) { UseItem(targetObj); } if (Config.Item("ignite").GetValue <bool>()) { CastIgnite(targetObj); } }
private void NormalCombo(bool IsHarass = false) { if (targetObj == null) { return; } if (Config.Item("qusage").GetValue <bool>() && SkillQ.IsReady() && Player.Health * 100 / Player.MaxHealth <= Config.Item("autoqusage").GetValue <Slider>().Value&& Player.CountEnemysInRange(800) >= 1) { SkillQ.Cast(PacketCast()); } if (Config.Item("wusage").GetValue <bool>() && SkillW.IsReady() && SkillW.InRange(targetObj.Position)) { if (Utility.IsBothFacing(Player, targetObj, 300)) { if (Player.GetAutoAttackDamage(targetObj) < targetObj.GetAutoAttackDamage(Player) || Player.Health < targetObj.Health) { SkillW.Cast(PacketCast()); } } else if (Player.IsFacing(targetObj) && !targetObj.IsFacing(Player) && Player.Distance(targetObj) > 450) { SkillW.Cast(PacketCast()); } } if (!IsHarass && Config.Item("eusage").GetValue <bool>() && SkillE.IsReady() && SkillE.InRange(targetObj.Position) && Player.Distance(targetObj) > 450) { if (Player.Health * 100 / Player.MaxHealth >= Config.Item("autoeusage").GetValue <Slider>().Value) { SkillE.Cast(targetObj.Position + Vector3.Normalize(targetObj.Position - Player.Position) * 200, PacketCast()); } else if (SkillR.IsReady() || (Player.Mana >= 70 && SkillQ.IsReady())) { SkillE.Cast(targetObj.Position + Vector3.Normalize(targetObj.Position - Player.Position) * 200, PacketCast()); } } if (Config.Item("iusage").GetValue <bool>()) { UseItem(targetObj); } if (Config.Item("ignite").GetValue <bool>()) { CastIgnite(targetObj); } }
private void LaneJungClear() { var minionObj = MinionManager.GetMinions(Player.Position, SkillQ.Range, MinionTypes.All, MinionTeam.NotAlly).FirstOrDefault(); if (minionObj == null) { return; } if (Config.Item("useClearQ").GetValue <bool>() && SkillQ.IsReady() && !Player.HasBuff("PowerBall", true)) { if (!SkillE.InRange(minionObj.Position)) { SkillQ.Cast(PacketCast()); } else if (!Player.HasBuff("DefensiveBallCurl", true)) { SkillQ.Cast(PacketCast()); } } if (Config.Item("useClearW").GetValue <bool>() && SkillW.IsReady() && SkillW.InRange(minionObj.Position) && !Player.HasBuff("PowerBall", true)) { SkillW.Cast(PacketCast()); } if (Config.Item("useClearE").GetValue <bool>() && SkillE.IsReady() && SkillE.InRange(minionObj.Position)) { switch (Config.Item("useClearEMode").GetValue <StringList>().SelectedIndex) { case 0: SkillE.CastOnUnit(minionObj, PacketCast()); break; case 1: if (Player.HasBuff("DefensiveBallCurl", true)) { SkillE.CastOnUnit(minionObj, PacketCast()); } break; } } }
private void NormalCombo() { if (targetObj == null) { return; } if (Config.Item("wusage").GetValue <bool>() && SkillW.IsReady() && SkillW.InRange(targetObj.Position)) { SkillW.CastOnUnit(targetObj, PacketCast()); } if (Config.Item("eusage").GetValue <bool>() && SkillE.IsReady() && SkillE.InRange(targetObj.Position)) { SkillE.Cast(targetObj.Position + Vector3.Normalize(targetObj.Position - Player.Position) * 100, PacketCast()); } if (Config.Item("qusage").GetValue <bool>() && Orbwalk.InAutoAttackRange(targetObj)) { var DmgAA = Player.GetAutoAttackDamage(targetObj) * Math.Floor(SkillQ.Instance.Cooldown / (1 / (Player.PercentMultiplicativeAttackSpeedMod * 0.638))); if ((targetObj.Health <= GetBonusDmg(targetObj) || targetObj.Health > DmgAA + GetBonusDmg(targetObj)) && (SkillQ.IsReady() || Player.HasBuff("NasusQ", true))) { Orbwalk.SetAttack(false); if (!Player.HasBuff("NasusQ", true)) { SkillQ.Cast(PacketCast()); } if (Player.HasBuff("NasusQ", true)) { Player.IssueOrder(GameObjectOrder.AttackUnit, targetObj); } Orbwalk.SetAttack(true); } } if (Config.Item("iusage").GetValue <bool>() && Items.CanUseItem(Rand) && Player.CountEnemysInRange(450) >= 1) { Items.UseItem(Rand); } if (Config.Item("ignite").GetValue <bool>()) { CastIgnite(targetObj); } }
private void OnPossibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell) { if (!Config.Item(Name + "useInterW").GetValue <bool>()) { return; } if (SkillW.IsReady() && SkillE.IsReady() && !SkillW.InRange(unit.Position) && unit.IsValidTarget(SkillE.Range)) { SkillE.Cast(unit.Position + Vector3.Normalize(unit.Position - Player.Position) * 200, PacketCast); } if (unit.IsValidTarget(SkillW.Range) && (SkillW.IsReady() || Player.HasBuff("RenektonPreExecute"))) { if (!Player.HasBuff("RenektonPreExecute")) { SkillW.Cast(PacketCast); } if (Player.HasBuff("RenektonPreExecute")) { Player.IssueOrder(GameObjectOrder.AttackUnit, unit); } } }
private void NormalCombo(string Mode) { if (targetObj == null) { return; } if (ItemBool(Mode, "Q") && Mode == "Combo" && SkillQ.IsReady() && Player.HealthPercentage() <= ItemSlider(Mode, "QUnder") && Player.CountEnemysInRange(800) >= 1) { SkillQ.Cast(PacketCast()); } if (ItemBool(Mode, "W") && SkillW.IsReady() && SkillW.InRange(targetObj.Position)) { if (Utility.IsBothFacing(Player, targetObj, 35)) { if (Player.GetAutoAttackDamage(targetObj, true) < targetObj.GetAutoAttackDamage(Player, true) || Player.Health < targetObj.Health) { SkillW.Cast(PacketCast()); } } else if (Player.IsFacing(targetObj, 35) && !targetObj.IsFacing(Player, 35) && Player.Distance3D(targetObj) > Orbwalk.GetAutoAttackRange() + 50) { SkillW.Cast(PacketCast()); } } if (ItemBool(Mode, "E") && SkillE.IsReady() && SkillE.InRange(targetObj.Position) && (CanKill(targetObj, SkillE) || (Player.Distance3D(targetObj) > Orbwalk.GetAutoAttackRange() + 50 && (Mode == "Combo" || Player.HealthPercentage() >= ItemSlider(Mode, "EAbove"))))) { SkillE.Cast(Player.Position.To2D().Extend(targetObj.Position.To2D(), targetObj.Distance3D(Player) + 200), PacketCast()); } if (ItemBool(Mode, "Item") && Mode == "Combo") { UseItem(targetObj); } if (ItemBool(Mode, "Ignite") && Mode == "Combo") { CastIgnite(targetObj); } }
private void LaneJungClear() { var minionObj = MinionManager.GetMinions(Player.Position, SkillE.Range, MinionTypes.All, MinionTeam.NotAlly); if (minionObj.Count == 0) { return; } if (Config.Item(Name + "useClearE").GetValue <bool>() && SkillE.IsReady() && SkillE.Instance.Name == "RenektonSliceAndDice") { SkillE.Cast(SkillE.GetLineFarmLocation(minionObj.ToList()).Position, PacketCast); } if (Config.Item(Name + "useClearQ").GetValue <bool>() && SkillQ.IsReady() && minionObj.Count(i => i.IsValidTarget(SkillQ.Range)) >= 2 && !ECasted) { SkillQ.Cast(PacketCast); } if (Config.Item(Name + "useClearW").GetValue <bool>() && !ECasted && SkillW.IsReady() && minionObj.FirstOrDefault(i => SkillW.InRange(i.Position) && (Player.Mana >= SkillW.Instance.ManaCost) ? CanKill(i, SkillW, 1) : CanKill(i, SkillW)) != null) { SkillW.Cast(PacketCast); } if (Config.Item(Name + "useClearE").GetValue <bool>() && SkillE.IsReady() && SkillE.Instance.Name != "RenektonSliceAndDice" && !ECasted) { SkillE.Cast(SkillE.GetLineFarmLocation(minionObj.ToList()).Position, PacketCast); } if (Config.Item(Name + "useClearI").GetValue <bool>() && minionObj.Count(i => i.IsValidTarget(350)) >= 2 && !ECasted) { if (Items.CanUseItem(Tiamat)) { Items.UseItem(Tiamat); } if (Items.CanUseItem(Hydra)) { Items.UseItem(Hydra); } } }
private void NormalCombo() { if (targetObj == null) { return; } if (Config.Item(Name + "wusage").GetValue <bool>() && SkillW.IsReady() && SkillW.InRange(targetObj.Position)) { SkillW.CastOnUnit(targetObj, PacketCast); } if (Config.Item(Name + "eusage").GetValue <bool>() && SkillE.IsReady() && SkillE.InRange(targetObj.Position)) { SkillE.Cast(targetObj.Position + Vector3.Normalize(targetObj.Position - Player.Position) * 100, PacketCast); } if (Config.Item(Name + "qusage").GetValue <bool>() && SkillQ.InRange(targetObj.Position)) { var DmgAA = Player.GetAutoAttackDamage(targetObj) * Math.Floor(SkillQ.Instance.Cooldown / (1 / (Player.PercentMultiplicativeAttackSpeedMod * 0.638))); if ((targetObj.Health <= GetBonusDmg(targetObj) || targetObj.Health > DmgAA + GetBonusDmg(targetObj)) && SkillQ.IsReady()) { SkillQ.Cast(PacketCast); } } if (Config.Item(Name + "iusage").GetValue <bool>() && Items.CanUseItem(Rand) && Player.CountEnemysInRange(450) >= 1) { Items.UseItem(Rand); } if (Config.Item(Name + "ignite").GetValue <bool>()) { CastIgnite(targetObj); } }
private void NormalCombo(bool IsHarass = false) { if (targetObj == null) { return; } if (Config.Item("qusage").GetValue <bool>() && SkillQ.IsReady() && targetObj.IsValidTarget(IsHarass ? Orbwalk.GetAutoAttackRange(Player, targetObj) : SkillQ.Range) && !Player.HasBuff("PowerBall", true)) { if (!SkillE.InRange(targetObj.Position)) { SkillQ.Cast(PacketCast()); } else if (!Player.HasBuff("DefensiveBallCurl", true)) { SkillQ.Cast(PacketCast()); } } if (Config.Item("wusage").GetValue <bool>() && SkillW.IsReady() && SkillW.InRange(targetObj.Position) && !Player.HasBuff("PowerBall", true)) { SkillW.Cast(PacketCast()); } if (Config.Item("eusage").GetValue <bool>() && SkillE.IsReady() && SkillE.InRange(targetObj.Position) && Player.Health * 100 / Player.MaxHealth >= Config.Item("autoeusage").GetValue <Slider>().Value) { switch (Config.Item("euseMode").GetValue <StringList>().SelectedIndex) { case 0: SkillE.CastOnUnit(targetObj, PacketCast()); break; case 1: if (Player.HasBuff("DefensiveBallCurl", true)) { SkillE.CastOnUnit(targetObj, PacketCast()); } break; } } if (Config.Item("rusage").GetValue <bool>() && SkillR.IsReady()) { switch (Config.Item("ruseMode").GetValue <StringList>().SelectedIndex) { case 0: if (SkillR.InRange(targetObj.Position)) { SkillR.Cast(PacketCast()); } break; case 1: if (Player.CountEnemysInRange((int)SkillR.Range) >= Config.Item("rmulti").GetValue <Slider>().Value) { SkillR.Cast(PacketCast()); } break; } } if (Config.Item("iusage").GetValue <bool>() && Items.CanUseItem(Rand) && Player.CountEnemysInRange(450) >= 1) { Items.UseItem(Rand); } if (Config.Item("ignite").GetValue <bool>()) { CastIgnite(targetObj); } }
private void OnPossibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell) { if (!ItemBool("Misc", "WInterrupt") || Player.IsDead) { return; } if ((SkillW.IsReady() || Player.HasBuff("RenektonExecuteReady")) && SkillE.IsReady() && !SkillW.InRange(unit.Position) && IsValid(unit, SkillE.Range)) { SkillE.Cast(unit.Position + Vector3.Normalize(unit.Position - Player.Position) * 200, PacketCast()); } if (IsValid(unit, Orbwalk.GetAutoAttackRange() + 50) && (SkillW.IsReady() || Player.HasBuff("RenektonExecuteReady"))) { if (SkillW.IsReady()) { SkillW.Cast(PacketCast()); } if (Player.HasBuff("RenektonExecuteReady")) { Player.IssueOrder(GameObjectOrder.AttackUnit, unit); } } }
private void NormalCombo() { if (Config.Item(Name + "wusage").GetValue <bool>() && SkillW.IsReady() && Player.HasBuff("AuraofDespair") && Player.CountEnemysInRange(500) == 0) { SkillW.Cast(PacketCast); } if (targetObj == null) { return; } if (Config.Item(Name + "qusage").GetValue <bool>() && SkillQ.IsReady() && (CanKill(targetObj, SkillQ) || !LXOrbwalker.InAutoAttackRange(targetObj))) { if (Config.Item(Name + "smite").GetValue <bool>() && SkillQ.GetPrediction(targetObj).Hitchance == HitChance.Collision) { if (!SmiteCollision(targetObj, SkillQ)) { SkillQ.CastIfHitchanceEquals(targetObj, HitChance.VeryHigh, PacketCast); } } else { SkillQ.CastIfHitchanceEquals(targetObj, HitChance.VeryHigh, PacketCast); } } if (Config.Item(Name + "wusage").GetValue <bool>() && SkillW.IsReady()) { if (Player.Mana * 100 / Player.MaxMana >= Config.Item(Name + "autowusage").GetValue <Slider>().Value) { if (SkillW.InRange(targetObj.Position)) { if (!Player.HasBuff("AuraofDespair")) { SkillW.Cast(PacketCast); } } else if (Player.HasBuff("AuraofDespair")) { SkillW.Cast(PacketCast); } } else if (Player.HasBuff("AuraofDespair")) { SkillW.Cast(PacketCast); } } if (Config.Item(Name + "eusage").GetValue <bool>() && SkillE.IsReady() && SkillE.InRange(targetObj.Position)) { SkillE.Cast(PacketCast); } if (Config.Item(Name + "rusage").GetValue <bool>() && SkillR.IsReady()) { switch (Config.Item(Name + "ruseMode").GetValue <StringList>().SelectedIndex) { case 0: if (SkillR.InRange(targetObj.Position) && CanKill(targetObj, SkillR)) { SkillR.Cast(PacketCast); } break; case 1: if (Player.CountEnemysInRange((int)SkillR.Range) >= Config.Item(Name + "rmulti").GetValue <Slider>().Value) { SkillR.Cast(PacketCast); } break; } } if (Config.Item(Name + "iusage").GetValue <bool>() && Items.CanUseItem(Rand) && Player.CountEnemysInRange(450) >= 1) { Items.UseItem(Rand); } if (Config.Item(Name + "ignite").GetValue <bool>()) { CastIgnite(targetObj); } }