1. #1
    Stood in the Fire Winkle's Avatar
    Join Date
    May 2010
    Location
    UK
    Posts
    358

    Attack power weak aura that displays total

    Hey,

    Been trying to get a weak aura working that displays my total attack power, including the attack power generated by vengeance.

    I found this WA custom function:

    Code:
    function ()
        -- Update every second only
        local now             = GetTime();
        WA_STATS_LAST_UP = WA_STATS_LAST_UP or now - 1;
        if now >= WA_STATS_LAST_UP + 0.1 then
            -- Shedule next update
            WA_STATS_LAST_UP = now;
            
            -- Current values
            local apBase, apPlus, apNeg = UnitAttackPower("player");
            
            -- Return text
            WA_STATS_RETURN = string.format("AP: %.2f | %.2f | %.2f", apBase, apPlus, apNeg);
        end
        
        return  WA_STATS_RETURN or "<no data>";
    end
    however it displays the AP in 3 parts, Base | Vengeance | Any debuff |

    what I really want is just one number that totals those 3 values, played around a bit but tbh don't really know what I'm doing.

    ---------- Post added 2013-05-11 at 02:38 PM ----------

    Fixed by my guildy:

    Code:
    function ()
        -- Update every second only
        local now             = GetTime();
        WA_STATS_LAST_UP = WA_STATS_LAST_UP or now - 1;
        if now >= WA_STATS_LAST_UP + 0.1 then
            -- Shedule next update
            WA_STATS_LAST_UP = now;
            
            -- Current values
            local apBase, apPlus, apNeg = UnitAttackPower("player");
            
            -- Return text
            WA_STATS_RETURN = string.format("AP: %.2f", apBase + apPlus + apNeg);
        end
        
        return  WA_STATS_RETURN or "<no data>";
    end

  2. #2
    Bloodsail Admiral Thundertom's Avatar
    Join Date
    Oct 2009
    Location
    The Netherlands
    Posts
    1,075
    Could you post the aura code import for this? I'm interested in using this as well.

  3. #3
    Here is a WA I used to show vengeance AP on my tank classes.

    Pastebin: http://pastebin.com/s5K2UFCD

    Custom function:
    Code:
    function () 
        local name,_,icon,_,_,_,_,_,_,_,_,_,_,_,value=UnitBuff("player", "Vengeance")
        if(value > 999999) then value = math.floor(value/1000000) .. "m" end
        if(value > 999) then value = math.floor(value/1000) .. "k" end
        return(value)
    end

  4. #4
    If I could get something like this for spellpower..... I'd love someone forever

  5. #5
    Quote Originally Posted by Elapsed View Post
    If I could get something like this for spellpower..... I'd love someone forever
    Search "MattyUI" on wowinterface and look at the pictures/video link.

    I use Raven + Broker_StatsNow - Melee to track my AP with Vengeance because I couldn't get WA's to display it just how I wanted it.

    Broker_StatsNow has a "Spells" part to it that works exactly how I want it to on my mage.

    Hope this helps lol

Posting Permissions

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