ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   How to get looted item source? (https://www.esoui.com/forums/showthread.php?t=8965)

Deathbat219 02/15/20 06:39 AM

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?

Dolgubon 02/15/20 09:24 PM

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.

votan 02/16/20 11:00 AM

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.

Deathbat219 02/18/20 10:30 AM

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 :)


All times are GMT -6. The time now is 11:30 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI