Need some help about UNIT_POWER
edit: so my question is how can i make low mana alert only plays when I'm on mage/warlock/priest/paladin, and disable low mana alert when I'm on dk/rouge/warrior/hunter?
-------------------------------------------------------------------- I use this code to play a alert sound when I'm low health or mana but how can I disable low mana alert when I'm playing DK? Lua Code:
|
Edit: Disregard this post. I can't read.
Put this at the top of your code: lua Code:
This stops the code from doing anything if the player is a DK. |
Not sure about the priorities of and/or ... but I'd guess you need brackets around the or ...
Lua Code:
|
Quote:
|
Wouldn't it be better to RegisterUnitEvent('event', 'player') so you can remove that if check at the top as well?
|
Quote:
thank you, I figured it out :D |
All times are GMT -6. The time now is 09:38 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI