View unanswered posts | View active topics It is currently November 24th, 2024, 12:21



Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
 The WeakAuras, macros and other good stuffs thread 
Author Message
Officer
User avatar

Joined: May 27th, 2011, 15:18
Posts: 2609
Post Re: The Weakauras thread (and other good stuff)
Nailus wrote:
My macro is simpler :P
Code:
/usetalents [spec:1] 2; [spec:2] 1
I believe that only switches spec as opposed to switching talents, right?

Vodkaa wrote:
macroing talents realy? i call that LAZY convenience
Fixed that for you.

_________________
Image
Guild Master of Frenzy


April 16th, 2013, 9:58
Profile
Officer
User avatar

Joined: June 7th, 2011, 21:03
Posts: 2339
Post Re: The Weakauras thread (and other good stuff)
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.

_________________
Frenzy - Doomhammer EU - Recruiting


May 11th, 2013, 15:22
Profile
Officer
User avatar

Joined: June 7th, 2011, 21:03
Posts: 2339
Post Re: The Weakauras thread (and other good stuff)
Fixed by hangen

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

_________________
Frenzy - Doomhammer EU - Recruiting


May 11th, 2013, 15:37
Profile
Officer
User avatar

Joined: May 27th, 2011, 15:18
Posts: 2609
Post Re: The Weakauras thread (and other good stuff)
You want just the number or a bar?

_________________
Image
Guild Master of Frenzy


May 11th, 2013, 17:22
Profile
Officer
User avatar

Joined: June 7th, 2011, 21:03
Posts: 2339
Post Re: The Weakauras thread (and other good stuff)
I wanted just the number, which i now have.

_________________
Frenzy - Doomhammer EU - Recruiting


May 11th, 2013, 18:05
Profile
Member
User avatar

Joined: June 7th, 2011, 17:48
Posts: 1540
Location: BRD - BRS
Post Re: The Weakauras thread (and other good stuff)
Transparent Cooldown overlay for Icons
Makes the Cooldown overlay of Icon auras to honor the Icon's opacity.

File: ...\WeakAuras\RegionTypes\icon.lua
Line: 384
Before:
Code:
            if(customValue or duration <= 0.01) then
                cooldown:Hide();
            else
                cooldown:Show();
                cooldown:SetCooldown(expirationTime - region.duration, region.duration);
            end
After:
Code:
            if(customValue or duration <= 0.01) then
                cooldown:Hide();
            else
                cooldown:Show();
                cooldown:SetCooldown(expirationTime - region.duration, region.duration);
                -- EDIT START
                cooldown:SetAlpha(region.color_a or data.color[4]);
                -- EDIT END
            end

_________________
Image
Image
Sweet Raptor Jesus - Hangen @ Twitch


November 29th, 2013, 20:23
Profile
Officer
User avatar

Joined: June 7th, 2011, 21:03
Posts: 2339
Post Macros
New conditional has been added.
Example:
/cast [talent:3/1] Ring of Frost; [talent:3/2] Ice Ward; [talent:3/3] Frostjaw

for 6.0

_________________
Frenzy - Doomhammer EU - Recruiting


June 20th, 2014, 14:50
Profile
Member
User avatar

Joined: October 11th, 2011, 20:54
Posts: 377
Post Re: Macros
thats handy!

_________________
Image


June 20th, 2014, 16:14
Profile
Officer
User avatar

Joined: May 27th, 2011, 15:18
Posts: 2609
Post Re: The WeakAuras, macros and other good stuffs thread
Certainly shorter than the macro I've been using!

_________________
Image
Guild Master of Frenzy


June 20th, 2014, 16:18
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 19 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.