Elitist Jerks
Register
Blogs
Forums


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

Reply
 
LinkBack Thread Tools
Old 10/30/08, 6:10 PM   #436
Montegos
Glass Joe
 
Tauren Druid
 
Auchindoun (EU)
Me and my guildie has been wondering if it is possible to make titles show on tooltips using dogtags since it doesnt do this from the beginning. Can anyone confirm if this is possible?

Offline
Reply With Quote
Old 10/31/08, 9:16 AM   #437
Hurkan
Glass Joe
 
Hurkan's Avatar
 
Blood Elf Death Knight
 
Argent Dawn (EU)
Hi all,

I started by doing some Mana Dots to use in my PitBull Raid Frames.

[(if IsMana and DeadType = "" then
    (if PercentMP > 90 then
        ".....":Color("00d0ea")
    elseif PercentMP > 75 then
        "....":Color("0053ea")
    elseif PercentMP > 50 then
        "...":Color("0053ea")
    elseif PercentMP > 25 then
        "..":Color("ff9b00")
    elseif PercentMP > 0 then
        ".":Color("ff0000")
    end)
end)]
Then I decided that I wanted to replace my Target Frame ClassTimer with something like this:

[(if IsEnemy then
    (if AuraDuration("Demoralizing Shout") > 15 then
        " DS ":Color("f8f8f8")
    elseif AuraDuration("Demoralizing Shout") > 5 then
        " DS ":Color("ff9b00")
    elseif AuraDuration("Demoralizing Shout") > 0 then
        " DS ":Color("ff0000")
    end) (if AuraDuration("Thunder Clap") > 15 then
        " TC ":Color("f8f8f8")
    elseif AuraDuration("Thunder Clap") > 5 then
        " TC ":Color("ff9b00")
    elseif AuraDuration("Thunder Clap") > 0 then
        " TC ":Color("ff0000")
    end) (if AuraDuration("Sunder Armor") > 15 then
        " SA ":Color("f8f8f8")
    elseif AuraDuration("Sunder Armor") > 5 then
        " SA ":Color("ff9b00")
    elseif AuraDuration("Sunder Armor") > 0 then
        " SA ":Color("ff0000")
    end)
end)]

Unfortunately didn't worked as expected since I found AuraDuration in Target Frame is not working in this build (found a ticket already opened in wowace about it). AuraDuration is not returning the correct time:


It seems something is wrong in auras.lua inside the DogTags Lib, I tried to find what could it be but without success.
If someone already developed a temporary "hotfix" for this issue that would be great.

By the way, thanks for all the code people have been posting, it was a great help for me to start using DogTags.

Last edited by Hurkan : 10/31/08 at 11:49 AM. Reason: Fixed Image Hosting

Offline
Reply With Quote
Old 11/01/08, 4:54 AM   #438
manapaws
Piston Honda
 
Tauren Druid
 
Blackrock
To assist with feral druid dps, I want to track bleed increasing debuffs, and bleeds.

Following the other examples in this thread, so far, I have:

[if HasAura("Trauma") or HasAura("Mangle") then
"Ready":Red
end]

Does anyone know if I need to specify Mangle - Bear and Mangle - Cat? I'm also going to assume that'd work whether it's my mangle on the target or someone else's in the raid?

How would I do a bleeding target one? Just do exactly the same as above but put rip, rake, rupture, deep wounds, some-hunter's-pet-stuff. Is it possible to do a graphical bleeding effect on the frame? :P

Edit: Is there a way to just say bleeding or would it require if/then chains for every known bleed type?

Last edited by manapaws : 11/01/08 at 5:58 AM.

Offline
Reply With Quote
Old 11/04/08, 3:36 AM   #439
Yero
Von Kaiser
 
Tauren Druid
 
Gilneas (EU)
Is there a way to get Dogtags on a screen without using it in unitframes, tooltip oder namesplates? There used to be a "statblock_dogtag" but since the move of ace to curse I cant find it anymore. Anybody here who can help me out?

Offline
Reply With Quote
Old 11/04/08, 4:14 AM   #440
Velence99
Glass Joe
 
Undead Warlock
 
Jubei'Thos
Hello I'm new to dogtags and have jumped straight into 4 dogtags (all from this thread.. I think) , and all of which do not work. If anyone could help me with them that'd be rosie.

