Page 71 of 111 FirstFirst ... 2161697071727381 ... LastLast
Results 701 to 710 of 1109

Thread: WeakAuras Tutoring Thread

  1. #701

    Default

    Originally came here for a question regarding my Rune tracker I had created. I managed to figure out the issue. Even though the WoW LUA website states that "IsEnergized" is one of the arguments for the RUNE_POWER_UPDATE event, it doesn't appear to be the case when I ran /eventtracer. Regardless, I was able to figure out my issue.




    I'll drop the string here. This thread was very helpful!

    Furizen's Rune & Runic Power Tracker



    Quote Originally Posted by Furizyn
    EDIT: I FIGURED IT OUT. WILL POST STRING SOON
    Death Knight specific question

    I created a Rune / Runic Power tracker entirely with WeakAuras. I'm happy with the way it works, but would like to add one more little enhancement.

    I would like to create invisible auras for the sole purpose of causing my Rune Textures to "Button Glow" for a split second when they "re-energize."

    It appears the Combat Log event I need "read" based on my research would be "RUNE_POWER_UPDATE". Here is what I've tried so far, but it unfortunately doesn't work...

    I'm still very much a novice at LUA, so bear with me. I put this trigger together after hours of research into reading Combat Log events, but I honestly have no idea what I'm doing..haha!

    Example: Blood Rune #1

    Code:
    Name:Blood #1 Flash
    Actions>On Show>Button Glow Show>Frame:Blood #1
    Actions>On Hide>Button Glow Hide>Frame:Blood #1
    Trigger>Custom>Type> Event:RUNE_POWER_UPDATE
    
    Custom Trigger:
    
    Code:
    function(event,...)
        if ( event == "RUNE_POWER_UPDATE" ) then
                  -- If Event Fires then
            local runeIndex, isEnergize = ...;
            if runeIndex ==  1 then
                if isEnergize then
                    return true
                end
            end
        end
    end
    Hide>Timed>0.5s
    Thanks so much for your advice. If I can get this last piece working I'll gladly share what I have.
    Last edited by Furizen Hunter; 01-16-2015 at 03:30 PM.

  2. #702

    Default

    Quote Originally Posted by Krazyito View Post
    Again, please let me know if you notice it doesn't work. I don't have a character i can test it in a true environment, just what I could do with a priest casting Flash heal on me.
    Great idea, working with the bosses target!
    I'll test it either on Sunday or next id, but I don't see a problem with it.
    You could probably reduce the time to 1.5s, since that's the cast time and if you don't react in that timeframe, the feign/spectral won't stop the damage.

  3. #703

    Default

    Spoiler


    In case anyone wondered, BigWigs is doing the countdown before you explode on the last mythic Margok phase (Cho'gall) so I removed the countdown say thing.
    Highmaul - Chogall Group
    Code:
    dCe5saqirkPfjcnkQqDkQqMfau3Is0UOegMeoMkAzqLNPOAAkY1GITjs(gv04OOohuI5jsj6EIG9baXbHsTqjvpKI0eHsQlcLKnks1hbqJurXjLuwjuLxksjmtkICtQGDkr)eQQHksXsbu9uKPQkxLIWxbaJfasNvKsnxGQ9s(Rkmyk1HHSya5XQ0Kb5YkTzj5ZuPrtjDAfEnqz2I62uy3O63snCGSCQ65OmDHRRQ2ofr9DfLgpGY5frRhG2pOwN6jcPNcrmr4SOWcSyHzrgIGebPNi)6oA(ljOvKRV)GeX2CvA6bpevh)3dFhmjSk9NOfyGqCOfs1fX)gp)W1D9mvEkAajAMHRvd0pdBBjSTPwBxuodBdqF)bjk3ii9e9z7XnJymbKiFNx9ez8ZXqpfkefO8Yd9ez8ZXqpfke5r3vprg)Cm0tHcfkeD1tLN6j6(zrB8wGfIGXdgpri(WafJMRNid0GRNOBNB)ljOvel8OHR1W0o3Er3o3EaQYcr3o3EGRYcrqFpkgn)iscAf53mkgM8k6Z2JBNBVas0TZTVUkleD7C7XwLNkuik8dx31RNigOnNRbj60zkmZDk6Zwt7ppuDr3plAJdRdOvummwirqlq)QQxsqROzWg4oKUjmjrCKXY0tLNICa5bd2URGTbaKN1CxfI(S9GJmwvxehzShnO1JI2lkHeeD7ppenj62FEGpO1JI2lkHeeXrgROtNPWm3PigOnNRbX0tLNQ8edws5eJcrv)CMDrCvxHOQMhIWvuGd2UENHezDhUwdvAgJOCJG0tKhDx9ez8ZXqpfke9z7bGnFvDrbkV8qprg)Cm0tHcra28v0mdxRgOFwKVZREIm(5yONcfkev18GgaUQe3KiObdugLKc0fmMiyBr(1D08xsqROXT5IUDNH6z5cirSaDbJzAZd0GBS8qe(M4r1WASseGDBOYclMlc9JwajAajcGia304BGnmgrsrOBmAotprSa5d9ezSmgYDfjc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ZN4WicAWaLrjRDBUOA8y9vO7cETBZzGtG2C(GSIG6zpCyWHEZoyXG7kIfOlyS00dEic41a4mprXcSW0o3E9ujovwOY5kDmPWCIXzQIcCyX5KZPcvzjgNkuOqKjRYZjCfkKa
    This will show a big icon if you're the closest and underneath a big icon for the stacks from gaze of the abyss. Nothing special. Important: We switch gaze targets at 3 stacks, so that's what the say actions are designed for. Might have to change that/


    And my other question a few pages back was about a challenge mode timer, fortunately the original Author (Maebybaby - Draenor EU) updated the aura, just in case someone here is interested...
    Challenge Mode Timer
    Code:
    daLfHaqikuHwevLlrsQrbkofizvGsrnlOIBrvv7IsQFrHQAyGkhJQOLjLQNrIyAskUgOKTrI03OGACuI6CuI06ijzEuOsDpOQ9bkf5GKelusupKcmrkuUOuYgPq6JuigjLioPKuRKiZukLBcvANsc)Ke1qPGSukHNkYuPORckf(kvbNLcvYAPqf9wjLMlfQG7kjzVe(RedgDyalgu1JjQjlfxwyZG4ZKWOPkDAQSAQQ8AkuLztk3MuTBr9BPA4KulhONdLPd56uQTds9DjvJxsKZtjz9uf69GsL5dkLUpOu1(vl8uyksactbsKWeP2TgoRTuRTSiPlsnIuJWuKQKYqGGfirfwgollswPmeiybsy0AS02HLL90W1Oup9SgybllvPci(xtnIuuj1a5MOruzrcl0GyOUlJePkRSPPY42wlJAksannoKRNb0kiqNcfbiMWuGejxJizGxanTiRiM42BIz7Iu2w3e0PqraIjQWtrsRd0imfjBSOiRbGHjGxKabKdHPiPBRHCctbsGejeGwKrctrs3wd5eMcKajsGDTqyks62AiNWuGeibsKadfUE20k1HiPaSBRwGejzHPOcpfMIu3gP5YHaErcspJsopgIk80WIuJdtTgGvMrLqIKQLfjzBmux3mQesKGyNLrUEggOwAoNtTUmG2SXoRi6zCMfCMyOqn2e)0GssoYaGUU1gjqjuOU6mKomqT0CoNADzaTzhE)czKd6yIFc7G9lnNZ5sZ5C6GmRduK1lUSAWUcWadBIh)ebAhtK3iV0CoNZ5CcPdoD49eNjgkuJnB6ln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thKjgkuJnXJFc3e5nYlnNZ5CoNZ5CoNZzDGISEXLvd2vagyyt8tiaAyXsZ5CoNZ5CoNHgwS0CoNZ5CoNZ5CoN1bkY6fxwnyxbyGHnXprG2XsZ5CoNZ5CoNZ5CwhOiRx6W7xiJCqht8teODS0CoNZ5CoNZ5CoN(7)urGMD49lKroOdSLMZ5CoNZ5CoNZ5eshC6W7jotmuOgB20xAoNZ5CoNZ5CoNZ5Co16YaAZmGEGZSGZedbGSXWzwWzcnGMDmXpnOKKJmaORBTrcKbGoua6aQodPdJdQLMZ5CoNZ5CoNZ5CoNZ6afz9shE)kQb7kadmSADvnXp9CP5CoNZ5CoNZ5CoNZ5SoqrwV0H3VsgqpQ1v1e)mdOhlnNZ5CoNZ5CoNZ5CoN1bkY6Lo8(vGgqZoQ1v1e)eAan7yP5CoNZ5CoNZ5CoNZ50bzIHaq2yZHT4Niq7yI8g5LMZ5CoNZ5CoNZ5CoNZ5CoRduK1lYDD1AbY1Z16QAIF6Z3sZ5CoNZ5CoNZ5CoNZzKBwAoNZ5CoNZ5CoNZi3S0CoNZ5CoNZzKBwAoNZ5CoJCZsZ5Cg5MLICZslT0slT0slT0slT0slT0slT0slT0slT0sljsY2yOUEXRRjejKtpAeirQURb5vy0AGfCkrPkrj1al4Axjg2sHv7ci(dR2fPSTUjOtHIaetuHNIK3WPWlsy0AGfCkrPkrj1al4Axjg2sHv7ci(dR2fjToqJWuKSXIcMZJHOYIKnwuYb0bOaErcbOfzKWuK0T1qoHPajqIuJdceNSTgYkrs2lGMwKveIKnwu8yphc4fjqa5qyks62AiNWuGeirYglknoiqCY2AiRevwKa7AHWuK0T1qoHPajqIeMZJHWuKWCzfAHiPgaezLajqIKRrKmD6bOjOtHIaC2UajqIe0Ik8SM2HtGeca
    Replaces the CM Timer from Blizzard and reverses the timer so it shows the elapsed time since start instead of the time remaining for the current stage. Good if you try to achieve fast runs and not just gold


    And another one I found helpful when doing lots of challenge modes:
    Challenge Mode Reset CD Timer:
    Code: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an icon with a timer in it whenever you reset CM so you know when the reset is off CD
    Last edited by oneyoner; 01-18-2015 at 11:50 AM.

  4. #704

    Default

    Hey K.

    I was looking at your Weak Aura snippet page and was looking at this piece of code:
    Code:
    -- ShortenNumber(12345.67) - Return shortened, rounded value of 12345.67 (12k)
    -- ShortenNumber(12345.67, 1) - Return 12345.67 shortened, with 1 decimal place (12.6k)
    -- ShortenNumber(12345.67, 1, '%s - %s') - Return 12345.67 shortened, with 1 decimal place using format string '%s - %s' (12.6 - k)
    -- @value number - Numeric value to format, shorten, or round.
    -- [@decimal] number - (Optional) Number of decimal places to round (default 0)
    -- [@pattern] string - (Optional) String pattern value to create output string (default '%s%s')
    -- return string - Formatted value
    local ShortenNumber = function(value, decimal, pattern)
       if not value then return end
       pattern = pattern or '%s%s'
       function round(val, decimal)
          if (decimal) then
             return math.floor( (val * 10^decimal) + 0.5) / (10^decimal)
          else
             return math.floor(val+0.5)
          end
       end
       if(value > 999999999) then return (pattern):format(round(value/1000000000, decimal), 'b') end          
       if(value > 999999) then return (pattern):format(round(value/1000000, decimal), 'm') end        
       if(value > 999) then return (pattern):format(round(value/1000, decimal), 'k') end        
       return (pattern):format(round(value, decimal), '')
    end


    Now While playing around with this, I had somewhat of a revelation and found out you could define new functions within the custom triggers. Which kind of amazed me and now makes me want to figure out what else i could do with this.

    My question is, a function written like this, would it be scoped within this trigger only?

    If I wrote it like this instead

    Code:
    function ShortenNumber(value, decimal, pattern)
    ......
    end


    would it be global? I'm assuming if this does make it become global, I still don't want to do this because it would probably use a lot of resources. Might be best just to define the function anew in each aura I want to use. Thanks for the help.
    Last edited by Krazyito; 01-18-2015 at 11:47 PM.

  5. #705

    Default

    Hello, I'm random here. Couldn't find a better place on the interwebs for weakauras/LUA discussions. However if I can get answers to my "pseudo name plates" project, a lot of people could potentially benefit from it.

    So, here we go. I'll try to be as clear as I can:

    Ranged players in Tectus have been dealing with camera issues for a long time now since the beta. It definitely is not gonna be fixed. The biggest issue is that most of the time we cannot see nameplates for the two adds that keep spawning throughout the fight. So what I want to create is, as asked around many times, a clickable dot timer for things that do not display on the boss frames.

    I know the limitations with protected functions and everything. I believe I have found answers to all of them and doing the following I succeeded to an ok point. Bear with me.

    Approach and Problems:

    There are three main components of a nameplate/unitframe for damage dealing. Dot Trackers, Health Bar, Click-to-Target Ability. Creating a pseudo unit frame requires us to find ways around the limitations of these three things.

    The Dot Trackers

    I created 6 separate multi-target aura (debuff) trackers. I want to track 2 targets, the Night-Twisted Berserker and Night-Twisted Earthwarper. I want to track 3 dots. Shadow Word: Pain, Devouring Plague and Vampiric Touch.

    WeakAuras multi-target function works really good for being able to track all dots cast around through some combat-log tricks. When the raidmembers or you target, focus or mouseover any of the dotted mobs, WeakAuras can track this. Also it watches the combatlog to see if the target died to cancel the frame. It also cancels when your debuff finishes. If no one targets, focuses or mouse-overs that specific mob, then problems occur - however this is very unlikely.

    What I Need to Figure Out:

    I need to find a way to limit the displayed dot trackers with the names of the two adds I mentioned above. This should be a very easy custom trigger/untrigger code normally if WeakAuras had the option for it. However, since it doesn't, I need to do everything done by the WeakAuras multi-target tracker function customly through custom LUA code.

    The logic is simple, since we are only trying to limit the display after WeakAuras code does all the work for watching stuff through combatlog and all. We are not trying to edit how it gets information, just trying to limit what it prints to the screen.

    Result will be two separate locations with each having three separate bars for each of the dots. The clickable frame will come next to this. (You can check the screenshot at the end of the post for an idea)

    Clickable Frame

    I have modified some codes and I was able to get a WeakAura that is both clickable and targets the add itself. Many of the addon creaters deem this impossible. Yes, the actions themselves are protected to target cast or other stuff. However no one stops you from executing a macro with a click.

    How did I do it?

    Create a macro for targeting the add
    Code:
    /target Name_of_the_Add
    Create an Icon in WeakAuras
    Trigger type: Custom
    Event type: Event
    Event: PLAYER_REGEN_DISABLED
    Custom Trigger:

    Code:
    function(e)
        
        local r = WeakAuras.regions['Name_of_the_WeakAura'].region
        local b = CreateFrame("Button", "Name_of_the_Button", r, "SecureActionButtonTemplate")
        
        b:SetAllPoints()
        b:SetAttribute("macro", "Name_of_the_Target_Macro")
        b:SetAttribute("type", "macro")
        
        return true
    end
    Load only in combat

    Clicking this aura successfully runs the macro and targets the add I want to target. This atm works.

    What I Need to Figure Out:

    I need a way to improve the trigger. I want to modify the aura being displayed according to two conditions:

    1) Only display if the add exists: This can easily be learned from combatlog. If the exact name add took damage from any source it appears on skada and recount. So it should be possible to add a combatlog condition in the custom trigger to check if the add appeared.
    2) Only display if the add is in range: This can be very tricky since you cannot check range if you do not target/mouseover or focus the add itself. However we can change this to "glow if it's in range" after clicking or mouseovering it. Can be done with librangecheck for 40 yards through a spell, any spell that has 40 yard range.

    Again, best way to implement this would be that the clickable targeting button becomes visible if the target exists and glows if the target is in range.

    Health Bar

    This is the most streched one. Yet it is not that necessary to have this. Having the two components above already give u a dot tracker and a clickable icon right next to the dot tracker is enough. Health bar is just a bonus, yet it should be possible.

    Since you need to mouse-over or target the add to be able to dot it, a function getting this specific add's health through its name should be possible. After that the combatlog can be monitored, just like skada and recount does, and an estimation of how much health is remaining can be calculated through the math functions within lua. The 3 variable results should be enough to draw a bar: total health, damage taken, remaining health.

    What I Need to Figure Out:

    How to get these values from the combat log.
    How to use them properly in WeakAuras to create a custom progression bar.

    The Idea in one Picture:

    So if I succeed, even without the healthbar, the result should be something like this:




    I appreciate any help and ideas.

    Thank you for taking the time to read.
    Last edited by Jervaise; 01-19-2015 at 01:22 PM.

  6. #706

  7. #707

    Default

    Quote Originally Posted by Krazyito View Post
    Again, please let me know if you notice it doesn't work. I don't have a character i can test it in a true environment, just what I could do with a priest casting Flash heal on me.


    Edit:

    I updated the aura a little bit so its not doing so many so many checks outside of a raid. If you know of a way to make this more efficient let me know.

    Spoiler



    Code:
    function(event, ...)
       
        if event == "COMBAT_LOG_EVENT_UNFILTERED" and UnitExists("boss1") then
            if UnitName("boss1") == "Ko'ragh" then
                local playerGUID = UnitGUID("player");
                local bossGUID = UnitGUID("boss1");
                local bossTargetGUID = UnitGUID("boss1target")
                local _, subevent, _, unit, _, _, _, _, _, _, _, spellid = ...
               
                if subevent == "SPELL_CAST_START" and unit == bossGUID and spellid == 172747 and bossTargetGUID == playerGUID then
                    return true
                else
                    return false
                end
            end
        end
    end

    My aura doesn't work.. On my check during SPELL_CAST_START, he doens't have a target.

    Spoiler



    Use that (I found it on MMO champion)

  8. #708

    Default

    Thanks Krazyito for the update, 5/7 now and Koragh is next, so this will be helpful.

    I was toying around with my Mark of Chaos display yesterday. I know there is a great WA for it on the wiki, but that is a bit too much for me, so I wanted to reduce it to something a bit simpler.
    My first try is working so far. It uses the usual group aura trigger for all 4 variations of Mark of Chaos and then some custom lua for the display text that goes through all group members (GetNumGroupMembers) and checks that unit for the 4 different debuffs with UnitDebuff. If it is found, the distance to raid..X is calculated and displayed.
    Then I wanted to fade it out a bit if you are far enough away from the Mark of Chaos target and it bugged me that I would have to reuse what is basically the same code (except for the return values).
    My idea was to use the OnShow function and a bit of google revealed that for custom code during the OnShow actions, you can use WeakAuras.CurrentUnit to get the UnitID of the person triggering the aura, which is pretty much only useful for group triggers, but that's exactly what I need. So I stored that in a global variable and in the OnHide I cleared the variable just to make sure.
    I was able to use the global var in a copy of the aura and reduce the "cycles" for both custom functions from a worst case of 40*4 to 4, because there is no need to check every group member if I already know which one has it.
    During testing in LFR I had both auras active and noticed that they displayed different ranges to the Mark of Chaos. The old one was the correct one though, which left me kind of baffled. I know that raid9 isn't necessarily the same raid member anymore in a different aura, but does that even mean that they are only guaranteed to be the same in one function?

    I hope this wasn't to weird of an explanation, I can post both auras tonight after work. Any insight in when the UnitIDs can change is highly appreciated though!

    As a workaround I tried to store the name of the person in OnShow, because that should work for UnitDebuff and be unique aswell?

  9. #709

    Default

    I may be wrong, but I thought that raid# was determined by where they are placed in your groups (via the raid panel in your social window)

  10. #710

    Default

    Sadly that is not the case:
    raid1 to raid40 - A member of the player's raid group. Unlike with the party tokens, one of the raid unit IDs will belong to the player. Indices have no relation to the arrangement of units in the default UI.
    http://wowprogramming.com/docs/api_types#unitID
    Apparently only party members yield the same result for the same person every time. :/

Tags for this Thread

Posting Permissions

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