→UseContainerItem(bag,slot)
No edit summary |
|||
| Line 7: | Line 7: | ||
=== Arguments === | === Arguments === | ||
: | :bagID, slot | ||
:; | :;[[API TYPE bagID|bagID]] : Numeric - The number of the bag. Valid bags are 0-4. 0 is the backpack. | ||
:;slot : Numeric - The slot of the specified bag. Valid slots are 1 through BagSize. 1 is the left slot in the top row. | :;slot : Numeric - The slot of the specified bag. Valid slots are 1 through BagSize. 1 is the left slot in the top row. | ||
| Line 39: | Line 39: | ||
:Look for the 'for .. do' block at the [http://www.lua.org/manual/5.0/ Reference Manual]. | :Look for the 'for .. do' block at the [http://www.lua.org/manual/5.0/ Reference Manual]. | ||
=== GetContainerNumSlots( | === GetContainerNumSlots(bagID) === | ||
:[[API GetContainerNumSlots|GetContainerNumSlots( | :[[API GetContainerNumSlots|GetContainerNumSlots(bagID)]] - Gives you the number of slots available in the bag specified by the index. | ||
=== UseContainerItem( | === UseContainerItem(bagID,slot) === | ||
:[[API UseContainerItem|UseContainerItem( | :[[API UseContainerItem|UseContainerItem(bagID,slot)]] - Uses an item located in bag# and slot#. | ||
=== string.find(string,pattern{,init{,plain}}) === | === string.find(string,pattern{,init{,plain}}) === | ||