View Single Post
02-08-17, 05:03 PM   #9
Banknorris
A Chromatic Dragonspawn
 
Banknorris's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 153
I had a long seach for this as well and the best I could do was this:

Lua Code:
  1. local f = CreateFrame("Frame")
  2.  
  3. f:SetScript("OnEvent",function(self,event,...)
  4.     if event=="PLAYER_LOGIN" then
  5.         self:RegisterEvent("PET_JOURNAL_LIST_UPDATE")
  6.     elseif event=="PET_JOURNAL_LIST_UPDATE" then
  7.         self:UnregisterEvent("PET_JOURNAL_LIST_UPDATE")
  8.         --CALL YOUR STUFF HERE
  9.     end
  10. end)
  11. f:RegisterEvent("PLAYER_LOGIN")
__________________
"In this world nothing can be said to be certain, except that fractional reserve banking is a Ponzi scheme and that you won't believe it." - Mandrill
  Reply With Quote