View Single Post
11/05/14, 01:25 AM   #1
klaro00
 
klaro00's Avatar
Join Date: Apr 2014
Posts: 31
How to get the item's icon or texture when buying/selling

Good morning!

I'm using the events EVENT_SELL_RECEIPT, EVENT_BUY_RECEIPT and EVENT_BUYBACK_RECEIPT to keep track of vendor transactions. Those events send the "name", "type" and "quantity" of sold or bought items.

I would like to display the item icon (in the chat window), so I need the texture or at least the icon string. How do I get this information? Starting point are the event handler function for the mentioned events.

It seems to me as if the "name" part of the mentioned events is a string in item link format. My approach was looking for a way to convert the item link into an icon string or texture with help of a API function. None of the item link functions returns an icon or texture. Any ideas?

Cheers,
Klaus

Last edited by klaro00 : 11/05/14 at 01:32 AM.
  Reply With Quote