Need help with WA2 script for mana percentage
Hi! This worked fine pre 8.0, but as of 8.0 it just doesn't display anything:
Code:
function() |
|
What Ammako is saying is that those functions have been deprecated for some time and were finally removed. Now you have to use their replacements.
|
Undestood it from his reply but thanks :) (forgot to reply originally)
However what I need is alternate power percentage (in this case, Shadowpriest mana bar that shows below insanity bar). Any suggestions? |
The Enum.PowerType.Mana shown in the linked code is a number. Here’s the full table:
Lua Code:
|
Quote:
The following shows the current main power amount, I need it to show alternate power percentage (in my case, mana) : Code:
function() |
As the linked code above shows, UnitPower has two arguments: unit and type. Type is a number and is one of the numbers I posted above.
Usage: UnitPower(unit,type) This returns player mana: UnitPower("player",0) This returns player insanity: UnitPower("player",13) This returns max player mana: UnitPowerMax("player",0) This returns max player insanity: UnitPowerMax("player",13) |
I get it now, holy hell am I dense :|
Thanks for the help! :) |
And if you don't want to remember what number is what power you can instead use:
Code:
Enum.PowerType.Mana |
All times are GMT -6. The time now is 07:51 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI