Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(event, timestamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, spellID, spellName, spellSchool)
- for i=1,table.getn(aura_env.name) do
- if aura_env.name[i] ~= nil then
- local localizedClass, englishClass, classIndex = UnitClass(aura_env.name[i])
- -- Hunter
- if classIndex == 3 then
- if event == "SPELL_CAST_SUCCESS" and spellID == 109248 then
- if aura_env.name[i] == sourceName then
- aura_env.duration[i] = GetTime()+10
- aura_env.duration2[i] = GetTime()+45
- aura_env.activecheck[i] = 1
- end
- end
- if event == "SPELL_AURA_APPLIED" and spellID == 117526 then
- if aura_env.name[i] == sourceName then
- aura_env.activecheck[i] = 2
- aura_env.duration[i] = GetTime()+5
- end
- end
- if event == "SPELL_AURA_REMOVED" and spellID == 117526 then
- if aura_env.name[i] == sourceName then
- aura_env.activecheck[i] = 3
- end
- end
- if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
- if aura_env.duration[i] - GetTime() <= 0 then
- aura_env.activecheck[i] = 3
- end
- end
- end
- -- Deathknight
- if classIndex == 6 then
- if event == "SPELL_CAST_SUCCESS" and spellID == 108199 then
- if aura_env.name[i] == sourceName then
- aura_env.duration[i] = GetTime()+0
- if aura_env.talented[i] == true then
- aura_env.duration2[i] = GetTime()+120
- else
- aura_env.duration2[i] = GetTime()+180
- end
- aura_env.activecheck[i] = 1
- end
- end
- if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
- if aura_env.duration[i] - GetTime() <= 0 then
- aura_env.activecheck[i] = 3
- end
- end
- end
- -- Demonhunter DPS
- if classIndex == 12 then
- if event == "SPELL_CAST_SUCCESS" and spellID == 179057 then
- if aura_env.name[i] == sourceName then
- aura_env.duration[i] = GetTime()+5
- if aura_env.talented[i] == true then
- aura_env.duration2[i] = GetTime()+40
- else
- aura_env.duration2[i] = GetTime()+60
- end
- aura_env.activecheck[i] = 3
- end
- end
- if event == "SPELL_AURA_APPLIED" and spellID == 179057 then
- if aura_env.name[i] == sourceName then
- aura_env.activecheck[i] = 2
- end
- end
- if event == "SPELL_AURA_REMOVED" and spellID == 179057 then
- if aura_env.name[i] == sourceName then
- aura_env.activecheck[i] = 3
- end
- end
- if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
- if aura_env.duration[i] - GetTime() <= 0 then
- aura_env.activecheck[i] = 3
- end
- end
- -- Demonhunter Silence Sigil
- if event == "SPELL_CAST_SUCCESS" and (spellID == 202137 or spellID == 207682) then
- if aura_env.name[i] == sourceName then
- if aura_env.talented[i] == true then
- aura_env.duration[i] = GetTime()+1
- aura_env.duration2[i] = GetTime()+48
- else
- aura_env.duration[i] = GetTime()+2
- aura_env.duration2[i] = GetTime()+60
- end
- aura_env.activecheck[i] = 1
- end
- end
- if event == "SPELL_AURA_APPLIED" and spellID == 204490 then
- aura_env.activecheck[i] = 2
- if aura_env.talented2[i] == true then
- aura_env.duration[i] = GetTime()+8
- else
- aura_env.duration[i] = GetTime()+6
- end
- end
- if event == "SPELL_AURA_REMOVED" and spellID == 204490 then
- if aura_env.name[i] == sourceName then
- aura_env.activecheck[i] = 3
- end
- end
- if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
- if aura_env.duration[i] - GetTime() <= 0 then
- aura_env.activecheck[i] = 3
- end
- end
- end
- -- Monk
- if classIndex == 10 then
- if event == "SPELL_CAST_SUCCESS" and spellID == 119381 then
- if aura_env.name[i] == sourceName then
- aura_env.duration[i] = GetTime()+5
- aura_env.duration2[i] = GetTime()+45
- aura_env.activecheck[i] = 3
- end
- end
- if event == "SPELL_AURA_APPLIED" and spellID == 119381 then
- if aura_env.name[i] == sourceName then
- aura_env.activecheck[i] = 2
- end
- end
- if event == "SPELL_AURA_REMOVED" and spellID == 119381 then
- if aura_env.name[i] == sourceName then
- aura_env.activecheck[i] = 3
- end
- end
- if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
- if aura_env.duration[i] - GetTime() <= 0 then
- aura_env.activecheck[i] = 3
- end
- end
- end
- -- Warrior
- if classIndex == 1 then
- if event == "SPELL_CAST_SUCCESS" and spellID == 46968 then
- if aura_env.name[i] == sourceName then
- aura_env.duration[i] = GetTime()+4
- aura_env.duration2[i] = GetTime()+40
- aura_env.activecheck[i] = 3
- aura_env.hits[i] = 0
- end
- end
- if event == "SPELL_AURA_APPLIED" and spellID == 132168 then
- if aura_env.name[i] == sourceName then
- aura_env.activecheck[i] = 2
- end
- end
- if event == "SPELL_DAMAGE" and spellID == 46968 then
- if aura_env.name[i] == sourceName then
- aura_env.hits[i] = aura_env.hits[i]+1
- if aura_env.hits[i] == 3 then
- aura_env.duration2[i] = aura_env.duration2[i] - 20
- end
- aura_env.duration[i] = GetTime()+4
- end
- end
- if event == "SPELL_AURA_REMOVED" and spellID == 132168 then
- if aura_env.name[i] == sourceName then
- aura_env.activecheck[i] = 3
- aura_env.hits[i] = 0
- end
- end
- if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
- if aura_env.duration[i] - GetTime() <= 0 then
- aura_env.activecheck[i] = 3
- end
- end
- end
- -- Shaman
- if classIndex == 7 then
- if event == "SPELL_CAST_SUCCESS" and spellID == 192058 then
- if aura_env.name[i] == sourceName then
- aura_env.duration[i] = GetTime()+2
- aura_env.duration2[i] = GetTime()+45
- aura_env.activecheck[i] = 1
- end
- end
- if event == "SPELL_AURA_APPLIED" and spellID == 118905 then
- if aura_env.activecheck[i] == 1 and GetTime() >= aura_env.duration[i]-1 then
- aura_env.activecheck[i] = 2
- aura_env.duration[i] = GetTime()+5
- end
- end
- if event == "SPELL_AURA_REMOVED" and spellID == 118905 then
- if aura_env.name[i] == sourceName then
- aura_env.activecheck[i] = 3
- end
- end
- if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
- if aura_env.duration[i] - GetTime() <= 0 then
- aura_env.activecheck[i] = 3
- end
- end
- end
- -- Druid
- if classIndex == 11 then
- if event == "SPELL_CAST_SUCCESS" and spellID == 102793 then
- if aura_env.name[i] == sourceName then
- aura_env.duration[i] = GetTime()+10
- aura_env.duration2[i] = GetTime()+60
- aura_env.activecheck[i] = 1
- end
- end
- if aura_env.activecheck[i] == 1 then
- if aura_env.duration[i] - GetTime() <= 0 then
- aura_env.activecheck[i] = 3
- end
- end
- end
- -- Blood Elf
- if raceIndex == 6 then
- for i=1,table.getn(aura_env.activecheck)do
- if event == "SPELL_CAST_SCCUESS" then
- if(spellID = 28730) or (spellID == 25046 or (spellID) == 69179 or (spellID) == 50613 or (spellID) == 129597 or (spellID) == 155145 or (spellID) == 202719 or (spellID) == 80483 then
- if aura_env.name[i] == sourceName then
- aura_env.duratin2[i] = GetTime()+90
- aura_env.duration[i] = GetTime()+3
- aura_env.activecheck[i] = 2
- end
- end
- end
- -- Priest
- if classIndex == 5 then
- if event == "SPELL_CAST_SUCCESS" and spellID == 205369 then
- if aura_env.name[i] == sourceName then
- aura_env.duration[i] = GetTime()+2
- aura_env.duration2[i] = GetTime()+30
- aura_env.activecheck[i] = 1
- end
- end
- if event == "SPELL_AURA_APPLIED" and spellID == 226943 then
- if aura_env.name[i] == sourceName then
- if aura_env.activecheck[i] == 1 and GetTime() >= aura_env.duration[i]-1 then
- aura_env.activecheck[i] = 2
- aura_env.duration[i] = GetTime()+4
- end
- end
- end
- if event == "SPELL_AURA_REMOVED" and spellID == 226943 then
- if aura_env.name[i] == sourceName then
- aura_env.activecheck[i] = 3
- end
- end
- if aura_env.activecheck[i] == 1 or aura_env.activecheck[i] == 2 then
- if aura_env.duration[i] - GetTime() <= 0 then
- aura_env.activecheck[i] = 3
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement