Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » User Interface and AddOns

Reply
 
LinkBack Thread Tools
Old 04/03/08, 2:28 PM   #76
Lorienne
...
 
Lorienne's Avatar
 
Vaikhan
Blood Elf Paladin
 
No WoW Account
Originally Posted by Gearknight View Post
If you don't currently use your Focus, you could make it very easy by always setting your focus to whoever your ES is on (which is easy to macro).
This would be my suggestion as well. You can make it distinguish between ES on yourself and on your focus within the code (though it probably gets long and ugly with nest if/then/else statements). I'm not at home currently, so I can't give you an exact coding, but you can change the target of a tag by adding unit="whatever" to the () part; e.g. HasAura("Earth Shield", unit="focus"). That would allow you to show your focus's ES status on your own UF. The rest should just be adding in lines for the additional charges and another section for ES on yourself.

The gist should be (caveat that this has *not* been tested, it may very well not work ):

if Exists(unit="focus") then {
if NumAura("Earth Shield", unit="focus") = 6 then "......":Yellow
elseif NumAura("Earth Shield", unit="focus") = 5 then ".....":Yellow
 /* repeat lines until you get down to 1 "." */
elseif NumAura("Earth Shield", unit="focus") = 0 then "!":Yellow
end }

else {
if NumAura("Earth Shield") = 6 then "......":Green
elseif NumAura("Earth Shield") = 5 then ".....":Green
/* repeat until you get down to 1 "." */
elseif NumAura("Earth Shield") = 0 then "!":Green
end }
Note that this assumes you never use a focus for something else while maintaining ES on yourself. It's possible that removing the first line that checks for an existing focus will remedy the code for that case, but I honestly don't know what happens if you try to use a non-existing unit in a DogTag, so I put the check in just in case. This way also allows you to have different color "error" conditions (the "!" lines), which may or may not be necessary. You might also want to find a color spectrum to use for each (Green to Blue or Yellow to Red, for example); I find with my WS variant that I register the color change more easily than the number of dots.

United States Offline
Reply With Quote
Old 04/03/08, 2:47 PM   #77
 Adoriele
Save Greendale!
 
Adoriele's Avatar
 
Night Elf Druid
 
Dragonblight
Originally Posted by Lorienne View Post
This would be my suggestion as well. You can make it distinguish between ES on yourself and on your focus within the code (though it probably gets long and ugly with nest if/then/else statements). I'm not at home currently, so I can't give you an exact coding, but you can change the target of a tag by adding unit="whatever" to the () part; e.g. HasAura("Earth Shield", unit="focus"). That would allow you to show your focus's ES status on your own UF. The rest should just be adding in lines for the additional charges and another section for ES on yourself.

The gist should be (caveat that this has *not* been tested, it may very well not work ):

[snip]

Note that this assumes you never use a focus for something else while maintaining ES on yourself. It's possible that removing the first line that checks for an existing focus will remedy the code for that case, but I honestly don't know what happens if you try to use a non-existing unit in a DogTag, so I put the check in just in case. This way also allows you to have different color "error" conditions (the "!" lines), which may or may not be necessary. You might also want to find a color spectrum to use for each (Green to Blue or Yellow to Red, for example); I find with my WS variant that I register the color change more easily than the number of dots.
As long as you're only changing colors based on the person the ES is on, and not based on how many charges, you can do something like
[Outline]
[if (HasAura("Earth Shield", unit = 'focus')) then
   (if (Name(unit = 'focus') = Name(unit = 'player')) then
      ".":Repeat(NumAura("Earth Shield")):Green
   else
      ".":Repeat(NumAura("Earth Shield")):Yellow
   end)
else
   "!":Red
end]
Since any macro which sets your focus to whoever you just buffed will also set that focus to yourself if you buff yourself, the tag checks to see if your focus has ES. If not, it gives a red !. If your focus has ES, it checks if your focus is you. If so, green dots for the charges. If not, yellow dots. Again, this would require that you use your focus solely for casting ES and keeping track of it.

United States Online
Reply With Quote
Old 04/03/08, 2:54 PM   #78
Kaylee
Von Kaiser
 
Human Paladin
 
Ravenholdt (EU)
Originally Posted by Trouble View Post
Display if a target is frozen:

[outline (if (Class(unit="player") = "Mage") and (TalentTree(unit="player") = "Frost") and (HasAura("Frostbite") or HasAura("Frost Nova") or HasAura("Freeze")) then
    "Frozen":Color("3333FF")
end)]
I'd been trying to work out how to do something similar for my paladin to display when I'd forgotten to cast Righteous Fury and couldn't wrap my head around the code. Thanks for posting that.

Offline
Reply With Quote
Old 04/03/08, 10:40 PM   #79
Sovereignty
Soda Popinski
 
Sovereignty's Avatar
 
Blood Elf Paladin
 
Draenor
Quick question if anyone knows:

Is there a way to force text onto a new "line" using DogTags? I'm trying to get something that appears like this:

<Name>
<Class>

I would rather not have to try to figure out how to force the alignment of different text fields in PitBull, and would rather just do it this way.

Edit: I figured it out...I'm an idiot.

Last edited by Sovereignty : 04/03/08 at 10:50 PM.

Offline
Reply With Quote
Old 04/03/08, 10:50 PM   #80
 Adoriele
Save Greendale!
 
Adoriele's Avatar
 
Night Elf Druid
 
Dragonblight
Originally Posted by Sovereignty View Post
Quick question if anyone knows:

Is there a way to force text onto a new "line" using DogTags? I'm trying to get something that appears like this:

<Name>
<Class>

I would rather not have to try to figure out how to force the alignment of different text fields in PitBull, and would rather just do it this way.
If you separate tags with a line break (just hit enter), it will put a line break between the output tags. You have to do this before you hit save, though, or it will format everything as a single tag, which makes it hard to undo. This is why, if you look at my examples above, the 'end) (if' statements between letters are on the same line. I like everything in one line.

United States Online
Reply With Quote
Old 04/04/08, 8:32 AM   #81
cs-cam
Von Kaiser
 
cs-cam's Avatar
 
Undead Priest
 
Nagrand
Is there a way with DogTags to tell the difference between other peoples auras and my own? I'd like to change my unit frames to show markings on mobs when I have my dots up, but not other peoples?

Offline
Reply With Quote
Old 04/04/08, 8:59 AM   #82
badMonkey
Von Kaiser
 
badMonkey's Avatar
 
Night Elf Rogue
 
Tirion (EU)
Originally Posted by Kaylee View Post
I'd been trying to work out how to do something similar for my paladin to display when I'd forgotten to cast Righteous Fury and couldn't wrap my head around the code. Thanks for posting that.
[if (not(HasAura("Righteous Fury")) then
     [Outline] "RF missing!":Red
end]
Put this on player frame.

Offline
Reply With Quote
Old 04/04/08, 9:54 AM   #83
Fendryl
Don Flamenco
 
Fendryl's Avatar
 
Orc Hunter
 
Malfurion
Originally Posted by cs-cam View Post
Is there a way with DogTags to tell the difference between other peoples auras and my own? I'd like to change my unit frames to show markings on mobs when I have my dots up, but not other peoples?
I believe you only get a duration for your auras, so AuraDuration(aura, unit="player") should work.

Offline
Reply With Quote
Old 04/04/08, 2:21 PM   #84
 Adoriele
Save Greendale!
 
Adoriele's Avatar
 
Night Elf Druid
 
Dragonblight
Originally Posted by Fendryl View Post
I believe you only get a duration for your auras, so AuraDuration(aura, unit="player") should work.
It'd be more like
[if((HasAura("<MyDot>")) and (AuraDuration("<MyDot>"))) then
   "<MyDotIsActiveMessage>":<DotColor>
end]
If it's true that only your dots return a Duration (which I'm pretty sure it is), then simply checking for it will tell you if it's yours.

United States Online
Reply With Quote
Old 04/04/08, 3:14 PM   #85
aadric
Von Kaiser
 
Human Priest
 
Dark Iron
Is it possible to display a debuff on someone in your raid group, but only after it has ticked for ten seconds (for example... Kalecgos' curse lasts 30 seconds, I don't want to see it until there is 20 seconds left).

I currently use grid but the level of customization here has me intrigued.

Offline
Reply With Quote
Old 04/04/08, 3:42 PM   #86
 Adoriele
Save Greendale!
 
Adoriele's Avatar
 
Night Elf Druid
 
Dragonblight
Originally Posted by aadric View Post
Is it possible to display a debuff on someone in your raid group, but only after it has ticked for ten seconds (for example... Kalecgos' curse lasts 30 seconds, I don't want to see it until there is 20 seconds left).

I currently use grid but the level of customization here has me intrigued.
If you want every debuff to show up only after it's been there for 10s, no. However, for your specific example,
[if (HasAura("<Kalecgos' Curse>") and (AuraDuration("<Kalecgos' Curse>") < 20)) then
   "<Message>":<color>
end]
should work. You'd need to update for each debuff to determine how long until it goes away before you want to know about it.

United States Online
Reply With Quote
Old 04/04/08, 3:47 PM   #87
SOOPRcow
Glass Joe
 
Night Elf Druid
 
Tichondrius
Originally Posted by aadric View Post
Is it possible to display a debuff on someone in your raid group, but only after it has ticked for ten seconds (for example... Kalecgos' curse lasts 30 seconds, I don't want to see it until there is 20 seconds left).

I currently use grid but the level of customization here has me intrigued.
Such an awesome idea I went ahead and wrote one for myself. Here is the code I'm using

[if AuraDuration("Curse of Boundless Agony") < 20 then
    "DECURSE":Fuchsia
end]

Offline
Reply With Quote
Old 04/04/08, 3:58 PM   #88
SOOPRcow
Glass Joe
 
Night Elf Druid
 
Tichondrius
Hmmm, not I'm not 100% sure this will work. Are you able to see the amount of time a debuff has been on a party member? I guess I'll find out when someone here tests it or next Tuesday

Update: Yeah, it will not work because AuraDuration does not have access to the duration of the debuff.

Last edited by SOOPRcow : 04/04/08 at 6:02 PM.

Offline
Reply With Quote
Old 04/05/08, 1:08 AM   #89
IFed
Glass Joe
 
IFed's Avatar
 
Draenei Shaman
 
Lightning's Blade
Hello everyone, I made a dogtog for warrior which sometimes have trouble to keep watching for hamstring duration in PvP.

[Outline][(if AuraDuration("Hamstring", unit="target") >= 8 then
    AuraDuration("Hamstring"):FormatDuration("e"):Green
elseif (AuraDuration("Hamstring", unit="target") < 8) and (AuraDuration("Hamstring", unit="target") >= 3) then
    AuraDuration("Hamstring"):FormatDuration("e"):Color("ff8800")
elseif (AuraDuration("Hamstring", unit="target") < 3) and (AuraDuration("Hamstring", unit="target") > 0) then
    AuraDuration("Hamstring"):FormatDuration("e"):Red
else
    "No Hamstring":Red
end)]
To simplify it for people that don't know anything about DogTags:

From 15 to 8


From 7 to 3


From 2 to 1


Without Hamstring

Last edited by IFed : 04/05/08 at 1:25 AM. Reason: New Images

Offline
Reply With Quote
Old 04/05/08, 2:35 AM   #90
roslin
Glass Joe
 
Murloc Mage
 
<QBG>
Aggramar
Could somthing like this be used to track the curse off of Kaelcgos?

