Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:GuildRecruitmentSearch

From RoR Wiki
Revision as of 19:45, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · Guild functions
Version: WAR 1.4.8

Asks the server for a list of guilds that match recruitment search criteria.

GuildRecruitmentSearch(playStyle, atmosphere, searchType, isRecruitingPlayer, minTotalPlayers, minOnlinePlayers, minGuildRank)

Arguments

playStyle
number – A GameData.Recruitment.PlayStyleFlag value.
atmosphere
number – A GameData.Recruitment.AtmosphereFlag value.
searchType
number – A GameData.Recruitment.RecruitingFlag value.
isRecruitingPlayer
boolean – State of the stock UI's "is recruiting player" check box.
minTotalPlayers
number – Minimum number of members (0 = any). Sent as a 16-bit value.
minOnlinePlayers
number – Minimum number of members online (0 = any). Sent as a 16-bit value.
minGuildRank
number – Minimum guild rank. Sent as an 8-bit value.

Returns

Nothing.

Details

  • playStyle, atmosphere and searchType are sent minus 1.
  • The results are not returned by this function. The stock UI receives them in its handler for SystemData.Events.GUILD_RECRUITMENT_SEARCH_RESULTS_UPDATED, which takes a results table, and keeps its Search button disabled until they arrive.
  • isRecruitingPlayer must be a real boolean.
  • The function needs at least seven arguments and only reads the last seven.

Errors

None besides the generic Invalid Parameters message when an argument has the wrong type.

Example

From default/ea_guildwindow/source/guildwindowtabrecruitsearch.lua:

GuildRecruitmentSearch( playStyle,
                        atmosphere,
                        searchType,
                        isRecruitingPlayer,
                        minTotalPlayers,
                        minOnlinePlayers,
                        minGuildRank )

-- Disable the Search Button
GuildWindowTabRecruit.Search.waitingForSearchResults = true
ButtonSetDisabledFlag( "GWRecruitSearchSearchButton", true )

See also