• 1 page(s)
So I have this code, but I don't know what it does. help!

Code:

if (arg2 == "SPELL_AURA_APPLIED") then -- If a buff is applied then
    if bit.band(arg8, COMBATLOG_OBJECT_AFFILIATION_MINE) > 0 then -- if it is my buff then (i don't know what "bit.band(arg8,") is
        if (arg10 == "Eradication") or (arg10 == "Shadow Mastery") then -- if Eradication or shadow mastery proc then
            SpellName = arg10 -- spell names are == arg10 the game will need this in the next line
            ZoneTextString:SetText(""..SpellName.." up!"); -- spells == arg10 and arg10 == eradication or shadow mastery then when one of them procs it will display that text (would like some explanation on " ZoneTextString:SetText"
            ZoneTextFrame.startTime = GetTime() --I have no idea
            ZoneTextFrame.fadeInTime = 0 -- fade in the text in 0 seconds, so make it appear immediately
            ZoneTextFrame.holdTime = 2 -- the text is displayed for 2 seconds
            ZoneTextFrame.fadeOutTime = 2 -- then it takes 2 secods for it to fade out
            ZoneTextString:SetTextColor(0, 1, 0); -- the text will be a green color
            PVPInfoTextString:SetText(""); -- no idea
            ZoneTextFrame:Show() -- no idea
            PlaySoundFile("Interface\\AddOns\\LockNotes\\Sounds\\bell.wav"); -- playes that sound
        end -- ends the code
    end
end

That is the code I am using, but I don't know what some of the lines do.

I can tell you what I know in hopes that there is a kind person out there that will explain the rest to me.

EDIT: I would also like to know the difference between arg10 and arg2...

Thanks in advance!


[edited by: Nov3mber at 3:05 PM (GMT -6) on 15 Apr 2009]

Report this thread post

We will need to see the function that this is contained in since that is where the arguments come from.

See my "Thread to end all threads thread" for the answer to your question!

Report this thread post

function LockNotes_OnLoad()
this:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED");
WarlockArmorActive = true;
MySpellReflected = false;
end

function LockNotes_OnEvent(event)

 

is that it?

Report this thread post

See http://www.wowwiki.com/COMBAT_LOG_EVENT_UNFILTERED for more on your arguments.

See my "Thread to end all threads thread" for the answer to your question!

Report this thread post

Wow, that clears up alot, thanks!


[edited by: Nov3mber at 4:32 PM (GMT -6) on 15 Apr 2009]

Report this thread post
  • 1 page(s)
Subscribe to this thread: (you will receive emails when new posts are made)