Elitist Jerks
Register
Blogs
Forums


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

Reply
 
LinkBack Thread Tools
Old 04/08/08, 1:54 PM   #121
Sethik
Glass Joe
 
Blood Elf Hunter
 
Drak'thul
Originally Posted by Covet View Post
I'm trying this now, I have the LibDogTag-3.0 and LibDogTag-Unit-3.0, but am having issues with the health percentage display. Everything looks perfect if it's a player or NPC target. If it's a player's pet, the HP percent is nudged up against the race.

Player Target


Pet Target (yeah, this is a player SS, but the pet frame does the same thing)
Yeah, I have the same problem. It's a bug with CowTip.

As Contrail/Grey said, if you make sure there's something on the left, it'll fix it. That's why my guild line has [else " "]. You can do the same thing with the other lines if you like, but I was hoping it'd be fixed.

Originally Posted by Covet View Post
Thank you! That makes sense because it was happening with Alliance (non-friendly targets) when their spec wasn't displaying. I ended up switching things up anyway because some of my

One more question... I used the following text in my lines

[Faction or SmartRace]
[if Faction then SmartRace end]
and I love it, but I want to pare it down a bit more. For example, if I'm targeting a player or their pet I only want to know the [SmartRace]. If I'm targeting a non-player (creature, NPC, etc), I want to see the [Faction] and [SmartRace]. Would something like this work?

[if IsPlayerOrPet then SmartRace elseif IsUnit then Faction]
[if Faction then SmartRace end]
This:

[if IsPlayerOrPet then SmartRace else Faction end]
[if not IsPlayerOrPet then SmartRace end]

Last edited by Sethik : 04/08/08 at 2:17 PM.

Offline
Reply With Quote
Old 04/08/08, 3:09 PM   #122
Dinnu
Glass Joe
 
Dwarf Hunter
 
Chromaggus
<edit> Duh check the wiki.

Last edited by Dinnu : 04/08/08 at 3:25 PM.

Offline
Reply With Quote
Old 04/08/08, 8:42 PM   #123
Migzankpoofa
Glass Joe
 
Migzankpoofa's Avatar
 
Night Elf Druid
 
Maelstrom
Originally Posted by Ferous View Post
My codes don't work with the new DogTags, and was wondering if anyone could give me a hand and help me figure out the code for these. They are durations on my LB, Rejuv, and Regrowth within my Pitbull.




The code right now that I have for it is:

[Outline][ [Class#player = Text(Druid)] ? HasAura(Regrowth) ? AuraTimeLeft(Regrowth):Floor:Color(99dd99):Bracket][ [Class#player = Text(Druid)] ? HasAura(Rejuvenation) ? AuraTimeLeft(Rejuvenation):Floor:Color(00bbff):Bracket][ [Class#player = Text(Druid)] ? HasAura(Lifebloom) ? AuraTimeLeft(Lifebloom):Floor:Append([Text(*):Rep([NumAura(Lifebloom)])]):Green:Bracket]
i've been using

[(if HasAura("Lifebloom") then
    AuraDuration("Lifebloom"):Floor
end) (if HasAura("Lifebloom") then
    "*":Repeat(NumAura("Lifebloom"))
end)]
[if HasAura("Rejuvenation") then
    AuraDuration("Rejuvenation"):Floor
end]
[if HasAura("Regrowth") then
    AuraDuration("Regrowth"):Floor
end]

Offline
Reply With Quote
Old 04/08/08, 10:48 PM   #124
Hythloday
Von Kaiser
 
Human Paladin
 
Ghostlands (EU)
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).

Last edited by Hythloday : 04/11/08 at 1:24 PM.

Offline
Reply With Quote
Old 04/09/08, 1:54 AM   #125
Ferous
Von Kaiser
 
Ferous's Avatar
 
Gnome Mage
 
Hydraxis
Originally Posted by Migzankpoofa View Post
i've been using

[(if HasAura("Lifebloom") then
    AuraDuration("Lifebloom"):Floor
end) (if HasAura("Lifebloom") then
    "*":Repeat(NumAura("Lifebloom"))
end)]
[if HasAura("Rejuvenation") then
    AuraDuration("Rejuvenation"):Floor
end]
[if HasAura("Regrowth") then
    AuraDuration("Regrowth"):Floor
end]
Thank you SOO much for the tags. I am still noobish to the DogTag scripts, and I just copy/pasted my old one from the original DogTag forum. I know how to do simple things, and was really getting a hang of the old scripts when they changed. Thank you again, it is very much appreciated!

Offline
Reply With Quote
Old 04/09/08, 10:13 AM   #126
cs-cam
Von Kaiser
 
cs-cam's Avatar
 
Undead Priest
 
Nagrand
Originally Posted by Migzankpoofa View Post
[if HasAura("Rejuvenation") then
    AuraDuration("Rejuvenation"):Floor
end]
*snip*
I may be wrong on this, still learning myself but how does that handle if you've got HoTs from multiple druids on your target? As I said, I could be wrong here, but I have something similar to track my DoTs and I use AuraDuration() so make sure it's my own debuff because we generally raid with two shadowpriests. May be worth looking at

Offline
Reply With Quote
Old 04/09/08, 1:53 PM   #127
Xca
Glass Joe
 
Excali
Night Elf Druid
 
Non-US/EU Server (EU)
Hey !

I have been trying multiple codes but it is always wrong.

Here is a screen : Link


I opened the code so you can see whats wrong !

Thanks

Xca

Offline
Reply With Quote
Old 04/10/08, 12:52 PM   #128
Nemaa
Piston Honda
 
Nemaa's Avatar
 
Tauren Shaman
 
Twisting Nether (EU)
Tipbuddy-like Cowtip code?

Excuse me if I'm asking in the wrong thread.
Can anyone provide code for CowTip using DogTags to have a Tipbuddy-themed tooltip?


Offline
Reply With Quote
Old 04/10/08, 6:31 PM   #129
Delita
Von Kaiser
 
Blood Elf Paladin
 
Sargeras
Originally Posted by Xca View Post
Hey !

I have been trying multiple codes but it is always wrong.

Here is a screen : Link


I opened the code so you can see whats wrong !

Thanks

Xca

The part that says TalentTree = 'protection' and Talenttree = 'feral combat' needs to be in ", not '

Offline
Reply With Quote
Old 04/11/08, 2:19 AM   #130
dinesh
Piston Honda
 
Gnome Rogue
 
Dalaran
This set of DogTags is similar to the buff checking ones posted earlier, only it will only show up for buffs that are missing. Food and Flask/Elixir are only checked if a boss is targeted; pally, fort, and gift are checked when in a raid.

[Classification(unit="target") = "Boss" ? [~HasAura("Well Fed") ? "Food":Red]] [Classification(unit="target") = "Boss" ? [~HasAura("Flask of Relentless Assault") and ~HasAura("Major Agility") ? "Flask":Red]] [RaidGroup ? [~HasAura("Greater Blessing of Salvation") and ~HasAura("Blessing of Salvation")] ? "Salv":Red] [RaidGroup ? [~HasAura("Greater Blessing of Kings") and ~HasAura("Blessing of Kings")] ? "Kings":Red] [RaidGroup ? [~HasAura("Greater Blessing of Might") and ~HasAura("Blessing of Might")] ? "Might":Red] [RaidGroup ? [~HasAura("Prayer of Fortitude") and ~HasAura("Power Word: Fortitude")] ? "Fort":Red] [RaidGroup ? [~HasAura("Gift of the Wild") and ~HasAura("Mark of the Wild")] ? "GotW":Red]
Obviously, you can or should adjust the Auras it is looking for depending on your class.

The one problem here is that there is no way to tell if you only have 2 (or even 1) pally in your raid, so some pally buffs might get displayed when they are not "missing" per se. If anyone knows how to accomplish this, please shout out.

A second, unrelated problem I am having - [TalentTree] and [TalentSpec] continue to not work for me for the vast majority (as in, practically every) other player - it will only show up on my player object, or if I have myself targeted. Does anyone else have this problem? I am having a similar problem with Proximo, as well. I also vaguely recall reading that it may be an issue of mod conflict somehow - perhaps these two issues are related.

Offline
Reply With Quote
Old 04/11/08, 9:21 AM   #131
vaff
Von Kaiser
 
Murloc Mage
 
Boulderfist (EU)
Hi I'm having some problems with a DogTag, I'm sorry that I can't really link it since I'm currently sitting at work and typing, but ill try and explain.
I'm trying to shorten down my tags as I guess many of you are but I wan't to have my name on my target frame be something like this

Player: lvl.name
Boss: Boss.name
Elite: *lvl.name
Normal mob: lvl.name

while that is fairly simple to make, I have to say something else also though. I have all my bars set to class colored, and I am trying to keep em that way. So I want the lvl (lvl tag) to show the hostility, but only on NPC's on Players I want it class colored. Is that to hard to do ?

Offline
Reply With Quote
Old 04/11/08, 9:25 AM   #132
Malan
Mike Tyson
 
Malan's Avatar
 
Malan
Tauren Shaman
 
No WoW Account
Originally Posted by dinesh View Post
A second, unrelated problem I am having - [TalentTree] and [TalentSpec] continue to not work for me for the vast majority (as in, practically every) other player - it will only show up on my player object, or if I have myself targeted. Does anyone else have this problem? I am having a similar problem with Proximo, as well. I also vaguely recall reading that it may be an issue of mod conflict somehow - perhaps these two issues are related.
As I understand it, in 2.3 Blizzard exposed some portion of the API that mod authors took advantage of to where you could request the talent spec of anyone. Then in 2.4 they said they would allow full inspection of people as long as they aren't pvp flagged - preventing you from seeing arena opponent specs. So if you are mousing over people in Shatt you're probably not getting talents to show up because they're flagged. Its a mostly useless dogtag now in my opinion.

United States Offline
Reply With Quote
Old 04/11/08, 10:34 AM   #133
Wodahs
Don Flamenco
 
Human Rogue
 
Lightbringer
Originally Posted by Malan View Post
As I understand it, in 2.3 Blizzard exposed some portion of the API that mod authors took advantage of to where you could request the talent spec of anyone. Then in 2.4 they said they would allow full inspection of people as long as they aren't pvp flagged - preventing you from seeing arena opponent specs. So if you are mousing over people in Shatt you're probably not getting talents to show up because they're flagged. Its a mostly useless dogtag now in my opinion.
Actually, for arranging a raid, its great. I can see specs of everyone by mousing over them, which can make things really easy to setup.

Offline
Reply With Quote
Old 04/11/08, 10:41 AM   #134
Hythloday
Von Kaiser
 
Human Paladin
 
Ghostlands (EU)
Originally Posted by dinesh View Post
The one problem here is that there is no way to tell if you only have 2 (or even 1) pally in your raid, so some pally buffs might get displayed when they are not "missing" per se. If anyone knows how to accomplish this, please shout out.
I posted a DogTag extension to do exactly this on the previous page.

Offline
Reply With Quote
Old 04/11/08, 12:29 PM   #135
dinesh
Piston Honda
 
Gnome Rogue
 
Dalaran
Originally Posted by Malan View Post
So if you are mousing over people in Shatt you're probably not getting talents to show up because they're flagged.
Thanks for the feedback, but regrettably this is not the case. It doesn't work for anyone in Shatt, flagged or not. And it doesn't work for my own guild when I am in raids, and none of us are flagged for sure.

Of course, given that you are always flagged in arenas, it does make sense that talent specs won't be visible in arenas, making the functionality a complete loss in Proximo. I mentioned it only as a secondary consideration, though - the primary use is in my general PitBull target frames.

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