I have a few Portrait issues. Portraits seem to "lag" behind what's going on in game.
As an example...I used Hex on a mob in HoR using a macro which sets the target as my Focus. In my Focus frame the mob was still his ugly old self but when we got around to killing him after Hex had worn off there was a Frog in the Portrait even though he was back to normal.
Messing around with the latest beta 19. Party frames are definitely buggy or something.
I start out with all default settings and a default profile. When I choose Party config mode, I see every frame except for my Party and Party Pets frames. I see the words "Party" and "Party Pets" words that correspond to the Party and Party Pets groups, but no frames.
I tried inviting someone to a group, and then, still in Party config mode, I see their frame and their party pet frame show up. But only for them, I don't see the 3 other frames cause there is only 2 party member at this point.
Then the person leaves the party and now I can still see the config frame for that 1st party member and the 1st party pet, but still can't see the other 3 frames.
And also at this point, this party member frame does not look like a normal config frame. It's missing all the Lua/Dogtag texts and it messed up. And I cannot click the move it.
Can anyone else confirm these problems? Is there a more stable beta that works with the wow v4.0.3?
Config mode for group frames is broken in Wow 4.0.3. They broke how it works with 4.0.3. I haven't had time to fix it and it's going to very likely take a major rewrite of the config mode it was disabled before 4.0.3a but 4.0.3a changed the build number and I figured I'd fix it before they did that.
Group frames in general will work fine, just not in config mode.
maddhawk, the Party group does come already made. But yes you can make groups on your own. If the Current group dropdown is empty and has nothing in it then you must have deleted the groups that are in the default.
The guides should cover how to do all of these things already.
Hello. I've been trying for a couple days now to figured this out but without sucess.
Im using this code for level and name.
Outline()
local dr,dg,db = DifficultyColor(unit)
return "|cff%02x%02x%02x%s%s|r %s",dr,dg,db,Level(unit),Classification(unit) and '+' or
'',Name(unit)
Is there an way to do so the name turns out in class color?
[/code]
[code]
Outline()
local dr,dg,db = DifficultyColor(unit)
local cr,cg,cb = ClassColor(unit)
return "|cff%02x%02x%02x%s%s|r |cff%02x%02x%02x%s|r",dr,dg,db,Level(unit),Classification(unit) and '+' or '',cr,cg,cb,Name(unit)
[/code]
[quote]
Also how would one go about if i wanted the level and the short classification in a single color?
The code you have already has the level and short classification as the same color.
I'd recommend that you not use the loop version. While it may look cleaner code wise, it produces a table everytime that code runs. UNIT_AURA fires a lot, you're not going to want to produce all those tables.
While I haven't looked at araevin's addon, his method seems very sane to me.
Didn't understand what you meant but then I realised I had just explained the problem really poorly. What is actually happening is that one of <AFK> or <DND> will NEVER show by itself, I get that you can't be both away and busy. This is controlled by whatever condition comes first in the (afk or dnd) section. Swap them and the one that displays swaps.
Change the or '' on the first two lines to or nil.
I
EDIT: Updated my PB and the bug is gone and at least either AFK or DND will show, but never both. I can control which one displays by changing the order of afk or dnd in this last line
return "%s %s%s%s",HP(unit),Angle(dnd or afk)
but it only shows whichever is displayed first, in the above case, that's <DND>. I can fraps it if you need to see it in action.
Sorry to keep bugging you with this ;(
You can't be DND AND AFK.
[22:29:30] You are now Busy: Busy
[22:29:33] You are no longer marked Busy.
[22:29:33] You are now Away: test
From doing the following two commands:
/dnd
/away test
Switching AFKDuration(unit) and DNDDuration(unit) for IsAFK(unit) and IsDND(unit) returns this though..
Message: Interface\AddOns\PitBull4_LuaTexts\ScriptEnv.lua:328: attempt to index global 'dnd_times' (a nil value)
This is a bug in IsDND. Next release will fix it.
Fixed in the latest Alpha now. Kinda makes me mad, that bug is so stupid and so I'm sure someone had to hit it before. So I google for it and find this: http://paste.sc2mapster.com/950/
All he had to do is tell me and it'd be fixed. Instead he does nothing about it and you find it.
I'm not sure what I'm doing wrong...but I've copy pasted the code in and it's still the same error. I tried switching all of the " and ' around but that didn't help any.
There was a mismatched quote in my original. Fixed it.
The first one worked, but the second one gave me this error:
[string "PitBull4_LuaTexts:Target:level"]:2: unfinished string near '<eof>'
There was a typo in the second part of the second one but based on that error, it looks to me like you didn't close a ' or " when you entered it. I'd guess you used " where it is two '
On the holy power issue: I have the latest Alpha and HP still doesn't work right for me - at least I can not reposition the power indicator in any way - I can't even inactivate it. (Although I could turn the module off ;-) )
No error message, German client.
Works fine here. /pb, Layout editor, select the layout for your player frame, Indicators, Holy power. You can toggle it for that layout and move it from there.
I was hoping someone could help me out with the coding to make an luatext that shows power percentages with these conditions:
a) Only show if the power is mana specifically, and hides if the power is not mana (ex: energy, rage, etc.)
b) Hides if the mana is at 100%
example: If I target a Shaman that has mana, it will display it's percent of mana unless if it is at 100% ...but if I target a Rogue, it will display nothing at all.
if UnitPowerType(unit) ~= 0 then return end
local cur,max = Power(unit), MaxPower(unit)
if cur == max then return end
return "%s%%",Percent(cur,max)
You'll want the UNIT_POWER and UNIT_MAXPOWER events.
Also, I was hoping someone could help me again with how to set up an luatext to show the target's level with these conditions:
a) If the unit is just a normal numeric level, just display the digits (example: 80)
b) If the unit is an elite, display the word "Elite" next to the digits. (example: Elite 80)
c) If the unit is a boss, display the word "Boss" instead of the word "elite" (example: Boss 80)
Thank you in advance! Any help I can get will be very much appreciated :)
local classification = Classification(unit)
return "%s%s%s",classification or '',classification and ' ' or '',Level(unit)
That would also show Rare 80 and Rare-Elite 80. If you want to remove those the Rare and shorten the Rare-Elite to just Elite then place the following after the first line above:
if classification == PitBull4.L["Rare"] then
classification = nil
elseif classification == PitBull4.L["Rare-Elite"] then
classification = PitBull4.L["Elite"]
end
You'll need UNIT_CLASSIFICATION_CHANGED and UNIT_LEVEL events.
Actually just tested this again and the DND doesn't show (DNDDuration(unit) also gives an error, switched both AFK and DND to AFK(unit) and DND(unit) and it went away), not sure what's up :/
I shouldn't have used AFKDuration(unit) and obviously DNDDuration(unit) doesn't exist. Should have used:
IsAFK(unit) and IsDND(unit)
respectively. Sorry.
0
That error occurs from time to time. It seems that the game gives weird data sometimes.
0
Yes. ReputationBar only shows when you track something, shift click on a reputation in the rep window.
Threat will only show when you're in a group or have a pet.
0
I'm unable to replicate this.
0
Config mode for group frames is broken in Wow 4.0.3. They broke how it works with 4.0.3. I haven't had time to fix it and it's going to very likely take a major rewrite of the config mode it was disabled before 4.0.3a but 4.0.3a changed the build number and I figured I'd fix it before they did that.
Group frames in general will work fine, just not in config mode.
0
The guides should cover how to do all of these things already.
0
The code you have already has the level and short classification as the same color.
0
While I haven't looked at araevin's addon, his method seems very sane to me.
0
Change the or '' on the first two lines to or nil.
0
You can't be DND AND AFK.
[22:29:30] You are now Busy: Busy
[22:29:33] You are no longer marked Busy.
[22:29:33] You are now Away: test
From doing the following two commands:
/dnd
/away test
The opposite order works as well.
0
This is a bug in IsDND. Next release will fix it.
Fixed in the latest Alpha now. Kinda makes me mad, that bug is so stupid and so I'm sure someone had to hit it before. So I google for it and find this:
http://paste.sc2mapster.com/950/
All he had to do is tell me and it'd be fixed. Instead he does nothing about it and you find it.
0
There was a mismatched quote in my original. Fixed it.
0
There was a typo in the second part of the second one but based on that error, it looks to me like you didn't close a ' or " when you entered it. I'd guess you used " where it is two '
0
Works fine here. /pb, Layout editor, select the layout for your player frame, Indicators, Holy power. You can toggle it for that layout and move it from there.
0
You'll want the UNIT_POWER and UNIT_MAXPOWER events.
That would also show Rare 80 and Rare-Elite 80. If you want to remove those the Rare and shorten the Rare-Elite to just Elite then place the following after the first line above:
You'll need UNIT_CLASSIFICATION_CHANGED and UNIT_LEVEL events.
0
I shouldn't have used AFKDuration(unit) and obviously DNDDuration(unit) doesn't exist. Should have used:
IsAFK(unit) and IsDND(unit)
respectively. Sorry.