1. #1

    WeakAuras - Searing Totem Trigger?

    I've been trying to show a graphic under 3 conditions for my searing totem while in combat:

    1. Searing Totem is not up
    2. Fire Elemental Totem is on cooldown
    3. Searing Totem has <4 seconds remaining

    I used the triggers from this thread: wowace.com/addons/weakauras/forum/54521-searing-totem-duration-trigger/
    (Sorry, can't post links yet. This is my first post.)

    **Trigger 1**
    * Type: Status
    * Status: Totem
    * Totem Type: Fire
    * Totem Name: Searing Totem

    **Trigger 2**

    * Type: Custom
    * Event Type: Status
    * Check On... : Every Frame

    Custom Trigger:

    Code:
    function()
        local arg1, totemName, startTime, duration = GetTotemInfo(1)
        local time = floor(startTime+duration-GetTime() )
        if time <4 then -- 10 sec ot the timer u wish
            return true
        end
    end
    Custom Untrigger:

    Code:
    function()
        return true
    end

    This all works well; the graphic displays when I'm in combat and searing totem is not up or has less than 4 seconds duration. However, I can't figure out what trigger to add in order to check if Fire Elemental Totem is on cooldown without disregarding the other 2 triggers.

    I'm worried if I set WeakAuras to match "any triggers" that the graphic will show up when Fire Elemental Totem is on cooldown even if I already have a searing totem up.

    Is there any way to do what I'm asking?

  2. #2
    Code:
    function()
        local arg1, totemName, startTime, duration = GetTotemInfo(1)
        local stTime = floor(startTime+duration-GetTime())
    
        local feSCD, feInSCD = GetSpellCooldown( "Fire Elemental Totem" )
        local feCDleft = (feSCD or 0) + (feInSCD or 0) - GetTime()
        if feCDleft < 0 then feCDleft = 0 end
    
        if stTime < 4 and feCooldown > 0 then
            return true
        end
    end

    Or something.
    Last edited by Hekili; 2013-08-22 at 02:53 AM. Reason: Updates to Fire Elemental CD checking.

  3. #3
    Thanks for the quick reply!

    I'm at work right now but I'll try it out when I get home. I'm not a coder but I think I understand that and it sounds like it will work.

    - - - Updated - - -

    Alright, so I tried what you suggested and the graphic still shows up when Fire Elemental Totem is up and when it's off cooldown. Do you know how I would stop it from showing up while Fire Ele is up? I'm not too worried about it showing when Fire Ele is off cooldown anymore since I usually just check my bars to see when to drop that.

  4. #4
    Do you know how I would stop it from showing up while Fire Ele is up?
    Uncheck "Totem Name" in your first criteria.

    For your Custom Trigger:

    Code:
    function()
        local arg1, totemName, startTime, duration = GetTotemInfo(1)
        local time = floor(startTime+duration-GetTime() )
    
        if (totemName == nil or totemName == "Searing Totem") and time < 4 then -- 10 sec ot the timer u wish
            return true
        end
    
        if totemName == "Fire Elemental Totem" then
            return false
        end
    end
    Maybe.
    Last edited by Hekili; 2013-08-22 at 08:09 PM.

  5. #5
    Works perfectly! Thanks a lot

  6. #6
    Hi would you maybe share the whole WA string... ? Would be realy nice. Thanks a lot!

Posting Permissions

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