WoW API: GetLootRollItemInfo

Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetLootRollItemInfo to API GetLootRollItemInfo without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < GetLootRollItemInfo

GetLootRollItemInfo(RollID);

ParametersEdit

ArgumentsEdit

( 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

ReturnsEdit

texture (string)
name (string)
count (integer)
quality (integer)
bindOnPickUp (boolean)
canNeed (boolean)
canGreed (boolean)
canDisenchant (boolean)

ExampleEdit

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

DetailsEdit

  • bindOnPickUp was added in 1.11.