Show a dot on frames for players missing Int or Arcane Brilliance, syntax error
[Outline][(if (Class(unit="player") = "Mage") and not HasAura("Arcane Intellect") or not HasAura("Arcane Brilliance")  then
    ".":Cyan
end)

CC timer, it registers the crowd control but the duration text looks like this *Crowd Control* (29.8 %d Hr)

[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]



This for scorch duration and count, it doesn't appear
[(if (Class(unit="player") = "Mage") and (TalentTree(unit="player") = "Fire") and HasAura("Fire Vulnerability") then
    NumAura("Fire Vulnerability"):Red
end) AuraDuration("Fire Vulnerability"):FormatDuration:Prepend(" ") (HasAura("Curse of the Elements") ? "E":Red)]
And a slice and dice timer, it doesn't appear.

[[if (unit = "player") and HasAura("Slice and Dice") then
    (if AuraDuration("Slice and Dice") >= 30 then
        AuraDuration("Slice and Dice"):Round:Green:Paren
    elseif (AuraDuration("Slice and Dice") < 30) and (AuraDuration("Slice and Dice") >= 10) then
        AuraDuration("Slice and Dice"):Round:Color("ffff00"):Paren
    elseif (AuraDuration("Slice and Dice") < 10) and (AuraDuration("Slice and Dice") >= 5) then
        AuraDuration("Slice and Dice"):Round:Color("ff8800"):Paren
    elseif (AuraDuration("Slice and Dice") < 5) and (AuraDuration("Slice and Dice") > 0) then
        AuraDuration("Slice and Dice"):Round:Red:Paren
    end)
end]]

Offline
Reply With Quote
Old 11/04/08, 5:50 AM   #441
amele
Von Kaiser
 
Undead Rogue
 
Skullcrusher
Originally Posted by Velence99 View Post
Hello I'm new to dogtags and have jumped straight into 4 dogtags (all from this thread.. I think) , and all of which do not work. If anyone could help me with them that'd be rosie.

Show a dot on frames for players missing Int or Arcane Brilliance, syntax error
[Outline][(if (Class(unit="player") = "Mage") and not HasAura("Arcane Intellect") or not HasAura("Arcane Brilliance")  then
    ".":Cyan
end)

CC timer, it registers the crowd control but the duration text looks like this *Crowd Control* (29.8 %d Hr)

[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]



This for scorch duration and count, it doesn't appear
[(if (Class(unit="player") = "Mage") and (TalentTree(unit="player") = "Fire") and HasAura("Fire Vulnerability") then
    NumAura("Fire Vulnerability"):Red
end) AuraDuration("Fire Vulnerability"):FormatDuration:Prepend(" ") (HasAura("Curse of the Elements") ? "E":Red)]
And a slice and dice timer, it doesn't appear.

[[if (unit = "player") and HasAura("Slice and Dice") then
    (if AuraDuration("Slice and Dice") >= 30 then
        AuraDuration("Slice and Dice"):Round:Green:Paren
    elseif (AuraDuration("Slice and Dice") < 30) and (AuraDuration("Slice and Dice") >= 10) then
        AuraDuration("Slice and Dice"):Round:Color("ffff00"):Paren
    elseif (AuraDuration("Slice and Dice") < 10) and (AuraDuration("Slice and Dice") >= 5) then
        AuraDuration("Slice and Dice"):Round:Color("ff8800"):Paren
    elseif (AuraDuration("Slice and Dice") < 5) and (AuraDuration("Slice and Dice") > 0) then
        AuraDuration("Slice and Dice"):Round:Red:Paren
    end)
end]]
are these for cowtips or pitbull unit frames? if the latter you can streamline some of these. - also, if you use both cowtip and pitbull make sure they're all up to date on their dogtags libs. I usually do this by copying the latest libs from pitbull into cowtip's folders in the event that the latest cowtip doesn't clear up the problem.


also, there seems to be one or more problems with auras.lua currently so it's possible that the last one won't work at all.

Offline
Reply With Quote
Old 11/04/08, 6:56 AM   #442
Velence99
Glass Joe
 
Undead Warlock
 
Jubei'Thos
Oh, forgot about Cowtip for a sec there. I just use Pitbull, those tags are all for Pitbull.

Offline
Reply With Quote
Old 11/04/08, 7:40 AM   #443
Hurkan
Glass Joe
 
Hurkan's Avatar
 
Blood Elf Death Knight
 
Argent Dawn (EU)
On the first script, I don't know if will work but you're not closing the code, end it with a ]

[Outline][(if (Class(unit="player") = "Mage") and not HasAura("Arcane Intellect") or not HasAura("Arcane Brilliance") then
".":Cyan
end)]

Everytime I try to use AuraDuration on Target I'm facing this problem at the moment. Waiting for an update/fix.

Offline
Reply With Quote
Old 11/04/08, 8:44 AM   #444
amele
Von Kaiser
 
Undead Rogue
 
Skullcrusher
Originally Posted by Hurkan View Post
On the first script, I don't know if will work but you're not closing the code, end it with a ]

[Outline][(if (Class(unit="player") = "Mage") and not HasAura("Arcane Intellect") or not HasAura("Arcane Brilliance") then
".":Cyan
end)]

Everytime I try to use AuraDuration on Target I'm facing this problem at the moment. Waiting for an update/fix.
the slice and dice error is likely because SnD is evaluating as always 0. that said; since you're presumably placing this on the player unit frame and not on the target unit frame(?) then you could streamline it like this; which may work.

[if HasAura("Slice and Dice") then
    (if AuraDuration("Slice and Dice") >= 30 then
        AuraDuration("Slice and Dice"):Round:Green:Paren
    elseif AuraDuration("Slice and Dice") >= 10 then
        AuraDuration("Slice and Dice"):Round:Color("ffff00"):Paren
    elseif AuraDuration("Slice and Dice") >= 5 then
        AuraDuration("Slice and Dice"):Round:Color("ff8800"):Paren
    else
        AuraDuration("Slice and Dice"):Round:Red:Paren
    end)
end]
this will have the same effect but will evaluate faster. (it's also easier to parse human wise) should display a 0 if SnD is up but has a duration that isn't evaluating as a positive number greater than 0.49~; this will help you diagnose if it's a duration reading issue or a problem with the syntax of the tag. to change this, add ":hide(0)" to the end of the last auraduration:round:red:paren

I also removed the double [[ brackets in case that was causing a syntax problem.

I suspect that most of your problems have to do with auradurations currently being bugged.

Offline
Reply With Quote
Old 11/05/08, 1:38 PM   #445
Crankshaft
Glass Joe
 
Tauren Druid
 
Black Dragonflight
I've been playing around on my alt retadin recently, and I noticed I wasn't always paying as much attention to groupmates' health as I ought to be (pretty major concern when we're DPS zerging places and the only heals are me and an enh shaman). Threw this together on a frame I have no real use for, target's target's target, and place it near the middle of my screen.

[if PercentHP("party1")<70 then Name("party1"):Truncate(4,nil):ClassColor:Append(":: ") HP("party1"):HPColor("party1") PercentHP("party1"):Percent:Paren:HPColor("party1")
repeat for party2, party3, party4

Offline
Reply With Quote
Old 11/06/08, 3:07 PM   #446
Bind
Glass Joe
 
Night Elf Rogue
 
Lightbringer
Hey all,

Just wanted to add a quick little Dogtag script I whipped up for displaying rogues combo points / energy tick.

Condition:
If you have a combo point on the target, display the energy tick / combo points.
If you have more than 2 combo points on the target, color the third fourth and fifth combo point text different colors.

Heres an example:



[if IsEnergy('player') and (Combos ~= 0) then
	'(' MP('player'):Hide(100):PowerColor('player') ') ' 
(if Combos < 3 then
    	Combos:Hide(0)
elseif Combos = 3 then
        Combos:Green
elseif Combos = 4 then
        Combos:Yellow
elseif Combos = 5 then
        Combos:Red
	end)
end]
Enjoy.

Offline
Reply With Quote
Old 11/06/08, 4:58 PM   #447
Whitebushido
Glass Joe
 
Blood Elf Paladin
 
Cho'gall
I've searched the thread and forums, I've even tried the WoW forums, I just can't seem to find it. Does anyone know the dog tag for titles? I previously had it on my CowTip but when 3.0 came out I had to repair my WoW, thus destroying my addons.

I'd like it to show Blood Sail Admiral Syrini or Syrini, Guardian of Cenarius. With all the new titles, is it possible to have them on their appropriate side?

Offline
Reply With Quote
Old 11/06/08, 5:25 PM   #448
Minimized
Glass Joe
 
Gnome Rogue
 
<Ego>
Outland (EU)
It is, just use Namerealm:PvPrank or name:pvprank or even HP:pvprank if you feel like it.
Puts it on the right side and everything.

Offline
Reply With Quote
Old 11/08/08, 1:49 PM   #449
Neza
Glass Joe
 
Neza's Avatar
 
Blood Elf Paladin
 
Lordaeron (EU)
Any of you guys happens to know if there is a dog tag which can 'read' the percentage of aggro u have on a specific mob ?

(I am asking this because of the blizzard aggro 'meter' which is shown on tooltips and i'd like to build some 'custom' aggrometer into my uF).

Offline
Reply With Quote
Old 11/08/08, 11:23 PM   #450
amele
Von Kaiser
 
Undead Rogue
 
Skullcrusher
Originally Posted by Neza View Post
Any of you guys happens to know if there is a dog tag which can 'read' the percentage of aggro u have on a specific mob ?

(I am asking this because of the blizzard aggro 'meter' which is shown on tooltips and i'd like to build some 'custom' aggrometer into my uF).
There is a set of functions that utilize ThreatLib; I don't know if they are functional under 3.0.3. From the self-doc inside the .lua, the function names you probably want to try are:

FractionalThreat(unit="player")

HasThreat(unit="player")

MaxThreat(unit="player")

MissingThreat(unit="player")

PercentThreat(unit="player")*

Threat(unit="player")

In general, if placed on your unit or a friendly unit, it will display threat w/rt your current target. If placed on a hostile unit, it will display your threat on that unit. I do not believe there is a way to override this functionality.

I believe that ThreatLib is estimating threat; since prior to 3.0ish the API didn't make actual threat numbers available. It's possible that this has been already updated to work with the new API functions however; so I wouldn't quote on me this.

*to display this as an actual percentage, you should add the percent syntactical tag to the end of the argument: [PercentThreat:Percent] otherwise is a float.

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