View Single Post
04/17/14, 11:43 AM   #2
BadVolt
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 74
Originally Posted by Flagrick View Post
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 ?
There are several ways to get link, like GetQuestRewardItemLink(). You can try this.
  Reply With Quote