WoW:API EquipCursorItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
<br>
<br>
'''Notes'''<br>
'''Notes'''<br>
The <number> parameter is exactly that of [[API PickupInventoryItem|PickupInventoryItem(index)]], The off by one error was corrected in interface version 10900. (The text below left for reference and repair of old mods)
<br><br>
'''Notes before 10900'''<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 [[API PickupInventoryItem|PickupInventoryItem(index)]], but seems to be one off from it:
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>
Line 21: Line 24:
...<br>
...<br>
<br>
<br>
''Last edited 8/31/05 by Popoi''
''Last edited 01/05/06 by Lex Delani''


{{template:WoW API}}
{{template:WoW API}}

Revision as of 21:00, 5 January 2006

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