1. #1

    Weak Auras. Track healer's mana in lfg

    I am looking to set up a text aura that shows the percent mana the healer has in a random. I have played around with status>power>unit. Setting to party1-4 does will show the mana of that player, but it doesn't seem that the healer will always be a specific number. Anyone have any ideas?

  2. #2
    Untested, but this should return your healer's mana percentage.
    Code:
    function()
        for i=1,GetNumGroupMembers() do
            if UnitGroupRolesAssigned("party"..i)=="HEALER" then
                return format("%.1f%%",UnitPower("party"..i)*100/UnitPowerMax("party"..i))
            end
        end
    end

  3. #3
    Where would that go? Custom trigger? Custom function for the text (using %c)?


    edit: I guess I got it working. It seems to be working at least. Thank you
    Last edited by notseamus; 2012-11-14 at 10:02 PM.

  4. #4
    Quote Originally Posted by notseamus View Post
    Where would that go? Custom trigger? Custom function for the text (using %c)?


    edit: I guess I got it working. It seems to be working at least. Thank you
    It actually could go in a lot of things. What I'd do iis make a text weakaura pop up somewhere near the middle of your screen


    custom text:

    function()
    return "Healer mana is low!"
    end

    custom trigger:

    function()
    for i=1,GetNumGroupMembers() do
    if UnitGroupRolesAssigned("party"..i)=="HEALER" then
    local curmana = UnitPower("party"..i)
    local maxmana = UnitPowerMax("party"..i)
    local percmana = curmana/maxmana
    if percmana <= 30 then
    return true
    else end
    end
    end
    end

    I dont know lua and I'm at work so I cant test it, but that SHOULD only show up if your healer is under 30% mana

    Im sure theres something like this floating around to check your healers average mana in a raid, if anyone happens to have a link to that it'd be useful

    ---------- Post added 2012-11-15 at 09:35 AM ----------

    oops didnt see you were looking specifically to see their percent - twell w/e I'll leave my comment here just in case someone wants it
    Last edited by dennisdkramer; 2012-11-15 at 02:35 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •