Quantcast WoWInterface - View Single Post - Stuf Unit LUA help
View Single Post
12-19-10, 03:40 PM   #1
A Black Drake
Join Date: Apr 2008
Posts: 88
Stuf Unit LUA help

I have this for my target name but I was hoping someone could help me with adding level and class color to the string.

local name = UnitName(unit)
if (name and string.len(name) > 10) then
name = string.gsub(name, "([^%s]+) ", function(s) return string.sub(s,1,1) .. "." end)
return name

This code works fine as is but I can figure out how to add class color to the text or the level to it either.

thanks much!
  Reply With Quote