1. #1
    Grunt
    10+ Year Old Account
    Join Date
    Dec 2010
    Location
    Santa Rosa, CA
    Posts
    17

    LUA help - Pitbull Party Leader icon changed to text.

    So I have the following LUA code as a custom text string, it's supposed to show a '+' if a unit is party lead (also trying to find one for Master Looter as well):

    Code:
    theString = ''
    if UnitInParty(unit) and UnitIsPartyLeader(unit) then
        theString = theString.."|cFFffc600+|r"
    end
    return theString
    I saw this in another thread and wanted to use it to have a gold/yellow/orange '+' for a party leader. But I get an error with the code. I even tried copying the original which had "PLEAD " instead of "|cFFffc600+|r" but still no go. I don't know if I'm calling for a PartyLeader check incorrectly or if something else is seemingly wrong. I have other, similar code to check for InCombat and show a white '+' for example

    Code:
    theString = ''
    if UnitAffectingCombat(unit) then
        theString = theString.."|cFFffffff+|r"
    end
    return theString
    Just looking for any help with this. I dislike the leader/master looter icons and would rather just have colored '+' symbols

  2. #2
    UnitIsPartyLeader() no longer exists, use UnitIsGroupLeader(). Also you should localize theString variable:
    Code:
    local theString = ""

  3. #3
    Grunt
    10+ Year Old Account
    Join Date
    Dec 2010
    Location
    Santa Rosa, CA
    Posts
    17
    Thaaaaaaaaank you, you're a life saver. Wish I had known that was changed.

Posting Permissions

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