<?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%3AClaimMarketingReward</id>
	<title>API:ClaimMarketingReward - 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%3AClaimMarketingReward"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:ClaimMarketingReward&amp;action=history"/>
	<updated>2026-10-17T12:51:25Z</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:ClaimMarketingReward&amp;diff=30234&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:ClaimMarketingReward&amp;diff=30234&amp;oldid=prev"/>
		<updated>2026-10-16T19:41:21Z</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=Game}}&lt;br /&gt;
Asks the server to deliver a reward from the account rewards (&amp;quot;claim&amp;quot;) window.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ClaimMarketingReward(rewardIndex)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;rewardIndex : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Position of the reward in the list from [[API:GameData.InteractData.GetClaimWindowList|GameData.InteractData.GetClaimWindowList]], starting at 1.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The client looks up the reward in its stored claim list and sends the server a claim request for it. [[API:ResetMarketingReward|ResetMarketingReward]] sends the same request with a &amp;quot;reset&amp;quot; flag instead.&lt;br /&gt;
* Nothing is sent if the stored item list and reward list have different lengths, or the index is too large. Only the low byte of &amp;lt;code&amp;gt;rewardIndex&amp;lt;/code&amp;gt; is used.&lt;br /&gt;
* The range check accepts an index one past the end of the list (&amp;lt;code&amp;gt;rewardIndex&amp;lt;/code&amp;gt; equal to the number of rewards plus 1). In that case the client reads past the end of its stored list. Pass only indexes of entries in the list.&lt;br /&gt;
* The argument check names the wrong function: if the argument is missing or not a number, the &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; message names &amp;lt;code&amp;gt;ItemContainerLootItem&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Exactly one argument must be passed.&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 (see Details).&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_claimwindow/source/claimwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function EA_Window_Claim.ClaimReward()&lt;br /&gt;
	if EA_Window_Claim.currentlySelectedChoice ~= EA_Window_Claim.NO_SELECTION_MADE &lt;br /&gt;
	then&lt;br /&gt;
	    ClaimMarketingReward( EA_Window_Claim.currentlySelectedChoice )		  		&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:ResetMarketingReward|ResetMarketingReward]]&lt;br /&gt;
* [[API:GameData.InteractData.GetClaimWindowList|GameData.InteractData.GetClaimWindowList]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>