So; I know how to check if a battleground is active, ready, etc. But how can I tell if a battleground just ended? And how could I have this fire at the time that the BG ends.
So; I know how to check if a battleground is active, ready, etc. But how can I tell if a battleground just ended? And how could I have this fire at the time that the BG ends.
You can use GetBattlefieldInstanceExpiration()
If it's > 0 then the BG ended
Documentation is here GetBattlefieldInstanceExpiration - World of Warcraft Programming: A Guide and Reference for Creating WoW Addons
Awesome, thanks. +2 Rep for you!
What's the best way to fire this check?
Create a frame and check for the event that fires when the BG ends, want me to dig up some code ?
I should have given you +5 Rep instead of +2, I can't rep you again >_<.
Your help is much appreciated. Any chance I could poke your brain for some LUA help via Skype?
I'd be glad to help anyway i can, but atm i don't have much time at hand. I'm making an addon and also i've just just had a daughter. So if you need help, better off asking here at ownedcore or another forum. Then me or someelse will help best they can ofc
+5 Rep for helping him out.
iAccidentlytwink, if you find anything useful in the twinking community feel free to share![]()