Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » User Interface and AddOns

Reply
 
LinkBack Thread Tools
Old 10/12/08, 4:24 PM   #401
Nabor
Glass Joe
 
Draenei Shaman
 
Greymane
if hasmana then if 0<PercentMP<100 then PercentMP:percent end
Should solve your problem, I have a similar tag for my own mana except it shows my mp if its not full. if you don't want a percent i think the correct tag is
FractionalMP
But im not entirely sure

Offline
Reply With Quote
Old 10/12/08, 6:21 PM   #402
Aximous
Von Kaiser
 
Tauren Shaman
 
Jaedenar (EU)
Is there any way to get the dogtad to pull data out from the buff interface, I'm trying to set up a "timer" with dogtags but it doesn't let me pull out the timers of buffs that aren't casted by me.

Offline
Reply With Quote
Old 10/14/08, 11:41 PM   #403
Yessia
Don Flamenco
 
Yessia's Avatar
 
Blood Elf Death Knight
 
Mal'Ganis
Looking for some help re-writing some 2.0 dog tags for 3.0(boy am I regretting lazy and not doing this earlier), I'll include what they were to make it easier to know what I'm looking for:

Player Health: Missing HP | Current HP | Max HP | afk/dnd/dead info
[~Status?MissingHP:Short:HideZero:HPColor] | [~Status?CurHP:Hide([MaxHP]):Short:HPColor] | [Status:Gray:MaxHP:Short:Color(2A8430)] | [AFKDND]
Player Mana: Max MP | Cur MP | hides current MP if at max mana
[MaxMP:Short:Color(1E57AB)] | [~HasNoMP?CurMP:Hide([MaxMP]):Color(81BEF7)] | [~HasNoMP?MissingMP:HideZero:Color(1E57AB)]
ToT/ToTT Name/Health: Guess this was just % hp/dead info | Name/afk info
[~Dead ? ~IsMaxHP ? PercentHP:Round:Percent:HPColor] | [Name:Trunc(20):ClassColor] [AFKDND:Angle]
If theirs a list with all these commands thats pretty simple to understand(my understanding of code is pretty basic so it'd need to be pretty straightforward :P) a link to that would be helpful too.

Offline
Reply With Quote
Old 10/16/08, 12:01 AM   #404
 Andeh
The Titleless
 
Andeh
Goblin Rogue
 
No WoW Account
I'm having problems using the DogTag "Combos" after the patch, using the latest versions of LibDogTag-Unit-3.0 and LibDogTag-3.0. I use it as a text in Pitbull, and after my first combo point change (out of combat), they don't update. For example:
Cheap Shot -> it goes to 2
anything else that changes combo points will not change it from 2 while I'm in combat
as soon as I drop combat and switch targets, it gets reset properly to 0

I already found that in PitBull\libs\LibDogTag-Unit-3.0\Categories\Misc.lua the latest version had PLAYER_COMBO_POINTS instead of the new UNIT_COMBO_POINTS, but that doesn't fix the problem.

Can anyone help me figure out what I need to change?

Edit: Did some more testing:
If I create my first CP while already in combat, it won't show. If I create it while in out of combat (i.e. from stealth), it will show. This leads me to conclude that something about the Combos DogTag is using a protected function.

Last edited by Andeh : 10/16/08 at 12:10 AM.

United States Offline
Reply With Quote
Old 10/16/08, 7:14 AM   #405
Camaris
Piston Honda
 
Camaris's Avatar
 
Human Paladin
 
Kul Tiras (EU)
There is a ticket for that. I manually changed it, and it seems to have fixed the problem for me.

Offline
Reply With Quote
Old 10/16/08, 2:21 PM   #406
 Andeh
The Titleless
 
Andeh
Goblin Rogue
 
No WoW Account
Originally Posted by Camaris View Post
There is a ticket for that. I manually changed it, and it seems to have fixed the problem for me.
Out of curiosity, how exactly are you using the [Combos] tag? Are you using it simply as [Combos], on the target frame? Was the only change you made to get it to work "UNIT_COMBO_POINTS"?

I have the custom text [Combos:Hide(0)] on my player frame (rather than the target frame), specifically on my energy bar, and simply changing PLAYER to UNIT didn't fix my problem. I spent a couple hours last night trying to fix Combos in Misc.lua last night, and simply could not get it to work.

United States Offline
Reply With Quote
Old 10/17/08, 12:13 AM   #407
Gere
Von Kaiser
 
Blood Elf Paladin
 
Bloodhoof
Originally Posted by Andeh View Post
Out of curiosity, how exactly are you using the [Combos] tag? Are you using it simply as [Combos], on the target frame? Was the only change you made to get it to work "UNIT_COMBO_POINTS"?

I have the custom text [Combos:Hide(0)] on my player frame (rather than the target frame), specifically on my energy bar, and simply changing PLAYER to UNIT didn't fix my problem. I spent a couple hours last night trying to fix Combos in Misc.lua last night, and simply could not get it to work.
Correct me if I'm wrong, but I believe that if there is an addon loaded before pitbull that also uses the LibDogTag-Unit-3.0 library it would load that one (unmodified one) instead of the modified one in Pitbull?

p.s. The following fix worked for me:

In PitBull\libs\LibDogTag-Unit-3.0\Categories\Misc.lua change PLAYER_COMBO_POINTS to UNIT_COMBO_POINTS

Last edited by Gere : 10/17/08 at 1:21 AM.

Offline
Reply With Quote
Old 10/17/08, 1:27 AM   #408
amele
Von Kaiser
 
Undead Rogue
 
Skullcrusher
If you're having trouble with the UNIT_COMBO_POINTS fix, I'd bet it's because something else is loading the lib first (in my case it was cowtip.) fix it in every plugin that uses dog tags and it should start working.

I am not sure how Blizzard chooses which lib to load; if I had to guess, I'd say it happens alphabetically... so probably wouldn't *need* to fix it in pitbull\libs\ but could fix it in just cowtip\libs\.. but I would fix it in both places just the same.

edit: also, the following code stub will make a tickto counter for people who like having one: substitute the target power quantity for 25 (e.g. 25/40/60 etc)

if MP < 25 then
((25 - MP) / 10):Round(1):Color('FF0000')
else
'25':Color('00FF00')
end]

this will show either: a green '25' if you have at least 25 energy, or the number of seconds in red (to the nearest tenth of a second) until you do have 25 energy.

if you have 3 points in vitality, the 10 should be an 8 (and is the reason for the Round(1) this will keep it in nearest 10ths of a second, instead of showing it in thousands, eg: 1.6 instead of 1.625)

I stuck this (and another two for 40 and 60) on my power meter. I'm not sure how to make it reference my power if it's on another unit (is there a way to do this?)

Last edited by amele : 10/17/08 at 1:42 AM.

Offline
Reply With Quote
Old 10/17/08, 4:33 PM   #409
 Andeh
The Titleless
 
Andeh
Goblin Rogue
 
No WoW Account
Thanks, that makes sense. Ironically, last night I got it to work last night with only changing Pitbull's lib, simply because there were other lib problems in Cowtip, Cartographer, & Chinchilla which prevented Pitbull from loading at all. Disabling them not only got Pitbull to load, but actually handle my combo points correctly!

United States Offline
Reply With Quote
Old 10/17/08, 6:29 PM   #410
dinesh
Piston Honda
 
Gnome Rogue
 
Dalaran
re: library fixes, just bump the minor revision number in the file you're changing. LibStub (I think it is) will recognize your modified version is the most recent one and will load it, regardless of when it would normally get loaded in sequence.

I vaguely recall the minor revision being "90000 + tonumber( SVN rev )" or some such. i just changed it to 99000.

Offline
Reply With Quote
Old 10/18/08, 7:35 AM   #411
stupidfish
Glass Joe
 
Undead Warrior
 
Daggerspine (EU)
can someone help me with this one please?

i want the first line of tip to look like this

if target has target:

"targetname : totname"

if it's me:

"targetname : <<YOU>>"

if he has no target:

"targetname"

i've tried this for like hours, but i can't make the " : " work correctly.. either it shows all the time, so that with no target the line looks like this "targetname : ", or it does not show at all

Offline
Reply With Quote
Old 10/18/08, 8:27 AM   #412
amele
Von Kaiser
 
Undead Rogue
 
Skullcrusher
Originally Posted by stupidfish View Post
can someone help me with this one please?

i want the first line of tip to look like this

if target has target:

"targetname : totname"

if it's me:

"targetname : <<YOU>>"

if he has no target:

"targetname"

i've tried this for like hours, but i can't make the " : " work correctly.. either it shows all the time, so that with no target the line looks like this "targetname : ", or it does not show at all

both of these blocks together (one after the other) should do it:

[if Target:IsPlayer or (Target:IsEnemy and not Target:IsPet)
then ClassColor(unit=Target) end]
[if IsUnit('player', Target)
then '<<YOU>>' else Target:NameRealm or "none" end]
this you're familiar with, establishes Targetname, classcolored, <<you>> if it's you etc.


[if Target:Target:Exists
then ' : ':White]

[if Target:Target:IsPlayer or (Target:Target:IsEnemy and not Target:Target:IsPet)
then ClassColor(unit=Target:Target) end]
[if IsUnit('player', Target:Target)
then '<<YOU>>' else Target:Target:NameRealm]
this is the part you were having trouble with; I took the liberty of assuming you wanted the same classcolor logic/<<you>> stuff that the earlier target does. if you don't, you can obviously modify as necessary. I bolded the bit that makes the ":" appear dynamically.

Target:Target:Exists was the way I found to identify target of the target, if there's a direct tag please let me know! I've been learning dogtags without the help of the wiki since all the wowace/wiki/ links I've found have been redirects to the top page; and the self-doc in the lua only goes so far :x

Offline
Reply With Quote
Old 10/18/08, 10:30 AM   #413
 Slackie
better a cruel truth than a comfortable delusion
 
Slackie's Avatar
 
Blood Elf Mage
 
Mal'Ganis
Is AuraDuration for target debuffs broken?

When I use [AuraDuration("Judgement of Wisdsom")] on a target frame, I get a very large number, like 1005873.23. Using [AuraDuration("Seal of Righteousness")] on my player frame is working correctly.

I'm using Pitbull 3.2.6 with LibDogtags-3.0.

United States Offline
Reply With Quote
Old 10/18/08, 10:37 AM   #414
stupidfish
Glass Joe
 
Undead Warrior
 
Daggerspine (EU)
Originally Posted by amele View Post
...
thanks a lot!

Offline
Reply With Quote
Old 10/18/08, 8:14 PM   #415
Wodahs
Don Flamenco
 
Human Rogue
 
Lightbringer
This is my target frame raid synergy script.
[(IsEnemy ? ~IsPlayerOrPet ? NumDebuffs:Hide(0)) (if (IsEnemy ? ~IsPlayerOrPet) then
    (if (HasAura("Demoralizing Shout") or HasAura("Demoralizing Roar") or HasAura("Curse of Weakness")) then
        " DS":Green
    else
        " DS":Red
    end) (if (HasAura("Icy Touch") or HasAura("Infected Wounds") or HasAura("Judgements of the Just") or HasAura("Thunder Clap")) then
        " TC":Green
    else
        " TC":Red
    end) (if HasAura("Sunder Armor") then
        " SA":Green
    else
        " SA":Red
    end) (if (HasAura("Faerie Fire") or HasAura("Faerie Fire (Feral)") or HasAura("Curse of Recklessness")) then
        " MA":Green
    else
        " MA":Red
    end) (if (HasAura("Curse of the Elements") or HasAura("Earth and Moon") or HasAura("Ebon Plaguebringer")) then
        " SV":Green
    else
        " SV":Red
    end) (if (HasAura("Blood Frenzy") or HasAura("Savage Combat")) then
        " PV":Green
    else
        " PV":Red
    end) (if (HasAura("Curse of Tongues") or HasAura("Mind-numbing Poison") or HasAura("Slow")) then
        " T":Green
    else
        " T":Red
    end) (if (HasAura("Insect Swarm") or HasAura("Scorpid Sting")) then
        " M":Green
    else
        " M":Red
    end) (if (HasAura("Aimed Shot") or HasAura("Furious Attacks") or HasAura("Mortal Strike") or HasAura("Wound Poison VI")) then
        " MS":Green
    else
        " MS":Red
    end) (if (HasAura("Improved Faerie Fire") or HasAura("Misery")) then
        " SH":Green
    else
        " SH":Red
    end) (if (HasAura("Heart of the Crusader") or HasAura("Master Poisoner") or HasAura("Totem of Wrath")) then
        " CR":Green
    else
        " CR":Red
    end) (if HasAura("Judgement of Wisdom") then
        " W":Green
    else
        " W":Red
    end) (if HasAura("Judement of Light") then
        " L":Green
    else
        " L":Red
    end)
end)]

