Quote:
|
Code:
local s = Status(unit) |
Quote:
|
Apologies, too early in the morning ;).
Code:
local s = Status(unit) |
Quote:
|
Something like:
Code:
local s = Status(unit) |
Quote:
|
Way too early ..
Code:
local s = Status(unit) |
Quote:
want to do 1 last before i got my whole ui complete? this one shouldn't be complicated :) Quote:
|
local _,power_name = UnitPowerType(unit)
local r,g,b = PowerColor(power_name) local max = MaxPower(unit) if max > 0 then return "|cff%02x%02x%02x%s|r",r,g,b,Power(unit) end |
Quote:
|
Not sure if you want it at all but here is my coding for health and power bars
I only color the health or power percentage and not the current/max health amount. Health: Code:
local cur, max = HP(unit), MaxHP(unit) Power: Code:
local cur,max = Power(unit),MaxPower(unit) Druid mana Code:
if UnitPowerType(unit) ~= 0 and DruidForm(unit) then |
Druid Mana
how can i get this code
Quote:
like so "32000" if that's whatt my mana is? :) Thanks in advanse |
Code:
if UnitPowerType(unit) ~= 0 and DruidForm(unit) then |
Thanks
Quote:
|
You don't happen to know a code that displays the spec of the player?
let's say i meet a "Holy Paladin" i got a own code that says f.ex "Holy" with class colored text or eventually show a img of the spec? pref the img is possible but text is more than fine! |
I don't know Pitbull well enough to tell you exactly how but the process of getting a specialisation comes in two parts.
First determine if the target can be inspected and if so send an inspect request to the server. Code:
if CanInspect("target") then Frames OnEvent script for the "INSPECT_READY" event: Code:
local spec_id = GetInspectSpecialization("target") |
How do i perform this action?
|
All times are GMT -6. The time now is 11:29 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI