Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetLootRollItemInfo
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!
{{wowapi}} __NOTOC__ GetLootRollItemInfo(RollID); == Parameters == === Arguments === :( rollId ) :;rollid : Number - The number increments by 1 for each new roll. The count is not reset by reloading your UI with ReloadUI() or /console reloadui === Returns === :texture (string) :name (string) :count (integer) :quality (integer) :bindOnPickUp (boolean) :canNeed (boolean) :canGreed (boolean) :canDisenchant (boolean) == Example == :GroupLootFrame_OnShow function GroupLootFrame_OnShow() local texture, name, count, quality = GetLootRollItemInfo(this.rollID); getglobal("GroupLootFrame"..this:GetID().."IconFrameIcon"):SetTexture(texture); getglobal("GroupLootFrame"..this:GetID().."Name"):SetText(name); local color = ITEM_QUALITY_COLORS[quality]; getglobal("GroupLootFrame"..this:GetID().."Name"):SetVertexColor(color.r, color.g, color.b); end == Details == * ''bindOnPickUp'' was added in 1.11.
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)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)