Guest User

Posey Disc WA - Modified

a guest
Oct 18th, 2019
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function()
  2.  
  3. t=ceil((GetTime() - aura_env.timer))
  4. soundfile="Interface\\AddOns\\WeakAuras\\PowerAurasMedia\\Sounds\\Sonar.ogg" --sound to play
  5. channel="Master"
  6. largetext=50
  7. smalltext=20
  8.  
  9.  
  10. -- Phase 1
  11. if aura_env.phase == 1 then
  12.  
  13. A =
  14. {--Time, Message
  15. 65, "Rapture",
  16. }
  17.  
  18. -- Phase 2
  19. elseif aura_env.phase == 2 then
  20.  
  21. A =
  22. {--Time, Message
  23. 71,"Rapture",
  24. }
  25.  
  26. --Phase 3
  27. elseif aura_env.phase == 3 then
  28.  
  29. A =
  30. {--Time, Message
  31. 60, "Evang",
  32. 75, "PS Dac" ,
  33. 90, "Barrier + Rapture",
  34. }
  35.  
  36. --Phase 4
  37. elseif aura_env.phase == 4 then
  38.  
  39. A =
  40. --Time, Message
  41. {
  42. }
  43.  
  44. end
  45.  
  46. -- Cooldown prompt
  47.  
  48. if t==A[1] then
  49.  
  50. aura_env.region:SetTextHeight(largetext)
  51. if not aura_env.soundPlayed then
  52.  
  53. PlaySoundFile(soundfile,channel)
  54. aura_env.soundPlayed=true
  55.  
  56. end
  57. return "|cFF00FF00" .. A[2]
  58.  
  59. elseif t==A[3] then
  60.  
  61. aura_env.region:SetTextHeight(largetext)
  62. if not aura_env.soundPlayed then
  63.  
  64. PlaySoundFile(soundfile,channel)
  65. aura_env.soundPlayed=true
  66.  
  67. end
  68. return "|cFF00FF00" .. A[4]
  69.  
  70. elseif t==A[5] then
  71.  
  72. aura_env.region:SetTextHeight(70)
  73. if not aura_env.soundPlayed then
  74.  
  75. PlaySoundFile(soundfile,channel)
  76. aura_env.soundPlayed=true
  77.  
  78. end
  79. return "|cFF00FF00" .. A[6]
  80.  
  81. elseif t==A[7] then
  82.  
  83. aura_env.region:SetTextHeight(70)
  84. if not aura_env.soundPlayed then
  85.  
  86. PlaySoundFile(soundfile,channel)
  87. aura_env.soundPlayed=true
  88.  
  89. end
  90. return "|cFF00FF00" .. A[8]
  91.  
  92. elseif t==A[9] then
  93.  
  94. aura_env.region:SetTextHeight(70)
  95. if not aura_env.soundPlayed then
  96.  
  97. PlaySoundFile(soundfile,channel)
  98. aura_env.soundPlayed=true
  99.  
  100. end
  101. return "|cFF00FF00" .. A[10]
  102.  
  103. -- Time till next Cooldown
  104.  
  105. elseif t~=A[1] and t~=A[3] and t~=A[5] and t~=A[7] and t~=A[9] then
  106.  
  107. aura_env.soundPlayed=nil
  108. aura_env.region:SetTextHeight(smalltext)
  109.  
  110. if t<A[1] and t>(A[1]-10) then
  111. return "|r" .. A[2] .. " in " .. SecondsToClock((A[1]-t),false)
  112. elseif t>(A[3]-10) and t<A[3] then
  113. return "|r" .. A[4] .. " in " .. SecondsToClock((A[3]-t),false)
  114. elseif t>(A[5]-10) and t<A[5] then
  115. return "|r" .. A[6] .. " in " .. SecondsToClock((A[5]-t),false)
  116. elseif t>(A[7]-10) and t<A[7] then
  117. return "|r" .. A[8] .. " in " .. SecondsToClock((A[7]-t),false)
  118. elseif t>(A[9]-10) and t<A[9] then
  119. return "|r" .. A[10] .. " in " .. SecondsToClock((A[10]-t),false)
  120.  
  121. end
  122. end
  123. end
RAW Paste Data