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 |
Quote:
EVENT_INVENTORY_SINGLE_SLOT_UPDATE (number eventCode, Bag bagId, number slotId, boolean isNewItem, ItemUISoundCategory itemSoundCategory, number inventoryUpdateReason, number stackCountChange) |
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 |
finally stackCountChange do the trick :)
solved Thx |
All times are GMT -6. The time now is 06:40 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI