MMOMinion

Full Version: Loot List
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to automate rolling for items in Eden. 

Looking at the dev addon, I can see I can call Inventory:GetLootList() to access a table that contains things that can be rolled on. How do I call need/greed/pass from there?

In order to run my code, I have to listen for an event. What events are available to hook onto?
To interact with the loot window:

Code:
local needGreed = GetControl("NeedGreed")
if not needGreed then return end
needGreed:Action("Pass") -- Or whatever you want to call, "Greed", "Need"

As for modules, the examples on the forum seem to indicate using

Code:
RegisterEventHandler("Gameloop.Update", function() end, "UniqueHandlerId")