Hi all,
I'm having some difficulties getting into writing an addon. It seems that the APIs aren't really documented in any one place - I've tried wowprogramming, wowhead, wowwiki, and just not sure if there's a 'definitive' description available.
I'm trying to get past the "Hello, world" coding, and just get something as simple as the current player's mana, etc.
I try something like:
Code:
local powerType, powerToken = UnitPowerType("player");
print("powerToken is = ".. powerToken);
print("powerType is = ".. powerType);
So, on my Shaman (resto), I get that powerToken = "" and powerType = 0 (so, mana).
If I try calling and then printing the value of UnitPower("player"), I always end up with 0 being output.
I'm not sure if I'm missing something very obvious, or what. If anyone has some suggestions, or even a helpful smack upside the head, I'd appreciate it!