Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » Public Discussion » User Interface and AddOns

Reply
 
LinkBack Thread Tools
Old 07/16/08, 4:20 PM   #346
Cady
Glass Joe
 
Cady's Avatar
 
Blood Elf Priest
 
Doomhammer
Originally Posted by Eucharion View Post
I'm not at home, so I can't check, but something like this would be where I'd start from.
[Outline] [if ~IsMaxHP then [if PercentHP >0.7 then PercentHP:VeryShort:Percent:Color(""8ACB6E"") end] 
[if PercentHP <= 0.7 and if Percent HP > 0.35 then PercentHP:VeryShort:Percent:Color("D9D170") end] 
if PercentHP <=0.35 then PercentHP:Hide(0):VeryShort:Percent:Color("D97C72") end]
didn't work, just got a syntax error but it looks closer to the right direction then where I was going before. The new code I'm working on is
[Outline] [(if IsMaxHP then nil else if HP > MaxHP * 0.7 then PercentHP:VeryShort:Percent:Color(""8ACB6E"") else if HP <= MaxHP * 0.7 and if HP > MaxHP * 0.35 then PercentHP:VeryShort:Percent:Color("D9D170") else 
if HP <= MaxHP * 0.35 then PercentHP:Hide(0):VeryShort:Percent:Color("D97C72") end)]
Still gives me a syntax error though :x
what's wrong?

Offline
Reply With Quote
Old 07/17/08, 6:25 AM   #347
Zedd
Piston Honda
 
Zedd's Avatar
 
Draenei Shaman
 
Nordrassil (EU)
I made a faily simple dogtag to show elemental shields on myself.

It shows:
3 when I have 3 charges of watershield
2 when I have 3 charges
1 when I have one charge
ES when I have Earthshield
Water Shield in dark red when I do not have any shield



[(if HasAura("Earth Shield") and not HasAura("Water Shield") then
    "ES":Color("66ff00")
end) (if not HasAura("Water Shield") and not HasAura("Earth Shield") then
    "Water Shield":Color("ff0000")
end) (if NumAura("Water Shield") = 1 then
    "1":Color("ffcc33")
end) (if NumAura("Water Shield") = 2 then
    "2":Color("66ff33")
end) (if NumAura("Water Shield") = 3 then
    "3":Color("66ff00")
end)]

Offline
Reply With Quote
Old 07/17/08, 2:21 PM   #348
Eucharion
Von Kaiser
 
Human Death Knight
 
Moonglade (EU)
Cady, worked it out:

[Outline][(if ~IsMaxHP then
    [if PercentHP > 70 then
        PercentHP:VeryShort:Percent:Color("8ACB6E")
    elseif PercentHP > 35 < 70 then
        PercentHP:VeryShort:Percent:Color("D9D170")
    elseif PercentHP < 35 then
        PercentHP:Hide(0):VeryShort:Percent:Color("D97C72")
    end]
end)]
Works perfectly from my testing so far - including deliberately plummeting to my death off aldor rise to test it hides when dead.

Offline
Reply With Quote
Old 07/19/08, 4:51 AM   #349
Montegos
Glass Joe
 
Tauren Druid
 
Auchindoun (EU)
Im trying to make a dogtag for my mana, which shows my mana if it is below 2000 mana or if I mouseover. I guess it would be something like this.

[If is mouseover then MP else if mana > 2000 then MP end]

Im not fully sure if it works, can't test atm but would be nice if someone could tell me if it is in the right direction.

Offline
Reply With Quote
Old 07/21/08, 7:49 PM   #350
SiggyCertified
Glass Joe
 
Worgen Warrior
 
Executus
I am looking for a Dogtag, that turns my Health Text to a color when I am in range of a mob, 36 yards? I've tried to manipulate a few Dogtags off of this thread but nothing seems to work out, so any help would be appreciated.

United States Offline
Reply With Quote
Old 07/22/08, 9:56 AM   #351
Breii
Glass Joe
 
Dwarf Hunter
 
Drenden
Originally Posted by Montegos View Post
Im trying to make a dogtag for my mana, which shows my mana if it is below 2000 mana or if I mouseover. I guess it would be something like this.

[If is mouseover then MP else if mana > 2000 then MP end]

Im not fully sure if it works, can't test atm but would be nice if someone could tell me if it is in the right direction.
[(if IsMouseOver then
    MP
elseif MP < 2000 then
    MP
else
    nil
end)]
Just tested and that works.

Originally Posted by SiggyCertified
I am looking for a Dogtag, that turns my Health Text to a color when I am in range of a mob, 36 yards? I've tried to manipulate a few Dogtags off of this thread but nothing seems to work out, so any help would be appreciated.
The following *should* work, but I don't have RangeCheck installed to make sure. According to DogTag you'll need that lib to get any sort of range-checking working in your DogTags.

[if Range(unit="target") <= 36 then
    HP:Green
else
    HP:Red
end]
Originally Posted by Cady View Post
I'm attempting to make a Dogtag that will show the percent of health a target has assuming it's not at full health or dead. Currently I'm using a Dogtag I got from Caith's Pitbull Frames
[Outline][(~IsMaxHP & ~Dead ? PercentHP:Hide(0):Percent:HPColor)
Which is just what I'm looking for except for two things, firstly I only want to show the first two numbers of the percent and nothing after the decimal (would that be the veryshort code?) and secondly I want to be able to customise the HPColors.
Not sure if you're still looking for help on this one, but just tested this and it seems to be working ok.

[Outline] [(if PercentHP = 100 then
    nil
elseif PercentHP > 70 then
    PercentHP:VeryShort:Percent:Green
elseif PercentHP > 35 then
    PercentHP:VeryShort:Percent:Yellow
elseif PercentHP < 35 then
    PercentHP:VeryShort:Percent:Red
end)]
Obviously you can spice up the text to your flavor, but the syntax is accurate and working.

Disclaimer: I'm posting these to try and get my own DogTag'n up to snuff, so if there are any errors I appologize.

Last edited by Breii : 07/22/08 at 10:30 AM.

Offline
Reply With Quote
Old 07/22/08, 6:22 PM   #352
Sichosis
Piston Honda
 
Night Elf Rogue
 
Whisperwind
I am looking for a small addition for my party / raid frames that puts a "C" to the right of the unitframe if the person has a curse.

Offline
Reply With Quote
Old 07/22/08, 10:42 PM   #353
Eucharion
Von Kaiser
 
Human Death Knight
 
Moonglade (EU)
Something like:

[Outline][if HasCurseDebuff then "C":Color("ffffff") end]
would do the trick. Pop it to Frame, Outside Right, change the "ffffff" to whatever hexadecimal colour value you want, and you'll have an outlined C of that colour.

Try 500+ Colours with RGB and Hex values for colours.

Offline
Reply With Quote
Old 07/24/08, 8:24 PM   #354
Zoljin
Glass Joe
 
Troll Rogue
 
Stormreaver
Hey everyone. I am having a problem with code for detecting Power Word: Fortitude, even when I apply the buff, the text will not go away.


Offline
Reply With Quote
Old 07/24/08, 8:48 PM   #355
Breii
Glass Joe
 
Dwarf Hunter
 
Drenden
Originally Posted by Zoljin View Post
Hey everyone. I am having a problem with code for detecting Power Word: Fortitude, even when I apply the buff, the text will not go away.
[OUTLINE][(if HasAura("Power Word:Fortitude") then nil
else "Fortitude!"
end)]
Should do the trick. Spice up the text as you wish.

Offline
Reply With Quote
Old 07/26/08, 9:33 PM   #356
Migrane
Glass Joe
 
Undead Warlock
 
Gnomeregan
Range

[if not Dead(unit="target") and (MaxRange < 40) then
    "In Range":Green
elseif not Dead(unit="target") then
    "Out of Range!":Red
else
    "deceased":Gray
end]
If the target is in range and alive "In Range" is displayed in green else if target is out of range and alive "Out of Range" is displayed.

if the target is dead, regardless of range, deceased is displayed.

Thanks to all who generously posted their code to help me put this together

Offline
Reply With Quote
Old 08/01/08, 2:17 PM   #357
Lobonija
Von Kaiser
 
Lobonija's Avatar
 
Troll Mage
 
Akama
Dogtags in Aloft

Originally Posted by Gearknight View Post
3 options for you to try:

[HasThreat ? ( MissingThreat = 0 ? "MAX":Green ! MissingThreat )]

[HasThreat ? ( IsUnit('player', Target) ? "MAX":Green ! MissingThreat )]

The first displays MAX when you have the highest threat on the target, regardless of who's tanking it. The 2nd displays MAX when you're tanking the target, even if someone has surpassed you in threat (within their 10% or 30% window). You can combine these two methods to something like this third option:

[HasThreat ? ( IsUnit('player', Target) ? (MissingThreat = 0 ? "MAX":Green ! MissingThreat:Yellow) ! (MissingThreat = 0 ? "MAX" ! MissingThreat):Red )]

This is exactly like the first option above, but colored red when you've lost aggro. A yellow number means someone has passed you in aggro, but not yet pulled aggro - so it's a warning sign to step up your threat on that mob.
These DogTags look amazing. I've tried to put them into Aloft, as I would like them on my nameplates, Unfortunately I can't seem to get any tags to work besides [Name] or [Level]. Does Aloft just not support anything other than these two or am I integrating the tags in the wrong place, I've been putting them into Aloft > Name Text > Advanced > Format.

United States Offline
Reply With Quote
Old 08/01/08, 6:04 PM   #358
Aiiane
Von Kaiser
 
Blood Elf Warlock
 
Garona
Originally Posted by Zoljin View Post
Hey everyone. I am having a problem with code for detecting Power Word: Fortitude, even when I apply the buff, the text will not go away.
It might have something to do with the fact that there's a space after the colon in "Power Word: Fortitude", but your code doesn't appear to have that space.

Offline
Reply With Quote
Old 08/15/08, 5:58 AM   #359
sanny
Glass Joe
 
sanny's Avatar
 
Gnome Mage
 
Aggramar (EU)
Been using this dogtag for target health, changing color of health when health is dropping, but I have an issue. Whenever the target has less than 5% health, the health and percent showing disappears.

Here is the dogtag:
[(if PercentHP = 100 then
nil
elseif PercentHP > 90 then
HP:Color("1AFF00") " / ":Color("1AFF00") PercentHP:VeryShort:Percent:Color("1AFF00")
elseif PercentHP > 80 then
HP:Color("64FF00") " / ":Color("64FF00") PercentHP:VeryShort:Percent:Color("64FF00")
elseif PercentHP > 70 then
HP:Color("9BFF00") " / ":Color("9BFF00") PercentHP:VeryShort:Percent:Color("9BFF00")
elseif PercentHP > 60 then
HP:Color("CBFF00") " / ":Color("CBFF00") PercentHP:VeryShort:Percent:Color("CBFF00")
elseif PercentHP > 50 then
HP:Color("FFFF00") " / ":Color("FFFF00") PercentHP:VeryShort:Percent:Color("FFFF00")
elseif PercentHP > 40 then
HP:Color("FFE900") " / ":Color("FFE900") PercentHP:VeryShort:Percent:Color("FFE900")
elseif PercentHP > 30 then
HP:Color("FFBC00") " / ":Color("FFBC00") PercentHP:VeryShort:Percent:Color("FFBC00")
elseif PercentHP > 20 then
HP:Color("FF8E00") " / ":Color("FF8E00") PercentHP:VeryShort:Percent:Color("FF8E00")
elseif PercentHP > 10 then
HP:Color("FF4300") " / ":Color("FF4300") PercentHP:VeryShort:Percent:Color("FF4300")
elseif PercentHP > 5 then
HP:Color("FF1000") " / ":Color("FF1000") PercentHP:VeryShort:Percent:Color("FF1000")
elseif Dead then
HP:Color("AAAAAA") " / ":Color("AAAAAA") PercentHP:VeryShort:Percent:Color("AAAAAA")
end)]

Offline
Reply With Quote
Old 08/15/08, 6:53 AM   #360
Jaizha
Von Kaiser
 
Blood Elf Paladin
 
Draenor (EU)
That'd be because there are no instructions for that health range. You'll need to add one more step using either "PercentHP > 0" or "PercentHP < 5" to cover the last few percent.

Offline
Reply With Quote
Reply

Go Back   Elitist Jerks » Public Discussion » User Interface and AddOns

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
[DogTags] - Share yours! Fulnir User Interface and AddOns 164 03/30/08 1:30 AM