I would like to change something, and im sure this would be pretty simple i just want to make sure im editing the right area. When i target an alliance character i dont want it to show a redish colored health bar. I want to see the class color. But when i target a mob that is not friend and will attack i want it to show red. I fould this part in the ag_unitframes.lua in the ag unit frames folder.
function aUF:UtilFactionColors(unit)
local r, g, b = 0,0,0
local a = 0.5
if ( UnitPlayerControlled(unit) ) then
if ( UnitCanAttack(unit, "player") ) then
if ( not UnitCanAttack("player", unit) ) then
r,g,b = 0.84, 0.52, 0.28
else
r,g,b = 0.88, 0.17, 0.29
end
elseif ( UnitCanAttack("player", unit) ) then
r,g,b = 1, 0.97, 0.1
elseif ( UnitIsPVP(unit) ) then
r,g,b = 0.41, 0.95, 0.2
else
r,g,b = 0.84, 0.52, 0.28
end
else
local reaction = UnitReaction(unit, "player")
if ( reaction ) then
if reaction == 5 or reaction == 6 or reaction == 7 then
r,g,b = 0.41, 0.95, 0.2
elseif reaction == 4 then
r,g,b = 1, 0.97, 0.1
elseif reaction == 1 or reaction == 2 or reaction == 3 then
r,g,b = 0.88, 0.17, 0.29
else
return UnitReactionColor[reaction]
end
end
end
return r, g, b
end
That is on line 1060
That shoul dbe the right spot, be aware though it does the color health bar based on health levels too
ag_UnitFrames-2008-08-06\ag_UnitClass.lua:335: Usage: aUFplayer:SetHeight(height)
ag_UnitFrames-2008-08-06\ag_UnitClass.lua:335: in function `?'
ag_UnitFrames-2008-08-06\ag_UnitFrames.lua:213: in function `CallMethodOnUnit'
ag_Options-09-19-07\ag_ModuleOptions.lua:21: in function <Interface\AddOns\ag_Options\ag_ModuleOptions.lua:17>
(tail call): ?:
<in C code>: ?
<string>:"safecall Dispatcher[2]":9: in function <[string "safecall Dispatcher[2]"]:5>
(tail call): ?:
AceConfigDialog-3.0-25:781: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:600>
(tail call): ?:
<in C code>: ?
<string>:"safecall Dispatcher[3]":9: in function <[string "safecall Dispatcher[3]"]:5>
(tail call): ?:
AceGUI-3.0-16 (Ace3):264: in function `Fire'
...ns\Ace3\AceGUI-3.0\widgets\AceGUIWidget-DropDown.lua:426: in function <...ns\Ace3\AceGUI-3.0\widgets\AceGUIWidget-DropDown.lua:417>:
(tail call): ?:
<in C code>: ?
<string>:"safecall Dispatcher[3]":9: in function <[string "safecall Dispatcher[3]"]:5>
(tail call): ?:
AceGUI-3.0-16 (Ace3):264: in function `Fire'
...3\AceGUI-3.0\widgets\AceGUIWidget-DropDown-Items.lua:333: in function <...3\AceGUI-3.0\widgets\AceGUIWidget-DropDown-Items.lua:328>:
I got that error when I went into settings, Player, Auras, set Auras to hidden.
hi, i'm just trying to replace the blizzard raid frames. i've done everything i want in setup mode, but once i turn it off and start adding people to a raid, no raid frames display. sorry if this is a common problem. i searched through a load of these pages but couldn't find the answer. any ideas?
So with the updated version of ag and with the class specific lines removed from combopoints.lua, I am still not able to see my drake's combo points on my target, (just now tested on Aces High daily). I'm guessing it's these lines of code that are affecting this:
function plugin.UpdateComboPoints(self, event, unit)
if unit and unit ~= "player" then return end
local points = GetComboPoints("player", "target")
if self.Combo1 then
for i=0,4 do
if points > i then
self["Combo"..i+1]:Show()
else
self["Combo"..i+1]:Hide()
end
end
else
if points == 0 then
points = ""
end
end
end
I really don't know much about lua but I'm assuming the self and player tags need to be replaced with pet or something along those lines since it is not the player generating the points. Anyone have any ideas?
Edit: I substituted "player" for "pet" and I can now see combo points on my drake! Now to figure out how I can make it to still show combo points for rogues and druids...
So with the updated version of ag and with the class specific lines removed from combopoints.lua, I am still not able to see my drake's combo points on my target, (just now tested on Aces High daily). I'm guessing it's these lines of code that are affecting this:
function plugin.UpdateComboPoints(self, event, unit)
if unit and unit ~= "player" then return end
local points = GetComboPoints("player", "target")
if self.Combo1 then
for i=0,4 do
if points > i then
self["Combo"..i+1]:Show()
else
self["Combo"..i+1]:Hide()
end
end
else
if points == 0 then
points = ""
end
end
end
I really don't know much about lua but I'm assuming the self and player tags need to be replaced with pet or something along those lines since it is not the player generating the points. Anyone have any ideas?
Edit: I substituted "player" for "pet" and I can now see combo points on my drake! Now to figure out how I can make it to still show combo points for rogues and druids...
I know why it doesn't work for you. If you download from Curse you get an old version (r666), you need to check down for the beta version listed below or in the author page.
The combos provided by AgUF are yellow and can be confused with the yellow energy bar of the drake.
I did my own combo graphic
I know why it doesn't work for you. If you download from Curse you get an old version (r666), you need to check down for the beta version listed below or in the author page.
The combos provided by AgUF are yellow and can be confused with the yellow energy bar of the drake.
I did my own combo graphic
Ah, yeah I had the curse version, got the beta here and now it's working fine. I like your combo point texture. I don't have energy colored yellow, but I changed my last version's combo point texture to be grey instead of yellow anyways (not a big fan of the color, haha).
If I'm invited in a group or raid, and get in combat, then more are invited to the group I get an error and the party/raid frames stop updating not showing any new group members even if I leave combat.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
That shoul dbe the right spot, be aware though it does the color health bar based on health levels too
What problems are you specifically referring to as the most important, ie. affecting raids etc?
One thing that is really bothering me in raids, its the HP/dead bug. Whenever party/raid dies zoning in still shows as dead on the unitframe.
I got that error when I went into settings, Player, Auras, set Auras to hidden.
thanks.
like 100% hp is green then as it goes down it starts to turn red?
turn off "class color health bar" in every unit frame option, or just the frames you prefer to have it on
i did that but it only stays green
yea
I really don't know much about lua but I'm assuming the self and player tags need to be replaced with pet or something along those lines since it is not the player generating the points. Anyone have any ideas?
Edit: I substituted "player" for "pet" and I can now see combo points on my drake! Now to figure out how I can make it to still show combo points for rogues and druids...
still looking for a solution to this
I know why it doesn't work for you. If you download from Curse you get an old version (r666), you need to check down for the beta version listed below or in the author page.
The combos provided by AgUF are yellow and can be confused with the yellow energy bar of the drake.
I did my own combo graphic
Or click Projects above (top of page) and download from here.
Shoul dbe, thats the one im using
Ah, yeah I had the curse version, got the beta here and now it's working fine. I like your combo point texture. I don't have energy colored yellow, but I changed my last version's combo point texture to be grey instead of yellow anyways (not a big fan of the color, haha).
Thanks for your help guys!