View Single Post
03/17/14, 02:07 AM   #14
Aldazar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 13
Ok, so I came around to test what I had for 2-3 hrs yesterday.

GetNumGuilds() works just fine.
GetGuildId(Index luaindex) didn't work, but I don't know what the luaindex is.
GetGuildName(GuildId) Works fine. The GuildId is just a number between 1-5. And is corresponding to the guildnumber used in chat and shown in the guild menu.
GuildInvite(myGuildID,displayName) Worked fine too. GuildId is determined as above. Displayname is the Accountname (e.g. "@AccountName").

The depressing part is that I didn't get anything else working..... I failed to load the saved variables, creating a button and even writing to the chat (e.g. d("hello world"), using CHAT_SYSTEM, etc.).
Do I need to register any events for chatmessages?
Are there any good lua/addon tutorials that might help my understanding of it? (like playing around with another game or such)

I am probably switching to using locals instead of saved variables and opting for automativ start instead of a button. >.<"

Last edited by Aldazar : 03/17/14 at 02:27 AM.
  Reply With Quote