Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(_, _, p, _, n, i, s)
- local path = "Interface\\Icons\\INV_Misc_QuestionMark"
- if type(i) == "string" then
- path = i:match("T(.-):%d")
- end
- local I = "|T"..path..":24:24:0:9:64:64:4:60:4:60|t "
- local S = " "
- if s and s > 10 then
- S = "|cffff0000\[" .. s .. "\]|r "
- elseif s and s > 5 then
- S = "|cffffff00\[" .. s .. "\]|r "
- elseif s and s > 0 then
- S = "\[" .. s .. "\] "
- end
- local N = n or ""
- local _, class = UnitClass(n)
- if class and RAID_CLASS_COLORS[class] then
- N = "|c" .. RAID_CLASS_COLORS[class].colorStr .. N .. "|r "
- else
- N = "|cff4baf4c" .. N .. "|r "
- end
- p2 = tonumber(p)
- local P = ""
- if p2 and p2 < 5 then
- P = "|cffff0000(" .. p .. "s)|r"
- elseif p2 and p2 < 10 then
- P = "|cffffff00(" .. p .. "s)|r"
- elseif p2 then
- P = "(" .. p .. "s)"
- end
- return string.format("%s%s", N, S)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement