<?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%3ASetOpenPartyWorldInterests</id>
	<title>API:SetOpenPartyWorldInterests - 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%3ASetOpenPartyWorldInterests"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:SetOpenPartyWorldInterests&amp;action=history"/>
	<updated>2026-10-17T08:50:08Z</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:SetOpenPartyWorldInterests&amp;diff=30731&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:SetOpenPartyWorldInterests&amp;diff=30731&amp;oldid=prev"/>
		<updated>2026-10-16T19:49:12Z</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;
Registers the player&amp;#039;s party in the world-wide open party list with a tier and interests.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SetOpenPartyWorldInterests(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:SendOpenPartyWorldSearch|SendOpenPartyWorldSearch]], with a different command value: here it sets the party&amp;#039;s interests.&lt;br /&gt;
* [[API:UnsetOpenPartyWorldInterests|UnsetOpenPartyWorldInterests]] removes the party from the world list again.&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;
local tier, interest, specificInterest1, specificInterest2, specificInterest3, specificInterest4 = GetCurrentSelections()&lt;br /&gt;
SetOpenPartyWorldInterests( tier, interest, specificInterest1, specificInterest2, specificInterest3, specificInterest4 )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;searchable&amp;quot; check box switches between the two calls, from the same file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
if( ButtonGetPressedFlag( PARENT_WINDOW..&amp;quot;SearchableCheckButton&amp;quot; ) )&lt;br /&gt;
then&lt;br /&gt;
    UnsetOpenPartyWorldInterests()&lt;br /&gt;
else&lt;br /&gt;
    if( LastInterestsSet.tier &amp;gt; 0 )&lt;br /&gt;
    then&lt;br /&gt;
        SetOpenPartyWorldInterests(&lt;br /&gt;
            LastInterestsSet.tier,&lt;br /&gt;
            LastInterestsSet.interest,&lt;br /&gt;
            ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:UnsetOpenPartyWorldInterests|UnsetOpenPartyWorldInterests]]&lt;br /&gt;
* [[API:SendOpenPartyWorldSearch|SendOpenPartyWorldSearch]]&lt;br /&gt;
* [[API:GetOpenPartyWorldList|GetOpenPartyWorldList]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>