I've tried to use the hunter macros and turn them into a working Ret Paladin pvp dps cycle but i cant seem to get it working heres what it looks like.
Code:
Macro 1: "1"
/dump loadstring("local p = ((UnitHealth(\"Target\") / UnitHealthMax(\"Target\")) * 100) if (p < 20) then RunMacro(\"2\") else RunMacro(\"3\") end") ()
Macro 2: "2"
/dump loadstring("local _,a,_ = GetSpellCooldown(\"Hammer of Wrath\") if (a == 0) then CastSpellByName(\"Hammer of Wrath\") else RunMacro(\"3\") end") ()
Macro 3: "3"
/dump loadstring("local _,a,_ = GetSpellCooldown(\"Crusader Strike\") if (a == 0) then CastSpellByName(\"Crusader Strike\") else RunMacro(\"4\") end") ()
Macro 4: "4"
/dump loadstring("local _,a,_ = GetSpellCooldown(\"Judgement of Justice\") if (a == 0) then CastSpellByName(\"Judgement of Justice\") else RunMacro(\"5\") end") ()
Macro 5: "5"
/dump loadstring("local _,a,_ = GetSpellCooldown(\"Divine Storm\") if (a == 0) then CastSpellByName(\"Divine Storm\") else RunMacro(\"6\") end") ()
Macro 6: "6"
/dump loadstring("if (UnitBuff(\"player\", \"Art of War\")) then RunMacro(\"7\") else RunMacro(\"1\") end") ()
Macro 7: "7"
/dump loadstring("local _,a,_ = GetSpellCooldown(\"Exorcism\") if (a == 0) then CastSpellByName(\"Exorcism\") else RunMacro(\"1\") end") ()
this does nothing at all, so i thought my macro 1 was messed up somehow so i made this as a cycle
Code:
Macro 1: "1"
/dump loadstring("local _,a,_ = GetSpellCooldown(\"Crusader Strike\") if (a == 0) then CastSpellByName(\"Crusader Strike\") else RunMacro(2) end") ()
Macro 2: "2"
/dump loadstring("local _,a,_ = GetSpellCooldown(\"Judgement of Justice\") if (a == 0) then CastSpellByName(\"Judgement of Justice\") else RunMacro(3) end") ()
Macro 3: "3"
/dump loadstring("local _,a,_ = GetSpellCooldown(\"Divine Storm\") if (a == 0) then CastSpellByName(\"Divine Storm\") else RunMacro(1) end") ()
but all this will do is hit Crusader Strike every time the cooldown is up, what am i doing wrong can someone correct this code for me plz?