Trying to get make a spam able melee attack macro, but the problem each time I push it it turns on/off auto attack and I want it just to turn it on and then ignore that command.
I have tried both:
/////////////////////
/script if (not PlayerFrame.inCombat) then AttackTarget() end
/cast Counterattack
/cast Mongoose Bite
/cast Raptor Strike
/////////////////////////////////////
/script if not IsAutoRepeatAction(62) then CastSpellByName("Attack") end;
/cast Counterattack
/cast Mongoose Bite
/cast Raptor Strike
///////////////
and both of them turn on/off the autoattack, not just letting it repeat if it is on
Edit: After looking at the link provided by storfan the macro should look like this:
/run if not IsCurrentAction(A) then UseAction(A) end;
/run CastSpellByName("Counterattack")
/run CastSpellByName("Mongoose Bite")
/run CastSpellByName("Raptor Strike")
A = The number of the button where you have put your autoattack ability, check this link if you dont know the number: http://i.imgur.com/VGArn.jpg (stolen from this thread: https://forum.nostalrius.org/viewtopic.php?f=38&t=21017)