WoW:API GetLootRollItemInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API GetLootRollItemInfo to API GetLootRollItemInfo without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<center>'''GetLootRollItemInfo'''</center>
{{wowapi}} __NOTOC__


  GetLootRollItemInfo(RollID);
  GetLootRollItemInfo(RollID);


----
== Parameters ==
;''Arguments''
=== Arguments ===
:( rollId )


:(required)
:;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
:;Rollid : Number - The number increases with every roll you have in a party. Till how high it counts is currently unknown.


----
=== Returns ===
;''Returns''


:texture (string)
:texture (string)
Line 16: Line 15:
:count (integer)
:count (integer)
:quality (integer)
:quality (integer)
:bindOnPickUp (boolean)
:canNeed (boolean)
:canGreed (boolean)
:canDisenchant (boolean)


----
== Example ==
;''Example''


:GroupLootFrame_OnShow
:GroupLootFrame_OnShow
  function GroupLootFrame_OnShow()
  function GroupLootFrame_OnShow()
  local texture, name, count, quality = GetLootRollItemInfo(this.rollID);
  local texture, name, count, quality = GetLootRollItemInfo(this.rollID);
  getglobal("GroupLootFrame"..this:GetID().."IconFrameIcon"):SetTexture(texture);
  getglobal("GroupLootFrame"..this:GetID().."IconFrameIcon"):SetTexture(texture);
  getglobal("GroupLootFrame"..this:GetID().."Name"):SetText(name);
  getglobal("GroupLootFrame"..this:GetID().."Name"):SetText(name);
  local color = ITEM_QUALITY_COLORS[quality];
  local color = ITEM_QUALITY_COLORS[quality];
  getglobal("GroupLootFrame"..this:GetID().."Name"):SetVertexColor(color.r, color.g, color.b);
  getglobal("GroupLootFrame"..this:GetID().."Name"):SetVertexColor(color.r, color.g, color.b);
  end
  end


----
== Details ==
-Documentation by --[[User:LumpN|LumpN]]
* ''bindOnPickUp'' was added in 1.11.
 
{{Template:WoW API}}
[[Category:API Functions|GetLootRollItemInfo]]
[[Category:API Loot Functions|GetLootRollItemInfo]]
[[Category:API Group Functions|GetLootRollItemInfo]]

Latest revision as of 04:46, 15 August 2023

WoW API < GetLootRollItemInfo

GetLootRollItemInfo(RollID);

Parameters[edit]

Arguments[edit]

( 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[edit]

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

Example[edit]

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[edit]

  • bindOnPickUp was added in 1.11.