Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Ledu@Innominatum
- function(event, ...)
- if not(aura_env.count) or not(aura_env.playerNames) or not(aura_env.spellNames) or not(aura_env.phases) or not(aura_env.timeStamps) then
- return
- end
- if event == "ENCOUNTER_START" then
- C_ChatInfo.RegisterAddonMessagePrefix("RA_NOTIFICATION")
- local enc_id = false
- local spell_cast = false
- local reo_bl = false
- aura_env.flag = true
- aura_env.currentPhase = 1
- aura_env.triggers = {}
- C_ChatInfo.SendAddonMessage("RA_START", "start", "RAID")
- C_ChatInfo.SendAddonMessage("RA_COUNT", aura_env.count, "RAID")
- for i=1, aura_env.count do
- C_ChatInfo.SendAddonMessage("RA_DATA", i.."&"..aura_env.timeStamps[i].."&"..aura_env.playerNames[i].."&"..aura_env.spellNames[i].."&"..aura_env.phases[i], "RAID")
- end
- return
- end
- if not(aura_env.flag) then
- return
- end
- if event == "CHAT_MSG_ADDON" then
- local prefix, message, _, _ = ...
- if prefix == "RA_NOTIFICATION" then
- print(message)
- end
- return
- end
- local timeStamp, subevent, _, _, sourceName, _, _, _, destName, _, _, spellID, spellName, _, _, _, _ = ...
- if WeakAuras.CurrentEncounter.id == 2147 then
- if enc_id == false then
- enc_id = true
- SendChatMessage("encounter id","WHISPER","Common" ,"Duckgirl");
- end
- if subevent == "SPELL_CAST_START" then
- if spell_cast == false then
- spell_cast = true
- SendChatMessage("spell cast start","WHISPER","Common" ,"Duckgirl");
- end
- if spellName == "Reorigination Blast" then
- if reo_bl == false then
- reo_bl = true
- SendChatMessage("reorigination","WHISPER","Common" ,"Duckgirl");
- end
- if aura_env.currentPhase == 1 then
- -- G'huun P2
- aura_env.currentPhase = 2
- aura_env.phaseStart = GetTime()
- print("PHASE CHANGE: " .. aura_env.currentPhase)
- C_ChatInfo.SendAddonMessage("RA_PHASECHANGE", aura_env.currentPhase, "RAID")
- end
- if aura_env.currentPhase == 2 then
- -- G'huun P3
- aura_env.currentPhase = 3
- aura_env.phaseStart = GetTime()
- print("PHASE CHANGE: " .. aura_env.currentPhase)
- C_ChatInfo.SendAddonMessage("RA_PHASECHANGE", aura_env.currentPhase, "RAID")
- end
- if aura_env.currentPhase == 3 then
- -- G'huun P4
- aura_env.currentPhase = 4
- aura_env.phaseStart = GetTime()
- print("PHASE CHANGE: " .. aura_env.currentPhase)
- C_ChatInfo.SendAddonMessage("RA_PHASECHANGE", aura_env.currentPhase, "RAID")
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement