daily pastebin goal
6%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function()
  2.     if not aura_env.soakers then
  3.         return ""
  4.     end
  5.    
  6.     local now = GetTime()
  7.     local ret = string.format("Pylon: %s\n\n", aura_env.pylon / 2)
  8.    
  9.     local soakerNameInfo = function(soakerName)
  10.         local info = aura_env.soakerInfo[soakerName]
  11.         if UnitIsDeadOrGhost(soakerName) then
  12.             return string.format("|c%s%s|r", "FF666666", soakerName)
  13.         elseif info.active then
  14.             return string.format("|c%s%s (%s)|r", "FF00FF00", soakerName, info.stacks)
  15.         elseif (info.expirationTime or 0) > now then
  16.             return string.format("|c%s%s (%s): %ds|r", "FFFF0000", soakerName, info.stacks, info.expirationTime - now)
  17.         else
  18.             return string.format("|c%s%s|r", "FFFFFFFF", soakerName)
  19.         end
  20.     end
  21.    
  22.     for i = 1, #aura_env.soakers , 1 do
  23.         ret = string.format("%s%s\n", ret, soakerNameInfo(aura_env.soakers[i]))
  24.     end
  25.    
  26.     local playerInfo = aura_env.soakerInfo[(UnitName("player"))]
  27.     if playerInfo ~= nil then
  28.         if playerInfo.active then
  29.             ret = string.format("%s\n%s |c%s%s|r %s", ret, aura_env.alertTexture, "FFFF00FF", playerInfo.stacks, aura_env.alertTexture)
  30.         elseif playerInfo.position == 1 then
  31.             ret = string.format("%s\n%s |c%s%s|r %s", ret, aura_env.soakTexture, "FF00FFFF", "You are first!", aura_env.soakTexture)
  32.         elseif playerInfo.position > 1 and playerInfo.position < #aura_env.soakers then
  33.             local predecessorInfo = aura_env.soakerInfo[aura_env.soakers[playerInfo.position - 1]]
  34.             if predecessorInfo.active then
  35.                 ret = string.format("%s\n%s |c%s%s (%s)|r %s", ret, aura_env.alertTexture, "FF00FFFF", "You are next!", predecessorInfo.stacks, aura_env.alertTexture)
  36.             end
  37.         end
  38.     end
  39.    
  40.     return ret
  41. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top