Code:
/run local a if IsMounted() then a="OTHER_WEAPONS_NAME"else a="Dragonwrath, Tarecgosa's Rest"end EquipItemByName(a)
/use 16
/dismount is no longer needed, because you will get dismount by equipping another weapon
EDIT: the above one would only change weapons if you are mounted (maybe you want to change back if you aren't?)
and I found this cool stuff:
Code:
/use 16
/run local a if IsEquippedItem("Dragonwrath, Tarecgosa's Rest") then a="OTHER_WEAPONS_NAME"else a="Dragonwrath, Tarecgosa's Rest"end EquipItemByName(a)
the cool thing about this, is that you have to press it twice to actually mount up, but when you are mounted you have equipped your normal weapon (but still in legendary mount). Unfortunately you can't spam it (or it won't mount up correctly). The use 16 has to be first, because after the weapon switch, it takes some time (mili second) to be equipped (same issue with spell reflect from warriors)
EDIT2: This would actually be the same as if you used
Code:
/equip Dragonwrath, Tarecgosa's Rest
/use Dragonwrath, Tarecgosa's Rest
/equip OTHER_WEAPONS_NAME
Someone might know an improvement, but in my opinion it's hard, if you want to be able to equip the normal staff when you click it again. Maybe you are fine with the first macro.
You would need any condition that only fits when you want to equip your normal weapon. The mounted part works fine, but when do you want to mount if you aren't but not switch back to your weapon? In this case the player has to decide not the game (modifier needed or another key)