When you equip them run this script
Code:
/run local function GetIds(s) return strmatch(GetInventoryItemLink("player",s) or "","(item:%d+:%d+):") end for i=16,17 do if GetIds(i) then ChatFrame1:AddMessage("/equipslot "..i.." "..GetIds(i)) end end
You will get item:ID:enchantID - enchantID refers to permanent enchant so those will probably be the same.
Alternative is to use the bag slot, but idk if you will always place them in the same bag slot after unequipping them.
Code:
/equipslot 16 0 1
/equipslot 17 0 2
The remaining option is to loop over the bag slots, check temporary enchant and then equip, but then again, that wouldn't work for you in case enchant has expired.
-
There's another option, sacrifice a gem slot and make them use different gems, then use
Code:
/dump string.match("linkhere","item[%-?%d:]+")
And put the item:ID:enchantID:gemID in macro.
In my case that would be
Code:
/equipslot 16 item:50737:3790:3519
/equipslot 17 item:50737:3790:3518
So if you want a reliable macro, the best case would be to replace on red gem with an orange one.