View Single Post
04/21/24, 03:17 PM   #7
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,004
Those RegisterForUpdate timers might be okay to update a counter showing on screen but they should not be used to run timers in general, where other ways are better. e.g. events fire or CALLBACK_MANAGER is available to register a callback function to run, or you can hok into Zos code to run your code befre/after it.

For example if you only want to react on real changes try my example code and just add your on screen information into that.
Instead of the
Code:
if currentBounty  >= x then
else
end
add a

Lua Code:
  1. d("Current bounty: " ..tostring(currentBounty))

and you should see the actual bounty in gold in a chat debug message.
Hope that works, have not tested it so far.
  Reply With Quote