<?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%3AItemContainerLootItem</id>
	<title>API:ItemContainerLootItem - 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%3AItemContainerLootItem"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:ItemContainerLootItem&amp;action=history"/>
	<updated>2026-10-17T22:07:05Z</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:ItemContainerLootItem&amp;diff=30525&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:ItemContainerLootItem&amp;diff=30525&amp;oldid=prev"/>
		<updated>2026-10-16T19:45:57Z</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=Loot}}&lt;br /&gt;
Picks one item from an opened item container (a &amp;quot;choose one&amp;quot; loot bag from the backpack) and closes the choice.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ItemContainerLootItem(choiceIndex)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;choiceIndex : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Position of the chosen item in the list from [[API:GameData.InteractData.GetItemLootList|GameData.InteractData.GetItemLootList]], starting at 1.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* If the index is inside the container&amp;#039;s list, the client sends the server a request to use the container with that choice. Nothing is sent if no item container is open, the index is outside the range the client stored for the container, or the connection is not ready.&lt;br /&gt;
* Only the low byte of &amp;lt;code&amp;gt;choiceIndex&amp;lt;/code&amp;gt; is used for the range check.&lt;br /&gt;
* After the call, the client clears its stored item-container loot list, whether or not a request was sent. [[API:GameData.InteractData.GetItemLootList|GameData.InteractData.GetItemLootList]] returns an empty table until the server sends a new list.&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 when the argument is missing or not a number.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_lootwindow/source/chooseonelootwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
elseif(EA_Window_ChooseOneLoot.lootType == EA_Window_ChooseOneLoot.LOOT_TYPE_ITEM_CONTAINER)&lt;br /&gt;
then&lt;br /&gt;
    ItemContainerLootItem( EA_Window_ChooseOneLoot.currentlySelectedChoice )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
EA_Window_ChooseOneLoot.Hide()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GameData.InteractData.GetItemLootList|GameData.InteractData.GetItemLootList]]&lt;br /&gt;
* [[API:LootItem|LootItem]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>