MMOMinion
Loot List - Printable Version

+- MMOMinion (https://www.mmominion.com)
+-- Forum: FFXIVMinion (https://www.mmominion.com/forumdisplay.php?fid=87)
+--- Forum: [DOWNLOADS] Addons, Lua Modules, Navigation Meshes.. (https://www.mmominion.com/forumdisplay.php?fid=90)
+---- Forum: I Need Help with LUA coding! (https://www.mmominion.com/forumdisplay.php?fid=104)
+---- Thread: Loot List (/showthread.php?tid=21798)



Loot List - tenaciel - 07-24-2019

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?


RE: Loot List - tenaciel - 07-29-2019

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")