LibLFG

LibLFG

185 Downloads

A basic lib to get listing search results, created as part of DungeonPugs

This library is intended to be used as part of an addon rather than by itself. It will provide 2 tables of data when the LFG list is updated, an 'instance' table with a list of instances and the players looking for that instance. The second table is a list of all players.

To use:

local LibLFG = LibStub("LibLFG-1.0")

--to register for list changes

LibLFG:RegisterCallback("LibLFG_OnListChanged", function, owner)

--get search results

local instanceList, allPlayers = LibLFG:GetSearchResults(categoryID)