Elitist Jerks
Register
Blogs
Forums


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

Reply
 
LinkBack Thread Tools
Old 01/07/09, 3:56 PM   #511
Lorienne
...
 
Lorienne's Avatar
 
Vaikhan
Blood Elf Paladin
 
No WoW Account
Have you tried:
[Outline][(if (ThreatStatus = "3") or (ThreatStatus = "2") then
    (-MissingHP):Red
elseif (IsMouseOver and IsMaxHP) then
    MaxHP:Cyan
else
    (-MissingHP):Hide(0):Cyan
end)]
Can't test it from work, but I think it should work.

United States Offline
Reply With Quote
Old 01/08/09, 1:46 AM   #512
Belbo
Glass Joe
 
Troll Hunter
 
Staghelm
hunter: Sniper Training Range Dogtag

Well I have been registered here for a while and never posted. Here is my usefull contribution. Not sure if someone has posted this but here goes.

For the hunter talent "Sniper Training" where you have to be greater than 30 yards to receive the benefit I created this for my cowtip addon so I can easily see by mouseover if I am at the right range.

[if CanAttack(unit="mouseover") and ((MaxRange > 0) and (MaxRange < 30)) then "Back Up!":Yellow elseif CanAttack(unit="mouseover") and ((MaxRange >= 30) and (MaxRange < 45)) then "Sniper Active":Green elseif CanAttack(unit="mouseover") then "Get Closer!":Red end]


I also modified it for pitbull target frame and I put it above the frame:

[if CanAttack(unit="target") and ((MaxRange > 0) and (MaxRange < 30)) then
"Back Up!":Yellow
elseif CanAttack(unit="target") and ((MaxRange >= 30) and (MaxRange < 45)) then
"Sniper Active":Green
elseif CanAttack(unit="target") then
"Get Closer!":Red
end]


Hope someone enjoys it lol.

Offline
Reply With Quote
Old 01/08/09, 8:03 PM   #513
Zragoll
Glass Joe
 
Zragoll
Blood Elf Warlock
 
Dreadmaul
Icon Alignment Issue & Head Around Syntax Issue

I'm getting an alignment issue on the code below. When there are no DoTs on my target it displays letters in my cast bar like so:
 ------------------------------------------------------
 | HaU UA CoA COR SL SE Fear                          |   Cast Bar
 ------------------------------------------------------
However when the DoTs are up, they change to icons (thanks to this thread for help on icons). But I'm getting the annoying alignment issue where icons are slightly raised higher than text like:
 ------------------------------------------------------
 |     Icon                                                       |
 |(1)        UA CoA COR SL SE Fear                     |   Cast Bar
 ------------------------------------------------------
Initially I thought it was an issue with icons and txt in general, but in my code below if I take out the line checking for player = "Warlock", the alignment is perfect, I tinkered around but can't see my fopar in my if line checking for warlock.
[(if (Class(unit="player") = "Warlock") then (IsEnemy ? ~IsPlayerOrPet ? NumDebuffs:Hide(0)) (if (IsEnemy ? ~IsPlayerOrPet) then (if HasAura("Haunt") then
         Icon("Interface/Icons/Ability_Warlock_Haunt", size=20)
      else
        " HaU":Red
      end) (if HasAura("Unstable Affliction") then
         Icon("Interface/Icons/Spell_Shadow_UnstableAffliction_3", size=20)
      else
        " UA":Red
      end) (if HasAura("Curse of Agony") then
         Icon("Interface/Icons/Spell_Shadow_CurseOfSargeras", size=20)
       else
           " CoA":Red
       end) (if HasAura("Corruption") then
         Icon("Interface/Icons/Spell_Shadow_AbominationExplosion", size=20)
       else
           " COR":Red
       end) (if HasAura("Siphon Life") then
         Icon("Interface/Icons/Spell_Shadow_Requiem", size=20)
       else
           " SL":Red
       end) (if HasAura("Shadow Embrace") then
         Icon("Interface/Icons/Spell_Shadow_ShadowEmbrace", size=20)
       else
           " SE":Red
       end)  (if (HasAura("Fear") or HasAura("Howl of Terror") or HasAura("Death Coil")) then
         Icon("Interface/Icons/Spell_Shadow_Possession", size=20)
       else
         " Fear":Yellow
       end)
   end)
end)]
The other issue I have is my logic around getting my Name text on my Health Bar to look like:
Targetting Players:
 ------------------------------------------------------
 |                    [H] BE Zragoll [80]<AFK><Ghost>|   Health Bar
 ------------------------------------------------------
** Colours: "[H] BE" - Red for Horde, Blue for Alliance
** "Zragoll [80]" - Purple for Warlock, Uses Class Colours
** "<AFK><Ghost>" - Yellow

Targetting Mobs & NPCs:
** ------------------------------------------------------
** |                    Ogre High King Maulg [??]<Boss> |   Health Bar
** ------------------------------------------------------
** Colours: (Not Tapped)
** "Ogre" - White
** "High King Maulg [??]" - Class Colour
** "<Boss>" - Yellow
** Colours: (Tapped By Someone Else not in your Group)
** "Ogre High King Maulg [??]<Boss>" - Grey
** Colours: (Tapped by You or someone in your Group)
** "Ogre" - Red
** "High King Maulg [??]" - Class Colour
** "<Boss>" - Yellow

I can't seem to find the right syntax to do what I want. the below works, kind of, it does what its suppose to for targetting players, but not for mobs or npc's. I suspect I'm not using the IsTapped syntax for its intended purpose, the goal is to identify a mob/npc and to check if its tapped by me or someone else.
[(if (IsEnemy IsPlayerOrPet) then
    (if Faction = "Alliance" then
        ("A":Bracket:Blue) " " (ShortRace:Blue)
    end) (if Faction = "Horde" then
        ("H":Bracket:Red) " " (ShortRace:Red)
    end) " " (Name:White) " " (Level:Bracket:Yellow) (AFK:Angle:Yellow) (DND:Angle:Yellow) (Dead:Angle:Yellow)
end) (if (IsEnemy ~IsPlayerOrPet) then
    (if (IsTapped = "True") & (Faction ~"Alliance") then
      (ShortRace:Gray) " " (Name:Truncate(15,nil):Gray) " " (Level:Bracket:Gray) (Classification:Angle:Gray)
    end) (if (IsTappedByMe = "True") & (Faction ~"Alliance")  then
      (ShortRace:White) " " (Name:Truncate(15,nil):White) " " (Level:Bracket:White) (Classification:Angle:Yellow)
    end)
end)]
This thread has been amazing, to think, 2 days ago, I didn't know how to use tags and just downloaded pitbull. Today I'm learning how to create some really cool things for myself to get rid of buff addons and necrosis.

PS How does one alter pitbull's colours and bar textures? I've seen some pretty cool screenshots of square health bars that are pale blue, or dark grey.

Offline
Reply With Quote
Old 01/09/09, 8:13 AM   #514
motorboatin
Glass Joe
 
Dwarf Priest
 
Gorefiend
You can change textures in the global settings but you are going to need to download sharedmedia if you have not already, colors can also be found in the global settings are under each bar, Target>bars>health or power and you can change the colors.

For the alignment issue I am not to sure being that I just started using pitbull not long ago, but make sure the tag location is the power bar left and not frame inside bottom left, it may or may not make a difference, if no one else does when I get home I will plug the tag in and see how it works, I have a warlock and I like the idea behind this.

I would like to add timers to the dots, and this is my attempt will test when I get a chance. Didnt work will post when it does

Last edited by motorboatin : 01/11/09 at 4:12 PM.

Offline
Reply With Quote
Old 01/10/09, 5:48 PM   #515
Sapped
Glass Joe
 
Troll Rogue
 
Draka
Herro thar. I can't seem to get a ToT Health dogtag working. It only returns my target's health, not it's target's.

[if Name(unit=Target) then
    (if Name(unit=Target) = Name(unit="target") then
        HP:VeryShort
    else
        HP:VeryShort(unit=Target)
    end)
end]
Is what I'm currently using. I'm new to this, so be easy on me :P. Here's a link to a pic of the DogTag/Frame itself.

Offline
Reply With Quote
Old 01/11/09, 8:41 PM   #516
Zragoll
Glass Joe
 
Zragoll
Blood Elf Warlock
 
Dreadmaul
Originally Posted by Sapped View Post
Herro thar. I can't seem to get a ToT Health dogtag working. It only returns my target's health, not it's target's.

[if Name(unit=Target) then
    (if Name(unit=Target) = Name(unit="target") then
        HP:VeryShort
    else
        HP:VeryShort(unit=Target)
    end)
end]
Is what I'm currently using. I'm new to this, so be easy on me :P. Here's a link to a pic of the DogTag/Frame itself.
Your on EJ, you want us to be easy on you... sure

I'm only new to this too, but I think you want "HP:VeryShort(unit="TargetTarget")" which will show the ToT HP in VeryShort format.

Also just a side note, to avoid errors in the strictest sense, use quotes "" around your variables like "Target".

Offline
Reply With Quote
Old 01/11/09, 8:45 PM   #517
Zragoll
Glass Joe
 
Zragoll
Blood Elf Warlock
 
Dreadmaul
Syntax Wiki Missing

I've been using this site up until late last week wowace.com/wiki/LibDogTag-3.0 and now the page loops back to wowace.com. I suspect the derailment of the wowace.com site continues. Does anyone know where I can get a hold of the LibDogTag-3.0 syntax now?

cheers,
Zragoll

Offline
Reply With Quote
Old 01/12/09, 1:36 AM   #518
Sapped
Glass Joe
 
Troll Rogue
 
Draka
Originally Posted by Zragoll View Post
Your on EJ, you want us to be easy on you... sure

I'm only new to this too, but I think you want "HP:VeryShort(unit="TargetTarget")" which will show the ToT HP in VeryShort format.

Also just a side note, to avoid errors in the strictest sense, use quotes "" around your variables like "Target".
Hah, thanks, that did it. I wasn't aware that "TargetTarget" tag worked(I got syntax errors). /failbot.


EDIT; this still seems to be returning the target's heath, not the ToT.

Last edited by Sapped : 01/13/09 at 9:24 AM.

Offline
Reply With Quote
Old 01/12/09, 10:16 AM   #519
infamy
Glass Joe
 
Night Elf Hunter
 
Eredar
Originally Posted by Zragoll View Post
I've been using this site up until late last week wowace.com/wiki/LibDogTag-3.0 and now the page loops back to wowace.com. . . . Does anyone know where I can get a hold of the LibDogTag-3.0 syntax now?
LibDogTag-3.0 - WowAce Wiki

Offline
Reply With Quote
Old 01/13/09, 6:21 AM   #520
wiggie
Glass Joe
 
Tauren Shaman
 
Burning Legion (EU)
I've been wondering if there's a DogTag for player titles? I'm using CowTip and I'd like to see the targets title, for example:

Loremaster Whatever
<Tossers of Salad>
80 Tauren Priest

Is this possible? I searched the dogtag help file and wowace and found nothing.

Offline
Reply With Quote
Old 01/13/09, 11:27 AM   #521
Cet
Glass Joe
 
Night Elf Druid
 
Emerald Dream (EU)
I track my hots with the tags:

[(HasAura("Wild Growth") ? "w":Green) " " (HasAura("Rejuvenation") ? "j":Green) " " (HasAura("Regrowth") ? "r":Green) " " (HasAura("Lifebloom") ? "l":Green)]

All is great with that but it is also showing other druids hots. Can I alter the tags at all to just show mine?

Offline
Reply With Quote
Old 01/13/09, 1:27 PM   #522
 Adoriele
Happy October 19th!
 
Adoriele's Avatar
 
Night Elf Druid
 
Dragonblight
Originally Posted by Cet View Post
I track my hots with the tags:

[(HasAura("Wild Growth") ? "w":Green) " " (HasAura("Rejuvenation") ? "j":Green) " " (HasAura("Regrowth") ? "r":Green) " " (HasAura("Lifebloom") ? "l":Green)]

All is great with that but it is also showing other druids hots. Can I alter the tags at all to just show mine?
Not since 3.0. Pre-3.0, you could use a work around since only HoTs you cast had duration, but they removed that restriction. All that would be necessary is something like changing the HasAura() tag to accept an isMine parameter (UnitAura() from Blizz returns a flag for your own auras), but as far as I know that hasn't been implemented yet (would probably need to add that to the AuraDuration() tag as well).

United States Offline
Reply With Quote
Old 01/17/09, 7:40 AM   #523
ghepip
Glass Joe
 
Blood Elf Warlock
 
Sunstrider (EU)
Dogtag explanation

Anyone that could tell me what this dogtag is suppose to do ?

LibStub("LibDogTag-3.0"):AddFontString(self.text, kgPanels, [[ [(if InCombat(unit="player") then [HP])] ]], "Unit", { unit = "player" })
self.text:SetPoint("LEFT")
self.text:SetJustifyH("left")
self.text:SetFont("Fonts\\FRIZQT__.TTF", 40, "THICKOUTLINE")

Offline
Reply With Quote
Old 01/18/09, 11:14 PM   #524
Zragoll
Glass Joe
 
Zragoll
Blood Elf Warlock
 
Dreadmaul
Originally Posted by Sapped View Post
[if Name(unit=Target) then
    (if Name(unit=Target) = Name(unit="target") then
        HP:VeryShort
    else
        HP:VeryShort(unit=Target)
    end)
end]
EDIT; this still seems to be returning the target's heath, not the ToT.
I had a quick read of your original query, you're never getting to the "else" statement, because NAme(unit=Target) will always be Name(Unit=Target)... So I'm not sure what you are trying to do with that if else line. But without all that guff, try:
[HP(Unit="TargetTarget"):VeryShort]

Last edited by Zragoll : 01/18/09 at 11:32 PM. Reason: Reread original question and discovered problem

Offline
Reply With Quote
Old 01/18/09, 11:15 PM   #525
Zragoll
Glass Joe
 
Zragoll
Blood Elf Warlock
 
Dreadmaul
Originally Posted by infamy View Post
Awesome, cheers Infamy...

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