Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetItemQualityColor
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Example == for i = 0, 8 do local r, g, b, hex = GetItemQualityColor(i) print(i, hex, _G["ITEM_QUALITY" .. i .. "_DESC"], hex:sub(5)) end === Result === : Will print all qualities, in their individual colors (example result from version 6.2.4). 0 <span style="color: #9d9d9d">Poor ff9d9d9d</span> 1 <span style="color: #ffffff">Common ffffffff</span> 2 <span style="color: #1eff00">Uncommon ff1eff00</span> 3 <span style="color: #0070dd">Rare ff0070dd</span> 4 <span style="color: #a335ee">Epic ffa335ee</span> 5 <span style="color: #ff8000">Legendary ffff8000</span> 6 <span style="color: #e6cc80">Artifact ffe6cc80</span> 7 <span style="color: #e6cc80">Heirloom ffe6cc80</span> 8 <span style="color: #00ccff">WoW Token ff00ccff</span>
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Close
Loading editor…