Quantcast
WoWInterface - View Single Post - Identify items that can be traded to other players in the same instance.
View Single Post
10-08-20, 10:40 PM   #1
Walkerbo
A Cliff Giant
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 73
Identify items that can be traded to other players in the same instance.

Hi all

I am the author of a small addon Aardvark.

I am trying to find a way to identify those items in my bags that can be traded to other players in the same instance.



Right now my addon sells items listed on the player curated sell list.

The issue is that items that can be traded to other players in the same instance starts an addon breaking loop.

When the item is to be sold it brings up the confirmation that selling will make it non-tradable.

With items that have a refund cooldown I can filter them out so it will not sell until the time runs out; I test each item for a refund cooldown;
Lua Code:
  1. local money, itemCount, refundSec = GetContainerItemPurchaseInfo(bag, slot)
I have been unable to find a similar function to test for the trade cooldown.

I would like to be able to identify and filter those items that are still on the trade cooldown.
It would also be helpful to have the confirmation button could be avoided and have the item sell even though it is still on trade cooldown.

Cheers
__________________
"As someone once told me, frames are just special types of tables."
Fizzlemizz
  Reply With Quote