1. #1
    Pandaren Monk Kurdiern's Avatar
    Join Date
    Jun 2009
    Location
    CA-LI-FORNIA GIRLS, I'M IRRESISTABLE!
    Posts
    1,849

    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
    Pit Lord
    Join Date
    Jun 2008
    Location
    Italy
    Posts
    2,489
    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.
    CPU: Intel Core i7-2600K @ 4.8GHz
    Motherboard: Asus P8Z68 Deluxe
    Memory: G.Skill Ripjaws-X 2x4GB 1600Mhz
    VGA: XFX Radeon HD 6990
    Drive: 1 x OCZ Vertex 3 240Gb + 1 x WD Caviar Black 1TB
    PSU: Corsair AX850W Case: Cooler Master HAF X CPU Heatsink: Noctua NH-D14

Posting Permissions

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