Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Find all players who are looking for a group for a specified objective

LFGQuery(category, objective[, class])

Takes

Number category
Must be the index of one of the values retrieved with GetLFGTypes()
Number objective
Must be the index of one of the values retrieved with GetLFGTypeEntries(category)
Number class (optional)
You can probably specify which character class you are searching for (priest, warrior, druid, etc.), but exact usage is unknown

Returns

Nothing

Events

Triggers UPDATE_LFG
Triggered as soon as query results become available (currently never the case, see notice)

Details

Use GetNumLFGResults() to retrieve the number of results and then iterate over them with GetLFGResults(index).
This function, much like any other LFG function, has highly inconsistent code. Executing LFGQuery(nil) will tell you "Usage: LFGQuery(param1[, class])". That prototype is quite outdated but never has been changed, further supporting the assumption stated below.

User:Zelgadis/LFG notice