Sell macro + sort bags

/run for slot = 1, 10, 1 do local name = C_Container.GetContainerItemLink(3,slot); if name and string.find(name,"") then DEFAULT_CHAT_FRAME:AddMessage("Selling "..name);C_Container.UseContainerItem(3,slot); end end

Hello, I am using this macro to sell first ten items from my fourth bag, because I want to sell only 10 items maximum with one click.
Is there a way to modify this macro, to always check all slots in first 4 bags, but to always sell only 10 items maximum per click ?
If not, is there a way to somehow put clean up bags inside this macro so with one click it sells 10 items and than clean up bags, so it moves another 10 items in those slots to be sold on second click ? for example, somehow adding this command inside that macro.
/click BagItemAutoSortButton

C_Container.GetContainerItemLink(3,slot)
C_Container.UseContainerItem(3,slot)

Change 3 to 4 or whatever number gets it to start on bag 4.

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