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