View Single Post
04-19-15, 01:57 AM   #2
odjur84
A Fallenroot Satyr
 
odjur84's Avatar
Join Date: Jan 2015
Posts: 24
Hi Etul.

Further information about the issue you encounter (e.g. which error message you get or, more general, what makes you think that the addon doesn't work) would be nice.

Since I'm just a beginner with lua and addon-programming, it's highly likely that I've overlooked something, but after reading your code several times (and under the assumption that this is indeed all of your code) my only guess is the following:

Code:
ChatFrame1:AddMessage(NpcData.characterName, NpcData.characterRealm, NpcData.characterAccount)
Since I do not have any experience with the API AddMessage I can only consult the API docs (see here or here) and they seem to indicate that you may have used the wrong syntax by simply string together the messages that shall be shown in the ChatFrame. Maybe you want to try something like:

Code:
ChatFrame1:AddMessage(NpcData.characterName)
ChatFrame1:AddMessage(NpcData.characterRealm)
ChatFrame1:AddMessage(NpcData.characterAccount)
or

Code:
ChatFrame1:AddMessage(NpcData.characterName .. " " .. NpcData.characterRealm .. " " .. NpcData.charakterAccount)
If this doesn't do the trick, please let us know what went wrong with your testing.

Cheers,

Odjur

Last edited by odjur84 : 04-19-15 at 02:01 AM.
  Reply With Quote