Page 2 of 2 FirstFirst
1
2
  1. #21
    Deleted
    Quote Originally Posted by dennisdkramer View Post
    Depending on the size of your action bars, you could use that addon everyone uses to put cooldown text on them but not the weakauras since they're smaller.
    Thanks for your answer.
    I ended up downloading omnicc and disabled cooldowns for weakauras. Used this guide and used WeakAurasCooldown as the rule.
    This disabled omnicc for weak auras.

    Would be nice if you could disable it for only one group if anyone has a solution for this.


    Another question is if it is possible to keep the "Shadow Word: Death" icon visible but greyed out if not usable.

  2. #22
    Quote Originally Posted by turtlefreak View Post
    Thanks for your answer.
    I ended up downloading omnicc and disabled cooldowns for weakauras. Used this guide and used WeakAurasCooldown as the rule.
    This disabled omnicc for weak auras.

    Would be nice if you could disable it for only one group if anyone has a solution for this.


    Another question is if it is possible to keep the "Shadow Word: Death" icon visible but greyed out if not usable.
    Oh cool didn't know you could do that with omnicc

    I think if you delete the second trigger for SWD it'll do that but I'm not sure. Will test later and let you knowhow to do it if that doesn't work

  3. #23
    Deleted
    Quote Originally Posted by dennisdkramer View Post
    I think if you delete the second trigger for SWD it'll do that but I'm not sure. Will test later and let you knowhow to do it if that doesn't work
    Tried that, problem is the icon looks like you could use the spell all the time

    Edit: Worked around it with a <20% trigger and duplicating it with a <35% trigger with load options for both with the corresponding talents
    A solution that stays all the time would be nice tho
    Last edited by mmoc2e5b8dbff7; 2016-08-29 at 04:43 PM.

  4. #24
    So first, specify the spellID under actions

    Next, replace the color function under Animations with this:

    Code:
    function(progress, r1, g1, b1, a1, r2, g2, b2, a2)    
        aura_env.usableAbility = select(7,GetSpellInfo(aura_env.spellName))
        if aura_env.usableAbility then
            if aura_env.spellID then
                aura_env.baseCD = GetSpellBaseCooldown(aura_env.spellID)
            end
        end
        if  aura_env.usable and not aura_env.count  and aura_env.charges and aura_env.charges >= 1 then
            aura_env.colorCharges = (1 - ((aura_env.maxCharges - aura_env.charges)/5))
            if aura_env.colorCharges <= .5 then aura_env.colorCharges = .5 end
            return aura_env.colorCharges,aura_env.colorCharges,aura_env.colorCharges,1
        elseif aura_env.trackAura and aura_env.durationAura and aura_env.durationAura > 0 then
            return r2,g2,b2,a2
        elseif aura_env.duration ~= nil and aura_env.duration >= 2 then 
            return r1,b1,g1,a1
        elseif aura_env.usableAbility and not aura_env.usable and (not aura_env.buffName or aura_env.buffName ~= aura_env.spellName)then
            return .5,.5,1,a1
        elseif aura_env.usableAbility and aura_env.duration  and aura_env.duration == 0 and (not aura_env.baseCD or aura_env.baseCD >= 2000)then
            return 1,1,1,1
        else 
            return r1,b1,g1,a1
        end
    end
    Its only a minor tweak and I'll have to bug test it on other abilities but I think that'll be the new color function for everything going forward


    Let me know if it doesnt work as expected

  5. #25
    Deleted
    That works. Thank you

  6. #26
    Hello! This is really awesome, and I kind of want to know what unit frames you're using too. This might be more of a WeakAura specific question, but is there a way to resize things easily? It's just a little too small for me.

    As for suggestions, the Windwalker side of things could use a Hit Combo counter. It's an important part of the rotation to not use the same ability twice.

    Edit: Oh it's also missing something for Strike of the Windlord.


    Edit: Derp! Saw you can dupe them and make your own. This works for Strike of the Windlord etc. Spinning Crane Kick isn't working correctly for some reason, and I'm wondering how I could keep the stacks from the normal action bar on there. Still no way I can see to get Hit Combo to work?
    Last edited by Akeche; 2016-08-31 at 11:08 PM.

  7. #27
    Quote Originally Posted by Akeche View Post
    Edit: Derp! Saw you can dupe them and make your own. This works for Strike of the Windlord etc. Spinning Crane Kick isn't working correctly for some reason, and I'm wondering how I could keep the stacks from the normal action bar on there. Still no way I can see to get Hit Combo to work?
    Hit combo works as expected; put it under spell name, set trackAura to true, and then because its a talent and not a spellbook ability you'll have to specify the spellID at the bottom (its 196740)

    For now, for that functionality for SCK, it needs to be custom coded into the display text. I may automate it but very few abilities work off total debuffed targets /shrug

    anyway, import this one:

    Code:
    d80WsaGiHkxIiqFsQOmka6uayvsfsVsQazwsPULGQDbPFjvOAyePoMaTmb0ZurPPja6AsLABeb9nbGXreW5KkQMNur4Esj7tffhufvlKiYdfuMOa0fLksTrIq(irunsIqvNuQKwP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HX3Vqo1BmPcv47ewV47CNczynWqqLOAW9cIVGIe(uqjMEUc8nSoDVyD6tIVZg89gAU7Crsh2NBr3ft4tP7ODu6WuGcnq8n(zJabUxGsa8fwdPFCmCVae3tA0UXc8DvaJ9tKiRhe3li(o3O6blSKW3ewm1liog(o3PahdFB0YWkqHgiws4lScuObIVP6t5AJqbdvqq9sGfDl64UHM7oxK0H95w0DXe(04OdpC6EjWIwFqN9NqtHuTP7RooAth61WTP1pTiHQvql00IpHpLdos1NY1gHk(e(0ZvFs3Iw8QIo8WPJ9j8P0ssDCqZrQ(uU2i0(QJJEjWIUf9oHOdpC6UEqlj1XbnIeKoPBMhh1xRGEtGfnmICrw0hVgi9oHOfA6otsQJd6EjWQZ4GJu9PCTrOF1XuZVKi9dKUf9rcbw00HhoT4vf98GwkTIo(Cf0tbTqtRxiPObrOJNwfIEEqlLw1zFrpxAbIIgw)FblOp0pqos1NY1gHEOFGNS6yQ5xn0TO7qItIxbmx9SHwI0pW46GPPdpC6oPwrNqGAAezurl00GHk45Hu0XJycJGoojs)aP7LaR4aeeaAe1xCKQpLRncfmubb11as3IENq0HhoDhUxhqNKEl4cemFPOp0pD2FcnfZcKwGif0n6TZe0zOqv(0ZLwkT6Pbdvqq916trPLykbTarrdgQGGO7AaPruF1MUGalAOkJk6eKENqCWbhybwGVntWou1clMrf(Mqq4lSwd1OJFXsclWxq8nq0ardIEw8nc3lyagyqSaJb

  8. #28
    Thank you so much! The only thing is I'm not sure how to get it to line up with the rest of the WA core now. It sort of placed it far higher on my screen. I'll fiddle with it.

    I just copied another and changed it to what was in that one, works perfectly now
    Last edited by Akeche; 2016-09-01 at 03:53 PM.

  9. #29
    Quote Originally Posted by Akeche View Post
    It sort of placed it far higher on my screen..
    that happens because the aura 'remembers' its original positioning when it first loads instead of moving to its group position. If you /reload it'll fix itself no problem

  10. #30
    Wanted to see if I could get your help in figuring this one out, this time around for Brewmaster!

    I'm trying to get Expel Harm to, hopefully, both light up and also show a number to indicate how many orbs have been generated. I THINK the issue is that the orbs are actually generated by the gift of the ox passive, whereas Expel Harm is just used to suck them all in to heal/do minimal damage.

    Tried everything I could think of, so hopefully you have some ideas x_x

  11. #31
    Quote Originally Posted by Akeche View Post
    Tried everything I could think of, so hopefully you have some ideas x_x
    Sorry didn't see your comment till now.

    I actually have pretty much no idea. The only thing in the UI that tracks it is that number on the Expel Harm icon on your actionbars. It's not contained in the stack count or the tooltip so I have no clue how to access it. If anyone can point me to the API call I'll do the rest but until then we're SOL

  12. #32

    Happy Thanksgiving

    Bump New Version out. Download the newest versions of everything you need to be sure not to run into any incompatibility. This should be the final iteration with significant changes to the core function.



    Quote Originally Posted by dennisdkramer View Post
    ..Expel Harm...
    Has been fixed. Lots of changes to monk, some cleaning to druid, color tweaks in the core function

    Druid (all specs) is Done.


    Monk is like 99% done but i havent put them into a group on WAGO yet

    Priest is maybe 75% done, mostly shadow I haven't checked over yet.
    Last edited by dennisdkramer; 2016-11-19 at 08:25 AM.

  13. #33
    Hello,

    I really like the idea of your weakauras. Unfortunately this solution is not wokring for any client.
    It is working for english clients only. Even changing the Spell Names does not work!

    What do I have to do if I want it to work on any client?

    Also: Which Masque are you using in your video? I ask because when I import your weakauras they look
    completely different than those in your video (other size, other border, other font, ....)

  14. #34
    Quote Originally Posted by Lybrial View Post
    Hello,

    I really like the idea of your weakauras. Unfortunately this solution is not wokring for any client.
    It is working for english clients only. Even changing the Spell Names does not work!

    What do I have to do if I want it to work on any client?

    Also: Which Masque are you using in your video? I ask because when I import your weakauras they look
    completely different than those in your video (other size, other border, other font, ....)
    So unfortunately, you do NEED to use the actual spell names (not just spellIDs) to make this work. However, you should be able to just change the name of the spell to the appropriate language. One guy ported my priest group to German, so you can import his and see what he did to try and work it out for yourself. https://wago.io/41nm1yocb
    Unfortunately that's about all I know but I'm glad to provide further help if you can figure out what exactly isn't working about it.

    I'm actually not using Masque at all. Check this out: http://www.wowinterface.com/download...cons-Thin.html
    It replaces all the icons in the game with much better looking borders or whatever.

    I'm not sure why the size would be different, its possible that one of my classes has bigger sizes than the others, but the size and font options can be changed very easily. Just select the group in weakauras and go to display and any changes you make will change all the auras in the group. I use a font that comes with XCT but Arial Narrow looks pretty okay as far as the default fonts go.

  15. #35
    Actually the only problem I get over and over again is the following lua

    [string "return function[).."]:2: attempt to
    call global 'WA_Uberaura_Display' (a nil value)
    EDIT:

    Oh, my bad. Had to import core functions. Thank you

    - - - Updated - - -

    Oh. There is another error which I cant solve.

    Interface\AddOns\WeakAuras\RegionTypes\icon.lua
    I got this after I imported your Druid Primary Auras. It is appearing when one of the Auras tracked is on CD.

  16. #36
    Quote Originally Posted by Lybrial View Post
    Actually the only problem I get over and over again is the following lua



    EDIT:

    Oh, my bad. Had to import core functions. Thank you

    - - - Updated - - -

    Oh. There is another error which I cant solve.



    I got this after I imported your Druid Primary Auras. It is appearing when one of the Auras tracked is on CD.
    That's just the location of the error; if you could give me the other chunk where it says xyz returned a nil value or whatever, I'll see if I can figure it out for you. Also are you saying that this happens as soon as ANY aura goes on cool down in that group?
    Last edited by dennisdkramer; 2016-11-24 at 04:58 AM. Reason: Derp

  17. #37
    Off topic Dennis...what is your combat text?

  18. #38
    Quote Originally Posted by Razorlor View Post
    Off topic Dennis...what is your combat text?
    XCT

    #tenchar

  19. #39
    There was an update to UnitAura with patch 8.0. Here is a new trigger function that uses the replacement AuraUtil.FindAuraByName. Lines 10 and 65-74 modified. I am no expert, but this seems to work for me.

    Code:
    function WA_Uberaura_Trigger(event, time, subevent, ...) 
        if not WA_Combat_Fader then
            aura_env.spellID = select(7,GetSpellInfo(aura_env.spellName)) or  aura_env.spellID or select(7,GetSpellInfo(aura_env.buffName)) 
            
            
            --Usable check to see if weakaura even shows up
            if aura_env.spellID then
                aura_env.haveSpell = IsPlayerSpell(aura_env.spellID) or select(7,GetSpellInfo(aura_env.spellName)) or nil
                if not aura_env.haveSpell then
                    aura_env.onlyAura = aura_env.onlyAura or AuraUtil.FindAuraByName(aura_env.spellName, "target", "PLAYER|HARMFUL") or AuraUtil.FindAuraByName(aura_env.spellName, "player") 
                end            
            end
            
            if  aura_env.haveSpell or aura_env.onlyAura then
                aura_env.trigger = true
                aura_env.formMatch = true
                aura_env.static = false
                aura_env.icon = nil
                
                --Form check
                if aura_env.requireForm then  
                    aura_env.formIndex = GetShapeshiftForm()
                    if aura_env.formIndex and aura_env.formIndex >= 0 and aura_env.formIndex <= 10 then
                        if aura_env.formIndex and aura_env.formIndex == 5 then
                            aura_env.formName = "Tree of Life Form"
                        elseif aura_env.formIndex and aura_env.formIndex >= 1 then
                            aura_env.formName = select(2,GetShapeshiftFormInfo(aura_env.formIndex)) or "Humanoid Form" 
                            if not aura_env.formName then 
                                aura_env.formName = "Tree of Life Form"
                            end
                        elseif aura_env.formIndex and aura_env.formIndex == 0 then
                            aura_env.formName = "Humanoid Form"
                        end          
                        aura_env.formMatch = false
                        for i=1,#aura_env.formRequired do
                            if aura_env.formRequired[i] == aura_env.formName then 
                                aura_env.formMatch = true
                            end
                        end                
                    else
                        aura_env.formMatch = true
                    end            
                end
                
                if aura_env.formMatch then
                    
                    --Usable check for color function
                    if select(7,GetSpellInfo(aura_env.spellName)) then
                        aura_env.usable, aura_env.noMana = IsUsableSpell(aura_env.spellName)
                    elseif select(7,GetSpellInfo(aura_env.buffName)) then
                        aura_env.usable, aura_env.noMana = IsUsableSpell(aura_env.buffName)
                    end    
                    
                    aura_env.charges, aura_env.maxCharges, aura_env.start,aura_env.duration = GetSpellCharges(aura_env.spellName)
                    
                    if aura_env.charges and aura_env.maxCharges >=2 then
                    elseif GetSpellCooldown(aura_env.spellName) then 
                        aura_env.start,aura_env.duration, _ = GetSpellCooldown(aura_env.spellName) 
                    elseif aura_env.buffName and GetSpellCooldown(aura_env.buffName) then
                        aura_env.start,aura_env.duration, _ = GetSpellCooldown(aura_env.buffName) 
                    elseif GetSpellCooldown(aura_env.spellID) then
                        aura_env.start,aura_env.duration, _ = GetSpellCooldown(aura_env.spellID) 
                    end
                    
                    if aura_env.trackAura then
                        _,aura_env.icon,aura_env.count,_,aura_env.durationAura,aura_env.expirationTime = AuraUtil.FindAuraByName(aura_env.spellName, "player")
                        if not aura_env.count and AuraUtil.FindAuraByName(aura_env.spellName, "player", "PLAYER|HARMFUL") then
                            _,aura_env.icon,aura_env.count,_,aura_env.durationAura,aura_env.expirationTime = AuraUtil.FindAuraByName(aura_env.spellName, "player", "PLAYER|HARMFUL")
                        elseif not aura_env.count and aura_env.buffName and AuraUtil.FindAuraByName(aura_env.buffName, "target", "PLAYER|HARMFUL") then
                            _,aura_env.icon,aura_env.count,_,aura_env.durationAura,aura_env.expirationTime = AuraUtil.FindAuraByName(aura_env.buffName, "target", "PLAYER|HARMFUL")
                        elseif not aura_env.count and aura_env.buffName and AuraUtil.FindAuraByName(aura_env.buffName, "player") then
                            _,aura_env.icon,aura_env.count,_,aura_env.durationAura,aura_env.expirationTime = AuraUtil.FindAuraByName(aura_env.buffName, "player")
                        end    
                    end
                    
                    -- If its a pet
                    if aura_env.trackPet == true and (not aura_env.petCDFirst or (aura_env.petCDFirst and  aura_env.duration <= 1)) and ((aura_env.petName and (UnitName("pet") == aura_env.petName)) or (UnitName("pet") == aura_env.spellName)) then
                        
                        if aura_env.petStartTime and aura_env.petStartTime < (GetTime() - aura_env.petDuration) then
                            aura_env.petStartTime = nil
                        elseif aura_env.petDuration and not aura_env.petStartTime then
                            aura_env.petStartTime = GetTime()
                            aura_env.duration = aura_env.petDuration
                            aura_env.expirationTime = aura_env.petStartTime + aura_env.duration
                            aura_env.static = false
                            
                        elseif not aura_env.petDuration then 
                            aura_env.petStartTime = nil
                            aura_env.duration = 0
                            aura_env.expirationTime = 0
                            aura_env.static = true
                        end
                        
                        -- If its a totem
                    elseif aura_env.trackPet == true and (not aura_env.petCDFirst or (aura_env.petCDFirst and aura_env.duration <= 1)) and select(2,GetTotemInfo(1)) == aura_env.petName then
                        _, totemName, aura_env.start, aura_env.duration = GetTotemInfo(1)
                        aura_env.expirationTime = aura_env.start + aura_env.duration
                        
                        -- If its an aura
                    elseif aura_env.trackAura and aura_env.durationAura and aura_env.durationAura >= 2 then
                        aura_env.duration = aura_env.durationAura
                        if aura_env.count >= 1 then
                            aura_env.charges = aura_env.count
                        else aura_env.charges = nil
                        end
                        
                        -- If infinite duration buff
                    elseif aura_env.trackAura and aura_env.durationAura and aura_env.durationAura == 0  then
                        aura_env.duration = aura_env.durationAura
                        if aura_env.count >= 1 then
                            aura_env.charges = aura_env.count
                        else aura_env.charges = nil 
                        end
                        
                        -- Charge Cooldowns
                    elseif aura_env.maxCharges  and aura_env.maxCharges >= 2 then 
                        if aura_env.charges == aura_env.maxCharges then
                            aura_env.duration = 0
                            aura_env.expirationTime = 0
                            aura_env.static = true       
                            if aura_env.onlyOnCD then 
                                aura_env.trigger = false
                            end
                        else
                            _,_,aura_env.start,aura_env.duration = GetSpellCharges(aura_env.spellName)
                            aura_env.expirationTime = (select(3,GetSpellCharges(aura_env.spellName)) + select(4,GetSpellCharges(aura_env.spellName)))
                        end
                        
                        -- Cooldown    
                    elseif aura_env.duration and aura_env.duration > 2 then   
                        aura_env.expirationTime = (aura_env.start + aura_env.duration)
                        
                        -- Catchall    
                    else 
                        
                        aura_env.duration = 0
                        aura_env.expirationTime = 0
                        aura_env.static = true
                        if aura_env.onlyOnCD then 
                            aura_env.trigger = false
                        end
                    end
                    
                else 
                    aura_env.trigger = false
                end
            else   
                aura_env.trigger = false
            end
            return aura_env.trigger
        end    
    end

Posting Permissions

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