Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:SendOpenPartyWorldSearch

From RoR Wiki
Revision as of 19:48, 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 · Social functions
Version: WAR 1.4.8

Asks the server for a world-wide list of open parties and warbands that match a tier and interests.

SendOpenPartyWorldSearch(tier, interest, specificInterest1, specificInterest2, specificInterest3, specificInterest4)

Arguments

tier
number – Tier, 1–4.
interest
number – A GameData.OpenPartyInterest value.
specificInterest1 … specificInterest4
number – Specific interests: zone, scenario or dungeon ids, depending on interest.

Returns

Nothing.

Details

  • Nothing is sent when tier is outside 1–4, or when the connection is not ready.
  • tier and interest are sent as 8-bit values, the four specific interests as 32-bit values.
  • This function sends the same message as SetOpenPartyWorldInterests, with a different command value: here it asks for a search.
  • The results are read with GetOpenPartyWorldList. The stock UI refreshes its list when SystemData.Events.SOCIAL_OPENPARTY_WORLD_UPDATED fires, and limits searches with its own refresh timer.
  • The function needs at least six arguments and only reads the last six.

Errors

None besides the generic Invalid Parameters message when an argument is not a number.

Example

From default/ea_openpartywindow/source/openpartywindowtabworld.lua:

function EA_Window_OpenPartyWorld.Search()
    if (EA_Window_OpenPartyWorld.RequestDelay == 0)
    then
        local tier, interest, specificInterest1, specificInterest2, specificInterest3, specificInterest4 = GetCurrentSelections()
        SendOpenPartyWorldSearch( tier, interest, specificInterest1, specificInterest2, specificInterest3, specificInterest4 )
        EA_Window_OpenPartyWorld.RequestDelay = EA_Window_OpenPartyWorld.REFRESH_DELAY_TIMER
    end
end

See also