Offline
Reply With Quote
Old 10/20/08, 2:30 AM   #416
 Ryazan
Weirdo Beaver
 
Ryazan's Avatar
 
Night Elf Rogue
 
Ragnaros (EU)
Heya!

I'm quite new to DogTags and actually the reason why I started to play around with them is that my old tooltip addon kind of died during 3.0.2 patch and I decided to move to CowTip. I tried looking for some documentation or even list of tags but without luck. It seems that the wowace-link which was in many places has died due to the events in wowace.com so I'm wondering are the help or manual to dogtags available somewhere else since I'm getting somewhat annoyed to do everything with "trial & error"-style. I know there is dogtag "help" withing CowTip options but can't seem to get that work either.

And while I'm at it, I also have few other questions relating to dogtags:
  • Is it possible to have an empty line in cowtip or some workaround for it? Like
    Jenkins
    
    Lvl 70 Human paladin
    I've got it by accident but never when I've tried to get it.
  • I've seen people modifying the background color of the tooltip, like in post #5. I wonder can the bg color be changed just with CowTip or does it require some additional addon?
  • Using post #5 as a reference again: the tooltips there have a healthbar and energy/mana bar too below the actual tip. Is there a tag for them or are they created by another addon? I've seen a picture of CowTip configuration with some Powerbar-option in them which I don't have so could that be it? Didn't find anything relating to powerbar from curse.com tho...

Finland Offline
Reply With Quote
Old 10/20/08, 4:05 AM   #417
amele
Von Kaiser
 
Undead Rogue
 
Skullcrusher
Originally Posted by Ryazan View Post
Heya!

I'm quite new to DogTags and actually the reason why I started to play around with them is that my old tooltip addon kind of died during 3.0.2 patch and I decided to move to CowTip. I tried looking for some documentation or even list of tags but without luck. It seems that the wowace-link which was in many places has died due to the events in wowace.com so I'm wondering are the help or manual to dogtags available somewhere else since I'm getting somewhat annoyed to do everything with "trial & error"-style. I know there is dogtag "help" withing CowTip options but can't seem to get that work either.

And while I'm at it, I also have few other questions relating to dogtags:
  • Is it possible to have an empty line in cowtip or some workaround for it? Like
    Jenkins
    
    Lvl 70 Human paladin
    I've got it by accident but never when I've tried to get it.
  • I've seen people modifying the background color of the tooltip, like in post #5. I wonder can the bg color be changed just with CowTip or does it require some additional addon?
  • Using post #5 as a reference again: the tooltips there have a healthbar and energy/mana bar too below the actual tip. Is there a tag for them or are they created by another addon? I've seen a picture of CowTip configuration with some Powerbar-option in them which I don't have so could that be it? Didn't find anything relating to powerbar from curse.com tho...
the background coloring and power/health bars are a feature of cowtip. you should have an appearance section in cowtip's configuration UI - if you don't then libsharedmedia isn't loading correctly and you'll need to figure out what's causing it to fail (usually having an old version of cowtip or another addon that's loading a bad sharedmedia would do it.)

as for making a space, I imagine that making a text line with [' '] would do it, but I wouldn't quote me on that.

Offline
Reply With Quote
Old 10/20/08, 4:47 AM   #418
 Ryazan
Weirdo Beaver
 
Ryazan's Avatar
 
Night Elf Rogue
 
Ragnaros (EU)
Originally Posted by amele View Post
the background coloring and power/health bars are a feature of cowtip. you should have an appearance section in cowtip's configuration UI - if you don't then libsharedmedia isn't loading correctly and you'll need to figure out what's causing it to fail (usually having an old version of cowtip or another addon that's loading a bad sharedmedia would do it.)

as for making a space, I imagine that making a text line with [' '] would do it, but I wouldn't quote me on that.
Ok thanks! Will investigate and test a bit after I get off work.

Edit: Silly question but if I have separate Libsharedmedia (as in Interface/Addons/Libsharedmedia), will it override the Libsharedmedia loaded by an other addon which has it in it's respective addon dir?

Finland Offline
Reply With Quote
Old 10/20/08, 7:39 PM   #419
Yessia
Don Flamenco
 
Yessia's Avatar
 
Blood Elf Death Knight
 
Mal'Ganis
Looking for a way to separate the missing hp and fractional hp tags in this line with just a simple | one that goes away when missing HP is hiding/zero, would be even better if I could get it the same color as the fractional HP.

[~Dead ? (-MissingHP):Hide(0):HPColor] [~Dead ? ''] [(~Dead ? FractionalHP:Short:Color('008000')) (Dead ? 'Dead':Color('FE2E08')) (Offline ? 'Offline':Color('9B9B9B'))]

Offline
Reply With Quote
Old 10/20/08, 9:07 PM   #420
amele
Von Kaiser
 
Undead Rogue
 
Skullcrusher
Originally Posted by Yessia View Post
Looking for a way to separate the missing hp and fractional hp tags in this line with just a simple | one that goes away when missing HP is hiding/zero, would be even better if I could get it the same color as the fractional HP.

[~Dead ? (-MissingHP):Hide(0):HPColor] [~Dead ? ''] [(~Dead ? FractionalHP:Short:Color('008000')) (Dead ? 'Dead':Color('FE2E08')) (Offline ? 'Offline':Color('9B9B9B'))]
try adding [MissingHP ? ('|':Color('008000'))] in the area where you have [~Dead ? ''].

my server is down so I can't test it, but I'm pretty sure that MissingHP will evaluate as false when it's 0.

Offline
Reply With Quote
Old 10/20/08, 10:30 PM   #421
Yessia
Don Flamenco
 
Yessia's Avatar
 
Blood Elf Death Knight
 
Mal'Ganis
Nope :\, still have a | with 0 missing. It is in the right place and green though.

Offline
Reply With Quote
Old 10/21/08, 12:13 AM   #422
amele
Von Kaiser
 
Undead Rogue
 
Skullcrusher
Originally Posted by Yessia View Post
Nope :\, still have a | with 0 missing. It is in the right place and green though.
try: [MissingHP~=0 ? ('|':Color('008000'))]

Offline
Reply With Quote
Old 10/21/08, 4:53 AM   #423
Yessia
Don Flamenco
 
Yessia's Avatar
 
Blood Elf Death Knight
 
Mal'Ganis
Originally Posted by amele View Post
try: [MissingHP~=0 ? ('|':Color('008000'))]
Perfect, thanks!

Offline
Reply With Quote
Old 10/21/08, 4:19 PM   #424
soylentorange
Glass Joe
 
Blood Elf Warlock
 
Drenden
As WoW Ace has closed its doors, the DogTags wiki is gone. I've searched desperately for a replacement, as I am just starting to use DogTags myself and am somewhat clueless, but the wiki appears to have just been swallowed up by the internet. Is there a replacement for it or a new location that I'm just missing?

Offline
Reply With Quote
Old 10/21/08, 5:16 PM   #425
Baloril
Von Kaiser
 
Baloril's Avatar
 
Dwarf Death Knight
 
Proudmoore
The old wowace site has been archived. You can basically get to any old wiki page by replacing the 'www' with 'old'. Like so: LibDogTag-3.0 - WowAce Wiki

[edit to avoid a gauche double post]
Originally Posted by Wodahs View Post
This is my target frame raid synergy script.
[(IsEnemy ? ~IsPlayerOrPet ? NumDebuffs:Hide(0)) (if (IsEnemy ? ~IsPlayerOrPet) then
    end) (if (HasAura("Icy Touch") or HasAura("Infected Wounds") or HasAura("Judgements of the Just") or HasAura("Thunder Clap")) then
        " TC":Green
    else
        " TC":Red
    end) (if HasAura("Sunder Armor") then
        " SA":Green
    else
The deathknight attack speed reduction debuff is actually Frost Fever, and you'll probably want to add Acid Spit and Expose Armor to your sunder indicator.

Last edited by Baloril : 10/21/08 at 5:26 PM.

Offline
Reply With Quote
Reply

Go Back   Elitist Jerks » 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