View Single Post
11-25-16, 05:06 PM   #2
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,241
You need to have your AddOn do two things in its ToC:
  1. ## LoadOnDemand: 1
  2. ## LoadWith: Blizzard_AuctionUI
You are correct that the error is because the auction frame is not loaded, so you get nil errors. And if you want to access the auction UI when you are not visiting the auctioneer, well, I am not sure you can, but...
Lua Code:
  1. if not IsAddOnLoaded("Blizzard_AuctionUI") then
  2.     LoadAddOn("Blizzard_AuctionUI")
  3. end
  4.  
  5. -- now hook it and do stuff

Last edited by myrroddin : 11-25-16 at 05:08 PM. Reason: missing space in LoD
  Reply With Quote