Mikk38024@legacy41558003 (talk | contribs) (Category:Macros. Wikify table. Point out that AddOns should use GetInventorySlotInfo().) |
Rolandius@legacy41568095 (talk | contribs) m (Corrected spelling/grammar) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | This is a "the way it looks right now" copy. Blizzard seems to suggest that these numbers can change at any time. An [[AddOn]] should not use fixed numbers at all; they should use the [[API_GetInventorySlotInfo|GetInventorySlotInfo()]] to |
+ | This is a "the way it looks right now" copy. Blizzard seems to suggest that these numbers can change at any time. An [[AddOn]] should not use fixed numbers at all; they should use the [[API_GetInventorySlotInfo|GetInventorySlotInfo()]] to translate slot names to numbers. Macros can of course do this too, but doing so a lot might cause them to become longer than 255 characters. Besides, it is easy to change your own macros. |
== Inventory Slots == |
== Inventory Slots == |
||
⚫ | |||
Used for commands such as [[API_UseInventoryItem|UseInventoryItem]] and [[API_PickupInventoryItem|PickupInventoryItem]]. |
Used for commands such as [[API_UseInventoryItem|UseInventoryItem]] and [[API_PickupInventoryItem|PickupInventoryItem]]. |
||
⚫ | |||
− | |'''Slot''' |
||
− | |'''ID''' |
||
− | |- |
||
− | |Head Slot |
||
− | |1 |
||
− | |- |
||
− | |Neck Slot |
||
− | |2 |
||
− | |- |
||
− | |Shoulder Slot |
||
− | |3 |
||
− | |- |
||
− | |Back Slot |
||
− | |15 |
||
− | |- |
||
− | |Chest Slot |
||
− | |5 |
||
− | |- |
||
− | |Shirt Slot |
||
− | |4 |
||
− | |- |
||
− | |Tabard Slot |
||
− | |19 |
||
− | |- |
||
− | |Wrist Slot |
||
− | |9 |
||
− | |- |
||
− | |Hands Slot |
||
− | |10 |
||
− | |- |
||
− | |Waist Slot |
||
− | |6 |
||
− | |- |
||
− | |Legs Slot |
||
− | |7 |
||
− | |- |
||
− | |Feet Slot |
||
− | |8 |
||
− | |- |
||
− | |Finger0 Slot |
||
− | |11 |
||
− | |- |
||
− | |Finger1 Slot |
||
− | |12 |
||
− | |- |
||
− | |Trinket0 Slot |
||
− | |13 |
||
− | |- |
||
− | |Trinket1 Slot |
||
− | |14 |
||
− | |- |
||
− | |MainHand Slot |
||
− | |16 |
||
− | |- |
||
− | |SecondaryHand Slot |
||
− | |17 |
||
− | |- |
||
− | |Ranged Slot |
||
− | |18 |
||
− | |- |
||
− | |Ammo Slot |
||
− | |0 |
||
− | |} |
||
+ | {{:API TYPE InventorySlotID/Slots}} |
||
+ | |||
+ | </div> |
||
[[Category:Macros]] |
[[Category:Macros]] |
Revision as of 03:09, 6 December 2008
This is a "the way it looks right now" copy. Blizzard seems to suggest that these numbers can change at any time. An AddOn should not use fixed numbers at all; they should use the GetInventorySlotInfo() to translate slot names to numbers. Macros can of course do this too, but doing so a lot might cause them to become longer than 255 characters. Besides, it is easy to change your own macros.
Inventory Slots
Used for commands such as UseInventoryItem and PickupInventoryItem.
API TYPE InventorySlotID/Slots