Originally Posted by Lombra
print is handy to use instead of DEFAULT_CHAT_FRAME:AddMessage. Not only because it's quicker (to type), but it also takes and prints multiple arguments.
Code:
print(NpcData.characterName, NpcData.characterRealm)
|
I shall try that out as well. Thanks!
@Seerah/10leej - I honestly can't remember where exactly I found the GetCharacterLevel() thing- iirc I couldn't find anything on wowiki/wowprogramming so I tried looking to see what people did in actual addons to find out a character's level and ended up with that. I think my mistake was using Ctrl+F to search for "character" which is why I would have missed it on wowprogramming. But I did manage to find the UnitLevel("player") thing somewhere else so I finally got my code working using that.
Also, I tried running /dump UnitLevel("player") and /dump UnitName("player") with both capitalized and non-capiltalized versions of "player" and it returned the same result.