Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » User Interface and AddOns

Reply
 
LinkBack Thread Tools
Old 05/26/08, 11:54 AM   #276
Kuthumii
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?

Offline
Reply With Quote
Old 05/26/08, 12:42 PM   #277
Gearknight
Piston Honda
 
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.

Offline
Reply With Quote
Old 05/27/08, 1:07 AM   #278
Eph
Using computers to make demons kill dragons
 
Eph's Avatar
 
Worgen 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)

United States Online
Reply With Quote
Old 05/27/08, 10:18 AM   #279
Gearknight
Piston Honda
 
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.

Offline
Reply With Quote
Old 05/27/08, 12:11 PM   #280
Sarkan-ZdC
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*

Offline
Reply With Quote
Old 05/28/08, 9:30 AM   #281
Led ++
Piston Honda
 
Led ++'s Avatar
 
Undead Death Knight
 
Draenor (EU)
Originally Posted by Eph View Post
:Truncate(20, nil)
Why the , nil?

http://thepiratebootybay.com/ THE best Addon site out there!

Offline
Reply With Quote
Old 05/28/08, 11:09 AM   #282
Borona
Von Kaiser
 
Dwarf Warrior
 
Blackrock (EU)
It basicly deletes the "..." e.g.

"Borona":Truncate(3) = Bor...
"Borona":Truncate(3, nil) = Bor

Offline
Reply With Quote
Old 05/28/08, 3:45 PM   #283
Alleyne
Glass Joe
 
Draenei Shaman
 
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

Offline
Reply With Quote
Old 05/28/08, 10:08 PM   #284
Dietrich
Glass Joe
 
Dwarf Death Knight
 
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?

Offline
Reply With Quote
Old 05/29/08, 8:32 AM   #285
Led ++
Piston Honda
 
Led ++'s Avatar
 
Undead Death Knight
 
Draenor (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!

Offline
Reply With Quote
Old 05/29/08, 10:34 AM   #286
Daboran
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.

Offline
Reply With Quote
Old 05/29/08, 6:21 PM   #287
Roberto
Von Kaiser
 
Roberto's Avatar
 
Blood Elf Rogue
 
<OPP>
Kazzak (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.

http://sig.gamerdna.com/quizzes/INFL.../roberto83.png

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?

Offline
Reply With Quote
Old 05/29/08, 7:31 PM   #288
Ajuga
Piston Honda
 
Ajuga's Avatar
 
Undead Mage
 
Jaedenar (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.

Offline
Reply With Quote
Old 05/29/08, 8:16 PM   #289
Roberto
Von Kaiser
 
Roberto's Avatar
 
Blood Elf Rogue
 
<OPP>
Kazzak (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

http://sig.gamerdna.com/quizzes/INFL.../roberto83.png

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?

Offline
Reply With Quote
Old 05/30/08, 5:57 AM   #290
Ele'
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*

Offline
Reply With Quote
Old 05/30/08, 7:35 AM   #291
Slumgon
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.

Offline
Reply With Quote
Old 05/30/08, 12:22 PM   #292
Roberto
Von Kaiser
 
Roberto's Avatar
 
Blood Elf Rogue
 
<OPP>
Kazzak (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.

http://sig.gamerdna.com/quizzes/INFL.../roberto83.png

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?

Offline
Reply With Quote
Old 05/31/08, 8:18 AM   #293
 Disiesel
They call me Queen
 
Disiesel's Avatar
 
Human 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)]

Netherlands Offline
Reply With Quote
Old 05/31/08, 12:58 PM   #294
Gearknight
Piston Honda
 
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]

Offline
Reply With Quote
Old 06/01/08, 2:05 AM   #295
Imbar
Piston Honda
 
Imbar's Avatar
 
Blood Elf Paladin
 
Sentinels
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.

Offline
Reply With Quote
Old 06/01/08, 8:13 AM   #296
 Disiesel
They call me Queen
 
Disiesel's Avatar
 
Human 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.

Netherlands Offline
Reply With Quote
Old 06/01/08, 12:16 PM   #297
Gearknight
Piston Honda
 
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).

Offline
Reply With Quote
Old 06/01/08, 12:29 PM   #298
 Disiesel
They call me Queen
 
Disiesel's Avatar
 
Human Warlock
 
Moonglade (EU)
I use it to show it on myself. I'll try to test it a bit more, but I tried both in the DogTag window and on my unitframe.
Hmm it seems when I change it to Fel Armor it will pick up the duration, however every other buff given to me by someone else doesn't. I tried Divine Spirit, Blessing of Kings and Touch of Shadow

Netherlands Offline
Reply With Quote
Old 06/01/08, 12:38 PM   #299
Gearknight
Piston Honda
 
Dwarf Hunter
 
Kul Tiras
It's possible then that the auraduration tag is only available for things you cast. I tested this tag by aimed shotting stuff, and also by changing it to my trinket buffs to see it on myself.

As an alternative, I can suggest that you use Elk Buff Bars, and set up a debuff bar for yourself with only those debuffs whitelisted. You can customize the appearance greatly, in fact probably hiding the bar and icon, only showing the name and duration, to match what the dogtag would have looked like.

Offline
Reply With Quote
Old 06/01/08, 1:08 PM   #300
Grital
Von Kaiser
 
Tauren Shaman
 
Uldum
Someone had a good idea in the thread earlier, but it throws a syntax error and I didn't see anyone ever fix it. His initial code was

[if not PVP(unit="player") then
    if((HasAura("Alchemist's Stone",unit="player") & MissingMP >= 3080) then "Mana Pot!" end)
    if((not(HasAura("Alchemist's Stone",unit="player")) & MissingMP >= 2200) then "Mana Pot!" end)
end]
I can't get it to work either. Anyone have any ideas? It'd be nice to only use mana pots when I can get the full (potential) effect.

Also I can modify any finished code in this to work with Mana Tide to, put it on my group frames etc., that'd be nice.

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