Fandom

WoWWiki

API ConfirmLootRoll

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < ConfirmLootRoll

Confirm your loot roll after one of the events "CONFIRM_LOOT_ROLL" or "CONFIRM_DISENCHANT_ROLL" has fired.

ConfirmLootRoll(RollID[ ,roll])


Arguments Edit

RollID 
Number - As passed by the event. (The number increases with every roll you have in a party)
roll 
Number - Type of roll: (also passed by the event)
1 : Need roll
2 : Greed roll
3 : Disenchant roll


Example Edit

local f = CreateFrame("Frame", "MyAddon")
f:RegisterEvent("CONFIRM_LOOT_ROLL")
f:SetScript("OnEvent",function(self,event,...)
  if event == "CONFIRM_LOOT_ROLL" then
    local RollID = select(1, ...)
    local roll = select(2, ...)
    ConfirmLootRoll( RollID, roll )
  end   
end)

Result

Every Need or Greed roll will automatically get confirmed.

Also on Fandom

Random Wiki