Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-10-23, 06:14 AM   #1
glupikreten
A Theradrim Guardian
Join Date: Apr 2009
Posts: 60
GetItemInfo from GetLootRollItemInfo

Hi,



I have this function:

Lua Code:
  1. local fr = CreateFrame('Frame', nil, UIParent)
  2. fr:RegisterEvent('START_LOOT_ROLL')
  3. fr:RegisterEvent('CONFIRM_LOOT_ROLL')
  4. fr:SetScript(
  5.     'OnEvent',
  6.     function(self, event, id)
  7.         if not id then
  8.             return
  9.         end
  10.         local _, name, _, quality, bop, _, _, canDE = GetLootRollItemInfo(id)
  11.         if quality == 2 and autoroll then
  12.             ConfirmLootRoll(id, canDE and 3 or 2)
  13.             ChatFrame7:AddMessage('Autoroll on item: ' .. (name))
  14.         end
  15.     end
  16. )

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
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » GetItemInfo from GetLootRollItemInfo


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off