<?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%3ARequestMoveItem</id>
	<title>API:RequestMoveItem - 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%3ARequestMoveItem"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:RequestMoveItem&amp;action=history"/>
	<updated>2026-10-18T04:53:55Z</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:RequestMoveItem&amp;diff=30671&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:RequestMoveItem&amp;diff=30671&amp;oldid=prev"/>
		<updated>2026-10-16T19:48:15Z</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=Item}}&lt;br /&gt;
Asks the server to move an item (or part of a stack) from one item location to another.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
RequestMoveItem(sourceLocation, sourceSlot, destinationLocation, destinationSlot, count)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;sourceLocation : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Where the item is now. A &amp;lt;code&amp;gt;GameData.ItemLocs&amp;lt;/code&amp;gt; value (the stock UI uses the matching &amp;lt;code&amp;gt;Cursor.SOURCE_*&amp;lt;/code&amp;gt; constants).&lt;br /&gt;
;sourceSlot : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Slot of the item in &amp;lt;code&amp;gt;sourceLocation&amp;lt;/code&amp;gt;, starting at 1.&lt;br /&gt;
;destinationLocation : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Where the item should go. A &amp;lt;code&amp;gt;GameData.ItemLocs&amp;lt;/code&amp;gt; value.&lt;br /&gt;
;destinationSlot : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Slot in &amp;lt;code&amp;gt;destinationLocation&amp;lt;/code&amp;gt;. The stock UI passes &amp;lt;code&amp;gt;GameData.Inventory.FIRST_AVAILABLE_INVENTORY_SLOT&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;GameData.Inventory.FIRST_AVAILABLE_BANK_SLOT&amp;lt;/code&amp;gt; to let the item go to the first free slot.&lt;br /&gt;
;count : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Number of items to move from the stack.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* Accepted locations:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Location !! As source !! As destination&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;GameData.ItemLocs.EQUIPPED&amp;lt;/code&amp;gt; || yes || yes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;GameData.ItemLocs.INVENTORY&amp;lt;/code&amp;gt; || yes || yes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;GameData.ItemLocs.BANK&amp;lt;/code&amp;gt; || yes || yes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;GameData.ItemLocs.QUEST_ITEM&amp;lt;/code&amp;gt; || yes || yes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;GameData.ItemLocs.CRAFTING_ITEM&amp;lt;/code&amp;gt; || yes || yes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;GameData.ItemLocs.CURRENCY_ITEM&amp;lt;/code&amp;gt; || yes || yes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;GameData.ItemLocs.INVENTORY_OVERFLOW&amp;lt;/code&amp;gt; || yes || no&lt;br /&gt;
|}&lt;br /&gt;
: Any other location (for example a guild vault) makes the call do nothing.&lt;br /&gt;
* With &amp;lt;code&amp;gt;INVENTORY_OVERFLOW&amp;lt;/code&amp;gt; as the source, nothing is sent if the overflow holds no item.&lt;br /&gt;
* While the client&amp;#039;s inventory lock flag is set, moves from or to &amp;lt;code&amp;gt;EQUIPPED&amp;lt;/code&amp;gt; are not sent. The same flag blocks [[API:AutoEquipItem|AutoEquipItem]].&lt;br /&gt;
* The client does not check that the source slot holds an item, that the destination is free, or that the item fits there. The server decides.&lt;br /&gt;
* The function needs at least five arguments and only reads the last five.&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;
Moving an item from the cursor into the bank, from &amp;lt;code&amp;gt;default/ea_bankwindow/source/bankwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
RequestMoveItem( Cursor.Data.Source, Cursor.Data.SourceSlot, Cursor.SOURCE_BANK, slot, Cursor.Data.StackAmount )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Unequipping an item into the first free backpack slot, from &amp;lt;code&amp;gt;default/ea_characterwindow/source/characterwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
RequestMoveItem( Cursor.SOURCE_EQUIPMENT, slot, Cursor.SOURCE_INVENTORY, CharacterWindow.FIRST_AVAILABLE_INVENTORY_SLOT, CharacterWindow.equipmentData[slot].stackCount)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:AutoEquipItem|AutoEquipItem]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>