1. #1
    Pandaren Monk Kurdiern's Avatar
    10+ Year Old Account
    Join Date
    Jun 2009
    Location
    some island
    Posts
    1,851

    Quick Pitbull LUA QUestions

    Quick questions,

    What would the code be to show "Name | Level" With the name being Class Color Coded and the Level having Indicators for Elite, Rare, and Boss?

    Likewise, what would it be fore Name | Health %

    Cheers

  2. #2
    The Lightbringer
    15+ Year Old Account
    Join Date
    Jun 2008
    Location
    Italy
    Posts
    3,564
    but try this out:
    Code:
    local min, max = HP(unit), MaxHP(unit)
    return '%s || %s', UnitName(unit), Percent(min, max)
    Code:
    local r,g,b = ClassColor(unit)
    return "|cff%02x%02x%02x%s || %s %s|r",r,g,b,UnitName(unit), UnitLevel(unit), UnitClassification(unit)
    edit: should work
    Last edited by S7orm; 2013-09-01 at 04:38 PM.

Posting Permissions

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