ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Event_loot_received (https://www.esoui.com/forums/showthread.php?t=163)

Batto 03/04/14 07:14 AM

Event_loot_received
 
Can someone explain me how to use this event? ->
EVENT_LOOT_RECEIVED (string receivedBy, string itemName, integer quantity, integer itemSound, integer lootType, bool self)

my guess would be:

EVENT_MANAGER:RegisterForEvent("xXx", EVENT_LOOT_RECEIVED, OnLootReceived)

function OnLootReceived(a,b,c,d,e,f)
--here u can use the variables a,b,c,d,e,f which contain the information receivedBy, itemName, quantity, itemSound, lootType, self
end

and i would like to post the itemname to the chatwindow or as popup text with or without icon (cause using auto loot. you dont know what you loot, you need to check the inventory for it)

if my guess is wrong, how do u extract the information from the event :banana:

Wykkyd 03/04/14 07:47 AM

That's basically it except all events send eventCode as the first parameter.

Batto 03/04/14 07:58 AM

Thany you very much :cool:

Pawkette 03/04/14 08:52 AM

If you haven't seen my addon LootDrop, it does this.


All times are GMT -6. The time now is 05:12 PM.

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