how does EVENT_INVENTORY_SINGLE_SLOT_UPDATE exactly work?
Hi Folks, its me again. :)
I have a problem with an Event Handler wrapped around my function. The function itself loots all items, checks if the user whished to loot that item and destroys all left overs. My problem is, that the Event wouldnt fire. I register it right before the loot actions starts and unregister it when the looting action ends. Code:
function LootManager.Lootinit() |
Quote:
https://www.esoui.com/downloads/info...ourcecode.html |
For me it seems you are registering the event callback function for that event as the Loot starts in function LootInit.
But you also unregister it there again in the following lines if a setting in your addon is set to true. So maybe check if the register and unregister are both done within half a second and move the unregister somewhere else then after the loot has finished. |
Thx guys. I have found my fail. Beartram was right. The position from the unregister function was wrong.
|
All times are GMT -6. The time now is 06:14 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI