Elitist Jerks
Register
Blogs
Forums


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

Reply
 
LinkBack Thread Tools
Old 04/20/08, 1:10 AM   #166
Covet
Von Kaiser
 
Covet's Avatar
 
Blood Elf Paladin
 
Dethecus
In honor of Trouble's little buff dots, I made a similar DogTag that shows if you have cleansable debuffs. Basically it'll put a red X if you have UA and will color every other cleansable debuff by the spell color.

[(if HasAura("Unstable Affliction") then
    "X":Red
end) (if HasCurseDebuff then
    " -":Fuchsia
end) (if HasMagicDebuff then
    " -":Blue
end) (if HasPoisonDebuff then
    " -":Green
end) (if HasDiseaseDebuff then
    " -":Yellow
end)]
I also used the code from Caith's unit frames to show the MP for my target, but it changes color depending on the MP they have. Blue for mana, Red for rage and Yellow for energy. The only bummer is that it's blank if they have no MP, but I'm willing to live with it.

[HasMP and IsMana ? MP:Short:PowerColor " | " MaxMP:Hide(0):Short:Color('385d71') ! HasMP and IsEnergy ? MP:Short:PowerColor " | " MaxMP:Hide(0):Short:Color('999933') ! HasMP and IsRage ? MP:Short:PowerColor " | " MaxMP:Hide(0):Short:Color('663333')]

Last edited by Covet : 04/20/08 at 1:24 AM.

Offline
Reply With Quote
Old 04/20/08, 11:29 PM   #167
Aranan
Piston Honda
 
Aranan's Avatar
 
Night Elf Druid
 
Bronzebeard
I'm just now starting to mess with DogTags and could use a bit of help. I tried to look this up in the in-game dogtag help but the only hit didn't really help me out...

Basically, I'm doing a greyscale unit frame color scheme in this version of my UI. I want to color player names by class (which I believe is easy enough to do) and NPC names by their reaction (i.e. friendly, neutral, hostile). However... I'm not sure how to color by reaction. I have set custom colors in pitbull but I don't know if there's a way to call on them.

[edit] Oops, right after submitting this reply I had a friend whisper me the correct code. Now I have a slightly different request...

Can someone supply the code I would use to color the name based on player class if it is a player and on NPC reaction if it's anything other than a player (mob, NPC, pet, etc)?

Last edited by Aranan : 04/20/08 at 11:40 PM.

Offline
Reply With Quote
Old 04/21/08, 5:13 AM   #168
Eucharion
Von Kaiser
 
Human Death Knight
 
Moonglade (EU)
[if IsPlayer then Name:ClassColor else Name:HostileColor end]

Should get you going in the right direction, although I'm not in game to test it.

Offline
Reply With Quote
Old 04/21/08, 7:18 AM   #169
Zedd
Piston Honda
 
Zedd's Avatar
 
Draenei Shaman
 
Nordrassil (EU)
I cant seem to get this right:
I want a dogtag to:
Show level in classcolor when its a friendly/neutral target under level 70
Show level in Difficultycolor when its a enemy target
Display Pet levels in hostilitycolor
Dont show level for friendly/neutral level 70 players

Offline
Reply With Quote
Old 04/21/08, 10:12 AM   #170
Hamsda
Piston Honda
 
Hamsda's Avatar
 
Goblin Priest
 
Mannoroth (EU)
Originally Posted by Zedd View Post
I cant seem to get this right:
I want a dogtag to:
Show level in classcolor when its a friendly/neutral target under level 70
Show level in Difficultycolor when its a enemy target
Display Pet levels in hostilitycolor
Dont show level for friendly/neutral level 70 players
[if IsPet then Level:HostileColor elseif (IsEnemy then Level:DifficultyColor else Level:Hide("70"):ClassColor)]
can't test it ingame atm but this should do the trick :D

Germany Offline
Reply With Quote
Old 04/21/08, 10:58 AM   #171
Eucharion
Von Kaiser
 
Human Death Knight
 
Moonglade (EU)
Try this:

[if IsPet then Level:HostileColor else [if IsMaxLevel and IsFriend then " " else [if ~IsMaxLevel and IsFriend then Level:ClassColor else Level:Hide("70"):DifficultyColor end]]]
It seems to work, will show level 70 pets in the appropriate hostility colour, you will just need to test it against enemies (as I was sat working it out in Stormwind).

[e] oops, that will hide the number for max level enemies. Might want to try tagging in a ~IsEnemy in the end bit, like so....
Hide("70",~IsEnemy):DifficultyColor end

Last edited by Eucharion : 04/21/08 at 11:03 AM. Reason: Spotted an error

Offline
Reply With Quote
Old 04/21/08, 2:36 PM   #172
braudrist
Glass Joe
 
Troll Priest
 
Skullcrusher (EU)
help with DT

Hi

I've been using this for CowTip:

[if IsPet then Owner '\194\180s pet' end]
I haven't figured out how to get the Owner tag classcolored; e.g., if I would be hovering over a hunter it would show like this: Bleh´s pet. And I would also like to know if its possible to exclude Totems out of the code so I wont see xxx´s pet when I hover over a totem 'cause apparently, totems are defined as pets too

Thanks in advance.

Offline
Reply With Quote
Old 04/22/08, 6:19 AM   #173
Aureact
Glass Joe
 
Aureact's Avatar
 
Blood Elf Priest
 
Frostwhisper (EU)
Unit HP / status

Hey (:

Currently I'm using a modified version of Caith UI. I am using the code below to show when people are missing HP and how much

[HP < MaxHP ? MissingHP:VeryShort:HPColor]
What I would like is to make it replace the missing HP text with their status if they are either DEAD, AFK or OFFLINE - and if possible; for how long in (MM:SS)'s ^^


Can anyone do this for me?
The code above is pretty much the best I can do with DogTags :b

Offline
Reply With Quote
Old 04/22/08, 12:14 PM   #174
Hamsda
Piston Honda
 
Hamsda's Avatar
 
Goblin Priest
 
Mannoroth (EU)
Originally Posted by Aureact View Post
Hey (:

Currently I'm using a modified version of Caith UI. I am using the code below to show when people are missing HP and how much

[HP < MaxHP ? MissingHP:VeryShort:HPColor]
What I would like is to make it replace the missing HP text with their status if they are either DEAD, AFK or OFFLINE - and if possible; for how long in (MM:SS)'s ^^


Can anyone do this for me?
The code above is pretty much the best I can do with DogTags :b

[Status or AFK or MissingHP:VeryShort:HPColor]

should work pretty well

Germany Offline
Reply With Quote
Old 04/22/08, 12:25 PM   #175
Moong
Glass Joe
 
Human Paladin
 
Drenden
[(not HasAura("Alchemist's Stone")) ? (MissingMP >= 3200 ? "Interface\Icons\INV_Potion_138":Icon(32) ! ((MissingMP <= 3200 & MissingMP >= 2400) ? "Interface\Icons\INV_Potion_137":Icon(32))) ! (MissingMP >= 4480 ? "Interface\Icons\INV_Potion_138":Icon(32) ! ((MissingMP <= 4480 & MissingMP >= 3360) ? "Interface\Icons\INV_Potion_137":Icon(32)))]

It took me a while to get this tag to work, but I'm pretty pleased with how it came out. If you're wearing an Alchemist's Stone or not, it shows the appropriate icon of which mana potion will not "overregen". I chose Super Mana Potions' average hit and Fel Mana Potions.

Offline
Reply With Quote
Old 04/22/08, 1:40 PM   #176
Aureact
Glass Joe
 
Aureact's Avatar
 
Blood Elf Priest
 
Frostwhisper (EU)
Originally Posted by Hamsda View Post
[Status or AFK or MissingHP:VeryShort:HPColor]

should work pretty well

Works just like I wanted, except one small thing: It now shows "0" when people aren't missing any HP..
Is it possible to add something that will hide it if their HP is full?

Offline
Reply With Quote
Old 04/22/08, 1:55 PM   #177
Lorienne
...
 
Lorienne's Avatar
 
Vaikhan
Blood Elf Paladin
 
No WoW Account
Originally Posted by Aureact View Post
Works just like I wanted, except one small thing: It now shows "0" when people aren't missing any HP..
Is it possible to add something that will hide it if their HP is full?
This should do what you want, I think:

[Status or AFK or MissingHP:VeryShort:Hide(0):HPColor]

United States Offline
Reply With Quote
Old 04/22/08, 2:19 PM   #178
Aureact
Glass Joe
 
Aureact's Avatar
 
Blood Elf Priest
 
Frostwhisper (EU)
Originally Posted by Lorienne View Post
This should do what you want, I think:

[Status or AFK or MissingHP:VeryShort:Hide(0):HPColor]

Perfect! Thanks a lot ;D

Offline
Reply With Quote
Old 04/24/08, 11:13 AM   #179
Hamsda
Piston Honda
 
Hamsda's Avatar
 
Goblin Priest
 
Mannoroth (EU)
Originally Posted by Aureact View Post
Perfect! Thanks a lot ;D
oh sorry forgot about this request >.<

Germany Offline
Reply With Quote
Old 04/24/08, 8:26 PM   #180
Pagarth
Von Kaiser
 
Orc Warlock
 
Mal'Ganis
How do you get the colors for your dots? I am trying to make dots on my Pitbull raid frames similar to Grid. I want a blue dot if the player is low on mana, dark green dot if the player has regrowth, lighter green dot for rejuv, and lightest green dot for lifebloom. I only want my auras to work though. From what I've gathered, I need to use this code:
[if((HasAura("<MyDot>")) and (AuraDuration("<MyDot>"))) then
   "<MyDotIsActiveMessage>":<DotColor>
end]
for the auras right?

Also, how do you delete texts you don't want? Is it in the WTF file?

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