Just a note about 4.0.x. UNIT_MANA, UNIT_RAGE, UNIT_ENERGY, UNIT_FOCUS, UNIT_RUNIC_POWER and UNIT_HAPPINESS as well as their UNIT_MAX* equivalents are going away in 4.0.x. They have been replaced with two events UNIT_POWER and UNIT_MAXPOWER.
There is code to map the old events to the new events when running under a 4.0.x client and code to map the new events to the old events when running under a 3.0.x client in the latest alpha build of PB4. This should ease the transition.
However, this code does add a tiny bit of overhead. You can avoid some of the overhead by changing your texts to use UNIT_POWER and UNIT_MAXPOWER once 4.0.x hits.
There is one other hang up for 4.0.x which should effect very few people. If you've been using the arg1..argN variables to gain access to the arguments from variables have been removed by Blizzard. I haven't made the event arguments available some other way yet. It's on my todo list, but it's not a huge priority with all the other 4.0.x stuff I'm trying to get done since it impacts so few people.
However, this code does add a tiny bit of overhead. You can avoid some of the overhead by changing your texts to use UNIT_POWER and UNIT_MAXPOWER once 4.0.x hits.
Will the default texts be changed automatically or do we need to change them too?
Hey guys, I have finally switched over to Pitbull4 now that patch 4.0 has finally killed Pitbull3 (*pours out some liquor on the ground*).
Did some searching but couldn't find what I wanted, and I can't seem to figure out how to write it myself.
I just want a really basic, nonclunky luatext that shows the target's guild, or if it's an NPC, its affiliation or title. I don't want the text colored, just plain ol' white.
Cant seem to find the answer on how to do this. Heres the goal - I want unit %HP to show at 35% or lower in red. Otherwise do not show. Is this possible?
I need some Luatext for Pitbull 4 which shows me the name (target/partymember/whatever) and switches to the castbar if something cast a spell. Anyone an idea?
I am still looking to see if there is a compatible LUA text for talent display that i can use in pitbull.
Looking for something to display * Demonology 0/1/0 * or whatever spec and point distribution is for the unit. I see a few mods like startip that can display that info but cant figure out what i need to make it work in pitbull.
I need some help getting this role text to work again. (Atm it says everyone is a tank).
local isTank, isHealer, isDamage = UnitGroupRolesAssigned(unit);
if ( isTank ) then
return "T";
elseif ( isHealer ) then
return "H";
elseif ( isDamage ) then
return "D";
end
local role = UnitGroupRolesAssigned(unit)
if role == "TANK" then
return "T"
elseif role == "HEALER" then
return "H"
elseif role == "DAMAGER" then
return "D"
end
local role = UnitGroupRolesAssigned(unit)
if role == "TANK" then
return "T"
elseif role == "HEALER" then
return "H"
elseif role == "DAMAGER" then
return "D"
end
For Example I take the target frame.
I want so see only the name of the target in the castbar. And if the target cast a spell for example the name disappear and the cast bar shows me normal the name of the cast, the castbar and the casttime. After the cast is finished the castbar disappears and the name is shown again.
X-Pearl did the it that way, I dont know if it still do it like that.
@Elsamuhl:
I don't think this is possible with PitBull.
I already had lua code for this function for pitbull3 and if I could get pitbull3 startet I would recover the lua-code for this, but thanks by the new patch I can not -.-
I already had lua code for this function for pitbull3 and if I could get pitbull3 startet I would recover the lua-code for this, but thanks by the new patch I can not -.-
You probably had a DogTag for this. You can probably find your PitBull.lua file in your WTF/Account/USERNAME/SavedVariables folder and find the DogTag in there. If you post it I might have an idea how to tell you what to do but I'm still not really clear on what you want. If you could do it with PB3 it can be done in PB4. Worst case scenario you just have to use DogTagTexts.
Honestly i have no idea, i just know thats how to do it
~= not equal
== is equal
But my guess is to differentiate from setting locals and simmilar
== is a comparison for equality
There is code to map the old events to the new events when running under a 4.0.x client and code to map the new events to the old events when running under a 3.0.x client in the latest alpha build of PB4. This should ease the transition.
However, this code does add a tiny bit of overhead. You can avoid some of the overhead by changing your texts to use UNIT_POWER and UNIT_MAXPOWER once 4.0.x hits.
There is one other hang up for 4.0.x which should effect very few people. If you've been using the arg1..argN variables to gain access to the arguments from variables have been removed by Blizzard. I haven't made the event arguments available some other way yet. It's on my todo list, but it's not a huge priority with all the other 4.0.x stuff I'm trying to get done since it impacts so few people.
Will the default texts be changed automatically or do we need to change them too?
Did some searching but couldn't find what I wanted, and I can't seem to figure out how to write it myself.
I just want a really basic, nonclunky luatext that shows the target's guild, or if it's an NPC, its affiliation or title. I don't want the text colored, just plain ol' white.
Any help for this would be really appreciated :)
I need some Luatext for Pitbull 4 which shows me the name (target/partymember/whatever) and switches to the castbar if something cast a spell. Anyone an idea?
Looking for something to display * Demonology 0/1/0 * or whatever spec and point distribution is for the unit. I see a few mods like startip that can display that info but cant figure out what i need to make it work in pitbull.
"TANK"
"DAMAGER"
"HEALER"
Okay, how would i go about to change the text to do what i need it to again? (i kinda suck at lua :/ )
works like a charm, thanks!
I don't think anyone understood the question. Can you try to explain yourself better?
For Example I take the target frame.
I want so see only the name of the target in the castbar. And if the target cast a spell for example the name disappear and the cast bar shows me normal the name of the cast, the castbar and the casttime. After the cast is finished the castbar disappears and the name is shown again.
X-Pearl did the it that way, I dont know if it still do it like that.
Do you now know what i mean?
I don't think this is possible with PitBull.
I already had lua code for this function for pitbull3 and if I could get pitbull3 startet I would recover the lua-code for this, but thanks by the new patch I can not -.-
You probably had a DogTag for this. You can probably find your PitBull.lua file in your WTF/Account/USERNAME/SavedVariables folder and find the DogTag in there. If you post it I might have an idea how to tell you what to do but I'm still not really clear on what you want. If you could do it with PB3 it can be done in PB4. Worst case scenario you just have to use DogTagTexts.