WoWInterface - View Single Post - Combine two lua scripts
View Single Post
06-25-20, 09:57 AM   #9
A Pyroguard Emberseer
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,934
Both ClassColor() and Angle() are only giving their first return values since they are not at the end of the list. The rest are discarded.

Lua Code:
  1. local s=Status(unit)
  2. if s then return s end
  3. local s1,s2,s3=Angle(AFK(unit) or DND(unit))
  4. local cur,max=HP(unit),MaxHP(unit)
  5. local cr,cg,cb=ClassColor(unit)
  6. local hr,hg,hb=HPColor(cur,max)
  7. return "|cff%02x%02x%02x%s|r %s%s%s || |cff%02x%02x%02x%.0f|r %%",cr,cg,cb,Name(unit),s1,s2,s3,hr,hg,hb,100*cur/max
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote