<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ASendOpenPartyWorldSearch</id>
	<title>API:SendOpenPartyWorldSearch - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ASendOpenPartyWorldSearch"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:SendOpenPartyWorldSearch&amp;action=history"/>
	<updated>2026-10-18T06:58:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:SendOpenPartyWorldSearch&amp;diff=30703&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:SendOpenPartyWorldSearch&amp;diff=30703&amp;oldid=prev"/>
		<updated>2026-10-16T19:48:46Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=Social}}&lt;br /&gt;
Asks the server for a world-wide list of open parties and warbands that match a tier and interests.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SendOpenPartyWorldSearch(tier, interest, specificInterest1, specificInterest2, specificInterest3, specificInterest4)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;tier : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Tier, 1–4.&lt;br /&gt;
;interest : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – A &amp;lt;code&amp;gt;GameData.OpenPartyInterest&amp;lt;/code&amp;gt; value.&lt;br /&gt;
;specificInterest1 … specificInterest4 : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Specific interests: zone, scenario or dungeon ids, depending on &amp;lt;code&amp;gt;interest&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* Nothing is sent when &amp;lt;code&amp;gt;tier&amp;lt;/code&amp;gt; is outside 1–4, or when the connection is not ready.&lt;br /&gt;
* &amp;lt;code&amp;gt;tier&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;interest&amp;lt;/code&amp;gt; are sent as 8-bit values, the four specific interests as 32-bit values.&lt;br /&gt;
* This function sends the same message as [[API:SetOpenPartyWorldInterests|SetOpenPartyWorldInterests]], with a different command value: here it asks for a search.&lt;br /&gt;
* The results are read with [[API:GetOpenPartyWorldList|GetOpenPartyWorldList]]. The stock UI refreshes its list when &amp;lt;code&amp;gt;SystemData.Events.SOCIAL_OPENPARTY_WORLD_UPDATED&amp;lt;/code&amp;gt; fires, and limits searches with its own refresh timer.&lt;br /&gt;
* The function needs at least six arguments and only reads the last six.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None besides the generic &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; message when an argument is not a number.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_openpartywindow/source/openpartywindowtabworld.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function EA_Window_OpenPartyWorld.Search()&lt;br /&gt;
    if (EA_Window_OpenPartyWorld.RequestDelay == 0)&lt;br /&gt;
    then&lt;br /&gt;
        local tier, interest, specificInterest1, specificInterest2, specificInterest3, specificInterest4 = GetCurrentSelections()&lt;br /&gt;
        SendOpenPartyWorldSearch( tier, interest, specificInterest1, specificInterest2, specificInterest3, specificInterest4 )&lt;br /&gt;
        EA_Window_OpenPartyWorld.RequestDelay = EA_Window_OpenPartyWorld.REFRESH_DELAY_TIMER&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GetOpenPartyWorldList|GetOpenPartyWorldList]]&lt;br /&gt;
* [[API:SetOpenPartyWorldInterests|SetOpenPartyWorldInterests]]&lt;br /&gt;
* [[API:UnsetOpenPartyWorldInterests|UnsetOpenPartyWorldInterests]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>