Thread Tools Display Modes
06-14-10, 03:14 PM   #1
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 127
Wink updateHealth Ghost

Hey there. i have when someone dies. it says dead. but i wanted to also add when there a Ghost.

Code:
    local dead
    if UnitIsDeadOrGhost(unit) == 1 or UnitIsConnected(unit) == nil then
      color = {r = 0.4, g = 0.4, b = 0.4}
      dead = 1
can i just add. local ghost and ghost =1 or is there more to it.

as i also have

Code:
    if dead == 1 then
      bar.bg:SetVertexColor(0,0,0,0.7)  
    end
    if color then
      self.Name:SetTextColor(color.r, color.g, color.b,1)
    end
  end
and the tag

Code:
    if UnitIsDeadOrGhost(unit) == 1 then
      string = "dead"

thanks for your time
  Reply With Quote
06-14-10, 03:42 PM   #2
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
Code:
if UnitIsDead(unit) then
string = "dead"
elseif UnitIsGhost(unit) then
string = "ghost"
end
  Reply With Quote
06-14-10, 05:56 PM   #3
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 127
thanks for that.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » updateHealth Ghost


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off