View Single Post
10-29-16, 09:41 PM   #3
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
- you are missing then at the end of every if line
- frame needs to be local or unique
- your GetInstanceInfo() line needs to be inside the event function, otherwise those variables won't change
- it looks like you want to call BonusRollFrame_CloseBonusRoll(), but you are creating it
- you are looking for BONUS_ROLL_STARTED, but you didn't register for it
- you probably want this to happen every bonus roll, so why are you unregistering events?
- ADDON_LOADED isn't necessary
- you can skip the function name and just put OnEvent in the SetScript using function() code end
- where is the settings table? is there more to this code?
- you have the right idea here, but hooking BonusRollFrame is not what you are doing and not what you need to do
- finally, where is this code? is this a standalone addon?

Last edited by Kanegasi : 10-29-16 at 09:52 PM.
  Reply With Quote