View Single Post
06/30/14, 01:39 PM   #46
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
Originally Posted by farangkao View Post
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.
  Reply With Quote