Wikia

WoWWiki

API ConfirmLootRoll

Talk0
102,281pages on
this wiki
Revision as of 02:30, March 7, 2010 by Meredy (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
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.

Around Wikia's network

Random Wiki