WoW:API EquipCursorItem: Difference between revisions
Jump to navigation
Jump to search
(created 8/31/05) |
No edit summary |
||
Line 9: | Line 9: | ||
<br> | <br> | ||
'''Notes'''<br> | '''Notes'''<br> | ||
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( | 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 [[API PickupInventoryItem|PickupInventoryItem(index)]], but seems to be one off from it: | ||
<br> | <br> | ||
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<br> | 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<br> |
Revision as of 23:26, 7 September 2005
Function
EquipCursorItem( <number> );
Parameters
<number> : Slot to be equipped in (see notes).
Return
Unknown
Notes
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 8/31/05 by Popoi