Originally Posted by farangkao
I found this simple but effective way to get the right data from EVENT_LOOT_RECIEVED ...
On the Event, you simply check the Current Inventory for the same ID, and get the Icon and Name from there, it works very well (didn't found a flaw so far)
You can check the Source Code of Mobile Bank Extended ,function "MB.LootRecieved", the only speciality there is that i've looking in the previously saved Table, but i could also do a live lookup of the inventory to get the same result.
|
I use SlotUpdate to get item information from the inventory and LootReceived to confirm the details were received by the user of the addon and not a third party nearby. It only writes the item details to the data table if the player received the item.