Elitist Jerks
Register
Blogs
Forums


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

Reply
 
LinkBack Thread Tools
Old 09/06/10, 8:59 AM   #631
mr.bo
Glass Joe
 
mr.bo's Avatar
 
Tauren Shaman
 
Moon Guard
Battle/Commanding Shout

I set up a DogTag to tell me when my shout was down, but I can't seem to figure out how to get it to differentiate between specs, or stances with DogTag 3.0. I saw that there was another post about stances, but no replies, so I figured I'd give it another shot. Here is what I have. It works great as long as I use the same shout in both stances/specs. Is there a way to set it up for different shouts for each spec/stance?

[Outline] [if (Class(unit="player") = "Warrior") and ~HasAura("Battle Shout") and (MP > 9) then
    "SHOUT!  ":Yellow
end]

Offline
Reply With Quote
Old 10/29/10, 10:38 PM   #632
Phaux
Glass Joe
 
Phaux's Avatar
 
Blood Elf Paladin
 
Mal'Ganis
A dogtag to hide text while casting.

I have 2 lines of text on my bar and I need a dogtag that will allow me to hide the text while casting. Sorry if there is a better way to post the dogtags below or if this has been talked about somewhere else and I missed it.

I need to incorporate both of these lines to hide while player is casting and while target is casting, The 2 lines of text are:

[DifficultyColor]BIO

and

[ClassColor] Lv. [Level] - [SmartRace] [(~IsPlayerOrPet ? Classification:Contains("Rare") ? "Rare":Gray) (~IsPlayerOrPet ? Classification:Contains("Elite") ? "Elite":Yellow) (~IsPlayerOrPet ? Classification:Contains("Boss") ? "Boss":Red)] [IsPlayerOrPet ? Faction:Contains("Alliance") ? "A":HostileColor] [IsPlayerOrPet ? Faction:Contains("Horde") ? "H":HostileColor]

If anyone can help me, that would be aweswome. Thanks in advance.

Offline
Reply With Quote
Old 10/30/10, 11:40 PM   #633
Phaux
Glass Joe
 
Phaux's Avatar
 
Blood Elf Paladin
 
Mal'Ganis
Originally Posted by Phaux View Post
I have 2 lines of text on my bar and I need a dogtag that will allow me to hide the text while casting. Sorry if there is a better way to post the dogtags below or if this has been talked about somewhere else and I missed it.

I need to incorporate both of these lines to hide while player is casting and while target is casting, The 2 lines of text are:

[DifficultyColor]BIO

and

[ClassColor] Lv. [Level] - [SmartRace] [(~IsPlayerOrPet ? Classification:Contains("Rare") ? "Rare":Gray) (~IsPlayerOrPet ? Classification:Contains("Elite") ? "Elite":Yellow) (~IsPlayerOrPet ? Classification:Contains("Boss") ? "Boss":Red)] [IsPlayerOrPet ? Faction:Contains("Alliance") ? "A":HostileColor] [IsPlayerOrPet ? Faction:Contains("Horde") ? "H":HostileColor]

If anyone can help me, that would be aweswome. Thanks in advance.

An update to my own question:

[if CastStartDuration(unit="player") and 'Casting' then    ""else
    DifficultyColor "BIO"end]
and

[if CastStartDuration(unit="player") and 'Casting' then    ""else
    ClassColor "Lv. " Level "  - " SmartRace (~IsPlayerOrPet ? Classification:Contains("Rare") ? "Rare":Gray) (~IsPlayerOrPet ? Classification:Contains("Elite") ? "Elite":Yellow) (~IsPlayerOrPet ? Classification:Contains("Boss") ? "Boss":Red) (IsPlayerOrPet ? 
Faction:Contains("Alliance") ? " A":HostileColor) (IsPlayerOrPet ? Faction:Contains("Horde") ? " H":HostileColor)end]

Offline
Reply With Quote
Old 11/16/10, 4:02 PM   #634
Deipotent
Glass Joe
 
Blood Elf Paladin
 
Kil'Jaeden
I was looking through and couldn't find anything on this so:

Druid:
I need something like this for my power bar
Cat form says Cat
Bear form says Bear
all other forms show mana

Offline
Reply With Quote
Old 12/03/10, 6:21 PM   #635
skmz
Glass Joe
 
Tauren Druid
 
Talnivarr (EU)
Help me with this code.

Nevermind. Made it work.

Last edited by skmz : 12/04/10 at 6:28 AM.

Offline
Reply With Quote
Old 01/29/13, 1:44 PM   #636
t1ck3ts
Glass Joe
 
Gnome Warrior
 
Darksorrow (EU)
Just an update on the Spell Power display code (Updated for 3.0) Its not updating with buffs/trinkets/flasks etc.
Im not the best LUA coder around so i just read up and made some modifications to the code, allowing it to update
when ever things change to your Spell Power

local MAJOR_VERSION = "LibDogTag-3.0"
local MINOR_VERSION = 90000 + tonumber(("$Revision: 203 $"):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(DogTag)

local L = DogTag.L

DogTag:AddTag("Unit", "SpellPower", {
    code = function(school)
        if (school < 0 or school > 7) then
            return nil
        elseif (school == 0) then 
            return GetSpellBonusHealing()
        else
            return GetSpellBonusDamage(school)
        end
    end,
    arg = {
        'school', 'number', '@req',
    },
    ret = "number;nil",    
    events = "UNIT_INVENTORY_CHANGED;UNITID;UNIT_STATS;UNIT_AURA;UNIT_SPELL_POWER",    
    doc = L["Returns the raw spell damage bonus of the player for a given spell tree."],
    example = '[SpellPower(7)] => "2167"',    
    category = L["Miscellaneous"]
})

end

South Africa 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