View Single Post
05-03-21, 03:30 PM   #21
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
Just put it before the if guildie line to include the others. But you will then have to move the line starting with local nameplate = to the same place so you can access the nameplate object.

So instead of ..
Lua Code:
  1. if guildie[guid] then
  2.             PlaySound(416)
  3.             local nameplate = C_NamePlate.GetNamePlateForUnit(unit)
  4.             nameplate.UnitFrame.name:SetTextColor(1,1,1,1)
  5.             nameplate.UnitFrame.healthBar:Hide()
  6.             print(name)
  7.         end

It should look like this..
Lua Code:
  1. local nameplate = C_NamePlate.GetNamePlateForUnit(unit)
  2.         nameplate.UnitFrame.healthBar:Hide()
  3.         if guildie[guid] then
  4.             PlaySound(416)
  5.             nameplate.UnitFrame.name:SetTextColor(1,1,1,1)
  6.             print(name)
  7.         end

This essentially hides the healthbar immediately when they first are shown ( but wow may show it again during its update routine ) and then does the guildie check before setting the text color and playing the sound if it is a guildie.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote