WoW:API GetContainerItemLink: Difference between revisions

No edit summary
Line 7: Line 7:
=== Arguments ===
=== Arguments ===


:bag, slot
:bagID, slot


:;bag : Numeric - The number of the bag. Valid bags are 0-4. 0 is the backpack.
:;[[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(bag) ===
=== GetContainerNumSlots(bagID) ===


:[[API GetContainerNumSlots|GetContainerNumSlots(index)]] - Gives you the number of slots available in the bag specified by the index.
:[[API GetContainerNumSlots|GetContainerNumSlots(bagID)]] - Gives you the number of slots available in the bag specified by the index.


=== UseContainerItem(bag,slot) ===
=== UseContainerItem(bagID,slot) ===


:[[API UseContainerItem|UseContainerItem(bag,slot)]] - Uses an item located in bag# and slot#.
:[[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}}) ===
Anonymous user