Quantcast
Identify items that can be traded to other players in the same instance. - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-08-20, 10:40 PM   #1
Walkerbo
A Flamescale Wyrmkin
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 127
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, and tables are special types of pointers."
Fizzlemizz
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Identify items that can be traded to other players in the same instance.

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