hujiamin123
06-20-2007, 05:02 AM
....who can help me.....
according to the sticky
i just added
local function hudalpha()
if event == "UNIT_HEALTH" and arg1 ~= "player" then return end
for _,v in pairs( { Nurfed_hudplayer, Nurfed_hudtarget } ) do
if not UnitAffectingCombat("player") then
if not UnitName("target") then
if UnitHealth("player") == UnitHealthMax("player") then
v:SetAlpha(0.7)
else
v:SetAlpha(0.7)
end
else
v:SetAlpha(0.7)
end
else
v:SetAlpha(1.0)
end
end
end
local f=CreateFrame("FRAME")
f:RegisterEvent("PLAYER_REGEN_DISABLED")
f:RegisterEvent("PLAYER_REGEN_ENABLED")
f:RegisterEvent("UNIT_HEALTH")
f:RegisterEvent("PlAYER_TARGET_CHANGED")
f:SetScript("OnEvent", hudalpha )
,but nothing to change....
according to the sticky
i just added
local function hudalpha()
if event == "UNIT_HEALTH" and arg1 ~= "player" then return end
for _,v in pairs( { Nurfed_hudplayer, Nurfed_hudtarget } ) do
if not UnitAffectingCombat("player") then
if not UnitName("target") then
if UnitHealth("player") == UnitHealthMax("player") then
v:SetAlpha(0.7)
else
v:SetAlpha(0.7)
end
else
v:SetAlpha(0.7)
end
else
v:SetAlpha(1.0)
end
end
end
local f=CreateFrame("FRAME")
f:RegisterEvent("PLAYER_REGEN_DISABLED")
f:RegisterEvent("PLAYER_REGEN_ENABLED")
f:RegisterEvent("UNIT_HEALTH")
f:RegisterEvent("PlAYER_TARGET_CHANGED")
f:SetScript("OnEvent", hudalpha )
,but nothing to change....