Good morning to all,
Somebody have idea how put an icon over nameplate with X name? For example, i want put an icon to all mobs with name "Eredar Summoner".
My testing code atm:
Lua Code:
local moblist = { "Eredar Summoner", "Wrathguard Dreadblade", }
for k in pairs(moblist) do
moblist[#moblist + 1] = k
end
table.sort(moblist)
for i = 1, #moblist do
name = moblist[i]
moblist[name] = name
print(moblist[name])
end
local nkids = WorldFrame:GetNumChildren()
for i = 1, nkids do
local frame = select(i, WorldFrame:GetChildren())
if frame.moblist[name] then
frame.moblist[name]:SetTexCoord(.22, .22, .22, .22)
frame.moblist[name]:SetHeight(35)
frame.moblist[name]:SetWidth(35)
frame.moblist[name]:SetTexture("Interface\Icons\Ability_hunter_beastcall02")
end
end