http://wowprogramming.com/docs/api/GetCurrencyInfo
According to wowprogramming.com, it returns:
name, amount, texture, earnedThisWeek, weeklyMax, totalMax, isDiscovered
lua Code:
function CurrencyText()
local name, currentAmount = GetCurrencyInfo(392)
-- Honor
return string.format("%0.0f%% | %s / %s", (currentAmount/4000)*100, currentAmount, 4000);
end
currencytext = CurrencyText();
I tried using totalMax in this, but it wasn't working.
Using 4000 works fine, obviously, but I don't really understand the point of having "totalMax" if it doesn't return anything? Or maybe, I wasn't going about it the right way?