Macro:Sell Grey

From Dual-Boxing Wiki

Jump to: navigation, search
/script for bag = 0,4,1 do for slot = 1, GetContainerNumSlots(bag), 1 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

Warning: If you use this script without selecting a vendor then you character will try to use (i.e. equip) all of the grey items.

Note: this needs to be a single string of text. cut & paste it to notepad and remove the extra CR/LF in the text, then cut & paste from there. nice little script.

Personal tools