Macro this script if you'd like to sell your grays quickly and efficiently. There are addons out there that do this now but just in case you'd like to macro this yourself to a hotkey or button here's what those addons are using:
/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; endThank you commenters: You can also use an addon called JunkSell. You may need to manually replace the quotes to get the macro to work. Please use the addon if you can't get the macro to work.
Perhaps you don't know how to setup a macro?
The following window will appear, you can see that I have a ton of macros set up. General Macros are across all characters and Markco's Specific Macros are just for my one character.
Select New at the bottom of the window. The following side window will appear:
Type in the name of your macro and then select an image.
Press Okay when done. Now you can tell your macro what you want it to do.
Here is where you'll enter your new vendor selling code. Simply drag the icon from this window to your bars and you're ready to go. Assign a hotkey to that button and it will run the macro.
This quick explanation was taken from part of an older chapter of my famous WOTLK gold guide which is being completely rewritten and redesigned for Cataclysm. If you order it now you'll get it for far less than I'm going to charge once the cataclysm updates are finished (updates are free regardless of when you buy). I'm advertising this future price increase to readers here so you have the chance to buy it earlier and for less. Use promotion code "JMTC" to get 10% off your order in addition to getting it cheaper now before cataclysm. Expect some really freaking amazing content in the guide, such as complete and indepth discussions of addons, gold strategies and cross profession mayhem, all captured within a brand spanking new "reader" I coded to make the information easier to digest. The cataclysm guide is currently in ALPHA and I am adding content as fast as I can, so all feedback is appreciated!