Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/17/14, 09:40 AM   #1
Flagrick
 
Flagrick's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 24
GetItemLinkInfo - need help for LootDrop

Hello,

Loot drop is using
Code:
local icon, _, _, _, _ = GetItemLinkInfo( itemName )
with the event
Code:
self.control:RegisterForEvent( EVENT_LOOT_RECEIVED, function( _, ... ) self:OnItemLooted( ... )    end )
But sometimes, icon information is missing.
(In fact alway when it's a quest item that is looted)

for the moment the workaround is
Code:
    if ( not icon or icon == '' ) then
        icon = [[/esoui/art/icons/icon_missing.dds]]
    end
How could have i the icon name ?
There is an icon im my bag, so how should i do to take it with the loot event ?
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » GetItemLinkInfo - need help for LootDrop


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