<?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%3AResetMarketingReward</id>
	<title>API:ResetMarketingReward - 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%3AResetMarketingReward"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:ResetMarketingReward&amp;action=history"/>
	<updated>2026-10-17T07:29: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:ResetMarketingReward&amp;diff=30674&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:ResetMarketingReward&amp;diff=30674&amp;oldid=prev"/>
		<updated>2026-10-16T19:48:18Z</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 reset a reward in the account rewards (&amp;quot;claim&amp;quot;) window.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ResetMarketingReward(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 sends the same request as [[API:ClaimMarketingReward|ClaimMarketingReward]], with a &amp;quot;reset&amp;quot; flag set. What a reset does is decided by the server. The stock UI only shows its Reset button for rewards whose &amp;lt;code&amp;gt;rewardCanReset&amp;lt;/code&amp;gt; field is &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;.&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. 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.ResetReward()&lt;br /&gt;
	if EA_Window_Claim.currentlySelectedChoice ~= EA_Window_Claim.NO_SELECTION_MADE &lt;br /&gt;
	then&lt;br /&gt;
	    ResetMarketingReward( 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:ClaimMarketingReward|ClaimMarketingReward]]&lt;br /&gt;
* [[API:GameData.InteractData.GetClaimWindowList|GameData.InteractData.GetClaimWindowList]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>