Quantcast
Is there a way to auto refresh / sell to vendor with tab open? - WoWInterface
 
Thread Tools Display Modes
01-07-21, 07:57 PM   #1
Safphira
A Defias Bandit
Join Date: Jan 2021
Posts: 2
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
  Reply With Quote
01-08-21, 04:34 PM   #2
sezz
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 158
selling items interrupts crafting
  Reply With Quote
01-08-21, 06:26 PM   #3
Safphira
A Defias Bandit
Join Date: Jan 2021
Posts: 2
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?
  Reply With Quote
01-09-21, 04:55 AM   #4
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 817
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
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
01-09-21, 10:21 AM   #5
sezz
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 158
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
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Is there a way to auto refresh / sell to vendor with tab open?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off