It's a good thing you asked that in a thread over a year old rather than the current macro thread in Public Discussion.
Hi, I need help with making macro that switches my mainhand and offhand weapons to different
ones of same type after macro button press, then after pressing macro button again it switches
my mainhand and offhand weapons to previous ones.
I was digging in some forums and found out how to make script to switching mainhand and offhand
'/run EquipItemByName(IsEquippedItem("Mainhand1") and "Mainhand2" or "Mainhand1")' for mainhand swap
'/run EquipItemByName(IsEquippedItem("Offhand1") and "Offhand2" or "Offhand1")' for offhand swap
I have no idea how to combine both scripts into one, I know it's possible so please help!