WoW:API EquipCursorItem

From AddOn Studio
Revision as of 21:00, 5 January 2006 by WoWWiki>Lexic
Jump to navigation Jump to search

Function
EquipCursorItem( <number> );

Parameters
<number> : Slot to be equipped in (see notes).

Return
Unknown

Notes
The <number> parameter is exactly that of PickupInventoryItem(index), The off by one error was corrected in interface version 10900. (The text below left for reference and repair of old mods)

Notes before 10900
This function will equip the item that has been 'picked up' and is held by the cursor. The <number> parameter seems to be similar to PickupInventoryItem(index), but seems to be one off from it:
0 = head, 1 = neck, 2 = shoulder, 3 = shirt, 4 = chest, 5 = belt, 6 = legs, 7 = feet, 8 = wrist, 9 = gloves, 10 = finger 1, 11 = finger 2, 12 = trinket 1, 13 = trinket 2, 14 = back, 15 = main hand, 16 = off hand, 17 = ranged

Furthermore:
18 - 22 = UNKNOWN
23 = Backpack slot 1
...
38 = Backpack slot 16
39 = Bank slot 1
...

Last edited 01/05/06 by Lex Delani

Template:WoW API