Help with looping an action ever x seconds
Posted: Fri Dec 24, 2010 1:14 am
After a few hours of failing at this figured id come here and maybe get some insight..
I could careless if its done with an ingame macro or if its somehting that starts when the bot loads..
What im looking for is for every 5 seconds for the bot to target pet, assist pet, and attack
What I had in game with macro was
/run TargetUnit("pet")
/run AssistUnit("pet")
/run UseAction(1) -- Reg Attack
/wait 1
/script if UnitHealth("player") > 0 then UseAction(7); end; -- I figured id run a if statement to check if my hp is greater then 0 to keep using action 7 which is where the macro is set on the actionbar.
I just cant get it to loop. If i manually press it, it works but it wont loop. Any help be much appreicated
I could careless if its done with an ingame macro or if its somehting that starts when the bot loads..
What im looking for is for every 5 seconds for the bot to target pet, assist pet, and attack
What I had in game with macro was
/run TargetUnit("pet")
/run AssistUnit("pet")
/run UseAction(1) -- Reg Attack
/wait 1
/script if UnitHealth("player") > 0 then UseAction(7); end; -- I figured id run a if statement to check if my hp is greater then 0 to keep using action 7 which is where the macro is set on the actionbar.
I just cant get it to loop. If i manually press it, it works but it wont loop. Any help be much appreicated