LYQ wrote:yeah sure that would work
try that
/run AttackTarget() if ind == nil then ind=1 end if (ind==1) then CastSpellByName("Seal of Righteousness") ind=ind+1 elseif (ind==2) then CastSpellByName("Judgement") ind=ind+1 elseif (ind==3) then CastSpellByName("Seal of the Crusader") ind=1 end
I corrected another error you were making
there is a difference between "elseif" and "else if"
eg.
if something then
-- it's something
elseif somethingelse then
-- it's somethingelse, it can not be something
else
-- it's something completely other
-- if not something or somethingelse this code will always run
if somethingelseelse then
-- it's not something, not somethingelse but it's somethingelseelse
end
end
if you get what I mean with that (wanna be-)simple example.
liong story short: you were using "else if" but you meant "elseif"
Your macro is working perfectly, thanks alot
Only one thing, have some syntax to negate ? Because i need to check if the char is already attacking, because in the macro when it end the last action, if i need to use again Judgement it execute the startAttack and the char stop attacking the target, so i need something like this:
- Code: Select all
If !/not attacking then startAttack(); end ...the rest of the code...