Quantcast
WoWInterface - View Single Post - Identify items on refund cooldown
View Single Post
04-20-20, 11:49 PM   #7
Walkerbo
A Cyclonian
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 44
Hi Vrul

Thanks for suggesting the GetContainerItemPurchaseInfo unfortunately the returns are all coming back as nils, no matter if the boolean is true, false or empty.

This is my code;
Code:
for bag = 0, 4 do 
    for slot = 0, GetContainerNumSlots(bag) do
        local itemID = GetContainerItemID(bag, slot)
        if itemID then
            local _, itemLink, itemQuality, _, _, _, _, _, _, _, itemValue = GetItemInfo(itemID)
            local money, itemCount, refundSec, currencyCount, hasEnchants = GetContainerItemPurchaseInfo(bag, slot, isEquipped)
            print(bag, slot,itemLink, money, itemCount, refundSec, currencyCount, hasEnchants)
        end
    end
end
This is the bag and the output;


This one is really stumping me, any more suggestions would be fantastic.

Last edited by Walkerbo : 04-21-20 at 12:01 AM.
  Reply With Quote