View Single Post
10-02-18, 06:27 PM   #6
Kenjub
A Deviate Faerie Dragon
Join Date: Jul 2018
Posts: 15
Originally Posted by Kanegasi View Post
The Enum.PowerType.Mana shown in the linked code is a number. Here’s the full table:

Lua Code:
  1. Enum = {
  2.     PowerType = {
  3.         Alternate = 10,
  4.         ArcaneCharges = 16,
  5.         Chi = 12,
  6.         ComboPoints = 4,
  7.         Energy = 3,
  8.         Focus = 2,
  9.         Fury = 17,
  10.         HealthCost = -2,
  11.         HolyPower = 9,
  12.         Insanity = 13,
  13.         LunarPower = 8,
  14.         Maelstrom = 11,
  15.         Mana = 0,
  16.         None = -1,
  17.         NumPowerTypes = 19,
  18.         Obsolete = 14,
  19.         Obsolete2 = 15,
  20.         Pain = 18,
  21.         Rage = 1,
  22.         Runes = 5,
  23.         RunicPower = 6,
  24.         SoulShards = 7,
  25.     },
  26. }
Thanks for the list but I'm a bit lost on how to incorporate it into my current code snippet.

The following shows the current main power amount, I need it to show alternate power percentage (in my case, mana) :
Code:
function()
    local percent = (UnitPower("player")/UnitPowerMax("player"))*100
    return floor(percent+0.5)..""
end
  Reply With Quote