ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Help/Support (https://www.esoui.com/forums/forumdisplay.php?f=164)
-   -   Need info about OnItemLooted event (https://www.esoui.com/forums/showthread.php?t=7754)

redgabber 05/02/18 08:33 AM

Need info about OnItemLooted event - [solved]
 
Hi

i m hard to find a solution to get the quantity BEFORE OnItemLooted event will fire.

I work into OnInventoryUpdate(..), and the quantity is not known at this moment, just itemLink.

Is there a way to get the quantity before OnItemLooted event ?

events :

OnInventoryUpdate(eventCode,bagId,slotId,isNewItem,itemSoundCategory,updateReason)
i build itemLink from parameters here.

OnItemLooted(eventCode, lootedBy, itemLink, quantity, itemSound, lootType, isSelf, isPickpocketLoot)

same here
http://www.esoui.com/forums/showthre...=item+quantity

is it limited by the API ?

thanks

Shinni 05/02/18 09:15 AM

Quote:

I work into OnInventoryUpdate(..), and the quantity is not known at this moment, just itemLink.
You DO get the quantity from the inventory update event.

EVENT_INVENTORY_SINGLE_SLOT_UPDATE (number eventCode, Bag bagId, number slotId, boolean isNewItem, ItemUISoundCategory itemSoundCategory, number inventoryUpdateReason, number stackCountChange)

redgabber 05/02/18 09:30 AM

The quantity from the bag slot is not the quantity you looted, it s the quantity of how many you have in your bag for this item.

the quantity u got from lootItem event is different.
It concern only the loot

not the entire pile after inventory update and loot item addition.

will see for stackCountChange

redgabber 05/02/18 09:42 AM

finally stackCountChange do the trick :)

solved

Thx


All times are GMT -6. The time now is 01:22 PM.

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