Code:
local curtType = {
CURT_MONEY,
CURT_TELVAR_STONES,
CURT_ALLIANCE_POINTS,
CURT_UNDAUNTED_KEYS,
CURT_WRIT_VOUCHERS,
CURT_EVENT_TICKETS,
CURT_ARCHIVAL_FORTUNES
}
for _, curt in ipairs(curtType) do
local unowned, _ = GetLootCurrency(curt)
if (unowned > 0) then
d(GetString(GetCurrencyName(curt, false, true) .. ": " .. unowned)
end
end
You may only be able to do the corresponding check after opening the container. Add any currency type you need to the curtType