Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TRINKET1 AURA
- --COMBAT_LOG_EVENT_UNFILTERED, ENCOUNTER_END
- --TRIGGER
- function(event, timestamp, message, hideCaster, srcGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, ...)
- local player = UnitGUID("player")
- PoFcounter = PoFcounter or 0
- aura_env.time = aura_env.time or 0
- if event=="COMBAT_LOG_EVENT_UNFILTERED" and message == "SPELL_AURA_APPLIED" then
- local spellId, spellName, spellSchool = ...
- if spellId == 31589 and srcGUID==player and PoFcounter == 0 then
- aura_env.PoF = destGUID
- aura_env.Name = destName
- aura_env.time = GetTime() + 10
- PoFcounter = PoFcounter + 1
- return true
- end
- elseif event=="COMBAT_LOG_EVENT_UNFILTERED" and message == "SPELL_AURA_REFRESH" then
- local spellId, spellName, spellSchool = ...
- if spellId == 31589 and srcGUID==player and destGUID== aura_env.PoF then
- aura_env.time = GetTime() + 10
- return true
- end
- end
- end
- --UNTRIGGER
- function(event, timestamp, message, hideCaster, srcGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, ...)
- local player = UnitGUID("player")
- aura_env.time = aura_env.time or 0
- PoFcounter = PoFcounter or 0
- if event=="COMBAT_LOG_EVENT_UNFILTERED" and message == "SPELL_AURA_REMOVED" then
- local spellId, spellName, spellSchool = ...
- if spellId == 31589 and srcGUID==player and destGUID == aura_env.PoF then
- aura_env.time = 0
- PoFcounter = 0
- return true
- end
- elseif event=="ENCOUNTER_END" then
- aura_env.time = 0
- PoFcounter = 0
- return true
- end
- end
- --DURATION INFO
- function()
- if aura_env.time ~=0 then
- return 10, aura_env.time
- end
- end
- ===================================================================
- TRINKET2 AURA
- --COMBAT_LOG_EVENT_UNFILTERED
- --TRIGGER
- function(event, timestamp, message, hideCaster, srcGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, ...)
- local player = UnitGUID("player")
- PoFcounter = PoFcounter or 0
- PoFTrigger = PoFTrigger or 0
- aura_env.time = aura_env.time or 0
- if event=="COMBAT_LOG_EVENT_UNFILTERED" and message == "SPELL_AURA_APPLIED" then
- local spellId, spellName, spellSchool = ...
- if (spellId == 31589 and srcGUID==player and PoFcounter == 1 and PoFTrigger == 0) or (spellId == 31589 and srcGUID==player and PoFcounter == 2 and PoFTrigger2 == 1) then
- aura_env.PoF = destGUID
- aura_env.Name = destName
- PoFcounter = PoFcounter + 1
- PoFTrigger = 1
- aura_env.time = GetTime() + 10
- return true
- end
- elseif event=="COMBAT_LOG_EVENT_UNFILTERED" and message == "SPELL_AURA_REFRESH" then
- local spellId, spellName, spellSchool = ...
- if spellId == 31589 and srcGUID==player and destGUID== aura_env.PoF then
- aura_env.time = GetTime() + 10
- return true
- end
- end
- end
- --UNTRIGGER
- function(event, timestamp, message, hideCaster, srcGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, ...)
- local player = UnitGUID("player")
- aura_env.time = aura_env.time or 0
- PoFcounter = PoFcounter or 0
- PoFTrigger = PoFTrigger or 0
- if event=="COMBAT_LOG_EVENT_UNFILTERED" and message == "SPELL_AURA_REMOVED" then
- local spellId, spellName, spellSchool = ...
- if spellId == 31589 and srcGUID==player and destGUID == aura_env.PoF then
- if PoFcounter > 1 then
- aura_env.time = 0
- PoFcounter = PoFcounter - 1
- PoFTrigger = 0
- return true
- elseif PoFcounter == 0 then
- aura_env.time = 0
- PoFTrigger = 0
- return true
- end
- end
- end
- end
- --DURATION INFO
- function()
- if aura_env.time ~=0 then
- return 10, aura_env.time
- end
- end
- ===================================================================
- TRINKET3 AURA
- COMBAT_LOG_EVENT_UNFILTERED
- --TRIGGER
- function(event, timestamp, message, hideCaster, srcGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, ...)
- local player = UnitGUID("player")
- aura_env.time = aura_env.time or 0
- PoFcounter = PoFcounter or 0
- PoFTrigger2 = PoFTrigger2 or 0
- if event=="COMBAT_LOG_EVENT_UNFILTERED" and message == "SPELL_AURA_APPLIED" then
- local spellId, spellName, spellSchool = ...
- if spellId == 31589 and srcGUID==player and PoFcounter == 2 and PoFTrigger2 == 0 then
- aura_env.time = GetTime() + 10
- aura_env.PoF = destGUID
- aura_env.Name = destName
- PoFcounter = PoFcounter + 1
- PoFTrigger2 = 1
- return true
- end
- elseif event=="COMBAT_LOG_EVENT_UNFILTERED" and message == "SPELL_AURA_REFRESH" then
- local spellId, spellName, spellSchool = ...
- if spellId == 31589 and srcGUID==player and destGUID== aura_env.PoF then
- aura_env.time = GetTime() + 10
- return true
- end
- elseif event=="COMBAT_LOG_EVENT_UNFILTERED" and message == "SPELL_AURA_REMOVED" then
- local spellId, spellName, spellSchool = ...
- if spellId == 31589 and srcGUID==player and destGUID == aura_env.PoF then
- if PoFcounter > 1 then
- aura_env.time = 0
- PoFcounter = PoFcounter - 1
- PoFTrigger2 = 0
- return true
- elseif PoFcounter == 0 then
- aura_env.time = 0
- PoFTrigger2 = 0
- return true
- end
- end
- end
- end
- --UNTRIGGER
- function(event, timestamp, message, hideCaster, srcGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, ...)
- local player = UnitGUID("player")
- aura_env.time = aura_env.time or 0
- PoFcounter = PoFcounter or 0
- PoFTrigger2 = PoFTrigger2 or 0
- if event=="COMBAT_LOG_EVENT_UNFILTERED" and message == "SPELL_AURA_REMOVED" then
- local spellId, spellName, spellSchool = ...
- if spellId == 31589 and srcGUID==player and destGUID == aura_env.PoF then
- if PoFcounter > 1 then
- aura_env.time = 0
- PoFcounter = PoFcounter - 1
- PoFTrigger2 = 0
- return true
- elseif PoFcounter == 0 then
- aura_env.time = 0
- PoFTrigger2 = 0
- return true
- end
- end
- end
- end
- --DURATION INFO
- function()
- if aura_env.time ~=0 then
- return 10, aura_env.time
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement