Programming practice

Discussion in 'User Interfaces' started by Merlijn, Aug 13, 2009.

  1. Jazende

    Jazende Sacred vines, entangle the corrupted! Just contact Smaj, it's faster.

    Joined:
    May 12, 2008
    Messages:
    4,832
    Likes Received:
    236
    Here's some practice:

    Make me an addon that tracks how big the absorb effects on people are. (Maybe with 'sessions' and 'total' or so.)

    Haven't seen any addon for that yet :)
     
  2. Ayu

    Ayu You need help. Just contact Smaj, it's faster.

    Joined:
    Aug 26, 2005
    Messages:
    14,435
    Likes Received:
    577
    Fix your sig, bro
     
  3. Jazende

    Jazende Sacred vines, entangle the corrupted! Just contact Smaj, it's faster.

    Joined:
    May 12, 2008
    Messages:
    4,832
    Likes Received:
    236
    Ye, been looking into it. Seems like its deleted or so. Trying to find it back on my PC but I think it's on my old one.
     
  4. Ayu

    Ayu You need help. Just contact Smaj, it's faster.

    Joined:
    Aug 26, 2005
    Messages:
    14,435
    Likes Received:
    577
    I can see the image, was refering to the numbers. <_<
     
  5. Jazende

    Jazende Sacred vines, entangle the corrupted! Just contact Smaj, it's faster.

    Joined:
    May 12, 2008
    Messages:
    4,832
    Likes Received:
    236
    Oh. You can see the pic? >_> It's been gone for me since last night.
    Also, I can't edit it till the picture is fixed.
     
  6. Lebuff

    Lebuff Huge, throbbing Member

    Joined:
    May 1, 2007
    Messages:
    1,300
    Likes Received:
    22
    Here is code to show progress on breaking the val'kyr twins shield.
    Someone make it into an addon.

    Code:
    function IETwinShieldProgress:COMBAT_LOG_EVENT_UNFILTERED(_,timestamp, event, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags, ....)
        if event == "SPELL_AURA_APPLIED" then -- Gained
            local spellID, spellName, spellSchool, auraType = ....
            if (destName == "Fjola Lightbane" and spellName == "Shield of Lights") or (destName == "Eydis Darkbane" and spellName == "Shield of Darkness") then
                self:print(spellName.." gained.")
                shieldAbsorbs = 0
            end
        elseif event == "SPELL_AURA_BROKEN" then -- Removed with force
            local spellID, spellName, spellSchool, auraType = ....
            if (destName == "Fjola Lightbane" and spellName == "Shield of Lights") or (destName == "Eydis Darkbane" and spellName == "Shield of Darkness") then
                self:print(spellName.." broken after "..shieldAbsorbs.." dmg.")
                shieldAbsorbs = 0
            end
        elseif event == "SPELL_AURA_REMOVED" then -- Expired
            local spellID, spellName, spellSchool, auraType = ....
            if (destName == "Fjola Lightbane" and spellName == "Shield of Lights") or (destName == "Eydis Darkbane" and spellName == "Shield of Darkness") then
                self:print(spellName.." expired after "..shieldAbsorbs.." dmg.")
                shieldAbsorbs = 0
            end
        elseif event == "SWING_MISSED" then
            local missType, amountMissed = ....
            if missType == "ABSORB" then
                if destName == "Fjola Lightbane" or destName == "Eydis Darkbane" then
                    shieldAbsorbs = shieldAbsorbs + amountMissed
                end
            end
        elseif event == "RANGE_MISSED" then
            local spellID, spellName, spellSchool, missType, amountMissed = ....
            if missType == "ABSORB" then
                if destName == "Fjola Lightbane" or destName == "Eydis Darkbane" then
                    shieldAbsorbs = shieldAbsorbs + amountMissed
                end
            end
        elseif event == "SPELL_MISSED" then
            local spellID, spellName, spellSchool, missType, amountMissed = ....
            if missType == "ABSORB" then
                if destName == "Fjola Lightbane" or destName == "Eydis Darkbane" then
                    shieldAbsorbs = shieldAbsorbs + amountMissed
                end
            end
        elseif event == "SPELL_PERIODIC_MISSED" then
            local spellID, spellName, spellSchool, missType, amountMissed = ....
            if missType == "ABSORB" then
                if destName == "Fjola Lightbane" or destName == "Eydis Darkbane" then
                    shieldAbsorbs = shieldAbsorbs + amountMissed
                end
            end
        end
    end
    
     
  7. Lonei

    Lonei Shitpenis

    Joined:
    Aug 7, 2008
    Messages:
    499
    Likes Received:
    0
    Maybe not a dedicated addon for it, but I'm pretty sure Skada tracks absorbs and you can pull data from it quite easily.
     
  8. Tyche

    Tyche The Punisher

    Joined:
    Dec 30, 2008
    Messages:
    2,203
    Likes Received:
    107
    Same with recount_guessedabsorbs