API ConfirmLootRoll

Confirm your loot roll after either or  fires. ConfirmLootRoll(rollID[ ,roll])

Arguments

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

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