Hi,
I created an addon to make changes to my UI and Sound depending on the state of my character (in combat/ out of combat/ resting), unfortunately the addon only works at the point in time where my character changes state, like when my character enters combat or walks into an inn for example.
However, if I log into game when my character is in the Inn then the UI and sound are not as required and I have to leave the Inn and enter it again for the changes to be made.
Is there a script that can be added to the addon that checks the status of the character regularly and updates as required?
https://pastebin.com/rNStNC0r
Thanks in advance