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]
|