View Single Post
04/25/14, 10:25 PM   #2
LilBudyWizer
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 32
Just set a variable while processing the addon loaded event. You can't avoid on /reloadui unless you want to avoid the initial load as well and never show the message. You can avoid displaying it after the initial player activation though.

Lua Code:
  1. local function onAddonLoaded()
  2.     addon.firstActivation = true
  3. end
  4.  
  5. local function onPlayerActivated()
  6.     if (addon.firstActivation) then
  7.         addon.firstActivation = false
  8.         Print("Hello World!")
  9.     end
  10. end
  Reply With Quote