PDA

View Full Version : Auto use grays and greens



Boogieman
12-07-2009, 12:26 AM
I found this tidbit of macro goodness
it basically checks your bags for grays or greens and right clicks them all at once
I have used it for selling , trading , mailing and bank deposit
you can remove the selling message for the macro grays if its for trade
i use them for keeping the master bags empty and trading greens to the master for DE


the script for grays

/script for bag = 0, 4 do for slot = 1, GetContainerNumSlots(bag) do local name = GetContainerItemLink(bag,slot) if name and string.find(name,"ff9d9d9d") then DEFAULT_CHAT_FRAME:AddMessage("Selling "..name) UseContainerItem(bag,slot) end end end
(^^1 liner no break^^)

the script for greens

/run for bag=0,4 do for slot=1,GetContainerNumSlots(bag) do local texture,itemCount,locked,quality=GetContainerItemI nfo(bag,slot) if quality==2 then UseContainerItem(bag,slot) end end end