View Single Post
06-08-13, 11:28 AM   #8
lilsparky
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 117
for cases like this where it's ambiguous what data is available when, you can set up a timer to periodically run a simple function that checks for good return results (ie, not nil) on functions you're interested in. if it makes it thru the series of checks, then it kills the timer and fires off the your actual initialization function.

i had to do this to check when profession information is available as no events seem to work 100% of the time. also makes it future proof should blizzard re-arrange event order.
  Reply With Quote