Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-01-23, 10:42 AM   #1
Nieub Barmy
A Murloc Raider
 
Nieub Barmy's Avatar
Join Date: Nov 2022
Posts: 4
Script to refresh an addon

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
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Script to refresh an addon


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off