WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Filtering buff stacks (https://www.wowinterface.com/forums/showthread.php?t=18683)

Silmano 10-17-08 12:47 PM

Filtering buff stacks
 
I was wondering how can I filter the combat log to know how many stacks of a new buff I have.

Code:

function Test:CombatLogEvent(a, timestamp, event, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags, spellID, spellName)
    if event=="SPELL_AURA_APPLIED" and destFlags==0x511 then
        if spellName=="Maelstrom Weapon" then
            -- Do something
        end;
    end;
end;

What I have at the moment "does something" when the buff comes up, but for example Maelstrom Weapon can stack 5 times, but this only works for the 1st one.

Any clues on how can I count the rest of procs or how can I know which proc I'm in?

lieandswell 10-18-08 08:01 AM

Quote:

Originally Posted by Silmano (Post 104998)
I was wondering how can I filter the combat log to know how many stacks of a new buff I have.

The combat log events SPELL_AURA_APPLIED_DOSE and SPELL_AURA_REMOVED_DOSE will tell you when when the stack gets bigger and smaller, and by how much. The UnitAura() function will tell you how big the stack is, among other things. WoWWiki has the details.


All times are GMT -6. The time now is 11:37 AM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI