Elitist Jerks
Register
Blogs
Urban Rivals
Forums
New Posts


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

gamerDNA Login

Welcome to Elitist Jerks
We're testing some new features on the site regarding OpenID registration and coordination with gamerDNA. If you experience any issues with registering an account, please take the time to fill out a report and send it to this e-mail address. We would appreciate any assistance you could provide in making sure everything is functioning as intended. Thanks!

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.

Reply
 
LinkBack (138) Thread Tools
Old 06/01/08, 6:18 PM   1 links from elsewhere to this Post. Click to view. #301
Gearknight
Don Flamenco
 
Dwarf Hunter
 
Kul Tiras
Originally Posted by Grital View Post
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.
This works:

[((not PVP) & (( (not HasAura("Alchemist's Stone")) & MissingMP >= 2200 ) | (MissingMP >= 3080) ) ) ? "Mana Pot!" ]

here's mana tide tag:

[((not PVP) & (PercentMP < 76)) ? "Mana Tide!"]
 
User is offline.
Reply With Quote
Old 06/01/08, 8:11 PM   #302
Kiyathel
Glass Joe
 
Human Mage
 
Uldaman
For some reason, I can't get this tag to show the mob's difficulty color. What I originally had was this:

[(if Classification = "Boss" and IsFriend then
    White
elseif Classification = "Boss" and ~IsFriend then
    Red
end) (if Classification and Classification ~= "Boss" then
    Classification " "
elseif Classification = "Boss" then
    Classification
end) (if IsFriend and Classification ~= "Boss" then
    Level:White
elseif Classification ~= "Boss" then
    Level:DifficultyColor
end) (IsPlayer ? " " SmartRace) " " DruidForm:Paren]
Everything worked exactly as I wanted it to except that enemy mobs would have their levels in white, not their difficulty color. I switched it slightly to this:

[(if Classification = "Boss" and IsFriend then
    White
elseif Classification = "Boss" and ~IsFriend then
    Red
end) (if Classification and Classification ~= "Boss" then
    Classification " "
elseif Classification = "Boss" then
    Classification
end) (if IsFriend and Classification ~= "Boss" then
    Level:White
elseif Classification = "Boss" then
    ""
else
    Level:DifficultyColor
end) (IsPlayer ? " " SmartRace) " " DruidForm:Paren]
Still no difficulty-colored levels. Nothing else changed, as far as I can tell. Any thoughts?
 
User is offline.
Reply With Quote
Old 06/02/08, 11:54 AM   #303
Darhuuk
Glass Joe
 
Tauren Warrior
 
Bloodfeather (EU)
Has anyone gotten the code below to work? I was thrilled when I found it, because it's exactly what I need, but I can't get it to work. I can't seem to find any errors in it (though I don't know any LUA, so if there's syntax errors in it, I probably wouldn't find them), yet the code won't load. I added/edited the files in <WoWDir>\Interface\AddOns\PitBull\libs\LibDogTag-Unit-3.0 (& \Categories), which should be the correct path as far as I can tell.

Any help is welcome, would be awesome if I got this to work.

Originally Posted by Hythloday View Post
After reading about it in another thread, this is code to be able to interrogate the number of classes in a party/raid in a DogTag. It can be used to put all the buffs that you *lack* on the player's unit frame if you use Pitbull.

#1: Create a file called Class.lua in the LibDogTag-Unit-3.0/Categories folder with the contents:
local MAJOR_VERSION = "LibDogTag-Unit-3.0"
local MINOR_VERSION = tonumber(("$Revision: 66768 $"):match("%d+")) or 0

if MINOR_VERSION > _G.DogTag_Unit_MINOR_VERSION then
	_G.DogTag_Unit_MINOR_VERSION = MINOR_VERSION
end

