Hey guys, I am hoping someone could shed some light on what is preventing this set of macros from executing:
Code:
Macro 1: "1"
/run loadstring("local _,_,_,_,_,_,dur,_,_=UnitBuff("player","Slice and Dice")
_,_,_,_,_,_,_,c,_=UnitDebuff("target", "Rupture")
p=GetComboPoints("player", "target");
if(p==3 and dur>=9 and c=="player") then CastSpellByName("Eviscerate")
else
RunMacro(2)
end
Macro 2: "2":
/run loadstring("local _,_,_,_,_,_,dur,_,_=UnitBuff("player","Slice and Dice")
_,_,_,_,_,_,_,c,_=UnitDebuff("target", "Rupture")
p=GetComboPoints("player", "target")
if(p==5 and dur>=9 and c~="player") then
CastSpellByName("Rupture")
else
RunMacro(3)
end
Macro 3: "3":
/run loadstring("local _,_,_,_,_,_,dur,_,_=UnitBuff("player","Slice and Dice")
p=GetComboPoints("player", "target")
if(p==3 and dur<9) then
CastSpellByName("Slice and Dice")
else
CastSpellByName("Mutilate")
end
I had no problem converting this macro (Mutilate spam) from the August /dump posts however:
Code:
Macro:
#show Mutilate
/run RunMacro(1)
/run RunMacro(2)
/run RunMacro(3)
/run RunMacro(4)
/startattack
/cast Mutilate
Macro 1: "1":
/run loadstring("local _, _, _, _, _, _, _, _, interruptAble = UnitCastingInfo(\"target\"); if UnitCastingInfo(\"target\") and not interruptAble then SpellStopCasting() CastSpellByName(\"Kick\") end")()
Macro 2: "2":
/run loadstring("local _, _, _, _, _, _, _, _, interruptAble = UnitChannelInfo(\"target\"); if UnitChannelInfo(\"target\") and not interruptAble then SpellStopCasting() CastSpellByName(\"Kick\") end")()
Macro 3: "3":
/run loadstring("local _, _, _, _, _, _, _, _, interruptAble = UnitCastingInfo(\"focus\"); if UnitCastingInfo(\"focus\") and not interruptAble then SpellStopCasting() CastSpellByName(\"Kick\",\"focus\") end")()
Macro 4: "4":
/run loadstring("local _, _, _, _, _, _, _, _, interruptAble = UnitChannelInfo(\"focus\"); if UnitChannelInfo(\"focus\") and not interruptAble then SpellStopCasting() CastSpellByName(\"Kick\",\"focus\") end")()
Thanks in advance!