Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TRIGGER1
- function()
- iskarbuff = iskarbuff or ""
- local SpellName = select(1, GetSpellInfo(155347)) -- Eye of Anzu
- for i=1, GetNumGroupMembers() do
- local raider = "raid"..i
- local BUFF = UnitBuff(raider, SpellName)
- if BUFF then
- local name = UnitName(raider)
- iskarbuff = name
- return true
- end
- end
- iskarbuff = nil
- return false
- end
- =========================================================================
- TRIGGER2
- function(event, timestamp, message, hideCaster, srcGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, ...)
- iskarbuff = iskarbuff or nil
- if iskarbuff then
- if event=="COMBAT_LOG_EVENT_UNFILTERED" and message == "SPELL_CAST_SUCCESS" then
- local spellId, spellName, spellSchool = ...
- if spellId == 48263 then
- local name = sourceName
- local _,class = UnitClass(sourceName)
- local colorText = RAID_CLASS_COLORS[class] and RAID_CLASS_COLORS[class].colorStr or "ffbbbbbb"
- table.insert(aura_env.testtable, {GetTime(), iskarbuff, colorText})
- return true
- elseif spellId == 50842 then
- local name = sourceName
- local _,class = UnitClass(sourceName)
- local colorText = RAID_CLASS_COLORS[class] and RAID_CLASS_COLORS[class].colorStr or "ffbbbbbb"
- table.insert(aura_env.testtable, {GetTime(), sourceName, colorText})
- end
- return true
- end
- end
- end
- =========================================================================
- DISPLAY
- function()
- local i = 1
- local cur = GetTime()
- local total = ""
- while aura_env.testtable[i] do
- local time = aura_env.testtable[i][1]
- local name = aura_env.testtable[i][2]
- local color = aura_env.testtable[i][3]
- if i > 6 then
- table.remove(aura_env.testtable, 1)
- else
- local sec = cur - time
- total = total.."|c"..color..name.."|r"..sec.."|n"
- i = i + 1
- end
- end
- return total
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement