Programming practice

Jazende

Sacred vines, entangle the corrupted!
Staff member
May 12, 2008
4,997
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 :)
 

Jazende

Sacred vines, entangle the corrupted!
Staff member
May 12, 2008
4,997
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.
 

Ayu

You need help.
Staff member
Aug 26, 2005
15,256
I can see the image, was refering to the numbers. <_<
 

Jazende

Sacred vines, entangle the corrupted!
Staff member
May 12, 2008
4,997
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.
 

Lebuff

Huge, throbbing Member
May 1, 2007
1,302
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
 

Lonei

Shitpenis
Aug 7, 2008
499
Jazende said:
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 :)
Maybe not a dedicated addon for it, but I'm pretty sure Skada tracks absorbs and you can pull data from it quite easily.
 

Tyche

The Punisher
Dec 30, 2008
2,208
The Netherlands
Lonei said:
Jazende said:
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 :)
Maybe not a dedicated addon for it, but I'm pretty sure Skada tracks absorbs and you can pull data from it quite easily.
Same with recount_guessedabsorbs