Elitist Jerks
Register
Blogs
Forums


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

Reply
 
LinkBack Thread Tools
Old 04/22/09, 7:27 PM   #571
Crankshaft
Glass Joe
 
Tauren Druid
 
Black Dragonflight
Can't for the life of me figure out what's wrong here.

[(Status or (if InCombat then
    HP:Short:Color("ff3333")
else
    HP:Short
end)) (if MP < MaxMP then
    ('.' (if (IsMana and PercentMP<40) then
        MP:Short:Color("aaaaff")
    else
        MP:Short
    end))
end)]
For some reason, it runs logic correctly on PercentMP<40, and it runs logic correctly on IsMana, but if I combine them it only runs whichever term I lead with.

Offline
Reply With Quote
Old 04/22/09, 11:45 PM   #572
Crankshaft
Glass Joe
 
Tauren Druid
 
Black Dragonflight
Originally Posted by Lust View Post
I just started using dogtags a little bit more and I would like to know how to modify the following dogtag to display <YOU> in red when I am the target of my focus.

[Outline][Name(unit='focustarget'):ClassColor(unit='focustarget'):Angle]
[Outline][if Name('focustarget')=Name('player') then 'YOU':Red:Angle else Name('focustarget'):ClassColor('focustarget'):Angle end]
Should do it.

Offline
Reply With Quote
Old 04/23/09, 2:19 AM   #573
Dankz
Von Kaiser
 
Dankz's Avatar
 
Undead Mage
 
Caelestrasz
Originally Posted by Zyrqueda View Post
This works fine for me:
[if IsFriend and HasMP then
    FractionalMP
elseif IsEnemy then
    (if (Classification(unit="target") = "Boss") or ((Classification(unit="target") = "Elite") and (Level(unit="target") > Level(unit="player"))) then
        (if HasAura("Erde und Mond") then
            "SP":Green
        elseif HasAura("Fluch der Elemente") then
            "SP":Yellow
        else
            "SP":Red
        end) (if HasAura("Elend") then
            " SH":Green
        elseif HasAura("Feenfeuer") then
            " SH":Yellow
        else
            " SH":Red
        end) (if HasAura("Frostfieber") or HasAura("Donnerknall") or HasAura("Infizierte Wunden") then
            " TtW":Green
        else
            " TtW":Red
        end)
    end)
end]
image:



Though i put this piece of information within my target's powerbar, it just shows on bosses and elites.
first: Spellpower-debuffs (Earth and Moon, CoE)
second: Spellhit-debuffs (Misery, Fearie Fire)
third: snares (Icy Touch, Thunderclap, Infected Wounds)

Just replace the aura-names with the apropriate ones.
Thank you, just what I'm looking for.

Offline
Reply With Quote
Old 04/23/09, 11:42 AM   #574
nartnala
Glass Joe
 
Human Death Knight
 
Cho'gall
Does anyone have an update to the DogTag version of atrRunes? Death Knight rune addons: How can we do better?

Offline
Reply With Quote
Old 04/25/09, 6:35 AM   #575
Sukudow
Glass Joe
 
Blood Elf Warlock
 
Stormreaver (EU)
Hii .. im kinda new to this site/forum ..and as this is myy first post i would like to say! :

This site rocks!!

okay back to my question :P

i want to make a minimalistic ui so i'll have to use dogtags. the point is im not good at it :P there for i ask to all of the dogtags masters here:

i would like to have something like this :


so basically ..im lvling a healer and i want to see if someone got a disease/posion/curse on them by 3 dots on the unitframe

i hope you understand what i mean

PS. my english could be bad, so sorry 'bout that.

Offline
Reply With Quote
Old 04/25/09, 8:29 AM   #576
Septih
Glass Joe
 
Human Warrior
 
Neptulon (EU)
Originally Posted by nartnala View Post
Does anyone have an update to the DogTag version of atrRunes? Death Knight rune addons: How can we do better?
Currently I'm having issues with dogtag not reading lib.xml properly

After the patch I readded Runes.lua to lib.xml - it didn't load in game, even with a whole system restart. Fair enough, it might be that the Runes.lua is broken and needs updating.

But I also tried removing Reputation.lua from lib.xml and loaded the game to find that the module was still working.

So yeah, if anyone knows what's going on there, I can try and work on getting it updated.

Offline
Reply With Quote
Old 04/27/09, 6:14 PM   #577
Lust
Von Kaiser
 
Human Paladin
 
Laughing Skull
Originally Posted by Crankshaft View Post
[Outline][if Name('focustarget')=Name('player') then 'YOU':Red:Angle else Name('focustarget'):ClassColor('focustarget'):Angle end]
Should do it.
Thank you, this version works just fine.

Offline
Reply With Quote
Old 05/01/09, 12:17 PM   #578
dinesh
Piston Honda
 
Gnome Rogue
 
Dalaran
Originally Posted by Septih View Post
But I also tried removing Reputation.lua from lib.xml and loaded the game to find that the module was still working.
Are you sure you don't have multiple (probably embedded) copies installed? If a non-modified one gets loaded first, that will cause the issues you're describing.

Offline
Reply With Quote
Old 05/02/09, 1:32 PM   #579
Tauftamir
Still not crusading
 
Tauftamir's Avatar
 
Night Elf Warrior
 
Silvermoon (EU)
I added this to my raid frames so that I could see who was dropping low on Sanity at Yogg-Saron. I'm just sharing it in case anyone else wants it. I found it to be useful to add to my raid frames as a raid leader:

[outline (if HasAura("Sanity") and (NumAura("Sanity")<30) then
"LOW SANITY":Color("008aff")
end)]

Originally Posted by Shaker View Post
Blacksen is actually a computer AI developed by IBM to tackle the world's hardest AI problem: Out-trolling Zyla.

England Offline
Reply With Quote
Old 05/03/09, 7:47 AM   #580
Septih
Glass Joe
 
Human Warrior
 
Neptulon (EU)
Originally Posted by dinesh View Post
Are you sure you don't have multiple (probably embedded) copies installed? If a non-modified one gets loaded first, that will cause the issues you're describing.
I just did a fresh install since I'm trying out the windows 7 rc. The only place LibDogTag-Unit is installed is as part of Pitbull and it still didn't work.

Offline
Reply With Quote
Old 05/07/09, 8:22 PM   #581
Prinsesa
Bald Bull
 
Blood Elf Paladin
 
Echo Isles
Is there any way to make the HP display comma-separated? It's a little difficult to read a 6-digit number in the heat of battle, but I'd rather have an exact reading than the shortened "300k" form.

"We do want Sanctuary to be the tanking seal"

- Ghostcrawler

Offline
Reply With Quote
Old 05/09/09, 10:59 PM   #582
Juli
Don Flamenco
 
Juli's Avatar
 
Undead Priest
 
Executus
Originally Posted by Prinsesa View Post
Is there any way to make the HP display comma-separated? It's a little difficult to read a 6-digit number in the heat of battle, but I'd rather have an exact reading than the shortened "300k" form.
I couldn't find a built in formatting function that would do that, so I just did it manually. This will show Health Deficit on friendly units in red (with a minus sign before the number), and the comma delimited health value otherwise:
[if IsFriend then
    MissingHP:Short:Prepend('-'):Color('ff7f7f')
elseif HP(known=true) then
    if Length(HP) > 9 or Length(HP) <= 3 then
        HP(known=true)
    else
        [if Length(HP) > 6 then
            Substring(HP, 1, Length(HP) - 6) ',' Substring(HP, Length(HP) - 5, Length(HP) - 3) ','
        else
            Substring(HP, 1, Length(HP) - 3) ','
        end] Substring(HP, Length(HP) - 2, Length(HP))
    end
end]
If you just want it to always show the comma delimited health value, use this portion:
[if HP(known=true) then
    if Length(HP) > 9 or Length(HP) <= 3 then
        HP(known=true)
    else
        [if Length(HP) > 6 then
            Substring(HP, 1, Length(HP) - 6) ',' Substring(HP, Length(HP) - 5, Length(HP) - 3) ','
        else
            Substring(HP, 1, Length(HP) - 3) ','
        end] Substring(HP, Length(HP) - 2, Length(HP))
    end
end]
Health values with more than 9 digits will default to the non-delimited format. I haven't tested this in every possible test case (I did check 5 digits and 8 digits, but nothing else), and it appeared to work.

Offline
Reply With Quote
Old 05/16/09, 11:11 AM   #583
sdelle
Glass Joe
 
Draenei Shaman
 
Die Silberne Hand (EU)
Hello there!

Iam abolutely new in creating Dog Tags and need some advice.
Iam sure there is already a thread about it, but maybe someone is so gentle to answer my questions.

The first is I want my targets health displayed in currentHP and Percent..e.g. 13000(100%) and the numbers should change their colors depending on the health status, starting green with 100% and ending red with 0%....

The second thing i want to add a timer on my Focus Bar, that shows the time may focus is in crowd control.....

Has anyone an idea, or a link to an existing code?

Thx in advance and excuse my horrible english, it´s not my mothertongue language

Last edited by sdelle : 05/16/09 at 11:27 AM.

Offline
Reply With Quote
Old 05/16/09, 3:43 PM   #584
Hinalover
Don Flamenco
 
Hinalover's Avatar
 
Pandaren Monk
 
Kil'Jaeden
Originally Posted by Juli View Post
I couldn't find a built in formatting function that would do that, so I just did it manually. This will show Health Deficit on friendly units in red (with a minus sign before the number), and the comma delimited health value otherwise:
[if IsFriend then
    MissingHP:Short:Prepend('-'):Color('ff7f7f')
elseif HP(known=true) then
    if Length(HP) > 9 or Length(HP) <= 3 then
        HP(known=true)
    else
        [if Length(HP) > 6 then
            Substring(HP, 1, Length(HP) - 6) ',' Substring(HP, Length(HP) - 5, Length(HP) - 3) ','
        else
            Substring(HP, 1, Length(HP) - 3) ','
        end] Substring(HP, Length(HP) - 2, Length(HP))
    end
end]
If you just want it to always show the comma delimited health value, use this portion:
[if HP(known=true) then
    if Length(HP) > 9 or Length(HP) <= 3 then
        HP(known=true)
    else
        [if Length(HP) > 6 then
            Substring(HP, 1, Length(HP) - 6) ',' Substring(HP, Length(HP) - 5, Length(HP) - 3) ','
        else
            Substring(HP, 1, Length(HP) - 3) ','
        end] Substring(HP, Length(HP) - 2, Length(HP))
    end
end]
Health values with more than 9 digits will default to the non-delimited format. I haven't tested this in every possible test case (I did check 5 digits and 8 digits, but nothing else), and it appeared to work.
I have a simplified version for my Health and Energy.

[Status or (SeparateDigits(HP) ' / ' SeparateDigits(MaxHP) ' | ' PercentHP:Percent)]
My question is for the function HasDebuffType, do types such as "Slow" and "Stun" work for that function. Or do I have to literally name all of the debuffs that will place those types of effect for the code to work. I'm trying to get something along the lines of:

[if HasDebuffType("slow") or HasDebuffType("stun") then 'TTW':Green end]

Last edited by Hinalover : 05/16/09 at 3:52 PM.

United States Offline
Reply With Quote
Old 05/18/09, 2:21 PM   #585
KergeKacsa
Piston Honda
 
Troll Hunter
 
Ragnaros (EU)
I've trying to display my Sniper Training bufftime with this:
[AuraDuration("Sniper Training"):FormatDuration("s")]
And i got this:
13 %d Sec
And I don't know how to hide that %d string.

Pls help me

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 1:30 AM