Specific weapon and ability macro help

So basically I’m trying to make a macro where I can have Mortal Strike and Shield Slam on a single button and depending on whether I have a 2h or a Shield equipped it will use whichever is appropriate. Right now Mortal Strike requires a 2h equipped and Shield Slam requires a shield equipped and since you can’t use either or without the appropriate item equipped it really doesn’t make much sense to have them on two separate buttons.

This is what I’m currently using right now, I took this off an older forum post and wanted to see if this may work but it didn’t. I would like to note that when the 2h is equipped Mortal Strike works but when I swap to the 1h and shield it does not allow the use of Shield Slam.

/use [equipped:Geti’ikku, Cut of Death]Geti’ikku, Cut of Death;Mortal Strike
/use [equipped:Ironcrest Bulwark]Ironcrest Bulwark;Shield Slam

EDIT

I was actually able to figure it out! just posting my results in case this helps someone in the future.

This is the macro I use to swap my weapons:

#showtooltip
/equip Geti’ikku, Cut of Death
/equipslot 17 Ironcrest Bulwark
/equipslot 16 Tearing Sawtooth Blade

This is the macro to allow the use of said ability based on what weapons are equipped:

/cast [equipped:two-hand]Mortal Strike
/cast [equipped:shield]Shield Slam

Cheers!

The equipped or worn condition can’t be used to test against specific items. You can however test if you do or do not have a shield equipped and perform the logic that way.

#showtooltip
/equip [worn:shield] Geti'ikku, Cut of Death; Tearing Sawtooth Blade
/equip [noworn:shield] Ironcrest Bulwark
#showtooltip
/cast [worn:shield] Shield Slam; Mortal Strike

While I did get what I needed to work, what you posted seems like it would do the trick too, I intend on trying it! Thanks for your help and your efforts Elven :slight_smile:

1 Like