WoWInterface - View Single Post - Identify items on refund cooldown
View Single Post
04-21-20, 11:02 PM   #11
A Scalebane Royal Guard
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 403
Originally Posted by Walkerbo View Post
The item count always returns 0, no matter how many items I have stacked.
I believe the returns would best be described as:
money = How much copper the item can be returned for
itemCount = The number of different items (tokens or such) the item can be returned for
refundSec = How many seconds remain to be able to return the item for a refund
currencyCount = The number of different currencies (from the currency tab) the item can be returned for

You would then need to call GetContainerItemPurchaseItem or GetContainerItemPurchaseCurrency for each (1 to itemCount/currencyCount) to determine which items/currencies would be refunded.

Originally Posted by Walkerbo View Post
The loop identifies the first equipped bag but it does not count any of the other equipped bags.
The bags are numbered starting with 0 but the slots are numbered starting with 1. I would guess returning info for bag=0, slot=0 is a bug?

Last edited by Vrul : 04-22-20 at 08:30 AM. Reason: Clarification
  Reply With Quote