WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Addons sellings junk/grey items (https://www.wowinterface.com/forums/showthread.php?t=52782)

kawe 09-30-15 10:17 AM

Addons sellings junk/grey items
 
since early wod almost every auto seller addon/script i used, doesnt work properly anymore. Every time when i have my bags full and open to repair/sell i have to reclick several times to vendor everything in my bag. Is there any addon that does work?

Yukyuk 09-30-15 01:09 PM

Selling junk
 
I use Autovendor, and as far as I know its up to date and working.

JDoubleU00 09-30-15 02:14 PM

I believe this still works http://www.wowinterface.com/download...unkSeller.html. You might need to get a version from his GIT. Tekkub's addons seem to work very well for a long time.

kawe 09-30-15 04:28 PM

thx for reply's :)

tried autovendor but it also got stuck half way through selling with my bags full :(

Lea, i got the new version installed, works as intended :banana:

Nimhfree 09-30-15 09:39 PM

The following code I use to sell junk automatically. It has not failed me.
Code:

--        Create a simple frame that allows grey quality items to be sold automatically
local sellFrame = CreateFrame("Frame")
sellFrame:SetScript("OnEvent", function()
                for bag = 0, 4 do
                        for slot = 1, GetContainerNumSlots(bag) do
                                local _, _, locked, _, _, _, link = GetContainerItemInfo(bag, slot)        -- will return -1 for quality a lot
                                if nil ~= link then
                                        local _, _, realQuality, _, _, _, _, _, _, _, vendorPrice = GetItemInfo(link)
                                        if 0 == realQuality and 0 ~= vendorPrice and not locked then
                                                UseContainerItem(bag, slot)
                                        end
                                end
                        end
                end
        end)
sellFrame:RegisterEvent("MERCHANT_SHOW")


VincentSDSH 10-01-15 09:59 PM

Quote:

Originally Posted by kawe (Post 311247)
since early wod almost every auto seller addon/script i used, doesnt work properly anymore. Every time when i have my bags full and open to repair/sell i have to reclick several times to vendor everything in my bag. Is there any addon that does work?

Peddler has never failed me. It also visually tags what'll be sold, which I'm particularly fond of.

SDPhantom 10-02-15 01:32 PM

Quote:

Originally Posted by VincentSDSH (Post 311278)
Peddler has never failed me. It also visually tags what'll be sold, which I'm particularly fond of.

The default UI already marks junk items with a coin icon when you're at a vendor.



Found in ContainerFrame.lua line 516:
Code:

itemButton.JunkIcon:Hide();
if (quality) then
        if (quality >= LE_ITEM_QUALITY_COMMON and BAG_ITEM_QUALITY_COLORS[quality]) then
                itemButton.IconBorder:Show();
                itemButton.IconBorder:SetVertexColor(BAG_ITEM_QUALITY_COLORS[quality].r, BAG_ITEM_QUALITY_COLORS[quality].g, BAG_ITEM_QUALITY_COLORS[quality].b);
        else
                itemButton.IconBorder:Hide();
        end

        if (quality == LE_ITEM_QUALITY_POOR and not noValue and MerchantFrame:IsShown()) then
                itemButton.JunkIcon:Show();
        end
else
        itemButton.IconBorder:Hide();
end


VincentSDSH 10-02-15 02:06 PM

Quote:

Originally Posted by SDPhantom (Post 311284)
The default UI already marks junk items with a coin icon when you're at a vendor.

The what? Do you have any idea how many years it's been since I've seen the default UI? 'Sides, Peddler's icon is prettier than a coin :p

SDPhantom 10-05-15 08:00 PM

Ya, I still have most if not all of the default UI still active, though I've modified quite a bit of it myself.

sezz 10-10-15 06:54 AM

I use UI_ERROR_MESSAGE to check for ERR_OBJECT_IS_BUSY while selling and retry selling the rest on PLAYER_MONEY, works fine.

SDPhantom 10-12-15 03:25 PM

This is a more automated version of the script I use on slash command. It uses BAG_UPDATE_DELAYED to retry selling items as it fires once after all BAG_UPDATE events are done.

Lua Code:
  1. local EventFrame=CreateFrame("Frame");
  2. EventFrame:RegisterEvent("MERCHANT_SHOW");
  3. EventFrame:RegisterEvent("MERCHANT_CLOSED");
  4. EventFrame:SetScript("OnEvent",function(self,event)
  5.     if event=="MERCHANT_SHOW" then
  6.         self:RegisterEvent("BAG_UPDATE_DELAYED");
  7.     elseif event=="MERCHANT_CLOSED" then
  8.         self:UnregisterEvent("BAG_UPDATE_DELAYED");
  9.         return
  10.     end
  11.  
  12.     local rescan=false;
  13.     ClearCursor();
  14.     for i=0,NUM_BAG_SLOTS do
  15.         for j=1,GetContainerNumSlots(i) do
  16.             local _,_,_,quality,_,_,_,_,novalue=GetContainerItemInfo(i,j);
  17.             if quality==LE_ITEM_QUALITY_POOR and not novalue then
  18.                 rescan=true;
  19.                 PickupContainerItem(i,j);
  20.                 PickupMerchantItem();
  21.             end
  22.         end
  23.     end
  24.  
  25.     if not rescan then self:UnregisterEvent("BAG_UPDATE_DELAYED"); end
  26. end);


All times are GMT -6. The time now is 02:31 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI