WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   Is there a way to auto refresh / sell to vendor with tab open? (https://www.wowinterface.com/forums/showthread.php?t=58532)

Safphira 01-07-21 07:57 PM

Is there a way to auto refresh / sell to vendor with tab open?
 
Does anyone know an addon that auto refreshes your bags while having the vendor window open so it autosells items? I am crafting tailoring boe's and selling them to vendor, but I have to click the vendor every time I want to sell the lot. Is there a way to auto sell it as it crafts?

According to this video: https://www.youtube.com/watch?v=nIfN6dkthBY&t=203s - TSM has the function needed in their mailing option. Is there a way to transfer it to selling items?

Thank you in advance

sezz 01-08-21 04:34 PM

selling items interrupts crafting

Safphira 01-08-21 06:26 PM

Responce
 
It doesn't for me, I am using the Scrap addon + use Ethereal Soul Trader. I can continue clicking him while crafting. Is there someway to rewrite the TSM mail code to apply to selling?

Rilgamon 01-09-21 04:55 AM

what sezz says is true. I dont have the trader so I cant test but I highly doubt it works.
The code to do it would look like this ...

Lua Code:
  1. function stock:BAG_UPDATE_DELAYED()
  2.     if(not MerchantFrame or not MerchantFrame:IsVisible()) then return end
  3.     local bag = 0
  4.     while(bag<=NUM_BAG_SLOTS) do
  5.         local slot = 1
  6.         while(slot<=GetContainerNumSlots(bag)) do
  7.             if(C_NewItems.IsNewItem(bag, slot)) then
  8.                 local item = ItemLocation:CreateFromBagAndSlot(bag, slot)
  9.                 local itemLink = C_Item.GetItemLink(item)
  10.                 local itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, itemSubType, itemStackCount, itemEquipLoc, itemTexture, itemSellPrice, itemClassID, itemSubClassID, bindType, expacID, itemSetID, isCraftingReagent = GetItemInfo(itemLink)
  11. --              print(itemName, itemType, itemSubType, itemClassID, itemSubClassID)
  12.                 if(itemClassID ~= 7) then -- dont sell crafting reagents
  13.                     UseContainerItem(bag, slot)
  14.                 end
  15.             end
  16.             slot = slot + 1
  17.         end
  18.         bag = bag + 1
  19.     end
  20. end

sezz 01-09-21 10:21 AM

i have the soul trader pet, he can't be used as a normal vendor

in my auto-vendoring module i just register the BAG_UPDATE_DELAYED event when the option to automatically sell on bag update is enabled. i don't know the scrap addon, but basically you want to look for where it registers MERCHANT_SHOW and also register BAG_UPDATE_DELAYED with the same event handler


All times are GMT -6. The time now is 07:43 AM.

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