1. #10781
    For Pitbull, what would be the resulting code of combining:

    Code:
    local dr,dg,db = DifficultyColor(unit)
    local cr,cg,cb = ClassColor(unit)
    local classification = Classification(unit)
    if classification then
      if classification == "Rare" then
        classification = "Rare "
      elseif classification == "Rare-Elite" then
        classification = "Rare+ "
      elseif classification == "Elite" then
        classification = "+ "
      elseif classification == "Boss" then
        classification = "B "
      else
        classification = ""
      end
    else
      classification = ""
    end
    local cls = Class(unit)
    if not UnitIsPlayer(unit) then
      cls = ""
      cr = 108
      cg = 123
      cb = 139
    end
    
    return "    %s|cff%02x%02x%02x%s|r |cff%02x%02x%02x%s|r",classification,dr,dg,db,Level(unit),cr,cg,cb,Name(unit)
    With
    Code:
    local abbr = Name(unit)
    if abbr:len() > 6 and abbr:find(" ") then
      abbr = abbr:gsub("([^ ]+) +",
        function(text)
            return text:sub(1,1) .. ". "
        end)
    end
    return "%s", abbr;
    I would like to get rid of the mob type symbol (Boss / Elite / Rare), as well as the target's level. Just plain class color (with a certain color if it is a NPC), with an abbreviated name.

  2. #10782
    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;

  3. #10783
    Awesome. Working exactly how I wanted.

    Much appreciated, Sakpoth.

  4. #10784
    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

  5. #10785
    It's ElvUI comp from tukui

  6. #10786
    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.

  7. #10787
    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.

  8. #10788
    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

  9. #10789
    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

  10. #10790
    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

  11. #10791
    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.

  12. #10792
    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

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

  14. #10794
    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?

  15. #10795
    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

  16. #10796
    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.

  17. #10797
    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.

  18. #10798
    Warchief Henkdejager's Avatar
    Join Date
    Nov 2010
    Location
    Hiding in your computer.
    Posts
    2,106
    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..

  19. #10799
    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

  20. #10800
    Warchief Henkdejager's Avatar
    Join Date
    Nov 2010
    Location
    Hiding in your computer.
    Posts
    2,106
    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 ?

Posting Permissions

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