public void Damage() { if (VampiricTouch.IsSpellUsable && !ObjectManager.Target.HaveBuff(VampiricTouch.Name)) { MyHelpers.castSpell(VampiricTouch.Name); return; } if (VoidEruption.IsSpellUsable) { MyHelpers.castSpell(VoidEruption.Name); return; } if (ShadowWordVoid.IsSpellUsable) { MyHelpers.castSpell(ShadowWordVoid.Name); return; } if (Shadowfiend.IsSpellUsable) { MyHelpers.castSpell(Shadowfiend.Name); return; } if (MindFly.IsSpellUsable && !MyHelpers.isChanneling()) { MyHelpers.castSpell(MindFly.Name); return; } }
private bool doBuilders() { if (OutlawSettings.CurrentSetting.EnablePistolShot && PistolShot.KnownSpell && PistolShot.IsSpellUsable && MyHelpers.getTargetDistance() <= MyHelpers.getDistanceRange() && ((MyHelpers.haveBuff("Opportunity") && MyHelpers.getComboPoint() <= 4) || (MyHelpers.getTargetDistance() > MyHelpers.getMeleeRange() && !(BetweenTheEyes.IsSpellUsable && MyHelpers.getComboPoint() == 6)) || (MyHelpers.haveBuff("Deadshot") && MyHelpers.haveBuff("Seething Rage") && !BetweenTheEyes.IsSpellUsable) ) ) { MyHelpers.castSpell(PistolShot.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Pistol Shot"")"); return(true); } if (OutlawSettings.CurrentSetting.EnableSinisterStrike && SinisterStrike.KnownSpell && SinisterStrike.IsSpellUsable && MyHelpers.getTargetDistance() <= MyHelpers.getMeleeRange() && MyHelpers.getComboPoint() <= 5) { MyHelpers.castSpell(SinisterStrike.Name); Lua.LuaDoString("dRotationFrame.text:SetText(\"Sinister Strike " + MyHelpers.getTargetDistance() + " / " + MyHelpers.GetMeleeRangeWithTarget() + "\")"); return(true); } return(false); }
public void Buffs() { if (!MyHelpers.haveBuff(ArcaneIntellect.Name)) { MyHelpers.castSpell(ArcaneIntellect.Name); return; } if (needAzshara()) { burstPrepare(); return; } if (needRune()) { MyHelpers.castSpell(RuneofPower.Name); return; } }
private bool doFinishers() { if (OutlawSettings.CurrentSetting.EnableBetweenTheEyes && BetweenTheEyes.KnownSpell && BetweenTheEyes.IsSpellUsable && MyHelpers.getTargetDistance() <= MyHelpers.getDistanceRange() && MyHelpers.getComboPoint() >= 6) { MyHelpers.castSpell(BetweenTheEyes.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Between the Eyes"")"); return(true); } if (OutlawSettings.CurrentSetting.EnableRolltheBones && RolltheBones.KnownSpell && RolltheBones.IsSpellUsable && !BetweenTheEyes.IsSpellUsable && MyHelpers.getTargetDistance() <= MyHelpers.getMeleeRange() && MyHelpers.getComboPoint() >= 6 && MyHelpers.rtbReroll() ) { MyHelpers.castSpell(RolltheBones.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Roll the Bones"")"); return(true); } if (OutlawSettings.CurrentSetting.EnableDispatch && Dispatch.KnownSpell && Dispatch.IsSpellUsable && !BetweenTheEyes.IsSpellUsable && MyHelpers.getTargetDistance() <= MyHelpers.getMeleeRange() && MyHelpers.getComboPoint() >= 6 - MyHelpers.cpReduction()) { MyHelpers.castSpell(Dispatch.Name); Lua.LuaDoString("dRotationFrame.text:SetText(\"Dispatch " + MyHelpers.getTargetDistance() + " / " + MyHelpers.GetMeleeRangeWithTarget() + "\")"); return(true); } return(false); }
public void Damage() { if (Meteor.IsSpellUsable && MyHelpers.haveBuff(RuneofPower.Name) && (MyHelpers.haveBuffStack("Blaster Master") == 3 || (!MyHelpers.haveBuff(Combustion.Name) || MyHelpers.spellCharges(FireBlast.Name) == 0)) && MyHelpers.getTargetDistance() <= 40.0f ) { MyHelpers.castSpell(Meteor.Name); ClickOnTerrain.Pulse(ObjectManager.Target.Position); return; } if (MyHelpers.haveBuff("Hot Streak!") && !buffTime) { while (MyHelpers.haveBuff(Combustion.Name)) { if (MyHelpers.haveBuff("Hot Streak!")) { Pyroblast.Launch(); Thread.Sleep(200); if (MyHelpers.spellCharges(FireBlast.Name) == 0) { Thread.Sleep(200); } canBlast = true; continue; } if (!ObjectManager.Me.IsCast && MyHelpers.spellCharges(FireBlast.Name) > 0 && MyHelpers.haveBuff("Heating Up")) { canBlast = false; MyHelpers.castSpell(FireBlast.Name); continue; } if (MyHelpers.itemIsUsable("Hyperthread Wristwraps") && MyHelpers.spellCharges(FireBlast.Name) == 0 && !ObjectManager.Me.IsCast) { ItemsManager.UseItem(ItemsManager.GetIdByName("Hyperthread Wristwraps")); continue; } if (MyHelpers.spellCharges(FireBlast.Name) == 0 && !MyHelpers.haveBuff("Hot Streak!") && !ObjectManager.Me.IsCast) { Thread.Sleep(400); if (MyHelpers.spellCharges(FireBlast.Name) == 0 && !MyHelpers.haveBuff("Hot Streak!") && !ObjectManager.Me.IsCast) { MyHelpers.castSpell(Scorch.Name); while (ObjectManager.Me.IsCast) { Thread.Sleep(50); } continue; } else { continue; } } } if (MyHelpers.haveBuff("Hot Streak!")) { MyHelpers.castSpell(Pyroblast.Name); } return; } if (MyHelpers.spellCharges(FireBlast.Name) > 0 && !buffTime && MyHelpers.haveBuff("Heating Up") && !MyHelpers.haveBuff(Combustion.Name)) { MyHelpers.castSpell(FireBlast.Name); return; } if (BlazingBarrier.IsSpellUsable) { MyHelpers.castSpell(BlazingBarrier.Name); } if (!MyHelpers.haveBuff("Hot Streak!") && Scorch.IsSpellUsable && !buffTime && (ObjectManager.Me.SpeedMoving > 0 || ObjectManager.Target.HealthPercent < 30)) { Thread.Sleep(100); if (!MyHelpers.haveBuff("Hot Streak!") && Scorch.IsSpellUsable && !buffTime && (ObjectManager.Me.SpeedMoving > 0 || ObjectManager.Target.HealthPercent < 30)) { MyHelpers.castSpell(Scorch.Name); } return; } if (!MyHelpers.haveBuff("Hot Streak!") && !buffTime && !MyHelpers.haveBuff(Combustion.Name) && !(ObjectManager.Me.SpeedMoving > 0 || ObjectManager.Target.HealthPercent < 30)) { MyHelpers.castSpell(Fireball.Name); return; } }
public void burstPrepare() { buffTime = true; doBurst = false; while (!MyHelpers.itemIsUsable("Azshara's Font of Power") || ObjectManager.Me.IsCast) { Thread.Sleep(100); } while (MyHelpers.itemIsUsable("Azshara's Font of Power")) { ItemsManager.UseItem(ItemsManager.GetIdByName("Azshara's Font of Power")); } Thread.Sleep(4020); if (!MyHelpers.inCombat()) { if (MyHelpers.itemIsEquiped("Notorious Gladiator's Badge")) { Thread.Sleep(13000); } if (!MyHelpers.haveBuff("Hot Streak!") && !MyHelpers.haveBuff("Heating Up")) { MyHelpers.castSpell(Fireball.Name); Thread.Sleep(2300); } } if (MyHelpers.itemIsEquiped("Notorious Gladiator's Badge")) { while (!MyHelpers.itemIsUsable("Notorious Gladiator's Badge")) { if (MyHelpers.inCombat()) { if (ObjectManager.Target.HealthPercent < 30 || ObjectManager.Me.SpeedMoving > 0) { if (!MyHelpers.haveBuff("Hot Streak!") && Scorch.IsSpellUsable && (ObjectManager.Me.SpeedMoving > 0 || ObjectManager.Target.HealthPercent < 30)) { Thread.Sleep(100); if (!MyHelpers.haveBuff("Hot Streak!") && Scorch.IsSpellUsable && (ObjectManager.Me.SpeedMoving > 0 || ObjectManager.Target.HealthPercent < 30)) { MyHelpers.castSpell(Scorch.Name); } continue; } if (ObjectManager.Target.HealthPercent < 30 && MyHelpers.haveBuff("Hot Streak!")) { MyHelpers.castSpell(Pyroblast.Name); continue; } } else { if (MyHelpers.haveBuff("Hot Streak!") && MyHelpers.BuffTimeLeft("Hot Streak!") < 10) { MyHelpers.castSpell(Pyroblast.Name); continue; } else if (MyHelpers.spellCharges(FireBlast.Name) > 0 && MyHelpers.haveBuff("Heating Up")) { MyHelpers.castSpell(FireBlast.Name); continue; } else { MyHelpers.castSpell(Fireball.Name); continue; } } } } ; while (!MyHelpers.itemIsUsable("Notorious Gladiator's Badge") || ObjectManager.Me.IsCast) { Thread.Sleep(10); } while (MyHelpers.itemIsUsable("Notorious Gladiator's Badge")) { ItemsManager.UseItem(ItemsManager.GetIdByName("Notorious Gladiator's Badge")); } } if (!MyHelpers.haveBuff("Hot Streak!") && !MyHelpers.haveBuff("Heating Up")) { needBlast = true; } while (!MemoryofLucidDreams.IsSpellUsable || ObjectManager.Me.IsCast) { Thread.Sleep(10); } while (!MyHelpers.haveBuff(MemoryofLucidDreams.Name)) { MyHelpers.castSpell(MemoryofLucidDreams.Name); } Thread.Sleep(100); if (!MyHelpers.haveBuff("Hot Streak!")) { MyHelpers.castSpell(FireBlast.Name); } while (Berserking.IsSpellUsable) { MyHelpers.castSpell(Berserking.Name); } while (!RuneofPower.IsSpellUsable) { Thread.Sleep(10); } while (!MyHelpers.haveBuff(RuneofPower.Name)) { MyHelpers.castSpell(RuneofPower.Name); } while (!Meteor.IsSpellUsable || ObjectManager.Me.IsCast) { Thread.Sleep(10); } while (Meteor.IsSpellUsable) { MyHelpers.castSpell(Meteor.Name); ClickOnTerrain.Pulse(ObjectManager.Target.Position); } while (!Combustion.IsSpellUsable || ObjectManager.Me.IsCast) { Thread.Sleep(10); } while (!MyHelpers.haveBuff(Combustion.Name)) { MyHelpers.castSpell(Combustion.Name); } if (needBlast && !MyHelpers.haveBuff("Hot Streak!")) { MyHelpers.castSpell(FireBlast.Name); } needBlast = false; buffTime = false; return; }
/* * CombatRotation() */ public void CombatRotation() { if (doKicks()) { return; } if (doResist()) { return; } if (Garrote.KnownSpell && Garrote.IsSpellUsable && (!ObjectManager.Target.HaveBuff("Garrote") || MyHelpers.TargetDebuffTimeLeft("Garrote") < 2)) { MyHelpers.castSpell(Garrote.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Garrote"")"); return; } if (EquippedItems.GetEquippedItems().Find(x => x.GetItemInfo.ItemName == ItemsManager.GetNameById(169311)) != null && MyHelpers.getTargetDistance() <= MyHelpers.getMeleeRange() && ObjectManager.Target.IsAttackable && Lua.LuaDoString <bool>(@"if GetItemCooldown(169311) == 0 then return true; else return false; end") && (!ObjectManager.Target.BuffCastedByAll("Razor Coral").Contains(ObjectManager.Me.Guid) || ObjectManager.Target.BuffCastedByAll("Vendetta").Contains(ObjectManager.Me.Guid))) { ItemsManager.UseItem(169311); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Razor Coral"")"); return; } if (Rupture.KnownSpell && Rupture.IsSpellUsable && MyHelpers.getComboPoint() > 4 && (!ObjectManager.Target.HaveBuff("Rupture") || MyHelpers.TargetDebuffTimeLeft("Rupture") < 2)) { MyHelpers.castSpell(Rupture.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Rupture"")"); return; } if (Vendetta.KnownSpell && Vendetta.IsSpellUsable && (MyHelpers.haveOP() > 20 || MyHelpers.haveBL())) { MyHelpers.castSpell(Vendetta.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Vendetta"")"); return; } if (Berserking.KnownSpell && Berserking.IsSpellUsable && ObjectManager.Target.BuffCastedByAll("Vendetta").Contains(ObjectManager.Me.Guid)) { MyHelpers.castSpell(Berserking.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""GuardianofAzeroth"")"); return; } if (GuardianofAzeroth.KnownSpell && GuardianofAzeroth.IsSpellUsable && ObjectManager.Target.BuffCastedByAll("Vendetta").Contains(ObjectManager.Me.Guid)) { MyHelpers.castSpell(GuardianofAzeroth.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""GuardianofAzeroth"")"); return; } if (ToxicBlade.KnownSpell && ToxicBlade.IsSpellUsable && ((!Vendetta.IsSpellUsable && ObjectManager.Target.HaveBuff("Rupture") && MyHelpers.haveBuff("Envenom")) || ObjectManager.Target.BuffCastedByAll("Vendetta").Contains(ObjectManager.Me.Guid))) { MyHelpers.castSpell(ToxicBlade.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Toxic Blade"")"); return; } if (Vanish.KnownSpell && Vanish.IsSpellUsable && Garrote.IsSpellUsable && ObjectManager.Target.BuffCastedByAll("Vendetta").Contains(ObjectManager.Me.Guid)) { MyHelpers.castSpell(Vanish.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Garrote"")"); return; } if (Envenom.KnownSpell && Envenom.IsSpellUsable && MyHelpers.getComboPoint() > 4) { MyHelpers.castSpell(Envenom.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Envenom"")"); return; } if (Mutilate.KnownSpell && Mutilate.IsSpellUsable && MyHelpers.getComboPoint() <= 4) { MyHelpers.castSpell(Mutilate.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Mutilate"")"); return; } }
private bool doBuffs() { if (ObjectManager.Me.HealthPercent < 30) { if (OutlawSettings.CurrentSetting.EnableCrimsonVial && CrimsonVial.KnownSpell && CrimsonVial.IsSpellUsable) { MyHelpers.castSpell(CrimsonVial.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Crimson Vial"")"); return(true); } if (OutlawSettings.CurrentSetting.EnableFeint && Feint.KnownSpell && Feint.IsSpellUsable) { MyHelpers.castSpell(Feint.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Feint"")"); return(true); } if (OutlawSettings.CurrentSetting.EnableRiposte && Riposte.KnownSpell && Riposte.IsSpellUsable) { MyHelpers.castSpell(Riposte.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Riposte"")"); return(true); } } if (OutlawSettings.CurrentSetting.EnableRazorCoral && EquippedItems.GetEquippedItems().Find(x => x.GetItemInfo.ItemName == ItemsManager.GetNameById(169311)) != null && MyHelpers.getTargetDistance() <= MyHelpers.getMeleeRange() && ObjectManager.Target.IsAttackable && Lua.LuaDoString("result = \"\"; local cooldown = GetItemCooldown(169311) if (cooldown == 0 ) then result = true else result = false end ", "result") == "true" && (!ObjectManager.Target.BuffCastedByAll("Razor Coral").Contains(ObjectManager.Me.Guid) || ObjectManager.Target.BuffStack("Razor Coral") >= 10)) { ItemsManager.UseItem(169311); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Razor Coral"")"); return(true); } if (OutlawSettings.CurrentSetting.EnableBladeFlurry && BladeFlurry.KnownSpell && !MyHelpers.haveBuff("Blade Flurry") && BladeFlurry.IsSpellUsable && !MyHelpers.rtbReroll() && (MyHelpers.getAttackers(18) > 2)) { MyHelpers.castSpell(BladeFlurry.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Blade Flurry"")"); return(true); } if (OutlawSettings.CurrentSetting.EnableAdrenalineRush && AdrenalineRush.KnownSpell && AdrenalineRush.IsSpellUsable && !MyHelpers.rtbReroll() && MyHelpers.getTargetDistance() <= MyHelpers.getMeleeRange()) { MyHelpers.castSpell(AdrenalineRush.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Adrenaline Rush"")"); return(true); } if (Berserking.KnownSpell && Berserking.IsSpellUsable && !MyHelpers.rtbReroll() && MyHelpers.getTargetDistance() <= MyHelpers.getMeleeRange()) { MyHelpers.castSpell(Berserking.Name); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Berserking"")"); return(true); } if (OutlawSettings.CurrentSetting.EnableBloodoftheEnemy && BloodoftheEnemy.KnownSpell && BloodoftheEnemy.IsSpellUsable && BetweenTheEyes.IsSpellUsable && MyHelpers.haveBuff(MyHelpers.RuthlessPrecision) && MyHelpers.getComboPoint() >= 6 && MyHelpers.getTargetDistance() <= MyHelpers.getMeleeRange() && (ObjectManager.Target.IsBoss || ObjectManager.Target.IsElite || MyHelpers.getAttackers(18) > 3 || ObjectManager.Target.Name.Contains("Training")) ) { BloodoftheEnemy.Launch(); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Bloodof the Enemy"")"); return(true); } if (FocusedAzeriteBeam.KnownSpell && FocusedAzeriteBeam.IsSpellUsable && MyHelpers.getTargetDistance() <= MyHelpers.getMeleeRange() && MyHelpers.getAttackers(10) > 3 ) { FocusedAzeriteBeam.Launch(false, true, false, "target"); Thread.Sleep(3000); Lua.LuaDoString(@"dRotationFrame.text:SetText(""Bloodof the Enemy"")"); return(true); } return(false); }
public void burstPrepare() { buffTime = true; doBurst = false; while (ObjectManager.Me.IsCast) { ; } Thread.Sleep(1000); if (MyHelpers.itemIsUsable("Azshara's Font of Power")) { ItemsManager.UseItem(ItemsManager.GetIdByName("Azshara's Font of Power")); Thread.Sleep(4020); } if (MyHelpers.itemIsEquiped("Notorious Gladiator's Badge")) { Thread.Sleep(13000); } if (!MyHelpers.haveBuff("Hot Streak!") && !MyHelpers.haveBuff("Heating Up")) { MyHelpers.castSpell(Fireball.Name); Thread.Sleep(2300); } if (MyHelpers.itemIsEquiped("Notorious Gladiator's Badge")) { while (!MyHelpers.itemIsUsable("Notorious Gladiator's Badge")) { ; } while (MyHelpers.itemIsUsable("Notorious Gladiator's Badge")) { ItemsManager.UseItem(ItemsManager.GetIdByName("Notorious Gladiator's Badge")); } } if (!MyHelpers.haveBuff("Hot Streak!") && !MyHelpers.haveBuff("Heating Up")) { needBlast = true; } while (!needLucid() || ObjectManager.Me.IsCast) { ; } MyHelpers.castSpell(MemoryofLucidDreams.Name); Thread.Sleep(100); if (!MyHelpers.haveBuff("Hot Streak!")) { MyHelpers.castSpell(FireBlast.Name); } MyHelpers.castSpell(Berserking.Name); while (!needRune() || ObjectManager.Me.IsCast) { ; } MyHelpers.castSpell(RuneofPower.Name); while (!needCombustion() || ObjectManager.Me.IsCast) { ; } MyHelpers.castSpell(Combustion.Name); if (needBlast && !MyHelpers.haveBuff("Hot Streak!")) { MyHelpers.castSpell(FireBlast.Name); } needBlast = false; buffTime = false; return; }