Thread: GetCurrencyInfo
View Single Post
12-10-11, 04:50 PM   #1
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 484
GetCurrencyInfo

http://wowprogramming.com/docs/api/GetCurrencyInfo

According to wowprogramming.com, it returns: name, amount, texture, earnedThisWeek, weeklyMax, totalMax, isDiscovered

lua Code:
  1. function CurrencyText()
  2.     local name, currentAmount = GetCurrencyInfo(392)
  3.     -- Honor
  4.     return string.format("%0.0f%% | %s / %s", (currentAmount/4000)*100, currentAmount, 4000);
  5. end
  6.  
  7. 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?
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **
  Reply With Quote