public
Description: WoW Addon - Automatically vendor off grey items
Homepage: http://www.tekkub.net/
Clone URL: git://github.com/tekkub/tekjunkseller.git
Click here to lend your support to: tekjunkseller and make a donation at www.pledgie.com !
tekjunkseller / tekJunkSeller.lua
100644 22 lines (15 sloc) 0.419 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local function OnEvent()
for bag=0,4 do
for slot=0,GetContainerNumSlots(bag) do
local link = GetContainerItemLink(bag, slot)
if link and select(3, GetItemInfo(link)) == 0 then
ShowMerchantSellCursor(1)
UseContainerItem(bag, slot)
end
end
end
end
 
local f = CreateFrame("Frame")
f:RegisterEvent("MERCHANT_SHOW")
f:SetScript("OnEvent", OnEvent)
 
if MerchantFrame:IsVisible() then OnEvent() end