WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Help with Pitbull text. (https://www.wowinterface.com/forums/showthread.php?t=19211)

Riprap 11-10-08 05:06 PM

Help with Pitbull text.
 
I know this isn't the distribution site for Pitbull, but you guys are all better than me at code, and might have experience and be able to help.

I set up a DogTag in the target frame to show Health as a number for friendly targets and as a percentage for enemy targets. The main point for this was on Bosses, where they just have stupid high HP numbers. However, I'm finding on non-boss and even low level mobs, I'd rather have the HP showing, so I know how much more I need to kill them. Is there any way to have it check the level of the mob and if it's under, say, 70, have it show HP as a number, while over 70 show %?

Thanks.

Seerah 11-10-08 06:40 PM

I haven't configured DogTags in a while, but try

if Level > 70 then PercentHP else HP end

Eas 11-10-08 06:58 PM

I'm no master at Dogtags or anything, but I've been playing with it for a bit. No clue if it is even close to right, and I'm getting an error with it. Maybe someone could help?

Here's what I got so far:

[(if target > Level 70 then PercentHP):HP]


Gives me an output of:

Bad unit: "100"


No clue whats going on there. Maybe some expert could step in, I'm just trying to help.

Tim 11-10-08 07:22 PM

This should work for what you want to do..

Code:

[(if Classification = "Boss" then
    PercentHP:Percent
else
    FractionalHP:Short
end)]



All times are GMT -6. The time now is 03:19 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI