m
Move page script moved page InventorySlotName to WoW:InventorySlotName without leaving a redirect
m (New document) |
m (Move page script moved page InventorySlotName to WoW:InventorySlotName without leaving a redirect) |
||
| (6 intermediate revisions by 6 users not shown) | |||
| Line 1: | Line 1: | ||
Rather than use hard-coded ID's for inventory slots, each slot is mapped to a numeric ID at runtime using the [[API GetInventorySlotInfo]] function. This allows for future expansion and addition of new slots, as well as re-ordering of slots in the underlying code. | {{wowapitype}}<br /> | ||
Rather than use hard-coded ID's for inventory slots, each slot is mapped to a numeric ID at runtime using the [[API GetInventorySlotInfo]] function. This allows for future expansion and addition of new slots, as well as re-ordering of slots in the underlying code. Known slot ID's are as follows (and appear to be case insensitive): | |||
== Values == | == Values == | ||
; <tt>"HeadSlot"</tt> : Head/helmet slot. | ; <tt>"HeadSlot"</tt> | ||
; <tt>"NeckSlot"</tt> : Necklace slot. | : Head/helmet slot. | ||
; <tt>"ShoulderSlot"</tt> : Shoulder slot. | ; <tt>"NeckSlot"</tt> | ||
; <tt>"BackSlot"</tt> : Back/Cape slot. | : Necklace slot. | ||
; <tt>"ChestSlot"</tt> : Chest slot. | ; <tt>"ShoulderSlot"</tt> | ||
; <tt>"ShirtSlot"</tt> : Shirt slot. | : Shoulder slot. | ||
; <tt>"TabardSlot"</tt> : Tabard slot. | ; <tt>"BackSlot"</tt> | ||
; <tt>"WristSlot"</tt> : Wrist/Bracer slot. | : Back/Cape slot. | ||
; <tt>"ChestSlot"</tt> | |||
: Chest slot. | |||
; <tt>"ShirtSlot"</tt> | |||
: Shirt slot. | |||
; <tt>"TabardSlot"</tt> | |||
: Tabard slot. | |||
; <tt>"WristSlot"</tt> | |||
: Wrist/Bracer slot. | |||
; <tt>"HandsSlot"</tt> : Hand/Gloves slot. | ; <tt>"HandsSlot"</tt> | ||
; <tt>"WaistSlot"</tt> : Waist/Belt slot. | : Hand/Gloves slot. | ||
; <tt>"LegsSlot"</tt> : Legs/Pants slot. | ; <tt>"WaistSlot"</tt> | ||
; <tt>"FeetSlot"</tt> : Feet/Boots slot. | : Waist/Belt slot. | ||
; <tt>"Finger0Slot"</tt> : First finger/ring slot. | ; <tt>"LegsSlot"</tt> | ||
; <tt>"Finger1Slot"</tt> : Second finger/ring slot. | : Legs/Pants slot. | ||
; <tt>"Trinket0Slot"</tt> : First trinket slot. | ; <tt>"FeetSlot"</tt> | ||
; <tt>"Trinket1Slot"</tt> : Second trinket slot. | : Feet/Boots slot. | ||
; <tt>"Finger0Slot"</tt> | |||
: First finger/ring slot. | |||
; <tt>"Finger1Slot"</tt> | |||
: Second finger/ring slot. | |||
; <tt>"Trinket0Slot"</tt> | |||
: First trinket slot. | |||
; <tt>"Trinket1Slot"</tt> | |||
: Second trinket slot. | |||
; <tt>"MainHandSlot"</tt> : Main hand slot. | ; <tt>"MainHandSlot"</tt> | ||
; <tt>"SecondaryHandSlot"</tt> : Secondary hand/Off-hand | : Main hand slot. | ||
; <tt>"SecondaryHandSlot"</tt> | |||
: Secondary hand/Off-hand slot. | |||
; <tt>"Bag0Slot"</tt> : First bag slot. | ; <tt>"Bag0Slot"</tt> | ||
; <tt>"Bag1Slot"</tt> : Second bag slot. | : First bag slot. | ||
; <tt>"Bag2Slot"</tt> : Third bag slot. | ; <tt>"Bag1Slot"</tt> | ||
; <tt>"Bag3Slot"</tt> : Fourth bag slot. | : Second bag slot. | ||
; <tt>"Bag2Slot"</tt> | |||
: Third bag slot. | |||
; <tt>"Bag3Slot"</tt> | |||
: Fourth bag slot. | |||
== Notes == | == Notes == | ||
* <tt>RangedSlot</tt> and <tt>AmmoSlot</tt> were removed with {{cata-inline}} Cataclysm. | |||
{{ | |||