A friend showed me the macro from this post in the US and complained about it breaking on a full backpack, so I decided to enhance it a bit so it takes any bag with free slots:
/equip Underlight Angler
/run if GetInventoryItemLink("player",28) then local a=C_Container.GetContainerNumFreeSlots PickupInventoryItem(28) if a(0)>0 then PutItemInBackpack() else for i=1,4,1 do if a(i)>0 then PutItemInBag(i+30) break end end end end
He insisted on sharing this as other people may benefit from it, so here I am
The point of this macro is to unequip/re-equip the fishing rod as to re-apply the profession tool benefits (such as transformation) after doing other activities like combat.
I’m struggling with this macro for almost and hour. The problem is that the fishing rod is already equipped (but buffs from the rod, are not active) and actually you can’t unequip/equip with only one click. The above works just fine with double clicking.
More clear way is to make a WA, triggered by (e.g.) underwater breathing, and once it’s triggered to unequip/equip the Angler
Anyhow, thank you for your share - much appreciated.
ps. for some people it might be better to equip the Angler with right click, then the macro should be:
After 1 second of the first action will equip it back
Works like a charm
#showtooltip Underlight Angler
/run local s=28 if GetInventoryItemLink(“player”,s) then PickupInventoryItem(s)PutItemInBackpack() end
/in 1 /equip Underlight Angler