Originally Posted by IFed View Post
Hello everyone, I made a dogtog for warrior which sometimes have trouble to keep watching for hamstring duration in PvP.

[Outline][(if AuraDuration("Hamstring", unit="target") >= 8 then
    AuraDuration("Hamstring"):FormatDuration("e"):Green
elseif (AuraDuration("Hamstring", unit="target") < 8) and (AuraDuration("Hamstring", unit="target") >= 3) then
    AuraDuration("Hamstring"):FormatDuration("e"):Color("ff8800")
elseif (AuraDuration("Hamstring", unit="target") < 3) and (AuraDuration("Hamstring", unit="target") > 0) then
    AuraDuration("Hamstring"):FormatDuration("e"):Red
else
    "No Hamstring":Red
end)]
To simplify it for people that don't know anything about DogTags:

From 15 to 8


From 7 to 3


From 2 to 1


Without Hamstring

Offline
Reply With Quote
Old 04/05/08, 4:15 AM   #91
vaff
Von Kaiser
 
Murloc Mage
 
Boulderfist (EU)
Originally Posted by roslin View Post
Could somthing like this be used to track the curse off of Kaelcgos?
Why don't you read up before you post, it was made right over the post you commented on
And finally if you want to .. you can always replace "Hamstring" with "Curse of Boundless Agony" and it should work.

Offline
Reply With Quote
Old 04/05/08, 5:26 AM   #92
Trouble
Bald Bull
 
Trouble's Avatar
 
Trouble
Blood Elf Druid
 
No WoW Account
You can't see the duration of buffs/debuffs on other people/mobs unless you "own" the buff (without some sort of behind the scenes synching). I'm not sure why Blizzard doesn't just provide this information, but they don't.

United States Offline
Reply With Quote
Old 04/05/08, 11:09 AM   #93
roslin
Glass Joe
 
Murloc Mage
 
<QBG>
Aggramar
Exactly what I thought but then I saw people posting dog tags for tracking the Kalecgos curse. I'm sure its only a matter of time before a altered decursive or grid plugin is released im sure they already exist internally already.

While its manageable to be honest i'm finding it outright annoying to have to check curse duration, portal side and then find the person on my UF.

Sorry i'm not trying to derail this thread into somthing else its not but for a second there it looked like the flexability of Dogtags 3 was going make 1 night of the week a little less annoying.

Offline
Reply With Quote
Old 04/05/08, 9:15 PM   #94
Zerchi
Von Kaiser
 
Zerchi's Avatar
 
Human Death Knight
 
Cenarius
Originally Posted by Sethik View Post

Something I whipped up last night:



And if the CC is your own:



Yes, it is as good as it looks. Works with focus, target, whatever you like. Position is Frame - Edge, Top Middle.

[if HasAura("Freezing Trap Effect") or HasAura("Polymorph") or HasAura("Sap") or HasAura("Gouge") or HasAura("Seduce") or HasAura("Banish") or HasAura("Fear") or HasAura("Howl of Terror") or HasAura("Intimidating Shout") or HasAura("Entangling Roots") or HasAura("Cyclone") or HasAura("Hibernate") or HasAura("Psychic Scream") or HasAura("Blind") or HasAura("Repentance") then
    (Outline "*Crowd Control* " Gray AuraDuration("Freezing Trap Effect"):FormatDuration("s"):Paren AuraDuration("Polymorph"):FormatDuration("s"):Paren AuraDuration("Sap"):FormatDuration("s"):Paren AuraDuration("Gouge"):FormatDuration("s"):Paren AuraDuration("Seduce"):FormatDuration("s"):Paren AuraDuration("Banish"):FormatDuration("s"):Paren AuraDuration("Fear"):FormatDuration("s"):Paren AuraDuration("Howl of Terror"):FormatDuration("s"):Paren AuraDuration("Intimidating Shout"):FormatDuration("s"):Paren AuraDuration("Entangling Roots"):FormatDuration("s"):Paren AuraDuration("Cyclone"):FormatDuration("s"):Paren AuraDuration("Hibernate"):FormatDuration("s"):Paren AuraDuration("Psychic Scream"):FormatDuration("s"):Paren AuraDuration("Blind"):FormatDuration("s"):Paren AuraDuration("Repentance"))
end]
Pseudo code for the above is:

[if HasAura("CC") then (Outline "*Crowd Control* " Gray AuraDuration("CC"):FormatDuration("s"):Paren) end]

Enjoy!
This was neat so I did a little modification of this using the spell icons for each spell instead of text (although I didn't keep the duration stuff but that would be easy enough for someone to add back in).

[if HasAura("Freezing Trap Effect") then
     "Interface/Icons/Spell_Frost_ChainsOfIce":Icon
     else
     if HasAura("Polymorph") then
     "Interface/Icons/Spell_Nature_Polymorph":Icon
     else
     if HasAura("Sap") then
     "Interface/Icons/Ability_Sap":Icon
     else
     if HasAura("Gouge") then
     "Interface/Icons/Ability_Gouge":Icon
     else
     if HasAura("Seduce") then
     "Interface/Icons/Spell_Shadow_MindSteal":Icon
     else
     if HasAura("Banish") then
     "Interface/Icons/Spell_Shadow_Cripple":Icon
     else
     if HasAura("Fear") then
     "Interface/Icons/Spell_Shadow_PsychicScream":Icon
     else
     if HasAura("Howl of Terror") then
     "Interface/Icons/Spell_Shadow_DeathScream":Icon
     else
     if HasAura("Intimidating Shout") then
     "Interface/Icons/Ability_GolemThunderClap":Icon
     else
     if HasAura("Entangling Roots") then
     "Interface/Icons/Spell_Nature_StrangleVines":Icon
     else
     if HasAura("Cyclone") then
     "Interface/Icons/Spell_Nature_Cyclone":Icon
     else
     if HasAura("Hibernate") then
     "Interface/Icons/Spell_Nature_Sleep":Icon
     else
     if HasAura("Psychic Scream") then
     "Interface/Icons/Spell_Shadow_PsychicScream":Icon
     else
     if HasAura("Blind") then
     "Interface/Icons/Spell_Shadow_MindSteal":Icon
     else
     if HasAura("Repentance") then
     "Interface/Icons/Spell_Holy_PrayerOfHealing":Icon
     else
     if HasAura("Shackle Undead") then
    "Interface/Icons/Spell_Nature_Slow":Icon
end]

Last edited by Zerchi : 04/05/08 at 11:04 PM.

Offline
Reply With Quote
Old 04/05/08, 9:55 PM   #95
Lihaug
Glass Joe
 
Night Elf Priest
 
Zenedar (EU)
Originally Posted by Trouble View Post


I'm writing something simulair to this for my raid frames, except for blessings I want a number shown for the amount of blessings on that player. Could somebody guide me on how to do this?

Last edited by Lihaug : 04/05/08 at 10:25 PM.

Offline
Reply With Quote
Old 04/06/08, 2:21 AM   #96
cs-cam
Von Kaiser
 
cs-cam's Avatar
 
Undead Priest
 
Nagrand
Originally Posted by Lihaug View Post
I'm writing something simulair to this for my raid frames, except for blessings I want a number shown for the amount of blessings on that player. Could somebody guide me on how to do this?
A total number or perhaps a small dot for each? A dot for each would be a simple chain of if..then..end statements, ie:
(if (HasAura("Blessing of Kings") or HasAura("Greater Blessing of Kings")) then
    ".":Yellow
end) (if ....
etc
end)
Now I have another question, should be my last. Is there a way to tell the difference between the ISB and Shadow Weaving debuffs? They both have the same name, they both "stack" so NumAura() isn't useful and I'm not 100% sure of any other info I can pull about the debuff to maybe discern the difference between them. I'm also assuming I won't be the only shadowpriest so I can't check AuraDuration() and assume a debuff without a duration is ISB as the Shadow Weaving stack may not be started by me.

Any suggestions for this one? Even just somewhere to start looking would be a plus. I've been driving myself crazy working on this all day yesterday

Offline
Reply With Quote
Old 04/06/08, 4:14 AM   #97
IFed
Glass Joe
 
IFed's Avatar
 
Draenei Shaman
 
Lightning's Blade
Well I decided to go ahead and make a version 2.0 of my Hamstring dogtag

Added:
- It verifies if the target is an enemy before pasting "Hamstring"
- 1 more color, it goes from Green->Yellow->Orange->Red.
- Icons and sized them according to the time left on Hamstring (Thanks to Zerchi for pointing out the icon feature of Dogtag)

[[if IsEnemy then
    (if AuraDuration("Hamstring", unit="target") >= 11 then
        Icon("Interface/Icons/Ability_Shockwave", size=20) AuraDuration("Hamstring"):Round:Green:Paren
    elseif (AuraDuration("Hamstring", unit="target") < 11) and (AuraDuration("Hamstring", unit="target") >= 6) then
        Icon("Interface/Icons/Ability_Shockwave", size=20) AuraDuration("Hamstring"):Round:Color("ffff00"):Paren
    elseif (AuraDuration("Hamstring", unit="target") < 6) and (AuraDuration("Hamstring", unit="target") >= 3) then
        Icon("Interface/Icons/Ability_Shockwave", size=20) AuraDuration("Hamstring"):Round:Color("ff8800"):Paren
    elseif (AuraDuration("Hamstring", unit="target") < 3) and (AuraDuration("Hamstring", unit="target") > 0) then
        Icon("Interface/Icons/Ability_Shockwave", size=30) AuraDuration("Hamstring"):Round:Red:Paren
    else
        "Hamstring":Red
    end)
end]]






To get the list of the icon to modify this code you'll have to go on this site: WoWWiki:Icons

Offline
Reply With Quote
Old 04/06/08, 5:42 AM   #98
HarryPortal
Glass Joe
 
Undead Mage
 
Bloodhoof (EU)
Changing Name Color when in Combat

With the previous version of Pitbull which uses DogTags 2, I had my character's name set to change colors whenever I entered combat (like X-perl does) using the CombatColor tag (which took the color from the "In Combat" color).

Now with the new version of Pitbull and the new dogtags, the CombatColor tag has become invalid.
Can anyone advise me on a new tag for DogTags 3 that does the same?

Offline
Reply With Quote
Old 04/06/08, 10:27 AM   #99
Lorienne
...
 
Lorienne's Avatar
 
Vaikhan
Blood Elf Paladin
 
No WoW Account
Originally Posted by HarryPortal View Post
With the previous version of Pitbull which uses DogTags 2, I had my character's name set to change colors whenever I entered combat (like X-perl does) using the CombatColor tag (which took the color from the "In Combat" color).

Now with the new version of Pitbull and the new dogtags, the CombatColor tag has become invalid.
Can anyone advise me on a new tag for DogTags 3 that does the same?
The only documentation I've been able to find is this list of tags. Looking there, I find no CombatColor, but you can probably do something with the InCombat one instead.

Example:
[if InCombat then
    Name:Red
else
    Name:ClassColor
end]

United States Offline
Reply With Quote
Old 04/06/08, 10:56 AM   #100
HarryPortal
Glass Joe
 
Undead Mage
 
Bloodhoof (EU)
Originally Posted by Lorienne View Post
The only documentation I've been able to find is this list of tags. Looking there, I find no CombatColor, but you can probably do something with the InCombat one instead.

Example:
[if InCombat then
    Name:Red
else
    Name:ClassColor
end]

Thanks, that did the trick

Offline
Reply With Quote
Reply

Go Back   Elitist Jerks » 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 2:30 AM