Advertisement
Guest User

Untitled

a guest
Sep 28th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. function(_, _, p, _, n, i, s)
  2. local path = "Interface\\Icons\\INV_Misc_QuestionMark"
  3. if type(i) == "string" then
  4. path = i:match("T(.-):%d")
  5. end
  6. local I = "|T"..path..":24:24:0:9:64:64:4:60:4:60|t "
  7.  
  8. local S = " "
  9. if s and s > 10 then
  10. S = "|cffff0000\[" .. s .. "\]|r "
  11. elseif s and s > 5 then
  12. S = "|cffffff00\[" .. s .. "\]|r "
  13. elseif s and s > 0 then
  14. S = "\[" .. s .. "\] "
  15. end
  16.  
  17. local N = n or ""
  18. local _, class = UnitClass(n)
  19. if class and RAID_CLASS_COLORS[class] then
  20. N = "|c" .. RAID_CLASS_COLORS[class].colorStr .. N .. "|r "
  21. else
  22. N = "|cff4baf4c" .. N .. "|r "
  23. end
  24.  
  25. p2 = tonumber(p)
  26. local P = ""
  27. if p2 and p2 < 5 then
  28. P = "|cffff0000(" .. p .. "s)|r"
  29. elseif p2 and p2 < 10 then
  30. P = "|cffffff00(" .. p .. "s)|r"
  31. elseif p2 then
  32. P = "(" .. p .. "s)"
  33. end
  34.  
  35. return string.format("%s%s", N, S)
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement