1. #10781
    Code:
    local cr,cg,cb = ClassColor(unit)
    local abbr = Name(unit)
    if not UnitIsPlayer(unit) then
      cr = 108
      cg = 123
      cb = 139
    end
    if abbr:len() > 6 and abbr:find(" ") then
      abbr = abbr:gsub("([^ ]+) +",
        function(text)
            return text:sub(1,1) .. ". "
        end)
    end
    return "|cff%02x%02x%02x%s", cr,cg,cb,abbr;

  2. #10782
    Awesome. Working exactly how I wanted.

    Much appreciated, Sakpoth.

  3. #10783
    Hello sorry if this as been asked a million times before but I am looking for a stat display addon like the one circled red in the pic below. I used to just stats and sldt but they both seem to no longer work.

    http://i.imgur.com/HsJt4.jpg

  4. #10784
    It's ElvUI comp from tukui

  5. #10785
    http://www.wowinterface.com/download...tats.html#info
    Is one of them.

    You can achieve what you want with these settings:
    http://img40.imageshack.us/img40/4291/tattoooh.png

    No additional stats can be displayed with it tho.

  6. #10786
    Thats close to what I am looking for but what I need is an addon that can display stats like agility sp crit haste ect in that way. If there's a broker type addon that could work too.

  7. #10787
    Quote Originally Posted by Terminuss View Post
    Thats close to what I am looking for but what I need is an addon that can display stats like agility sp crit haste ect in that way. If there's a broker type addon that could work too.
    http://www.wowace.com/addons/broker-statistics/
    Think this broker does what you want

  8. #10788
    I got this so far in kgpanels. I use it in 5 panels and it shows my resources, if i got 3 combo points / holy power it sets the alpha to the first 3 panels to 1, if not the alpha is 0.3. It hides on all classes except on my paladin, rogue and on my druid (when im in cat form).
    Now is it possible to set the color to gray if im playing my paladin and im below level 90, since at lower levels, you only have 3 holy power? Other then that, any improvements i can make?
    Kind of proud since i got 0 experience with LUA

    OnLoad:
    Code:
    self:RegisterEvent("PLAYER_ENTERING_WORLD")
    self:RegisterEvent("UPDATE_SHAPESHIFT_FORM")
    self:RegisterEvent("UPDATE_SHAPESHIFT_FORMS")
    self:RegisterEvent("UNIT_COMBO_POINTS")
    self:RegisterEvent("UNIT_POWER")

    OnEvent:
    Code:
    local Stance = GetShapeshiftForm()
    local _, Class = UnitClass("player")
    
    if Class == "DRUID" and Stance == 3 then
        self:Show() self.bg:SetVertexColor(1.00, 0.49, 0.04)
    elseif Class == "ROGUE" then
        self:Show() self.bg:SetVertexColor(1.00, 0.96, 0.41)
    elseif Class == "PALADIN" then
        self:Show() self.bg:SetVertexColor(0.96, 0.55, 0.73)
    else self:Hide()
    end
    
    if GetComboPoints("player","target") >= 5 then
        self.bg:SetAlpha(1)
    elseif UnitPower("player", SPELL_POWER_HOLY_POWER) >= 5 then
        self.bg:SetAlpha(1) 
    else self.bg:SetAlpha(0.3)
    end

  9. #10789
    Looks solid. Good job.

    You'll probably want to check for UnitLevel and register PLAYER_LEVEL_UP.
    UI & AddOns expert | Interface & Macros moderator - My work

  10. #10790
    Quote Originally Posted by Treeston View Post
    Looks solid. Good job.

    You'll probably want to check for UnitLevel and register PLAYER_LEVEL_UP
    Ok, i got this:

    Code:
    local Stance = GetShapeshiftForm()
    local _, Class = UnitClass("player")
    
    if Class == "PALADIN" and UnitLevel("player") >= 89 then
        self.bg:SetVertexColor(0.96, 0.55, 0.73) else
        self.bg:SetVertexColor(0.5, 0.5, 0.5)
    elseif Class == "DRUID" and Stance == 3 then
        self:Show() self.bg:SetVertexColor(1.00, 0.49, 0.04)
    elseif Class == "ROGUE" then
        self:Show() self.bg:SetVertexColor(1.00, 0.96, 0.41)
    else self:Hide()
    end
    
    if GetComboPoints("player","target") >= 5 then
        self.bg:SetAlpha(1)
    elseif UnitPower("player", SPELL_POWER_HOLY_POWER) >= 5 then
        self.bg:SetAlpha(1) 
    else self.bg:SetAlpha(0.3)
    end
    But it say [string "CP5_OnEvent"]:7: 'end' expected (to close 'if' at line 4) near 'elseif'
    Last edited by Deathtrip2k; 2012-11-25 at 05:24 PM.

  11. #10791
    Code:
    if Class == "DRUID" and Stance == 3 then
    self:Show() self.bg:SetVertexColor(1.00, 0.49, 0.04)
    elseif Class == "ROGUE" then
    self:Show() self.bg:SetVertexColor(1.00, 0.96, 0.41)
    elseif Class == "PALADIN" then
        if UnitLevel("player") >= 89 and Class == "PALADIN" then
        self.bg:SetVertexColor(0.96, 0.55, 0.73)
        else self.bg:SetVertexColor(0.5, 0.5, 0.5)
    end 
    else self:Hide()
    end


    Code is usually indented differently from how you do it to make the hierarchy more obvious, though:
    Code:
    if Class == "DRUID" and Stance == 3 then
        self:Show() self.bg:SetVertexColor(1.00, 0.49, 0.04)
    elseif Class == "ROGUE" then
        self:Show() self.bg:SetVertexColor(1.00, 0.96, 0.41)
    elseif Class == "PALADIN" then
        if UnitLevel("player") >= 89 and Class == "PALADIN" then
            self.bg:SetVertexColor(0.96, 0.55, 0.73)
        else
            self.bg:SetVertexColor(0.5, 0.5, 0.5)
        end 
    else
        self:Hide()
    end
    UI & AddOns expert | Interface & Macros moderator - My work

  12. #10792
    Awsome! thanks alot, Feral druid, rogue and paladin down... All the other classes to go

  13. #10793
    Couldn't find anything with search, perhaps my googlefu is weak.

    I'm looking for an addon that alerts me when specific text appears. Ie. I'm on another monitor reading etc and I want it to announce someone looking for alchemist or hpally for example.

    Is this possible or does it exist?

  14. #10794
    Working on AZCastbars aura plug-in. How do I make aura timers appear as #h, #m, and # (for seconds)? I don't care much for the ##:## style.

    I found this if it helps at all.

    Code:
    if (self.cfg.auraLabelFormat == "STACK") then
    			bar.name:SetFormattedText(timer.count and timer.count > 1 and "%d" or "",timer.count);
    		else
    			bar.name:SetFormattedText(timer.count and timer.count > 1 and self.cfg.auraLabelFormat == "FULL" and "%s (%d)" or "%s",timer.label,timer.count);
    Edit: I saw someone say something about TatooStats somewhere around these parts, checked it out, now I'm wondering how to add a font shadow to its text. I have "shadowoffset = {x = 1, y = -1}" from my bChat, but I'm unsure of where it would go.
    Last edited by Jeremypwnz; 2012-11-26 at 07:46 PM.
    Omnipotent WCL || Omnipotent Site || Stream: 5-9pm PST Tues/Wed/Thurs || Worst Btag Ever: Slenderman#1355

  15. #10795
    Is there an add-on out there that tells you what new skills your off-spec gets when you level up?

    It's very annoying to miss something major for your off-spec and don't realize it til 20 levels later. :S

    The current UI only announces when your current spec learns something new.

  16. #10796
    I have a setup in weakAuras that I'm happy with, though I want the aura I created to hide (specifically, fade out over a 3 second duration) when not having anything targeted. How could I do this? Let me know if this isn't specific enough.

  17. #10797
    Warchief Henkdejager's Avatar
    Join Date
    Nov 2010
    Location
    Hiding in your computer.
    Posts
    2,131
    any1 here know what addon this it :

    http://www.youtube.com/watch?&v=8v3H...&noredirect=1#!

    the bars the warrior uses above his enemies and how he configs it. wish i could ask him myself but he blocked messages..

  18. #10798
    Quote Originally Posted by Henkdejager View Post
    any1 here know what addon this it :

    http://www.youtube.com/watch?&v=8v3H...&noredirect=1#!

    the bars the warrior uses above his enemies and how he configs it. wish i could ask him myself but he blocked messages..
    Looks like Tidy Plates using the Quatra layout.
    Check out what I'm selling in ESO HERE!

    Interested in joining the MMO-Champion US guild? Whisper me in-game! @greevir

  19. #10799
    Warchief Henkdejager's Avatar
    Join Date
    Nov 2010
    Location
    Hiding in your computer.
    Posts
    2,131
    Quote Originally Posted by Greevir View Post
    Looks like Tidy Plates using the Quatra layout.
    hmm u seem to know more! my tidy plates won't show the color of my enemy class...how can i do this ?

  20. #10800
    Is there any smarter way of writing stuff like this if i want to Fetch and Show / Hide multiple frames?

    Code:
    local _, class = UnitClass("player")
    local Test1 = kgPanels:FetchFrame("Test1")
    local Test2 = kgPanels:FetchFrame("Test2")
    local Test3 = kgPanels:FetchFrame("Test3")
    local Test4 = kgPanels:FetchFrame("Test4")
    local Test5 = kgPanels:FetchFrame("Test5")
    
    if Class == "ROGUE" then
        Test1:Show()
        Test2:Show()
        Test3:Show()
        Test4:Show()
        Test5:Show()
     else
        Test1:Hide()
        Test2:Hide()
        Test3:Hide()
        Test4:Hide()
        Test5:Hide()
    end
    Last edited by Deathtrip2k; 2012-11-28 at 12:38 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •