Thread Tools Display Modes
02/15/20, 06:39 AM   #1
Deathbat219
Join Date: Mar 2019
Posts: 9
How to get looted item source?

Hi.
Let's say I looted a dreugh wax. I can get it's info from EVENT_LOOT_RECEIVED. Is there a way to check if it was looted from a writ reward container and not from mail or other sources?
  Reply With Quote
02/15/20, 09:24 PM   #2
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 408
Not directly, no. The most you really get is whether it's a new item or not.

You can get around it by checking the sources you care about and using that - for example if there's a dreugh wax in the writ container someone just opened, and they looted a new one just after.
  Reply With Quote
02/16/20, 11:00 AM   #3
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
You could check the current scene. If it is the mail scene, it is from mail. If it is the loot scene, it is from loot. Not perfect, I know.
  Reply With Quote
02/18/20, 10:30 AM   #4
Deathbat219
Join Date: Mar 2019
Posts: 9
Thanks for your sugestions guys. It turned out that the loot received event doesn't trigger on looting mail or refining raw mats so I don't have to check the loot source
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » How to get looted item source?

Thread Tools
Display Modes

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