Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function()
- t=ceil((GetTime() - aura_env.timer))
- soundfile="Interface\\AddOns\\WeakAuras\\PowerAurasMedia\\Sounds\\Sonar.ogg" --sound to play
- channel="Master"
- largetext=50
- smalltext=20
- -- Phase 1
- if aura_env.phase == 1 then
- A =
- {--Time, Message
- 65, "Rapture",
- }
- -- Phase 2
- elseif aura_env.phase == 2 then
- A =
- {--Time, Message
- 71,"Rapture",
- }
- --Phase 3
- elseif aura_env.phase == 3 then
- A =
- {--Time, Message
- 60, "Evang",
- 75, "PS Dac" ,
- 90, "Barrier + Rapture",
- }
- --Phase 4
- elseif aura_env.phase == 4 then
- A =
- --Time, Message
- {
- }
- end
- -- Cooldown prompt
- if t==A[1] then
- aura_env.region:SetTextHeight(largetext)
- if not aura_env.soundPlayed then
- PlaySoundFile(soundfile,channel)
- aura_env.soundPlayed=true
- end
- return "|cFF00FF00" .. A[2]
- elseif t==A[3] then
- aura_env.region:SetTextHeight(largetext)
- if not aura_env.soundPlayed then
- PlaySoundFile(soundfile,channel)
- aura_env.soundPlayed=true
- end
- return "|cFF00FF00" .. A[4]
- elseif t==A[5] then
- aura_env.region:SetTextHeight(70)
- if not aura_env.soundPlayed then
- PlaySoundFile(soundfile,channel)
- aura_env.soundPlayed=true
- end
- return "|cFF00FF00" .. A[6]
- elseif t==A[7] then
- aura_env.region:SetTextHeight(70)
- if not aura_env.soundPlayed then
- PlaySoundFile(soundfile,channel)
- aura_env.soundPlayed=true
- end
- return "|cFF00FF00" .. A[8]
- elseif t==A[9] then
- aura_env.region:SetTextHeight(70)
- if not aura_env.soundPlayed then
- PlaySoundFile(soundfile,channel)
- aura_env.soundPlayed=true
- end
- return "|cFF00FF00" .. A[10]
- -- Time till next Cooldown
- elseif t~=A[1] and t~=A[3] and t~=A[5] and t~=A[7] and t~=A[9] then
- aura_env.soundPlayed=nil
- aura_env.region:SetTextHeight(smalltext)
- if t<A[1] and t>(A[1]-10) then
- return "|r" .. A[2] .. " in " .. SecondsToClock((A[1]-t),false)
- elseif t>(A[3]-10) and t<A[3] then
- return "|r" .. A[4] .. " in " .. SecondsToClock((A[3]-t),false)
- elseif t>(A[5]-10) and t<A[5] then
- return "|r" .. A[6] .. " in " .. SecondsToClock((A[5]-t),false)
- elseif t>(A[7]-10) and t<A[7] then
- return "|r" .. A[8] .. " in " .. SecondsToClock((A[7]-t),false)
- elseif t>(A[9]-10) and t<A[9] then
- return "|r" .. A[10] .. " in " .. SecondsToClock((A[10]-t),false)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement