 |
05/29/08, 9:34 AM
|
#286
|
|
King Hippo
Tauren Druid
Twisting Nether (EU)
|
Originally Posted by Dietrich
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.
|
|
|
|
|
05/29/08, 5:21 PM
|
#287
|
|
Von Kaiser
Blood Elf Rogue
Kazzak (EU)
|

Originally Posted by IFed
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.
|
|
|
|
05/29/08, 6:31 PM
|
#288
|
|
Piston Honda
Undead Mage
Jaedenar (EU)
|
Originally Posted by Roberto
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.
|
|
|
|
|
05/29/08, 7:16 PM
|
#289
|
|
Von Kaiser
Blood Elf Rogue
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
|
|
|
|
05/30/08, 4:57 AM
|
#290
|
|
Piston Honda
Human Warlock
Kirin Tor (EU)
|
Originally Posted by Roberto
[(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 4:58 AM.
Reason: end!=and *slap himself*
|
|
|
|
|
05/30/08, 6:35 AM
|
#291
|
|
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.
|
|
|
|
|
05/30/08, 11:22 AM
|
#292
|
|
Von Kaiser
Blood Elf Rogue
Kazzak (EU)
|
Originally Posted by Ele'
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 12:08 PM.
|
|
|
|
05/31/08, 7:18 AM
|
#293
|
|
Honorary Brit
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)]
|
|
|
|
|
05/31/08, 11:58 AM
|
#294
|
|
Piston Honda
|
Originally Posted by Disiesel
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]
|
|
|
|
|
06/01/08, 1:05 AM
|
#295
|
|
Piston Honda
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.
|
|
|
|
06/01/08, 7:13 AM
|
#296
|
|
Honorary Brit
Human Warlock
Moonglade (EU)
|
Originally Posted by Gearknight
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.
|
|
|
|
|
06/01/08, 11:16 AM
|
#297
|
|
Piston Honda
|
Originally Posted by Disiesel
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).
|
|
|
|
|
06/01/08, 11:29 AM
|
#298
|
|
Honorary Brit
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
|
|
|
|
|
06/01/08, 11:38 AM
|
#299
|
|
Piston Honda
|
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.
|
|
|
|
|
06/01/08, 12:08 PM
|
#300
|
|
Von Kaiser
|
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.
|
|
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| [DogTags] - Share yours! |
Fulnir |
User Interface and AddOns |
164 |
03/30/08 1:30 AM |
|