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? |
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. |
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.
|
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 08:00 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI