Elitist Jerks
Register
Blogs
Chat
Forums
New Posts


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

Reply
 
LinkBack (94) Thread Tools
Old 03/30/08, 11:09 AM   #26 (permalink)
Von Kaiser
 
badMonkey's Avatar
 
Human Rogue
 
Tirion (EU)
I wrote a DogTag that displays any debuff/buff duration in form of alpha value
(means that when the (de)buff is at 100% duration it has 1.0 alpha value and
when it is at 80% the alpha value is 0.8 and so on):

[Alpha(((100 / X) * AuraDuration("Y")) / 100)]
[HasAura("Y") ? "whatever"]
X is the maximum (not the remaining) debuff/buff duration (in seconds!*),
Y is the debuff/buff name.

* You can place the initial debuff/buff duration in minutes also, but you have to add "* 60".

Example:
Sap, 45sec

[Outline]
[Alpha(((100 / 45) * AuraDuration("Sap")) / 100)]
[HasAura("Sap") ? "Sapped!":Red]
 
User is offline.
Reply With Quote
Old 03/30/08, 5:12 PM   1 links from elsewhere to this Post. Click to view. #27 (permalink)
Glass Joe
 
Blood Elf Hunter
 
Drak'thul
Had a few requests for updated tags for my CowTip styles:



LEFT:

[Level:White] [NameRealm:ClassColor] [Classification:Paren]
[if Guild then Guild:Angle:Green " " GuildRank:Paren:Color("caf6c8") else " " end]
[(if IsPlayer and IsFriend then (if TalentSpec then TalentTree " " TalentSpec:Paren:Gray else "Loading..." end) end) (if IsUnit("pet") then HappyText end)]
[Zone]
[if IsUnit("player", Target) then Red "Targeting << You >>" elseif Target:NameRealm then "Targeting <" Target:NameRealm:ClassColor(Target) ">" end]

RIGHT:

[Faction or SmartRace]
[if Faction then SmartRace end]
[if IsPlayerOrPet then PercentHP:Percent:HPColor elseif InCombat then PercentHP:Percent:HPColor end]
Something I whipped up last night:



And if the CC is your own:



Yes, it is as good as it looks. Works with focus, target, whatever you like. Position is Frame - Edge, Top Middle.

[if HasAura("Freezing Trap Effect") or HasAura("Polymorph") or HasAura("Sap") or HasAura("Gouge") or HasAura("Seduce") or HasAura("Banish") or HasAura("Fear") or HasAura("Howl of Terror") or HasAura("Intimidating Shout") or HasAura("Entangling Roots") or HasAura("Cyclone") or HasAura("Hibernate") or HasAura("Psychic Scream") or HasAura("Blind") or HasAura("Repentance") then
    (Outline "*Crowd Control* " Gray AuraDuration("Freezing Trap Effect"):FormatDuration("s"):Paren AuraDuration("Polymorph"):FormatDuration("s"):Paren AuraDuration("Sap"):FormatDuration("s"):Paren AuraDuration("Gouge"):FormatDuration("s"):Paren AuraDuration("Seduce"):FormatDuration("s"):Paren AuraDuration("Banish"):FormatDuration("s"):Paren AuraDuration("Fear"):FormatDuration("s"):Paren AuraDuration("Howl of Terror"):FormatDuration("s"):Paren AuraDuration("Intimidating Shout"):FormatDuration("s"):Paren AuraDuration("Entangling Roots"):FormatDuration("s"):Paren AuraDuration("Cyclone"):FormatDuration("s"):Paren AuraDuration("Hibernate"):FormatDuration("s"):Paren AuraDuration("Psychic Scream"):FormatDuration("s"):Paren AuraDuration("Blind"):FormatDuration("s"):Paren AuraDuration("Repentance"))
end]
Pseudo code for the above is:

[if HasAura("CC") then (Outline "*Crowd Control* " Gray AuraDuration("CC"):FormatDuration("s"):Paren) end]

Enjoy!
 
User is offline.
Reply With Quote
Old 03/30/08, 7:06 PM   #28 (permalink)
Piston Honda
 
Imbar's Avatar
 
Blood Elf Paladin
 
Bonechewer
Is there a way to truncate overly long names?
I want to put names on my unitframes, but "Mature Netherwing Drake" takes up nearly the whole bar and causes my health text to show as "6789/67..."

I read Banhammer posts when I'm having a bad day.
 
User is offline.
Reply With Quote
Old 03/30/08, 7:28 PM   #29 (permalink)
Glass Joe
 
Desik™'s Avatar
 
Blood Elf Mage
 
Mannoroth
Originally Posted by http://www.wowace.com/wiki/LibDogTag-3.0
Truncate(value, number, ellipses=true)
Truncate value to the length specified by number, adding ellipses by default
["Hello":Truncate(3)] => "Hel..."; ["Hello":Truncate(3, nil)] => "Hel"
As an example my Target's name is :

[Name:Truncate(15):ClassColor] [(AFK or DND):Angle]
 
User is offline.
Reply With Quote
Old 03/30/08, 7:30 PM   #30 (permalink)
Von Kaiser
 
Tauren Druid
 
Tichondrius
I use truncate for a very fun dogtag tag in CowTip:
[TargetingList:Truncate(35)]
On a line by itself it shows everyone in your party/raid targetting the mob you're mousing over (lets one tank see that another tank is already targetting a loose mob before they've actually reached it & taunted). In the case of raid boss fights, where 24 other people are targetting the same thing, it gets a tad unwieldly without they truncate modifier (as I discovered the hard way with a CowTip the width of my screen on Magtheridon).
 
User is offline.
Reply With Quote
Old 03/30/08, 8:06 PM   #31 (permalink)
Piston Honda
 
Imbar's Avatar
 
Blood Elf Paladin
 
Bonechewer
Olond, that makes me think of another tag.
Would there be a way to have "Targetted by: 24 others" if a bunch of people (the whole raid) are targetting the mob, but "Targetted by: Tank1, DPS1, DPS2" if only a few people are targetting it?

Say, something like:
if(# of raid members targetting mob < 5)
       print each individual name separated by commas
else
       print # of raid members targetting mob

I read Banhammer posts when I'm having a bad day.
 
User is offline.
Reply With Quote
Old 03/30/08, 8:31 PM   #32 (permalink)
Piston Honda
 
Zedd's Avatar
 
Draenei Shaman
 
Nordrassil (EU)
With some help of Wowace forums:

[if MissingMP >= 2200 then
    (if MissingMP >= 3200 then
        "FelMana"
    else
        "ManaPot"
    end)
end]
Displays "Manapot" when 2200 mana is used and "FelMana" when 3200 is used.
Nice to know when you wont overshoot a Mana Potion.
 
User is online.
Reply With Quote
Old 03/30/08, 8:52 PM   #33 (permalink)
Von Kaiser
 
Draenei Shaman
 
Uldum
Originally Posted by Sethik View Post
Had a few requests for updated tags for my CowTip styles:



LEFT:

[Level:White] [NameRealm:ClassColor] [Classification:Paren]
[if Guild then Guild:Angle:Green " " GuildRank:Paren:Color("caf6c8") else " " end]
[(if IsPlayer and IsFriend then (if TalentSpec then TalentTree " " TalentSpec:Paren:Gray else "Loading..." end) end) (if IsUnit("pet") then HappyText end)]
[Zone]
[if IsUnit("player", Target) then Red "Targeting << You >>" elseif Target:NameRealm then "Targeting <" Target:NameRealm:ClassColor(Target) ">" end]

RIGHT:

[Faction or SmartRace]
[if Faction then SmartRace end]
[if IsPlayerOrPet then PercentHP:Percent:HPColor elseif InCombat then PercentHP:Percent:HPColor end]
Something I whipped up last night:



And if the CC is your own:



Yes, it is as good as it looks. Works with focus, target, whatever you like. Position is Frame - Edge, Top Middle.

[if HasAura("Freezing Trap Effect") or HasAura("Polymorph") or HasAura("Sap") or HasAura("Gouge") or HasAura("Seduce") or HasAura("Banish") or HasAura("Fear") or HasAura("Howl of Terror") or HasAura("Intimidating Shout") or HasAura("Entangling Roots") or HasAura("Cyclone") or HasAura("Hibernate") or HasAura("Psychic Scream") or HasAura("Blind") or HasAura("Repentance") then
    (Outline "*Crowd Control* " Gray AuraDuration("Freezing Trap Effect"):FormatDuration("s"):Paren AuraDuration("Polymorph"):FormatDuration("s"):Paren AuraDuration("Sap"):FormatDuration("s"):Paren AuraDuration("Gouge"):FormatDuration("s"):Paren AuraDuration("Seduce"):FormatDuration("s"):Paren AuraDuration("Banish"):FormatDuration("s"):Paren AuraDuration("Fear"):FormatDuration("s"):Paren AuraDuration("Howl of Terror"):FormatDuration("s"):Paren AuraDuration("Intimidating Shout"):FormatDuration("s"):Paren AuraDuration("Entangling Roots"):FormatDuration("s"):Paren AuraDuration("Cyclone"):FormatDuration("s"):Paren AuraDuration("Hibernate"):FormatDuration("s"):Paren AuraDuration("Psychic Scream"):FormatDuration("s"):Paren AuraDuration("Blind"):FormatDuration("s"):Paren AuraDuration("Repentance"))
end]
Pseudo code for the above is:

[if HasAura("CC") then (Outline "*Crowd Control* " Gray AuraDuration("CC"):FormatDuration("s"):Paren) end]

Enjoy!
None of them worked when i put them in the cowtip . What am i doing wrong?
 
User is offline.
Reply With Quote
Old 03/30/08, 9:06 PM   #34 (permalink)
Glass Joe
 
Blood Elf Hunter
 
Drak'thul
Originally Posted by MaveN View Post
None of them worked when i put them in the cowtip . What am i doing wrong?
Make sure you're using the latest CowTip (read: the one using the 3.0 lib). Aside from that, couldn't tell you.
 
User is offline.
Reply With Quote
Old 03/30/08, 9:31 PM   #35 (permalink)
Von Kaiser
 
Draenei Shaman
 
Uldum
Originally Posted by Sethik View Post
Make sure you're using the latest CowTip (read: the one using the 3.0 lib). Aside from that, couldn't tell you.
Still givin me syntax errors, *sigh* guess i gota start over, and this is cotip 3.0 to i dont get it. Maybe if i delete the entire cowtip and the saved variables, then put in cowtip over again and start there? I think ill try that.
 
User is offline.
Reply With Quote
Old 03/30/08, 11:25 PM   #36 (permalink)
Von Kaiser
 
FAME's Avatar
 
Fame
Night Elf Druid
 
No WoW Account
Does anyone know if there is a new equivalent to IsLessEqual() yet?

Last edited by FAME : 03/30/08 at 11:34 PM.
 
User is offline.
Reply With Quote
Old 03/31/08, 12:59 AM   #37 (permalink)
Von Kaiser
 
Draenei Shaman
 
Turalyon (EU)
Originally Posted by FAME View Post
Does anyone know if there is a new equivalent to IsLessEqual() yet?
I think you can solve this with an "if" structure combined with the >= operand. Like for instance:

[if MissingMP >= 2200 then 
    (if MissingMP >= 3200 then 
        "FelMana" 
    else 
        "ManaPot" 
    end) 
end]
In this case, it should return "FelMana" for less then or equal to 3200 mana and "ManaPot" for less then or equal to 2200 mana.
 
User is offline.
Reply With Quote
Old 03/31/08, 11:42 AM   #38 (permalink)
Von Kaiser
 
Thanahtos's Avatar
 
Undead Warlock
 
Stormrage
I'm having a bit of trouble figuring out how to do this... It's for my ToT bar, and I'd like for it to display the name of the ToT, and if the ToT is me, to say "ME" instead of Thanahtos... Is there any way to do it?
 
User is offline.
Reply With Quote
Old 03/31/08, 11:44 AM   #39 (permalink)
The Google Map Team can no longer help you
 
Malan's Avatar
 
Tauren Shaman
 
Skullcrusher
Originally Posted by Thanahtos View Post
I'm having a bit of trouble figuring out how to do this... It's for my ToT bar, and I'd like for it to display the name of the ToT, and if the ToT is me, to say "ME" instead of Thanahtos... Is there any way to do it?
(IsUnit('player', Target) ? ClassColor("") '<<You>>':white ! Target:NameRealm)

Some modification of the above will get you there.

Why all thinks that WF is better than rock?
~Rocks, coming to a shaman near you in the next expansion~

Originally Posted by Bluur View Post
Oh, and btw, vulajin, I don't know why we gave you those fucking pants and the muramasa - maybe if your dps was anywhere near your precious spreadsheets you'd actually beat my DPS once in a while.
 
User is offline.
Reply With Quote
Old 03/31/08, 11:47 AM   #40 (permalink)
Glass Joe
 
Troll Priest
 
Mannoroth (EU)
Originally Posted by Imbar View Post
Olond, that makes me think of another tag.
Would there be a way to have "Targetted by: 24 others" if a bunch of people (the whole raid) are targetting the mob, but "Targetted by: Tank1, DPS1, DPS2" if only a few people are targetting it?

Say, something like:
if(# of raid members targetting mob < 5)
       print each individual name separated by commas
else
       print # of raid members targetting mob
i'm not 100 percent sure with the spelling as i couldn't check it ingame but this should help you:

[if IsEnemy ? if not IsPlayerorPet ? then
(if NumTargeting(unit="mouseovertarget") >= 6 then
"targetted by [NumTargeting(unit="mouseovertarget)] people" else
TargetingList(unit="mouseovertarget")
end) end]
 
User is offline.
Reply With Quote
Old 03/31/08, 11:50 AM   #41 (permalink)
Glass Joe
 
Night Elf Druid
 
Tichondrius
I figured I would post my Target Frame's Health Listing here:

The following DogTag will display as follows:
Friendly Player or NPC with UNKNOWN Health: "Percent HP" - (example: 77%)
Friendly Player or NPC with KNOWN health: "Current HP - Missing HP" - (example: 9453-1566)

Enemy Player or NPC with UNKNOWN Health: "Percent HP" - (example: 54%)
Enemy Player o NPC with KNOWN Health: "Short Current HP / Short Max HP (Percent HP)" - (example: 11k/12k (91%))

It will also display the status of each target if they are dead. Also, for a mob's health to be known on an NPC you must have mobhealth.

[(if IsFriend then
    (if not HP(known=true) then
        PercentHP:Percent
    else
        (if not Dead then
            HP
        end)
    end)
end) 
(if IsFriend then
    (if HP(known=true) then
        (Status | (-MissingHP):Hide(0):Short:Color("ff7f7f"))
    end)
else
    (Status | (if not HP(known=true) then
        PercentHP:Percent
    else
        FractionalHP:Short PercentHP:Percent:Paren:Prepend(" ")
    end))
end)]
 
User is offline.
Reply With Quote
Old 03/31/08, 11:58 AM   #42 (permalink)
Von Kaiser
 
Thanahtos's Avatar
 
Undead Warlock
 
Stormrage
Originally Posted by Malan View Post
(IsUnit('player', Target) ? ClassColor("") '<<You>>':white ! Target:NameRealm)

Some modification of the above will get you there.
I'm sorry for being so copy-paste with no work, but I'm getting syntax errors, and I'm not sure why. I tried re-writing it, and I couldn't get it to work.
 
User is offline.
Reply With Quote
Old 03/31/08, 12:11 PM   #43 (permalink)
The Google Map Team can no longer help you
 
Malan's Avatar
 
Tauren Shaman
 
Skullcrusher
Yah that's not the full tag, that's just part of the IF THEN stuff you'll need to get it working. You can't just copy paste that in, its incomplete. Go back to the bottom of page 1 and look at the examples of how people are displaying <<YOU>> when your mouseover target is targeting you.

Why all thinks that WF is better than rock?
~Rocks, coming to a shaman near you in the next expansion~

Originally Posted by Bluur View Post
Oh, and btw, vulajin, I don't know why we gave you those fucking pants and the muramasa - maybe if your dps was anywhere near your precious spreadsheets you'd actually beat my DPS once in a while.
 
User is offline.
Reply With Quote
Old 03/31/08, 3:18 PM   #44 (permalink)
Glass Joe
 
Night Elf Rogue
 
Blackhand
is this where I could request some code as im not familiar with this?
 
User is offline.
Reply With Quote
Old 03/31/08, 7:53 PM   #45 (permalink)
Von Kaiser
 
Orc Hunter
 
Executus
Originally Posted by Lakesh View Post
The idea was to replace Demon.
(I too Apologies for the repost but now i have a screen shoot.)



The text is only visible if the target is a enemy (and not a player or pet).

[(IsEnemy ? ~IsPlayerOrPet ? NumDebuffs:Hide(0)) (if (IsEnemy ? ~IsPlayerOrPet) then
Is there a way to disable the Debuff count that shows up?
If i just remove NumDebuffs from the code it gives me a Syntax Error.
 
User is offline.
Reply With Quote
Old 03/31/08, 8:17 PM   #46 (permalink)
Cyn
Piston Honda
 
Cyn's Avatar
 
Night Elf Rogue
 
Frostmourne
Originally Posted by Lakesh View Post
The idea was to replace Demon.

In regards to the code associated with this screenshot, last night on brutullus, it seemed to have issues detecting thunderclap, but i'm unsure why.
 
User is offline.
Reply With Quote
Old 03/31/08, 8:28 PM   #47 (permalink)
Glass Joe
 
Troll Priest
 
Mannoroth (EU)
Originally Posted by Zomghuntar View Post
Is there a way to disable the Debuff count that shows up?
If i just remove NumDebuffs from the code it gives me a Syntax Error.
in order to remove the debuff count you have to remove

(IsEnemy ? ~IsPlayerOrPet ? NumDebuffs:Hide(0))
so the dogtag begins with

[(if (IsEnemy ? ~IsPlayerOrPet) then...
 
User is offline.
Reply With Quote
Old 03/31/08, 10:08 PM   #