View Single Post
03/17/14, 02:19 AM   #15
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
Most addons will use maybe 2 events. Addonloaded and playeractive or words to those effects.

Addonloaded function I use for initialising windows and saved variables and what other events need to be watched.


Playeractive I use for accessing functionality that isn't available until the player is in works.


After that it depends on what events exist. If I remember rightly there is a guilddataavailable event or something similar but I can't remember if my login test did my guild info tests then or just in playeractive.


The luaindex is just a counter value, so a for loop counting from 1 to numguilds would have then given you guildid.

My own tests didn't seem to work at all so I suspect I did not use the guilddataavailable event.
  Reply With Quote