Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-01-23, 11:10 AM   #2
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,246
Delay registering your PRD and PUD events until after either ADDON_LOADED or PLAYER_ENTERING_WORLD. You are likely registering PRD and PUD too early in the loading process. I'd use PEW to be on the safe side; it is late enough in the loading process that most other events will function when hooked.

Side note: you don't need to create 3 frames. Create one, register PEW on it, register the other events during PEW, and check if event == blah, elseif event == blah2, elseif event == blah3, end.

Last edited by myrroddin : 11-01-23 at 11:14 AM. Reason: clarity
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Script to refresh an addon


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off