Thread Tools Display Modes
03/04/14, 07:14 AM   #1
Batto
Join Date: Mar 2014
Posts: 2
Question 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
  Reply With Quote
03/04/14, 07:47 AM   #2
Wykkyd
Are you Wykkyd Gaming?
 
Wykkyd's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 107
That's basically it except all events send eventCode as the first parameter.
  Reply With Quote
03/04/14, 07:58 AM   #3
Batto
Join Date: Mar 2014
Posts: 2
Thany you very much
  Reply With Quote
03/04/14, 08:52 AM   #4
Pawkette
 
Pawkette's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 20
If you haven't seen my addon LootDrop, it does this.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Event_loot_received


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off