 |
03/30/08, 12:09 PM
|
#26
|
|
Von Kaiser
Night Elf Rogue
Tirion (EU)
|
I wrote a DogTag that displays any debuff/buff duration in form of alpha value
(means that when the (de)buff is at 100% duration it has 1.0 alpha value and
when it is at 80% the alpha value is 0.8 and so on):
[Alpha(((100 / X) * AuraDuration("Y")) / 100)]
[HasAura("Y") ? "whatever"]
X is the maximum (not the remaining) debuff/buff duration ( in seconds!*),
Y is the debuff/buff name.
* You can place the initial debuff/buff duration in minutes also, but you have to add "* 60".
Example:
Sap, 45sec
[Outline]
[Alpha(((100 / 45) * AuraDuration("Sap")) / 100)]
[HasAura("Sap") ? "Sapped!":Red]
|
|
|
|
|
03/30/08, 6:12 PM
|
#27
|
|
Glass Joe
Blood Elf Hunter
Drak'thul
|
Had a few requests for updated tags for my CowTip styles:
LEFT:
[Level:White] [NameRealm:ClassColor] [Classification:Paren]
[if Guild then Guild:Angle:Green " " GuildRank:Paren:Color("caf6c8") else " " end]
[(if IsPlayer and IsFriend then (if TalentSpec then TalentTree " " TalentSpec:Paren:Gray else "Loading..." end) end) (if IsUnit("pet") then HappyText end)]
[Zone]
[if IsUnit("player", Target) then Red "Targeting << You >>" elseif Target:NameRealm then "Targeting <" Target:NameRealm:ClassColor(Target) ">" end]
RIGHT:
[Faction or SmartRace]
[if Faction then SmartRace end]
[if IsPlayerOrPet then PercentHP:Percent:HPColor elseif InCombat then PercentHP:Percent:HPColor end]
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!
|
|
|
|
|
03/30/08, 8:06 PM
|
#28
|
|
Piston Honda
Blood Elf Paladin
Sentinels
|
Is there a way to truncate overly long names?
I want to put names on my unitframes, but "Mature Netherwing Drake" takes up nearly the whole bar and causes my health text to show as "6789/67..."
|
|
I read Banhammer posts when I'm having a bad day.
|
|
|
|
03/30/08, 8:28 PM
|
#29
|
|
Glass Joe
|
|
Originally Posted by http://www.wowace.com/wiki/LibDogTag-3.0
Truncate(value, number, ellipses=true)
Truncate value to the length specified by number, adding ellipses by default
["Hello":Truncate(3)] => "Hel..."; ["Hello":Truncate(3, nil)] => "Hel"
|
As an example my Target's name is :
[Name:Truncate(15):ClassColor] [(AFK or DND):Angle]
|
|
|
|
|
03/30/08, 8:30 PM
|
#30
|
|
Von Kaiser
|
I use truncate for a very fun dogtag tag in CowTip:
[TargetingList:Truncate(35)]
On a line by itself it shows everyone in your party/raid targetting the mob you're mousing over (lets one tank see that another tank is already targetting a loose mob before they've actually reached it & taunted). In the case of raid boss fights, where 24 other people are targetting the same thing, it gets a tad unwieldly without they truncate modifier (as I discovered the hard way with a CowTip the width of my screen on Magtheridon).
|
|
|
|
|
03/30/08, 9:06 PM
|
#31
|
|
Piston Honda
Blood Elf Paladin
Sentinels
|
Olond, that makes me think of another tag.
Would there be a way to have "Targetted by: 24 others" if a bunch of people (the whole raid) are targetting the mob, but "Targetted by: Tank1, DPS1, DPS2" if only a few people are targetting it?
Say, something like:
if(# of raid members targetting mob < 5)
print each individual name separated by commas
else
print # of raid members targetting mob
|
|
I read Banhammer posts when I'm having a bad day.
|
|
|
|
03/30/08, 9:31 PM
|
#32
|
|
Piston Honda
Draenei Shaman
Nordrassil (EU)
|
With some help of Wowace forums:
[if MissingMP >= 2200 then
(if MissingMP >= 3200 then
"FelMana"
else
"ManaPot"
end)
end]
Displays "Manapot" when 2200 mana is used and "FelMana" when 3200 is used.
Nice to know when you wont overshoot a Mana Potion.
|
|
|
|
|
03/30/08, 9:52 PM
|
#33
|
|
Von Kaiser
|

Originally Posted by Sethik
Had a few requests for updated tags for my CowTip styles:
LEFT:
[Level:White] [NameRealm:ClassColor] [Classification:Paren]
[if Guild then Guild:Angle:Green " " GuildRank:Paren:Color("caf6c8") else " " end]
[(if IsPlayer and IsFriend then (if TalentSpec then TalentTree " " TalentSpec:Paren:Gray else "Loading..." end) end) (if IsUnit("pet") then HappyText end)]
[Zone]
[if IsUnit("player", Target) then Red "Targeting << You >>" elseif Target:NameRealm then "Targeting <" Target:NameRealm:ClassColor(Target) ">" end]
RIGHT:
[Faction or SmartRace]
[if Faction then SmartRace end]
[if IsPlayerOrPet then PercentHP:Percent:HPColor elseif InCombat then PercentHP:Percent:HPColor end]
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!
|
None of them worked when i put them in the cowtip  . What am i doing wrong?
|
|
|
|
|
03/30/08, 10:06 PM
|
#34
|
|
Glass Joe
Blood Elf Hunter
Drak'thul
|
Originally Posted by MaveN
None of them worked when i put them in the cowtip  . What am i doing wrong?
|
Make sure you're using the latest CowTip (read: the one using the 3.0 lib). Aside from that, couldn't tell you.
|
|
|
|
|
03/30/08, 10:31 PM
|
#35
|
|
Von Kaiser
|
Originally Posted by Sethik
Make sure you're using the latest CowTip (read: the one using the 3.0 lib). Aside from that, couldn't tell you.
|
Still givin me syntax errors, *sigh* guess i gota start over, and this is cotip 3.0 to i dont get it. Maybe if i delete the entire cowtip and the saved variables, then put in cowtip over again and start there? I think ill try that.
|
|
|
|
|
03/31/08, 12:25 AM
|
#36
|
|
Von Kaiser
Human Death Knight
Turalyon
|
Does anyone know if there is a new equivalent to IsLessEqual() yet?
Last edited by FAME : 03/31/08 at 12:34 AM.
|
|
|
|
|
03/31/08, 1:59 AM
|
#37
|
|
Von Kaiser
Human Shaman
Turalyon (EU)
|
Originally Posted by FAME
Does anyone know if there is a new equivalent to IsLessEqual() yet?
|
I think you can solve this with an "if" structure combined with the >= operand. Like for instance:
[if MissingMP >= 2200 then
(if MissingMP >= 3200 then
"FelMana"
else
"ManaPot"
end)
end]
In this case, it should return "FelMana" for less then or equal to 3200 mana and "ManaPot" for less then or equal to 2200 mana.
|
|
|
|
|
03/31/08, 12:42 PM
|
#38
|
|
Von Kaiser
|
I'm having a bit of trouble figuring out how to do this... It's for my ToT bar, and I'd like for it to display the name of the ToT, and if the ToT is me, to say "ME" instead of Thanahtos... Is there any way to do it? 
|
|
|
|
|
03/31/08, 12:44 PM
|
#39
|
|
Mind the gap.
Malan
Tauren Shaman
No WoW Account
|
Originally Posted by Thanahtos
I'm having a bit of trouble figuring out how to do this... It's for my ToT bar, and I'd like for it to display the name of the ToT, and if the ToT is me, to say "ME" instead of Thanahtos... Is there any way to do it? 
|
(IsUnit('player', Target) ? ClassColor("") '<<You>>':white ! Target:NameRealm)
Some modification of the above will get you there.
|
|
|
|
|
03/31/08, 12:47 PM
|
#40
|
|
Von Kaiser
Goblin Priest
Mannoroth (EU)
|
Originally Posted by Imbar
Olond, that makes me think of another tag.
Would there be a way to have "Targetted by: 24 others" if a bunch of people (the whole raid) are targetting the mob, but "Targetted by: Tank1, DPS1, DPS2" if only a few people are targetting it?
Say, something like:
if(# of raid members targetting mob < 5)
print each individual name separated by commas
else
print # of raid members targetting mob
|
i'm not 100 percent sure with the spelling as i couldn't check it ingame but this should help you:
[if IsEnemy ? if not IsPlayerorPet ? then
(if NumTargeting(unit="mouseovertarget") >= 6 then
"targetted by [NumTargeting(unit="mouseovertarget)] people" else
TargetingList(unit="mouseovertarget")
end) end]
|
|
|
|
|
|
03/31/08, 12:50 PM
|
#41
|
|
Glass Joe
Night Elf Druid
Tichondrius
|
I figured I would post my Target Frame's Health Listing here:
The following DogTag will display as follows:
Friendly Player or NPC with UNKNOWN Health: "Percent HP" - (example: 77%)
Friendly Player or NPC with KNOWN health: "Current HP - Missing HP" - (example: 9453 -1566)
Enemy Player or NPC with UNKNOWN Health: "Percent HP" - (example: 54%)
Enemy Player o NPC with KNOWN Health: "Short Current HP / Short Max HP (Percent HP)" - (example: 11k/12k (91%))
It will also display the status of each target if they are dead. Also, for a mob's health to be known on an NPC you must have mobhealth.
[(if IsFriend then
(if not HP(known=true) then
PercentHP:Percent
else
(if not Dead then
HP
end)
end)
end)
(if IsFriend then
(if HP(known=true) then
(Status | (-MissingHP):Hide(0):Short:Color("ff7f7f"))
end)
else
(Status | (if not HP(known=true) then
PercentHP:Percent
else
FractionalHP:Short PercentHP:Percent:Paren:Prepend(" ")
end))
end)]
|
|
|
|
|
03/31/08, 12:58 PM
|
#42
|
|
Von Kaiser
|
Originally Posted by Malan
(IsUnit('player', Target) ? ClassColor("") '<<You>>':white ! Target:NameRealm)
Some modification of the above will get you there.
|
I'm sorry for being so copy-paste with no work, but I'm getting syntax errors, and I'm not sure why. I tried re-writing it, and I couldn't get it to work. 
|
|
|
|
|
03/31/08, 1:11 PM
|
#43
|
|
Mind the gap.
Malan
Tauren Shaman
No WoW Account
|
Yah that's not the full tag, that's just part of the IF THEN stuff you'll need to get it working. You can't just copy paste that in, its incomplete. Go back to the bottom of page 1 and look at the examples of how people are displaying <<YOU>> when your mouseover target is targeting you.
|
|
|
|
|
03/31/08, 4:18 PM
|
#44
|
|
Glass Joe
Night Elf Rogue
Blackhand
|
is this where I could request some code as im not familiar with this?
|
|
|
|
|
03/31/08, 8:53 PM
|
#45
|
|
Von Kaiser
|
Originally Posted by Lakesh
The idea was to replace Demon.
(I too Apologies for the repost but now i have a screen shoot.)
The text is only visible if the target is a enemy (and not a player or pet).
[(IsEnemy ? ~IsPlayerOrPet ? NumDebuffs:Hide(0)) (if (IsEnemy ? ~IsPlayerOrPet) then
|
Is there a way to disable the Debuff count that shows up?
If i just remove NumDebuffs from the code it gives me a Syntax Error.
|
|
|
|
|
03/31/08, 9:17 PM
|
#46
|
|
Piston Honda
Night Elf Rogue
Frostmourne
|
Originally Posted by Lakesh
The idea was to replace Demon.

|
In regards to the code associated with this screenshot, last night on brutullus, it seemed to have issues detecting thunderclap, but i'm unsure why.
|
|
|
|
|
03/31/08, 9:28 PM
|
#47
|
|
Von Kaiser
Goblin Priest
Mannoroth (EU)
|
Originally Posted by Zomghuntar
Is there a way to disable the Debuff count that shows up?
If i just remove NumDebuffs from the code it gives me a Syntax Error.
|
in order to remove the debuff count you have to remove
|
(IsEnemy ? ~IsPlayerOrPet ? NumDebuffs:Hide(0))
|
so the dogtag begins with
|
[(if (IsEnemy ? ~IsPlayerOrPet) then...
|
|
|
|
|
|
03/31/08, 11:08 PM
|
#48
|
|
Piston Honda
Blood Elf Paladin
Sentinels
|
Originally Posted by Hamsda
[if IsEnemy ? if not IsPlayerorPet ? then
(if NumTargeting(unit="mouseovertarget") >= 6 then
"targetted by [NumTargeting(unit="mouseovertarget)] people" else
TargetingList(unit="mouseovertarget")
end) end]
|
It doesn't like the mouseovertarget parts.
|
|
I read Banhammer posts when I'm having a bad day.
|
|
|
|
04/01/08, 1:14 AM
|
#49
|
|
Mind the gap.
Malan
Tauren Shaman
No WoW Account
|
Originally Posted by Cyn
In regards to the code associated with this screenshot, last night on brutullus, it seemed to have issues detecting thunderclap, but i'm unsure why.
|
Yah same, its not just on Brut, Thunderclap isn't showing up at all in my raids and neither is Demo Shout/Roar with that tag set.
|
|
|
|
|
04/01/08, 1:52 AM
|
#50
|
|
Glass Joe
|
Originally Posted by Malan
Yah same, its not just on Brut, Thunderclap isn't showing up at all in my raids and neither is Demo Shout/Roar with that tag set.
|
"Thunder Clap" is two words. In his code, he has it as "Thunderclap". That should fix it.
|
|
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| [DogTags] - Share yours! |
Fulnir |
User Interface and AddOns |
164 |
03/30/08 2:30 AM |
|