I am trying to learn macros and i created a macro for my warrior to switch weapons and swap action bar pages. It works generally fine but sometimes it acts weird and and switches weapon but not the action bar page. As far as i understand equiping items has a GCD so i guess that is causing the problem but couldn’t find a way around so i would like to know if there is a more stable way of doing it. One other question i have is, is it possible to execute two commands based on a conditional. For example:
if(actionbar:1)
/equipslot 17 Flamescarred Draconian Deflector
/swapactionbar 1 2
else
/equipslot 17 17 Bloodied Arcanite Reaper
/swapactionbar 1 1
Conditions are exclusive to the command so they’ll need to be repeated. There is however a /stopmacro command that functions like break if conditions are met.
As for your macro, I’d recommend adding [mod] as an OR to your condition tests so you can force execute the first return if you happen to get GCD blocked.
Thanks for the information however, it still works the same when i am already on a GCD of a skill it swaps the action bar page but does not switches the weapon.
Oh right, I did that weird. Hitting it with a modifier should re-attempt to swap weapons without swapping bars. Hitting with nomod should execute the full swap.