Hi,
I have this function:
Lua Code:
local fr = CreateFrame('Frame', nil, UIParent)
fr:RegisterEvent('START_LOOT_ROLL')
fr:RegisterEvent('CONFIRM_LOOT_ROLL')
fr:SetScript(
'OnEvent',
function(self, event, id)
if not id then
return
end
local _, name, _, quality, bop, _, _, canDE = GetLootRollItemInfo(id)
if quality == 2 and autoroll then
ConfirmLootRoll(id, canDE and 3 or 2)
ChatFrame7:AddMessage('Autoroll on item: ' .. (name))
end
end
)
Is it possible to add itemLevel into it as a condition.
I tried GetItemInfo(name) but name can be used only if item is equped or in bag...
Anyone knows how to get to the item like you can do it on tooltip with :GetItem().
Is it WOTLK client.
Thank you