DogTag_Unit_funcs[#DogTag_Unit_funcs+1] = function(DogTag_Unit, DogTag)

local L = DogTag_Unit.L

DogTag:AddEventHandler("Unit", "PARTY_MEMBERS_CHANGED", function(event, ...)
	DogTag:FireEvent("PartyChanged")
end)

DogTag:AddTag("Unit", "PartyClassCount", {
	code = function(classname)
        classCount = 0
        partySize = GetNumPartyMembers()
        if(partySize > 0) then
            for n=1,partySize do
                loc, unitClassName = UnitClass("party" .. n)
                if unitClassName == string.upper(classname) then
                    classCount = classCount + 1
                end
            end
            loc, unitClassName = UnitClass("player")
            if unitClassName == string.upper(classname) then
                classCount = classCount + 1
            end
        end
        return classCount
    end,

	arg = {
		'classname', 'string', '@req', -- name, types, default
	},
	ret = 'number', -- return value
    events = "PARTY_MEMBERS_CHANGED",
	doc = L["Returns the number of characters of this class in the party"], -- the description
	example = ('[PartyClassCount("priest")] => %q; [PartyClassCount("deathknight")] => "0"'):format(L["1"]),
	category = L["Classes"]
})


DogTag:AddTag("Unit", "RaidClassCount", {
	code = function(classname)
        classCount = 0
        raidSize = GetNumRaidMembers()
        if(raidSize > 0) then
            for n=1,raidSize do
                loc, unitClassName = UnitClass("raid" .. n)
                if unitClassName == string.upper(classname) then
                    classCount = classCount + 1
                end
            end
            loc, unitClassName = UnitClass("player")
            if unitClassName == string.upper(classname) then
                classCount = classCount + 1
            end
        end
        return classCount
    end,

	arg = {
		'classname', 'string', '@req',
	},
	ret = 'number',
    events = "PARTY_MEMBERS_CHANGED",
	doc = L["Returns the number of characters of this class in the raid"],
	example = ('[RaidClassCount("priest")] => %q; [RaidHasClass("deathknight")] => "0"'):format(L["3"]),
	category = L["Classes"]
})

DogTag:AddTag("Unit", "PartyHasClass", {
	alias = [[PartyClassCount(classname=classname) > 0]],
	arg = {
		'classname', 'string', '@req'
	},
	doc = L["Returns true if there is at least one player of this class in the party"],
	example = '[PartyHasClass("priest")] => "true"',
	category = L["Classes"]
})

DogTag:AddTag("Unit", "RaidHasClass", {
	alias = [[RaidClassCount(classname=classname) > 0]],
	arg = {
		'classname', 'string', '@req'
	},
	doc = L["Returns true if there is at least one player of this class in the raid"],
	example = '[RaidHasClass("priest")] => "true"',
	category = L["Classes"]
})

end
#2 Edit LibDogTag-Unit-3.0/lib.xml to include this file.

#3 Change your name dogtag to:
[Name] [(PartyHasClass("mage") or RaidHasClass("mage")) and not (HasAura("Arcane Brilliance") or HasAura("Arcane Intellect")) and "AB":Red]
This will add the text "AB" in red after your name if there's a mage who *should* be buffing you, but isn't. Works for Pitbull at least, and should work for Cowtip (but I haven't tested it).
 
User is offline.
Reply With Quote
Old 06/02/08, 12:28 PM   #304
dinesh
Piston Honda
 
Gnome Rogue
 
Dalaran
I have made those changes, and they work for me. I don't know what exactly to tell you - I followed the instructions as written. Do you get a "tag not found" error?
 
User is offline.
Reply With Quote
Old 06/02/08, 12:54 PM   #305
Darhuuk
Glass Joe
 
Tauren Warrior
 
Bloodfeather (EU)
Originally Posted by dinesh View Post
I have made those changes, and they work for me. I don't know what exactly to tell you - I followed the instructions as written. Do you get a "tag not found" error?
Yes, also, the help for "Classes" does not show up in the DogTags help. I restarted WoW 3 times and quadruple checked the libs.xml, but can't seem to find what I did wrong. I guess I'll keep trying a few more times, must be something really stupid that I'm overlooking.
 
User is offline.
Reply With Quote
Old 06/02/08, 1:05 PM   #306
Andrast
DFTBA!
 
Andrast's Avatar
 
Draenei Shaman
 
Thaurissan
Originally Posted by Darhuuk View Post
Yes, also, the help for "Classes" does not show up in the DogTags help. I restarted WoW 3 times and quadruple checked the libs.xml, but can't seem to find what I did wrong. I guess I'll keep trying a few more times, must be something really stupid that I'm overlooking.
Are you sure that on game startup you are loading the modified Dogtag library? Make sure there aren't any embedded dogtag libraries floating around.

Basically if you go into your addons folder and check inside each addon alphabetically you may find one that has the dogtag library embedded which is loaded before LibDogTag. I will admit that I might be wrong about this but check all the addons from A-L and you may find your culprit.
 
User is offline.
Reply With Quote
Old 06/02/08, 2:18 PM   #307
Darhuuk
Glass Joe
 
Tauren Warrior
 
Bloodfeather (EU)
Originally Posted by Andrast View Post
Are you sure that on game startup you are loading the modified Dogtag library? Make sure there aren't any embedded dogtag libraries floating around.

Basically if you go into your addons folder and check inside each addon alphabetically you may find one that has the dogtag library embedded which is loaded before LibDogTag. I will admit that I might be wrong about this but check all the addons from A-L and you may find your culprit.
Ah, ok, this is the problem then. I edited the embeded version that is supplied with Pitbull. I'll just download a standalone DogTags lib. One question though, do I just delete the embeded versions or do they just not load if an "extern" version is available?

* Edit: LibDogTag-3.0 does not contain LibDotTag-Unit-3.0, which I can find nowhere as a stand alone version.
** Edit 2: Ok, found it somewhere, odd, doesn't seem to be on WoWAce.

*** Edit 3: Finally got it working by editing the embeds.xml in CowTip & Pitbull and placing LibDogTag-3.0 & LibDogTag-Unit-3.0 in the Addons root folder.

Thanks for the tip!

Last edited by Darhuuk : 06/02/08 at 2:56 PM.
 
User is offline.
Reply With Quote
Old 06/02/08, 2:48 PM   #308
dinesh
Piston Honda
 
Gnome Rogue
 
Dalaran
Well, you can manually delete the embed versions, but if you use WAU to update it will just pull down a new embedded version next time you get an update for Pitbull I believe.

What you really should do in this case is go through and unembed all your addons - changing WAU options is the easiest way to do this. Backup first, just in case.
 
User is offline.
Reply With Quote
Old 06/03/08, 12:58 AM   #309
Andrast
DFTBA!
 
Andrast's Avatar
 
Draenei Shaman
 
Thaurissan
Originally Posted by Darhuuk View Post
Ah, ok, this is the problem then. I edited the embeded version that is supplied with Pitbull. I'll just download a standalone DogTags lib. One question though, do I just delete the embeded versions or do they just not load if an "extern" version is available?

* Edit: LibDogTag-3.0 does not contain LibDotTag-Unit-3.0, which I can find nowhere as a stand alone version.
** Edit 2: Ok, found it somewhere, odd, doesn't seem to be on WoWAce.

*** Edit 3: Finally got it working by editing the embeds.xml in CowTip & Pitbull and placing LibDogTag-3.0 & LibDogTag-Unit-3.0 in the Addons root folder.

Thanks for the tip!
Since cowtip and pitbull both contain the dogtag library the one that is "alphabetically" first (in this case cowtip) gets loaded. See Ace2 Memory Concerns - WowAce Wiki for some more details on embedding libraries if you're interested.

The best way to do this is to wowaceupdater and download your mods without externals. Then you can edit the dogtag library manually and place it on "ignore" so that your changes won't get overwritten every time the dogtag gets updated. Another advantage of un-embedding is that your load times will be slightly improved.
 
User is offline.
Reply With Quote
Old 06/05/08, 9:46 AM   #310
Caladnei
Glass Joe
 
Night Elf Rogue
 
Kil'Jaeden (EU)
Is there a way to produce a clock (something like 15:44) via DogTags? I can't look into the ingame help right now for I'm at work, but I don't recall ever seeing code for this...
 
User is offline.
Reply With Quote
Old 06/07/08, 3:06 AM   #311
bimmian
Von Kaiser
 
Tauren Shaman
 
Darkspear
Trying to make a simple range check for my hunter. If I am in range, it shows a "+", if I am out of range, it shows a "-". So far I have this:

[if Range <= 35 then
    '+'
else
    '-'
end]
It is acting weird though.

From 0-8 yards it works properly, showing a +.
From 9-28 yards it shows a -.
From 29-35 it shows a +.
From 35+ it shows a -.

What is it about the 9-28 yard range would cause it to show a -?
 
User is offline.
Reply With Quote
Old 06/08/08, 5:39 PM   #312
Houseplant
Oxgoose
 
Houseplant's Avatar
 
Undead Rogue
 
Quel'dorei
I am trying to figure out a way to have CowTip show what zone the target is in, but I see no way to do this. Can anyone help?

 
User is offline.
Reply With Quote
Old 06/09/08, 11:16 AM   #313
Gearknight
Don Flamenco
 
Dwarf Hunter
 
Kul Tiras
Originally Posted by Houseplant View Post
I am trying to figure out a way to have CowTip show what zone the target is in, but I see no way to do this. Can anyone help?
[Zone] works for me.
 
User is offline.
Reply With Quote
Old 06/09/08, 1:19 PM   #314
Fulnir
Von Kaiser
 
Fulnir's Avatar
 
Blood Elf Priest
 
Mazrigos (EU)
Hello,
A friend of mine made me this tag for my Pitbull target frame a couple of months ago, but I suspect this to be part of my screens freezing for an instant when people change groups/Die/Disconnect, etc.
Is there any way I can make it less complex while still saving the functionality? I love the mouseover thing as well. I'm thinking maybe using the "HPColor" tag in some way, but I don't really know enough about dogtags to make it :/

Here's the tag:
[(MissingHP > 0) & ([(HP >= MaxHP * 0.8) & (IsPlayer ? (-MissingHP):Hide(0):Color("00BB00") ! (HP:Short:Color("00BB00") "/":Color("FFFFCC") MaxHP:Short:Color("00BB00")))] [((HP < MaxHP * 0.8) >= MaxHP * 0.5) & (IsPlayer ? (-MissingHP):Color("FFFF66") ! (HP:Short:Color("FFFF66") "/":Color("FFFFCC") MaxHP:Short:Color("FFFF66")))] [(HP < MaxHP * 0.5) & (IsPlayer ? (-MissingHP):Color("ff7f7f") ! (HP:Short:Color("ff7f7f") "/":Color("FFFFCC") MaxHP:Short:Color("ff7f7f")))] " | ":Color("FFFFCC"))] [(IsPlayer ? (IsMouseOver & (HP:Short "/" MaxHP:Short):Color("FFFFCC"))) (IsPlayer ? (~IsMouseOver & PercentHP:Percent:Color("FFFFCC")) ! PercentHP:Percent:Color("FFFFCC"))]
Thank you
 
User is offline.
Reply With Quote
Old 06/09/08, 1:40 PM   #315
Moloko
Glass Joe
 
Draenei Shaman
 
Kel'Thuzad
I searched the thread, but couldn't find any resolution to the [TalentTree] tag problem. Is it possible at all to get people's talent specs reliably now? I can't seem to get it to work with:

[Level:DifficultyColor] [Upper(TalentTree(unit="target"):ClassColor)] [Upper(Classification (if (IsPlayer or (IsEnemy and not IsPet)) then
    Class
end):ClassColor)] [Upper(DruidForm:Paren)] [Upper(SmartRace)]
It works 100% when I target myself, and sometimes when I target someone else, inspect their talents, de-target them, and then re-target them.

edit: Forgot to mention I am using this in my Pitbull Target Frame, and I have everything up to date WITHOUT externals using WAU.

Last edited by Moloko : 06/09/08 at 3:15 PM.
 
User is offline.
Reply With Quote
Old 06/10/08, 7:41 PM   #316
Houseplant
Oxgoose
 
Houseplant's Avatar
 
Undead Rogue
 
Quel'dorei
In CowTip I have a DogTag that shows the guild, but when someone is unguilded it leaves an open space between two other lines.

[(Guild = 'player':Guild ? Cyan) Guild:Angle]
That is the DogTag, but I don't see how that can have anything to do with there being a space when someone is unguilded. Any help?

 
User is offline.
Reply With Quote
Old 06/11/08, 8:30 AM   #317
Sarkan-ZdC
Von Kaiser
 
Human Paladin
 
Zirkel des Cenarius (EU)
Again a request for help by me.

I plan to use Statblocks which has a Statblocks_DogTags thing.

Now what would interesst me as a tank is: Am I uncrushable?

There is this macro:

/script DEFAULT_CHAT_FRAME:AddMessage("Need 102.4 combined avoidance. Currently at:",0.8,0.8,1)
/script DEFAULT_CHAT_FRAME:AddMessage(GetDodgeChance()+GetBlockChance()+GetParryCha
nce()+5+(GetCombatRating(CR_DEFENSE_SKILL)*150/355 + 20)*0.04,1,0.5,0)

Is it possible to create a dog tag for this? Or no wai?
 
User is offline.
Reply With Quote
Old 06/11/08, 4:29 PM   #318
Nataliah
Von Kaiser
 
Nataliah's Avatar
 
Night Elf Hunter
 
Terenas
Using Statblocks_DogTags, I have code that looks like

[FractionalHP(unit='player')]
[if PercentHP(unit='pet')<55 then "MEND PET":green end]
[FractionalHP(unit='pet')]

The middle line displays the text MEND PET when my pet's health is below 55%. When my pet's health is above 55%, the text isn't displayed, but there is a blank line for where the text should be. How can I modify my code to not have that blank line appear? I realize I can swap the second and third lines and simply not have to worry about the blank line, but there are other things I want to add and this little problem will still be there.

Last edited by Nataliah : 06/11/08 at 5:24 PM.
 
User is offline.
Reply With Quote
Old 06/12/08, 12:44 AM   #319
Winco
Von Kaiser
 
Winco's Avatar
 
Orc Death Knight
 
Stonemaul
Originally Posted by Moloko View Post
I searched the thread, but couldn't find any resolution to the [TalentTree] tag problem. Is it possible at all to get people's talent specs reliably now? I can't seem to get it to work with:

[Level:DifficultyColor] [Upper(TalentTree(unit="target"):ClassColor)] [Upper(Classification (if (IsPlayer or (IsEnemy and not IsPet)) then
    Class
end):ClassColor)] [Upper(DruidForm:Paren)] [Upper(SmartRace)]
It works 100% when I target myself, and sometimes when I target someone else, inspect their talents, de-target them, and then re-target them.

edit: Forgot to mention I am using this in my Pitbull Target Frame, and I have everything up to date WITHOUT externals using WAU.
It doesn't work anymore.

If I recall correctly, only on unpvp flagged people, will it show up. Its really not worth using anymore.
 
User is offline.
Reply With Quote
Old 06/19/08, 11:36 AM   #320
tyeni
Glass Joe
 
Draenei Shaman
 
Fenris
Trying out my new Shammy Shield Timers on pitbull. Thanks to Lorienne for the origin of the code.

Focus Earth Shield



[Outline][(if AuraDuration("Earth Shield") then
    AuraDuration("Earth Shield"):FormatDuration("f"):Green
end) "    " (if NumAura("Earth Shield") = 6 then
    "ES6":Green
elseif NumAura("Earth Shield") = 5 then
    "ES5":Green
elseif NumAura("Earth Shield") = 4 then
    "ES4":Yellow
elseif NumAura("Earth Shield") = 3 then
    "ES3":Yellow
elseif NumAura("Earth Shield") = 2 then
    "ES2":Red
elseif NumAura("Earth Shield") = 1 then
    "ES1":Red
elseif NumAura("Earth Shield") = 0 then
    "ES Gone":Gray
end)]

Player Earth Shield



[Outline][(if AuraDuration("Earth Shield", unit="player") then
    AuraDuration("Earth Shield"):FormatDuration("f"):Green
end)]
 [if NumAura("Earth Shield") = 6 then
    "ES6":Green
elseif NumAura("Earth Shield") = 5 then
    "ES5":Green
elseif NumAura("Earth Shield") = 4 then
    "ES4":Yellow
elseif NumAura("Earth Shield") = 3 then
    ".ES3":Yellow
elseif NumAura("Earth Shield") = 2 then
    "ES2":Red
elseif NumAura("Earth Shield") = 1 then
    "ES1":Red
elseif NumAura("Earth Shield") = 0 then
    "ES Gone":Gray
end]
Water Shield



[Outline][(if AuraDuration("Water Shield", unit="player") then
    AuraDuration("Water Shield"):FormatDuration("f"):Green
end)]
 [if NumAura("Water Shield") = 3 then
    "WS 3":Fuchsia
elseif NumAura("Water Shield") = 2 then
    "WS 2":Yellow
elseif NumAura("Water Shield") = 1 then
    "WS 1":White
elseif NumAura("Water Shield") = 0 then
    "WS Gone":Gray
end]

Lightning Shield



[Outline][(if AuraDuration("Lightning Shield", unit="player") then
    AuraDuration("Lightning Shield"):FormatDuration("f"):Green
end)]
[(if NumAura("Lightning Shield") = 3 then
    "LS 3":Blue
elseif NumAura("Lightning Shield") = 2 then
    "LS 2":Cyan
elseif NumAura("Lightning Shield") = 1 then
    "LS 1":White
elseif NumAura("Lightning Shield") = 0 then
    "LS Gone":Gray
end)]
No Shields on


Last edited by tyeni : 06/19/08 at 11:50 AM.
 
User is offline.
Reply With Quote
Old 06/20/08, 5:04 AM   #321
Led ++
Piston Honda
 
Led ++'s Avatar
 
Blood Elf Paladin
 
Draenor (EU)
Hi there, currently my party frames look like:


As you can see when someone has aggro the frame colours red. Problem is (And I noticed thanks to Saeto's highlight) that I cant see what the class is that has gotten aggro.

So I would like to know if there's a dogtag to show who has aggro.

http://thepiratebootybay.com/ THE best Addon site out there!
 
User is offline.
Reply With Quote
Old 06/20/08, 8:08 AM   #322
Korvboll
Glass Joe
 
Blood Elf Paladin
 
Shattered Hand (EU)
Originally Posted by tyeni View Post
Trying out my new Shammy Shield Timers on pitbull. Thanks to Lorienne for the origin of the code.
Looks really nice! What could make it better though (imo), is that you make a dot for each charge, instead of a written number. I.e. "¤¤¤¤¤¤" instead of "ES6".
However it might look like crap, I don't know



Originally Posted by Led ++ View Post
As you can see when someone has aggro the frame colours red. Problem is (And I noticed thanks to Saeto's highlight) that I cant see what the class is that has gotten aggro.
I'm not sure there is any dogtag for just having aggro, but you could use the threat dogtags I guess.

MissingThreat(unit="player") 
Return the missing threat that you have against enemy unit or that friendly unit has against your target, if ThreatLib is available 
[MissingThreat] => "30"
So something like:

[If MissingThreat then SmartClass:ClassColor else Hide(Hunter, Mage, Warlock, Druid, Paladin, Priest, Warrior, Rogue, Shaman)]
[end]
I haven't tested it, but what it's mean't to do is show the classname in classcolor (wherever you choose to have it) IF you don't have enough threat toward that individual, else it should be completly blank. Though I'm quite unsure if you can use MissingThreat in this way, so it's possible that it won't work at all. If it doesn't work, try the other threat dogtags (can be found at LibDogTag-3.0 - WowAce Wiki)

Try it out



Edit: Reading the threat dogtags again, I belive using the "PercentThreat" may leave better results than "MissingThreat". (Still not tested though)

[If PercentThreat > 110 then SmartClass:ClassColor else Hide(Hunter, Mage, Warlock, Druid, Paladin, Priest, Warrior, Rogue, Shaman)
[end]

Last edited by Korvboll : 06/20/08 at 8:34 AM.
 
User is offline.
Reply With Quote
Old 06/21/08, 5:47 PM   #323
Teez
Piston Honda
 
Draenei Shaman
 
Kel'Thuzad
Since Threat was broken with Aloft when they changed over from Threat-1.0 to Threat-2.0, which resulted in the discontinuation of the Threatbar, is there any way of making a DogTag similar to the following work?
[HasThreat ? (IsUnit('player', Target) ? (MissingThreat = 0 ? "MAX":Green ! MissingThreat:Yellow) ! (MissingThreat = 0 ? "MAX" ! MissingThreat):Red)]
In its current form it's giving me several invalid tag errors, which I suspect is due to the fact that hovering healthbars (the default Blizzard ones) don't return UnitID codes as far as I recall - is there any workaround to this or am I on my own here until somebody decides to add Threatbar back into Aloft?

 
User is offline.
Reply With Quote
Old 06/22/08, 5:24 PM   #324
Khylos
Glass Joe
 
Gnome Warrior
 
Uldaman
I wrote this dog tag to alleviate a common error that I would make while grinding honor in the battlegrounds on my Paladin alt. I needed some way to remind myself to set the proper paladin aura each time I died or mounted/dismounted. Quite often I would forget to toggle Improved Concentration Aura after racing across the battlefield on my mount. As it turns out, Crusader Aura does little for spell push back when a rogue is poking you in the back! So I would get killed, and then resurrect at the graveyard only to once again forget that my aura is removed on death and must be manually turned back on. This was a learning curve for me because I've spent so much time playing my warrior main, and his stance does not reset upon death. I had always assumed Paladins worked this way before I started playing one.

So I searched for an addon that would remind me when to change auras or alert me when I had no aura, but I was never happy with any that I tested. They were either too full of unwanted features or did not properly get my attention. So this morning I finally got around to trying to write my own DogTag. I've been using a handful of tags that I copied from forums and really liked the system. I must admit that I struggled with the syntax a lot and went through many broken renditions before I could get it to work according to my plan. The Test Area in Dog Tag Help is really fantastic for working out the kinks. While it seems to be functional, I would like to know if there might be ways to tighten it up or write it more elegantly.

The worst part by far for me was figuring out how to join the 3 sections of text together without getting syntax errors. I have no background in programming so I don't really understand the composition of the text, such as it's staggered layout, when to use carriage returns, when to enclose text in [ ] and the proper use of end. I searched though the help menus and the Wiki page and can't find a single reference to end, how it's used, and why. Would anybody care to shed some light on this for me?

[(if HasAura("Summon Charger") & (not HasAura("Crusader Aura")) then
    Outline "Crusader Aura!":White:Angle
elseif HasAura("Crusader Aura") & (not HasAura("Summon Charger")) then
    Outline "Change Aura!":White:Angle
elseif not HasAura("Devotion Aura") & not HasAura("Retribution Aura") & not HasAura("Concentration Aura") & not HasAura("Shadow Resistance Aura") & not HasAura("Frost Resistance Aura") & not HasAura("Fire Resistance Aura") & not HasAura("Crusader Aura") then
    Outline "Missing Aura!":White:Angle
end)]
If you are mounted (on lvl 60 pally mount), and do not have Crusader Aura it will display.
<Crusader Aura!>

If you dismount without turning off Crusader Aura it will display
<Change Aura!>

If you have no Paladin Aura (because you died or right clicked the aura) it will display
<Missing Aura!>

If you are using another mount, such as the Amani War Bear, then just substitute that in the tag.
 
User is offline.
Reply With Quote
Old 06/23/08, 7:40 PM   #325
Roberto
Von Kaiser
 
Roberto's Avatar
 
Blood Elf Rogue
 
<OPP>
Kazzak (EU)
Originally Posted by Roberto View Post
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]]
It might be a bit weird to quote myself, but I just finished with my new UI and I couldnt get this old tag running. It is supposed to show me time left for my SnD and it did so with my old UI, but it doesnt work anymore. It keeps giving my a syntax error. Any ideas why?

Edit: Yeah I got an idea why... The right tag was the one I was using on my old UI, not the one I posted back here. So I just copied it wrong from my original post...

Should someone want to try the "working" tag, its this one:

[[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]]
Sorry for the mess anyway...

Last edited by Roberto : 06/23/08 at 8:21 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?
 
User is 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 2:30 AM