Elitist Jerks
Register
Blogs
Chat
Forums
New Posts


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

Welcome to Elitist Jerks
If this is your first visit, please be sure to check out the FAQ and the forum rules. Users must register to post and new registrations are subject to a one day "mute" period to get acquainted with the community. To start viewing messages, select the forum that you want to visit from the selection below.

Reply
 
LinkBack (110) Thread Tools
Old 05/26/08, 11:54 AM   #276 (permalink)
Von Kaiser
 
Blood Elf Paladin
 
Thrall
I use Pitbull. I use the standard tag for my HP and mana. I want to make a custom one that uses the same I use now ( xxxx/xxxx for both mana and hp, no %) but hide it when it is 100%.

I am assuming I can just copy the current tag and add :hide(MaxHp) to the end of it for my hp? What is the code for the mana one?


I also have my target and ToT UF set to hide the power bar if they are not mana users. I dislike the way the name, which I have set to left edge middle iirc (displays middle of the frame left side), shows. If it is long it sometimes runs into the HP of a non mana user. Is there a way to make it so that the name is set to say 10-20 characters?
 
User is offline.
Reply With Quote
Old 05/26/08, 12:42 PM   #277 (permalink)
Don Flamenco
 
Dwarf Hunter
 
Kul Tiras
Originally Posted by Sarkan-ZdC View Post
I changed the default threat value to: MissingThreat(unit="player") (found this in the online help for DogTags).

Problem 1 is: It shows 0 if I'm not in combat and for all units (NPC Merchants and so on..). Is it possible to hide this if I have 0 Threat against a unit?

Also If I'm the one with max threat on the target, is it possible to replace the 0 with: a green: MAX or so?
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.

Last edited by Gearknight : 05/27/08 at 12:14 PM.
 
User is offline.
Reply With Quote
Old 05/27/08, 1:07 AM   #278 (permalink)
Eph
Grand Master Scribe
 
Eph's Avatar
 
Human Warlock
 
Kil'Jaeden
Originally Posted by Kuthumii View Post
I also have my target and ToT UF set to hide the power bar if they are not mana users. I dislike the way the name, which I have set to left edge middle iirc (displays middle of the frame left side), shows. If it is long it sometimes runs into the HP of a non mana user. Is there a way to make it so that the name is set to say 10-20 characters?
:Truncate(20, nil)
 
User is offline.
Reply With Quote
Old 05/27/08, 10:18 AM   #279 (permalink)
Don Flamenco
 
Dwarf Hunter
 
Kul Tiras
Originally Posted by Kuthumii View Post
I also have my target and ToT UF set to hide the power bar if they are not mana users. I dislike the way the name, which I have set to left edge middle iirc (displays middle of the frame left side), shows. If it is long it sometimes runs into the HP of a non mana user. Is there a way to make it so that the name is set to say 10-20 characters?
Originally Posted by Eph View Post
:Truncate(20, nil)
That's one way, but a better looking way is often to put a text on the right edge of the frame, and set its style to "hide." That cuts off the too-long name at however many characters fit, rather than a fixed number of characters.
 
User is offline.
Reply With Quote
Old 05/27/08, 12:11 PM   #280 (permalink)
Von Kaiser
 
Human Paladin
 
Zirkel des Cenarius (EU)
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":Green ! 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.
Thank you very very much. The 3rd option sounds incredible. I'm going to try that out.

If that works, I'm going to ban the Omen2 window from my screen, don't need it anymore (as a tank you're usually doing all you can anyhow, but for AoE Situations this will help a TON with switching fokus..) *g*
 
User is offline.
Reply With Quote
Old 05/28/08, 9:30 AM   #281 (permalink)
Piston Honda
 
Led ++'s Avatar
 
Tauren Druid
 
Vek'nilash (EU)
Originally Posted by Eph View Post
:Truncate(20, nil)
Why the , nil?

http://thepiratebootybay.com/ THE best Addon site out there!
 
User is offline.
Reply With Quote
Old 05/28/08, 11:09 AM   #282 (permalink)
Piston Honda
 
Dwarf Warrior
 
Blackrock (EU)
It basicly deletes the "..." e.g.

"Borona":Truncate(3) = Bor...
"Borona":Truncate(3, nil) = Bor
 
User is offline.
Reply With Quote
Old 05/28/08, 3:45 PM   #283 (permalink)
Glass Joe
 
Night Elf Druid
 
Darkspear (EU)
I'm just wondering how ya can make

[Status or (if IsFriend then
MissingHP:Hide(0):Short:Color('ff7f7f')
else
FractionalHP(known=true):Short or PercentHP:Percent
end)]

and

[IsMana & [Status or (if IsFriend then
MissingMP:Hide(0):Short:Cyan
else
FractionalMP(known=true):Short or PercentMP:Percent
end)]]

To show what percent mana or health they are at after they actually lose mana or health

Thanks for any help
 
User is offline.
Reply With Quote
Old 05/28/08, 10:08 PM   #284 (permalink)
Glass Joe
 
Night Elf Priest
 
Dragonmaw
I'm getting a syntax error on the crowd control tag. I simply cut and pasted it into a custom field for the target, and as soon as they get feared it errors out. Is anyone else having an issue?
 
User is offline.
Reply With Quote
Old 05/29/08, 8:32 AM   #285 (permalink)
Piston Honda
 
Led ++'s Avatar
 
Tauren Druid
 
Vek'nilash (EU)
Originally Posted by Borona View Post
It basicly deletes the "..." e.g.

"Borona":Truncate(3) = Bor...
"Borona":Truncate(3, nil) = Bor
Ah thanks for pointing out, didnt know that.

http://thepiratebootybay.com/ THE best Addon site out there!
 
User is offline.
Reply With Quote
Old 05/29/08, 10:34 AM   #286 (permalink)
King Hippo
 
Daboran's Avatar
 
Tauren Druid
 
Twisting Nether (EU)
Originally Posted by Dietrich View Post
I'm getting a syntax error on the crowd control tag. I simply cut and pasted it into a custom field for the target, and as soon as they get feared it errors out. Is anyone else having an issue?
It broke in a recent DgTags update - theres a syntax change no doubt, so it will require rewriting. I haven't had time to look at it myself yet so I just removed it.
 
User is offline.
Reply With Quote
Old 05/29/08, 6:21 PM   #287 (permalink)
Glass Joe
 
Roberto's Avatar
 
Troll Mage
 
Chromaggus (EU)
Originally Posted by IFed View Post
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
Tried to modify this so it shows my remaining duration of SnD on my rogue, but I keep getting syntax errors. Any help would be much appreciated.

If there are no stupid questions, then what kind of questions do stupid people ask? Do they get smart just in time to ask questions?
 
User is offline.
Reply With Quote
Old 05/29/08, 7:31 PM   #288 (permalink)
Piston Honda
 
Ajuga's Avatar
 
Draenei Hunter
 
Stormscale (EU)
Originally Posted by Roberto View Post
Tried to modify this so it shows my remaining duration of SnD on my rogue, but I keep getting syntax errors. Any help would be much appreciated.
Show us what you've got so far.
 
User is offline.
Reply With Quote
Old 05/29/08, 8:16 PM   #289 (permalink)
Glass Joe
 
Roberto's Avatar
 
Troll Mage
 
Chromaggus (EU)
So far I got this:

[(if HasAura("Slice and Dice, unit="player") and if AuraDuration("Slice and Dice", unit="player") >= 11 then
    Icon("Interface/Icons/Ability_Shockwave", size=20) AuraDuration("Slice and Dice"):Round:Green:Paren
elseif (AuraDuration("Slice and Dice", unit="player") < 11) and (AuraDuration("Slice and Dice", unit="player") >= 6) then
    Icon("Interface/Icons/Ability_Shockwave", size=20) AuraDuration("Slice and Dice"):Round:Color("ffff00"):Paren
elseif (AuraDuration("Slice and Dice", unit="player") < 6) and (AuraDuration("Slice and Dice", unit="player") >= 3) then
    Icon("Interface/Icons/Ability_Shockwave", size=20) AuraDuration("Slice and Dice"):Round:Color("ff8800"):Paren
elseif (AuraDuration("Slice and Dice", unit="player") < 3) and (AuraDuration("Slice and Dice", unit="player") > 0) then
    Icon("Interface/Icons/Ability_Shockwave", size=30) AuraDuration("Slice and Dice"):Round:Red:Paren
else
    "":Red
end)]
I am pretty sure that I have something wrong in the beggining of the dogtag, but can't figure out what exactly it is. Nevermind the shockwave icon, will change it once the tag is running.

Thanks in advance

If there are no stupid questions, then what kind of questions do stupid people ask? Do they get smart just in time to ask questions?
 
User is offline.
Reply With Quote
Old 05/30/08, 5:57 AM   #290 (permalink)
Piston Honda
 
Ele''s Avatar
 
Human Warlock
 
Kirin Tor (EU)
Originally Posted by Roberto View Post
[(if HasAura("Slice and Dice, unit="player") and if AuraDuration("Slice and Dice", unit="player") >= 11 then
Icon("Interface/Icons/Ability_Shockwave", size=20) AuraDuration("Slice and Dice"):Round:Green:Paren
elseif (AuraDuration("Slice and Dice", unit="player") < 11) and (AuraDuration("Slice and Dice", unit="player") >= 6) then
Icon("Interface/Icons/Ability_Shockwave", size=20) AuraDuration("Slice and Dice"):Round:Color("ffff00"):Paren
elseif (AuraDuration("Slice and Dice", unit="player") < 6) and (AuraDuration("Slice and Dice", unit="player") >= 3) then
Icon("Interface/Icons/Ability_Shockwave", size=20) AuraDuration("Slice and Dice"):Round:Color("ff8800"):Paren
elseif (AuraDuration("Slice and Dice", unit="player") < 3) and (AuraDuration("Slice and Dice", unit="player") > 0) then
Icon("Interface/Icons/Ability_Shockwave", size=30) AuraDuration("Slice and Dice"):Round:Red:Paren
else
"":Red
end)]
There is no "and if", just use a simple "and" like in the rest of your tag

Also, you really don't need to color an empty string

Last edited by Ele' : 05/30/08 at 5:58 AM. Reason: end!=and *slap himself*
 
User is offline.
Reply With Quote
Old 05/30/08, 7:35 AM   #291 (permalink)
Glass Joe
 
Night Elf Warrior
 
Blackrock (EU)
I'm trying to get a Threatdisplay vs the current tank, preferable also working greater than 100%.

[HasThreat ? PercentThreat:Percent] is capped at 100%, so I tired

[HasThreat ? [(Threat(unit="player") = MaxThreat(unit="player")) ? (Threat(unit="player") / Threat(unit="targettarget") * 100):Percent ! PercentThreat:Percent]]

If I'm the one with MaxThreat it uses my threat vs the enemies targets threat. I'm having problems though, I'm guessing they are caused by div. 0 when the target is stunned or something similar. Does anyone have a suggestion how I can otherwise take myselft out of the MaxThreat equasion? Then I could simply use Threat / MaxThreat.

Thanks in forward.
 
User is offline.
Reply With Quote
Old 05/30/08, 12:22 PM   #292 (permalink)
Glass Joe
 
Roberto's Avatar
 
Troll Mage
 
Chromaggus (EU)
Originally Posted by Ele' View Post
There is no "and if", just use a simple "and" like in the rest of your tag

Also, you really don't need to color an empty string
Agreed on the string

I changed it a little, but still have some issues with it (basically I am getting a syntax error and the tag isn't working at all).

[Outline][if HasAura("Slice and Dice, unit="player") and AuraDuration("Slice and Dice", unit="player") >= 8 then
    AuraDuration("Slice and Dice"):FormatDuration("e"):Green
elseif (AuraDuration("Slice and Dice", unit="player") < 8) and (AuraDuration("Slice and Dice", unit="player") >= 3) then
    AuraDuration("Slice and Dice"):FormatDuration("e"):Color("ff8800")
elseif (AuraDuration("Slice and Dice", unit="player") < 3) and (AuraDuration("Slice and Dice", unit="player") > 0) then
    AuraDuration("Slice and Dice"):FormatDuration("e"):Red
else
    ""
end]
Any help would be great, it doesnt seem that I can make it work on my own

EDIT:

Nevermind, finally found it.

[[if (unit = "player") 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
    else
        ""
    end)
end]]

Last edited by Roberto : 05/30/08 at 1:08 PM.

If there are no stupid questions, then what kind of questions do stupid people ask? Do they get smart just in time to ask questions?
 
User is offline.
Reply With Quote
Old 05/31/08, 8:18 AM   #293 (permalink)
They call me Queen
 
Disiesel's Avatar
 
Blood Elf Warlock
 
Moonglade (EU)
I've been trying to make a DogTag that shows me that I have Mortal Strike, Aimed Shot or Wound Poison on me.
I've tried 2 different ones now but both without any result. They will show the "-50% Heal" however I can't get the duration working.

Anyone able to see what I'm doing wrong?

1:
[Outline][(if HasAura("Mortal Strike") then "-50% Heal":Red and AuraDuration("Mortal Strike"):FormatDuration("s"):Red
else if HasAura("Aimed Shot") then "-50% Heal":Red and AuraDuration("Aimed Shot"):FormatDuration("s"):Red
else if HasAura("Wound Poision") then "-50% Heal":Red and AuraDuration("Wound Poison"):FormatDuration("s"):Red
end)]
2:
[Outline][(if (HasAura("Mortal Strike") or HasAura("Aimed Shot") or HasAura("Wound Poison")) then
    "-50% Heal":Red and (AuraDuration("Wound Poison"):FormatDuration("s"):Red or AuraDuration("Mortal Strike"):FormatDuration("s"):Red or AuraDuration("Wound Poison"):FormatDuration("s"):Red)
end)]
 
User is offline.
Reply With Quote
Old 05/31/08, 12:58 PM   #294 (permalink)
Don Flamenco
 
Dwarf Hunter
 
Kul Tiras
Originally Posted by Disiesel View Post
I've been trying to make a DogTag that shows me that I have Mortal Strike, Aimed Shot or Wound Poison on me.
I've tried 2 different ones now but both without any result. They will show the "-50% Heal" however I can't get the duration working.

Anyone able to see what I'm doing wrong?
That was a tough one. Try this:

[(HasAura("Aimed Shot") | HasAura("Mortal Strike") | HasAura("Wound Poison")) ? "%s %.1f %s":Format("-50% heal:", Max((AuraDuration("Aimed Shot") | 0), (AuraDuration("Mortal Strike") | 0), (AuraDuration("Wound Poison") | 0)), "s"):Red]
 
User is offline.
Reply With Quote
Old 06/01/08, 2:05 AM   #295 (permalink)
Piston Honda
 
Imbar's Avatar
 
Blood Elf Paladin
 
Bonechewer
Anyone know how to do a tag that will show
Spell being cast (Target being cast on)
with the exception that "Failed" and instant cast spells will not show up, but "Interrupted" will?

I read Banhammer posts when I'm having a bad day.
 
User is online.
Reply With Quote
Old 06/01/08, 8:13 AM   #296 (permalink)
They call me Queen
 
Disiesel's Avatar
 
Blood Elf Warlock
 
Moonglade (EU)
Originally Posted by Gearknight View Post
That was a tough one. Try this:

[(HasAura("Aimed Shot") | HasAura("Mortal Strike") | HasAura("Wound Poison")) ? "%s %.1f %s":Format("-50% heal:", Max((AuraDuration("Aimed Shot") | 0), (AuraDuration("Mortal Strike") | 0), (AuraDuration("Wound Poison") | 0)), "s"):Red]
No success
The message does get updated to "-50% Heal 0.0s" thou, but still doesn't show the actual duration.
I've tested it with both Mortal Strike and Wound Poison.
 
User is offline.
Reply With Quote
Old 06/01/08, 12:16 PM   #297 (permalink)
Don Flamenco
 
Dwarf Hunter
 
Kul Tiras
Originally Posted by Disiesel View Post
No success
The message does get updated to "-50% Heal 0.0s" thou, but still doesn't show the actual duration.
I've tested it with both Mortal Strike and Wound Poison.
Are you using this tag to tell the duration of those debuffs on yourself, or on some other target? If the latter, then debuff duration information is only available for debuffs you've cast yourself (which, as a warlock, is none of those).