WoW:API GetLootRollItemInfo: Difference between revisions
Jump to navigation
Jump to search
GetLootRollItemInfo
No edit summary |
mNo edit summary |
||
| Line 33: | Line 33: | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Functions|GetLootRollItemInfo]] | |||
[[Category:API Loot Functions|GetLootRollItemInfo]] | |||
[[Category:API Group Functions|GetLootRollItemInfo]] | [[Category:API Group Functions|GetLootRollItemInfo]] | ||
Revision as of 18:48, 29 August 2005
GetLootRollItemInfo(RollID);
- Arguments
- (required)
- Rollid
- Number - The number increases with every roll you have in a party. Till how high it counts is currently unknown.
- Returns
- texture (string)
- name (string)
- count (integer)
- quality (integer)
- 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
-Documentation by --LumpN