Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » User Interface and AddOns

Closed Thread
 
LinkBack Thread Tools
Old 03/23/08, 9:26 AM   #101
Sapo
Glass Joe
 
Draenei Shaman
 
Thrall (EU)
Is there a way to make a dogtag which shows my current +Spelldmg or AP?

Offline
Old 03/23/08, 4:40 PM   #102
Ele'
Piston Honda
 
Ele''s Avatar
 
Human Warlock
 
Kirin Tor (EU)
How to use your current Spell/Healing power using DogTags
As promised a while ago, here is the code of the custom lua file I made to use my spellpower in dogTags. You have to create a new Spellpower.lua file in the Modules folder of the lib, and add it in the lib.xml file.

This file can be found here.

When this is done, you can use the following new tag:
[SpellPower(x)]
Where x can have the following values:
0 - Healing
1 - Physical
2 - Holy
3 - Fire
4 - Nature
5 - Frost
6 - Shadow
7 - Arcane

Example:
[[MissingMP#player:IsGreater([[SpellPower(6):Mult(0.8):Add(580)]:Mult(1.2)])?Text(TAP)]

For simplicity's sake, here is the content of Spellpower.lua:
local MAJOR_VERSION = "LibDogTag-2.0"
local MINOR_VERSION = tonumber(("$Revision: 60184 $"):match("%d+")) or 0

if MINOR_VERSION > _G.DogTag_MINOR_VERSION then
	_G.DogTag_MINOR_VERSION = MINOR_VERSION
end

DogTag_funcs[#DogTag_funcs+1] = function()

local L = DogTag.L

DogTag:AddTag("SpellPower", {
	function(data)
		local arg = tonumber(data.arg)
		if (arg < 0 or arg > 7) then
			return [[value = nil]]
		elseif (arg == 0) then
			return [[value = GetSpellBonusHealing()]]
		else
			return [[value = GetSpellBonusDamage(${arg})]]
		end
	end,
	ret = "number;nil",
	arg = "number;string;nil",
	value = "number;string;nil",
	events = "UNIT_INVENTORY_CHANGED",
	globals = "GetSpellBonusDamage;GetSpellBonusHealing",
	doc = L["Returns the raw spell damage bonus of the player for a given spell tree."],
	example = '[SpellPower(6)] => 1200',
	category = L["Miscellaneous"]
})

end

Offline
Old 03/23/08, 5:29 PM   #103
shii
Banned
 
Undead Rogue
 
Mannoroth (EU)
Originally Posted by Trouble View Post
This is just a very simple one I made for displaying the number of scorch stacks on a target.

[[Class#player = Text(Mage)] ? HasAura(Fire Vulnerability) ? NumAura(Fire Vulnerability):Color(00FF00)]
Will it display scorch-debuffs applied by other players or is there an option to only display your own? Would be useful with deadly poison for rogues!

Offline
Old 03/23/08, 6:14 PM   #104
badMonkey
Von Kaiser
 
badMonkey's Avatar
 
Night Elf Rogue
 
Tirion (EU)
I use DogTags for my dots & debuffs on the target (i'm playing a rogue):
[ Outline ][ HasAura(Deadly Poison VIII) ? Text( [Green] [ NumAura(DeadlyPoison VIII]xDP) ]
[ HasAura(Rupture) ? Text([Red]R) ]
I have yellow letters for each stun, red letters for each bleedeffect and green letters for poison with the amount of stacks). It displays all stacks of Deadly Poison, but it's ok because I'm playing with a combat-sword build so I don't really care about the number of DP stacks. I'm currently "on the road" with my notebook so I'll post a screenshot later.

I'd like to see the stun/dot duration since I only see the letter and I have to keep an eye on it to recognize if it fades.Is that possible?

(e)
I forgot to mention that I disabled the PitBull Auras because it's useless for me to see the mage/warlock/druid and so on debuffs.

(ee)
I use DogTags also for Sunder Armor and Lacerate, to see when I can start dps :>
[ Outline ][ HasAura(Sunder Armor) ? Text ( [Fuchsia][NumAura(SunderArmor]xSA ) ]
[ Outline ][ HasAura(Lacerate) ? Text ( [Cyan][NumAura(Lacerate]xL ) ]
(Since there is no "Sunder-Armor"-like stacking Protection Paladin debuff and I can DPS with a tank paladin immediately I have no DogTag for Paladins)

Last edited by badMonkey : 03/23/08 at 6:32 PM.

Offline
Old 03/23/08, 8:05 PM   #105
Sapo
Glass Joe
 
Draenei Shaman
 
Thrall (EU)
Originally Posted by Ele' View Post
How to use your current Spell/Healing power using DogTags
As promised a while ago, here is the code of the custom lua file I made to use my spellpower in dogTags. You have to create a new Spellpower.lua file in the Modules folder of the lib, and add it in the lib.xml file.

This file can be found here.

When this is done, you can use the following new tag:
[SpellPower(x)]
Where x can have the following values:
0 - Healing
1 - Physical
2 - Holy
3 - Fire
4 - Nature
5 - Frost
6 - Shadow
7 - Arcane

Example:
[[MissingMP#player:IsGreater([[SpellPower(6):Mult(0.8):Add(580)]:Mult(1.2)])?Text(TAP)]

For simplicity's sake, here is the content of Spellpower.lua:
local MAJOR_VERSION = "LibDogTag-2.0"
local MINOR_VERSION = tonumber(("$Revision: 60184 $"):match("%d+")) or 0

if MINOR_VERSION > _G.DogTag_MINOR_VERSION then
	_G.DogTag_MINOR_VERSION = MINOR_VERSION
end

DogTag_funcs[#DogTag_funcs+1] = function()

local L = DogTag.L

DogTag:AddTag("SpellPower", {
	function(data)
		local arg = tonumber(data.arg)
		if (arg < 0 or arg > 7) then
			return [[value = nil]]
		elseif (arg == 0) then
			return [[value = GetSpellBonusHealing()]]
		else
			return [[value = GetSpellBonusDamage(${arg})]]
		end
	end,
	ret = "number;nil",
	arg = "number;string;nil",
	value = "number;string;nil",
	events = "UNIT_INVENTORY_CHANGED",
	globals = "GetSpellBonusDamage;GetSpellBonusHealing",
	doc = L["Returns the raw spell damage bonus of the player for a given spell tree."],
	example = '[SpellPower(6)] => 1200',
	category = L["Miscellaneous"]
})

end
I put that spellpower.lua in the Modules folder and add in in the lib.xml but when I use [SpellPower(6)] I get the message that this is an Unknown Tag. What I'm making wrong?

Offline
Old 03/23/08, 8:40 PM   #106
Trouble
Bald Bull
 
Trouble's Avatar
 
Trouble
Blood Elf Druid
 
No WoW Account
Originally Posted by shii View Post
Will it display scorch-debuffs applied by other players or is there an option to only display your own? Would be useful with deadly poison for rogues!
Mages share scorch debuff stacks. I don't know how you'd filter only debuffs that you own.

United States Offline
Old 03/24/08, 2:59 AM   #107
Trouble
Bald Bull
 
Trouble's Avatar
 
Trouble
Blood Elf Druid
 
No WoW Account
Going back to the first page, I took the idea of using dots to represent what buffs you had. I then blacklist the buff in EBB to reduce the space it takes up and to reduce clutter. I use three sets in order to make it easier to determine what I have and what's missing. This configuration is for a caster, mage specifically. You'll want to change what blessings and what flasks are shown. You may also want to add in support for various elixirs, but as a mage you wouldn't generally want to use anything besides Pure Death.

AI, Fort, Spirit, Mark, and Shadow:

[Outline][ [HasAura(Arcane Intellect) | HasAura(Arcane Brilliance)] ? Text(. ):Color(008aff)][ [HasAura(Power Word: Fortitude) | HasAura(Prayer of Fortitude)] ? Text(. ):White][ [HasAura(Divine Spirit) | HasAura(Prayer of Spirit)] ? Text(. ):Yellow][ [HasAura(Mark of the Wild) | HasAura(Gift of the Wild)] ? Text(. ):Color(ff00ce)][ [HasAura(Shadow Protection) | HasAura(Prayer of Shadow Protection)] ? Text(.):Color(8300fd)]
Food + Flask:

[Outline][HasAura(Well Fed) ? Text(. ):Color(682e00)][ [HasAura(Flask of Supreme Power) | HasAura(Shattrath Flask of Supreme Power) | HasAura(Flask of Pure Death) | HasAura(Shattrath Flask of Pure Death)] ? Text(.):Color(ad0505)]
Blessings:

[Outline][ [HasAura(Blessing of Kings) | HasAura(Greater Blessing of Kings)] ? Text(.):Color(5b82ff)][ [HasAura(Blessing of Salvation) | HasAura(Greater Blessing of Salvation)] ? Text( .):Color(a2ff00)][ [HasAura(Blessing of Wisdom) | HasAura(Greater Blessing of Wisdom)] ? Text( .):Color(ac54ff)]

Standard buffs left, consumables middle, blessings right.

Attached Thumbnails
dogtagbuffs.jpg  

United States Offline
Old 03/25/08, 4:20 PM   #108
Trouble
Bald Bull
 
Trouble's Avatar
 
Trouble
Blood Elf Druid
 
No WoW Account
Apparently all my dogtags no longer work and just spam SYNTAX ERROR all over my screen.

United States Offline
Old 03/25/08, 5:49 PM   #109
Samurro
Von Kaiser
 
Undead Death Knight
 
Destromath (EU)
same here since, i updated today i get all the way lib dog tag errors...

Offline
Old 03/25/08, 7:05 PM   #110
 GokieKS
OH NOES!
 
GokieKS's Avatar
 
Citania
Undead Warlock
 
No WoW Account
With 2.4, it's switched to LibDogTag-3.0, which is apparently not a feature-complete release yet, so it does seem a lot of old LDT-2.0 tags aren't working. I just switched to using default displays for the time being until a full list of LDT-3.0 tags are available and then redo/update from there.

"You live and learn. At any rate, you live."
~Douglas Adams (RIP)

United States Offline
Old 03/25/08, 8:09 PM   #111
Olon97
Von Kaiser
 
Tauren Druid
 
Tichondrius
We could really use a DogTag3.0 thread. With all the syntax changes, having example 1.0 & 2.0 syntax tags in the same thread as example 3.0 tags will be dangerously confusing. Especially for the copy, paste, post asking why it didn't work crowd.

Offline
Old 03/25/08, 8:12 PM   #112
Trouble
Bald Bull
 
Trouble's Avatar
 
Trouble
Blood Elf Druid
 
No WoW Account
Is there a place I can look up the DogTags 3 syntax? I was unable to find it.

United States Offline
Old 03/25/08, 8:29 PM   #113
Olon97
Von Kaiser
 
Tauren Druid
 
Tichondrius
It looks like ckknight is working on adding ingame help (which will be "/dog"?), but you can find snippets in this thread.

Some samples he posted:
Okay, just gonna steal a few random tag sequences and show the difference

[ [IsPlayer ? IsFriend] ? Name:ClassColor ! Name:HostileColor]
=>
[IsPlayer & IsFriend ? Name:ClassColor ! Name:HostileColor] or
[if IsPlayer and IsFriend then Name:ClassColor else Name:HostileColor]

------

[ [Guild == Text([Guild#player])] ? Guild:Angle:Purple ! Guild:Angle:HostileColor ]
=>
[Guild = Guild(unit="player") ? Guild:Angle:Purple ! Guild:Angle:HostileColor] or
[if Guild = Guild(unit="player") then Guild:Angle:Purple else Guild:Angle:HostileColor]

------

[ [ Target | InCombat | [CurHP ~= Text([MaxHP])] ] ? CurHP:Append( / ) ][MaxHP]
=>
[(Target | InCombat | CurHP ~= MaxHP ? CurHP " / ") MaxHP] or
[(if Target or InCombat or CurHP ~= MaxHP then CurHP " / ") MaxHP]

------

[ [HasAura(Arcane Intellect) | HasAura(Arcane Brilliance)] ? Text(AI)]
=>
[HasAura("Arcane Intellect", "Arcane Brilliance") ? "AI"] or
[if HasAura("Arcane Intellect", "Arcane Brilliance") then "AI"]

(I plan on allowing HasAura to support any amount of arguments)
------

Note: the names of the tags may change, this is mostly a way to show how tags will look.

Offline
Old 03/26/08, 11:04 AM   #114
Camaris
Piston Honda
 
Camaris's Avatar
 
Human Paladin
 
Kul Tiras (EU)
Anyone else noticed that in Pitbull and Cowtip at least, when you type something like

[Level][Classification]
it gets turned into
[Level Classification]
which does nothing. So you need a space in between those tags, and that leaves you with double spacing in your strings. I guess that needs a fix.

Offline
Old 03/26/08, 11:05 AM   #115
Jitka
Bless me, Father. I ate a lizard.
 
Jitka's Avatar
 
Blood Elf Paladin
 
Suramar
Due to the less than... completeness or backwards compatibility of DogTag-3.0 (which is frustrating and unnecessary from an end user perspective, though I'm sure there are wonderful technical reasons for it) I've just taken forcing cowtip to use DogTag-2.0. For Cowtip, just comment out line 111 in the text.lua file like this:

-- local WoW24 = not not _G.UnitClassBase
and your old dogtags will work normally. I'll wait for DogTag-3.0 to get a little more done until I make the switch, at the moment it's too rare for my taste.

Offline
Old 03/26/08, 12:22 PM   #116
 GokieKS
OH NOES!
 
GokieKS's Avatar
 
Citania
Undead Warlock
 
No WoW Account
Originally Posted by Camaris View Post
Anyone else noticed that in Pitbull and Cowtip at least, when you type something like

[Level][Classification]
it gets turned into
[Level Classification]
which does nothing. So you need a space in between those tags, and that leaves you with double spacing in your strings. I guess that needs a fix.
I'm unable to check for sure at the moment, but I'm pretty sure
[Level Classification]
worked for me, at least as of last night.

"You live and learn. At any rate, you live."
~Douglas Adams (RIP)

United States Offline
Old 03/26/08, 2:15 PM   #117
Gere
Von Kaiser
 
Blood Elf Paladin
 
Bloodhoof
Originally Posted by Jitka View Post
Due to the less than... completeness or backwards compatibility of DogTag-3.0 (which is frustrating and unnecessary from an end user perspective, though I'm sure there are wonderful technical reasons for it) I've just taken forcing cowtip to use DogTag-2.0. For Cowtip, just comment out line 111 in the text.lua file like this:

-- local WoW24 = not not _G.UnitClassBase
and your old dogtags will work normally. I'll wait for DogTag-3.0 to get a little more done until I make the switch, at the moment it's too rare for my taste.
Perfect, any idea how to force Pitbull to 2.0?

Offline
Old 03/26/08, 4:50 PM   #118
Malan
Mind the gap.
 
Malan's Avatar
 
Malan
Tauren Shaman
 
No WoW Account
[Status ? StatusColor ! [CanAttack ? DifficultyColor] ][Classification:Contains(Boss)?Text(Level 73)!Level:Prepend(Level )] [Classification] [~Status ? Color(FEF2C5)][SmartRace:Hide(Not specified):Hide(Unknown)][SmartRace:Contains(Not specified) ? Text(Creature)] [TalentSpec ? TalentTree:Hide(None):ClassColor] [~Status ? ClassColor][PlayerClass]

[~IsPlayerOrPet?Faction:Hide(Alliance):Hide(Horde):HostileColor]
These 2 tags were from page 1 and I'd been using them with CowTip. They broke in 2.4, the "Boss" tag and a few others are missing from DogTag 3.0, anyone know the new formats for this?

United States Offline
Old 03/26/08, 4:54 PM   #119
Ferocity
Glass Joe
 
Tauren Druid
 
Hydraxis
I was hoping, I don't know if I should ask here or in another thread, but was hoping that anyone had any good Lifebloom DogTag's to share? Would be awesome if anyone has any they would like to share =D All I got is [NumAura(Lifebloom)]

Offline
Old 03/26/08, 4:56 PM   #120
Unforgotten
Glass Joe
 
Blood Elf Rogue
 
Blackmoore (EU)
Hi i used this for mousovertarget in cowtip dogtag:

[Class#target?ClassColor#mouseovertarget][IsUnit#player(target)?Text(<<You>>)!NameRealm#mouseovertarget:Text(None)]

but now it seems to be broke. i get an syntax error. somebody know how to write it after 2.4?

Offline
Old 03/26/08, 6:02 PM   #121
Tedsauce
Glass Joe
 
Night Elf Rogue
 
Black Dragonflight
Originally Posted by Gere View Post
Perfect, any idea how to force Pitbull to 2.0?

I applied the fix listed above to both Pitbull.lua and Pitbull_Metalayout.lua and it seemed to fix the majority of my tags.

Offline
Old 03/26/08, 8:17 PM   #122
Sajukar
King Hippo
 
Sajukar's Avatar
 
-
Troll Mage
 
No WoW Account (EU)
Originally Posted by Malan View Post
[Status ? StatusColor ! [CanAttack ? DifficultyColor] ][Classification:Contains(Boss)?Text(Level 73)!Level:Prepend(Level )] [Classification] [~Status ? Color(FEF2C5)][SmartRace:Hide(Not specified):Hide(Unknown)][SmartRace:Contains(Not specified) ? Text(Creature)] [TalentSpec ? TalentTree:Hide(None):ClassColor] [~Status ? ClassColor][PlayerClass]

[~IsPlayerOrPet?Faction:Hide(Alliance):Hide(Horde):HostileColor]
These 2 tags were from page 1 and I'd been using them with CowTip. They broke in 2.4, the "Boss" tag and a few others are missing from DogTag 3.0, anyone know the new formats for this?
Try replacing

[Classification:Contains(Boss)?Text(Level 73)!Level:Prepend(Level )]
With

[Classification="Boss"?"Level 73"!"Level " Level]
As for others, remove the Text() bits and instead just place the text itself surrounded with " " and replace for example RandomTag:Contains(Text) with RandomTag="Text", not sure if there's any other tag there that ain't working.

Offline
Old 03/26/08, 8:24 PM   #123
Gere
Von Kaiser
 
Blood Elf Paladin
 
Bloodhoof
Originally Posted by Tedsauce View Post
I applied the fix listed above to both Pitbull.lua and Pitbull_Metalayout.lua and it seemed to fix the majority of my tags.
When I applied the same fix (commenting out the line) in the above files, my pitbull frames stopped loading for some reason.

Offline
Old 03/26/08, 9:48 PM   #124
MaveN
Von Kaiser
 
Draenei Shaman
 
Uldum
When the new dogtag lib and such comes out so we can get our dogtags back, somone should let everyone know here and post the link. In the meatime i can only imagine it in the process of getting fixed now. Anyway, i disabled my dogtags untill then, but 1 still works, my class colored hp stopped working but the dogtag that shows the level name and percent (class colored) still works.

If anyone knows how to get class colored hp back it will be greatly appreciated if not i will have to wait for dogtag 3.0 (i think it is?) to re apply the code for class colored hp.

Offline
Old 03/26/08, 11:32 PM   #125
Gere
Von Kaiser
 
Blood Elf Paladin
 
Bloodhoof
Originally Posted by MaveN View Post
When the new dogtag lib and such comes out so we can get our dogtags back, somone should let everyone know here and post the link. In the meatime i can only imagine it in the process of getting fixed now. Anyway, i disabled my dogtags untill then, but 1 still works, my class colored hp stopped working but the dogtag that shows the level name and percent (class colored) still works.

If anyone knows how to get class colored hp back it will be greatly appreciated if not i will have to wait for dogtag 3.0 (i think it is?) to re apply the code for class colored hp.
[HP:ClassColor]

Offline
Closed Thread

Go Back   Elitist Jerks » User Interface and AddOns

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
I thought I would share the best site ever just in wow Public Discussion 7 12/27/05 12:46 PM