Disenchant in BfA in Scrap-O-Matic 1000

Hi, the macro for the disenchant in https://www.wowhead.com/object=297590/scrap-o-matic-1000 in Boralus, which worked in bfa, broke down:

/run for bag = 0,4,1 do for slot = 1, GetContainerNumSlots(bag), 1 do local name = GetContainerItemLink (bag,slot); if name and string.find(name,"Shimmerscale Armguards") then UseContainerItem(bag,slot) end;end;end

This macro helps to fill in the whole Scrap-O-Matic 1000 for the disenchant.
Сan anyone help fix it?

Need to prefix the container stuff with C_Container.
https://wowpedia.fandom.com/wiki/API_C_Container.GetContainerNumSlots

/run for bag = 0,4,1 do for slot = 1, C_Container.GetContainerNumSlots(bag), 1 do local name = GetContainerItemLink (bag,slot); if name and string.find(name,"Shimmerscale Armguards") then UseContainerItem(bag,slot) end;end;end

Right? Does not work(

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.