# DataType:item

Contains data about items

## Members

| **Type**                                                                                       | **Member**                 | **Description**                                                                                                                                                                                                                         |
| ---------------------------------------------------------------------------------------------- | -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **AC**                     | AC value on item                                                                                                                                                                                                                        |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **AGI**                    | AGI value on item                                                                                                                                                                                                                       |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Accuracy**               | Accuracy                                                                                                                                                                                                                                |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Attack**                 | Attack value on item                                                                                                                                                                                                                    |
| [*bool*](/macroquest/data-types-and-top-level-objects/data-types/datatype-bool.md)             | **Attuneable**             | Attuneable?                                                                                                                                                                                                                             |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **AugRestrictions**        | Augment Restrictions                                                                                                                                                                                                                    |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Augs**                   | Number of augs on this item                                                                                                                                                                                                             |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **AugSlot1**               | Aug slot 1                                                                                                                                                                                                                              |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **AugSlot2**               | Aug slot 2                                                                                                                                                                                                                              |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **AugSlot3**               | Aug slot 3                                                                                                                                                                                                                              |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **AugSlot4**               | Aug slot 4                                                                                                                                                                                                                              |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **AugSlot5**               | Aug slot 5                                                                                                                                                                                                                              |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **AugType**                | Augment Type                                                                                                                                                                                                                            |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Avoidance**              | Avoidance                                                                                                                                                                                                                               |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **BuyPrice**               | The cost to buy this item from active merchant                                                                                                                                                                                          |
| [*float*](/macroquest/data-types-and-top-level-objects/data-types/datatype-float.md)           | **CastTime**               | Spell effect's cast time (in seconds)                                                                                                                                                                                                   |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **CHA**                    | CHA value on item                                                                                                                                                                                                                       |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Charges**                | Charges                                                                                                                                                                                                                                 |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Clairvoyance**           | Clairvoyance                                                                                                                                                                                                                            |
| \_\_[*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_ | **Class\[**#**]**          | Returns the #th long class name of the listed classes on an item. Items suitable for ALL classes will effectively have all 17 classes listed.                                                                                           |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Classes**                | The number of classes that can use the item. Items suitable for ALL classes will return 16.                                                                                                                                             |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **CombatEffects**          | CombatEffects                                                                                                                                                                                                                           |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Container**              | Number of slots, if this is a container                                                                                                                                                                                                 |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **DamageShieldMitigation** | Damage Shield Mitigation                                                                                                                                                                                                                |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **DamShield**              | Damage Shield value on item                                                                                                                                                                                                             |
| [*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_     | **Deity\[**#**]**          | Returns the #th deity of the listed deities on an item. Items with no deity restrictions will return NULL for all values of #.                                                                                                          |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Deities**                | The number of deities that can use the item. Items with no deity restrictions will return 0.                                                                                                                                            |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **DEX**                    | DEX value on item                                                                                                                                                                                                                       |
| [*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_     | **DMGBonusType**           | "None", "Magic", "Fire", "Cold", "Poison", "Disease"                                                                                                                                                                                    |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **DoTShielding**           | DoT Shielding                                                                                                                                                                                                                           |
| [*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_     | **EffectType**             | Spell effect type (see below for spell effect types)                                                                                                                                                                                    |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Endurance**              | Endurance                                                                                                                                                                                                                               |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **EnduranceRegen**         | Endurance regen                                                                                                                                                                                                                         |
| [*evolving*](/macroquest/data-types-and-top-level-objects/data-types/datatype-evolving.md)     | **Evolving**               | Does this item have Evolving experience on?                                                                                                                                                                                             |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **FreeStack**              | The number of items needed to fill all the stacks of the item you have (with a stacksize of 20). If you have 3 stacks (1, 10, 20 in those stacks), you have room for 60 total and you have 31 on you, so **FreeStack** would return 29. |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Haste**                  | Haste value on item                                                                                                                                                                                                                     |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HealAmount**             | HealAmount (regen?)                                                                                                                                                                                                                     |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HeroicAGI**              | Heroic AGI value on item                                                                                                                                                                                                                |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HeroicCHA**              | Heroic CHA value on item                                                                                                                                                                                                                |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HeroicDEX**              | Heroic DEX value on item                                                                                                                                                                                                                |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HeroicINT**              | Heroic INT value on item                                                                                                                                                                                                                |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HeroicSTA**              | Heroic STA value on item                                                                                                                                                                                                                |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HeroicSTR**              | Heroic STR value on item                                                                                                                                                                                                                |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HeroicSvCold**           | Heroic SvCold value on item                                                                                                                                                                                                             |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HeroicSvCorruption**     | Heroic SvCorruption value on item                                                                                                                                                                                                       |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HeroicSvDisease**        | Heroic SvDisease value on item                                                                                                                                                                                                          |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HeroicSvFire**           | Heroic SvFire value on item                                                                                                                                                                                                             |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HeroicSvMagic**          | Heroic SvMagic value on item                                                                                                                                                                                                            |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HeroicSvPoison**         | Heroic SvPoison value on item                                                                                                                                                                                                           |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HeroicWIS**              | Heroic WIS value on item                                                                                                                                                                                                                |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HP**                     | HP value on item                                                                                                                                                                                                                        |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **HPRegen**                | HPRegen value on item                                                                                                                                                                                                                   |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Icon**                   | Item Icon                                                                                                                                                                                                                               |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **ID**                     | Item ID                                                                                                                                                                                                                                 |
| [*float*](/macroquest/data-types-and-top-level-objects/data-types/datatype-float.md)           | **InstrumentMod**          | Instrument Modifier Value                                                                                                                                                                                                               |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **INT**                    | INT value on item                                                                                                                                                                                                                       |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **InvSlot**                | Inventory Slot Number (Historic and now deprecated, use ItemSlot and ItemSlot2)                                                                                                                                                         |
| *item*                                                                                         | **Item\[**#**]**           | Item in #th slot, if this is a container or has augs                                                                                                                                                                                    |
| [*float*](/macroquest/data-types-and-top-level-objects/data-types/datatype-float.md)           | **ItemDelay**              | Returns the delay of the weapon                                                                                                                                                                                                         |
| \_\_[*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_ | **ItemLink\[CLICKABLE]**   | just prints the actual hexlink for an item (not clickable) unless \[CLICKABLE] is included                                                                                                                                              |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Items**                  | Number of items, if this is a container.                                                                                                                                                                                                |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **ItemSlot**               | Item Slot number see [Slot Names](/macroquest/general-information/slot-names.md)                                                                                                                                                        |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **ItemSlot2**              | Item Slot subnumber see [Slot Names](/macroquest/general-information/slot-names.md)                                                                                                                                                     |
| [*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_     | **LDoNTheme**              | "All", "Deepest Guk", "Miragul's", "Mistmoore", "Rujarkian", "Takish", "Unknown"                                                                                                                                                        |
| [*bool*](/macroquest/data-types-and-top-level-objects/data-types/datatype-bool.md)             | **Lore**                   | Lore?                                                                                                                                                                                                                                   |
| [*bool*](/macroquest/data-types-and-top-level-objects/data-types/datatype-bool.md)             | **Magic**                  | Magic?                                                                                                                                                                                                                                  |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Mana**                   | Mana value on item                                                                                                                                                                                                                      |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **ManaRegen**              | ManaRegen value on item                                                                                                                                                                                                                 |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **MaxPower**               | Max power on an power source                                                                                                                                                                                                            |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **MerchQuantity**          | Quantity of item active merchant has                                                                                                                                                                                                    |
| [*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_     | **Name**                   | Name                                                                                                                                                                                                                                    |
| [*bool*](/macroquest/data-types-and-top-level-objects/data-types/datatype-bool.md)             | **NoDrop**                 | No Trade?                                                                                                                                                                                                                               |
| [*bool*](/macroquest/data-types-and-top-level-objects/data-types/datatype-bool.md)             | **NoRent**                 | Temporary?                                                                                                                                                                                                                              |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Power**                  | Power left on power source                                                                                                                                                                                                              |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Purity**                 | Purity of item                                                                                                                                                                                                                          |
| [*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_     | **Race\[**#**]**           | Returns the #th long race name of the listed races on an item. Items suitable for ALL races will effectively have all 15 races listed.                                                                                                  |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Races**                  | The number of races that can use the item. Items suitable for ALL races will return 15.                                                                                                                                                 |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **RequiredLevel**          | Returns the Required Level of an item. Items with no required level will return 0.                                                                                                                                                      |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **SellPrice**              | Price to sell this item at this merchant                                                                                                                                                                                                |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Shielding**              | Shielding                                                                                                                                                                                                                               |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Size**                   | Item size: 1 SMALL 2 MEDIUM 3 LARGE 4 GIANT                                                                                                                                                                                             |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **SizeCapacity**           | If item is a container, size of items it can hold: 1 SMALL 2 MEDIUM 3 LARGE 4 GIANT                                                                                                                                                     |
| [*spell*](/macroquest/data-types-and-top-level-objects/data-types/datatype-spell.md)           | **Spell**                  | Spell effect                                                                                                                                                                                                                            |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **SpellDamage**            | Spell damage                                                                                                                                                                                                                            |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **SpellShield**            | SpellShield                                                                                                                                                                                                                             |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **STA**                    | STA value on item                                                                                                                                                                                                                       |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Stack**                  | Number of items in the stack                                                                                                                                                                                                            |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Stacks**                 | Number of stacks of the item in your inventory                                                                                                                                                                                          |
| [*bool*](/macroquest/data-types-and-top-level-objects/data-types/datatype-bool.md)             | **Stackable**              | Stackable?                                                                                                                                                                                                                              |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **StackCount**             | The total number of the stackable item in your inventory                                                                                                                                                                                |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **StackSize**              | Maximum number if items that can be in the stack                                                                                                                                                                                        |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **STR**                    | STR value on item                                                                                                                                                                                                                       |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **StrikeThrough**          | StrikeThrough                                                                                                                                                                                                                           |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **StunResist**             | Stun resist                                                                                                                                                                                                                             |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **svCold**                 | svCold value on item                                                                                                                                                                                                                    |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **svCorruption**           | svCorruption value on item                                                                                                                                                                                                              |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **svDisease**              | svDisease value on item                                                                                                                                                                                                                 |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **svFire**                 | svFire value on item                                                                                                                                                                                                                    |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **svMagic**                | svMagic value on item                                                                                                                                                                                                                   |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **svPoison**               | svPoison value on item                                                                                                                                                                                                                  |
| [*ticks*](/macroquest/data-types-and-top-level-objects/data-types/datatype-ticks.md)           | **Timer**                  | Returns the number of ticks remaining on an item recast timer                                                                                                                                                                           |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **TimerReady**             | Returns the number of seconds remaining on an item recast timer                                                                                                                                                                         |
| [*bool*](/macroquest/data-types-and-top-level-objects/data-types/datatype-bool.md)             | **Tradeskills**            | Tradeskills?                                                                                                                                                                                                                            |
| [*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_     | **Type**                   | Type                                                                                                                                                                                                                                    |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Tribute**                | Tribute value of the item                                                                                                                                                                                                               |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Value**                  | Item value in coppers                                                                                                                                                                                                                   |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **Weight**                 | Item weight                                                                                                                                                                                                                             |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **WIS**                    | WIS value on item                                                                                                                                                                                                                       |
| [*invslot*](/macroquest/data-types-and-top-level-objects/data-types/datatype-invslot.md)       | **WornSlot\[**#**]**       | The #th invslot this item can be worn in (fingers/ears count as 2 slots)                                                                                                                                                                |
| [*bool*](/macroquest/data-types-and-top-level-objects/data-types/datatype-bool.md)             | **WornSlot\[name]**        | Can item be worn in invslot with this *name*? (worn slots only)                                                                                                                                                                         |
| [*int*](/macroquest/data-types-and-top-level-objects/data-types/datatype-int.md)               | **WornSlots**              | The number of invslots this item can be worn in (fingers/ears count as 2 slots)                                                                                                                                                         |
| [*string*](/macroquest/data-types-and-top-level-objects/data-types/datatype-string.md)\_\_     | **To String**              | Same as **Name**                                                                                                                                                                                                                        |

## Spell Effect Types

*EffectType* will return one of the following:

* **Click Inventory** - item has a right-click spell and can be cast from inventory
* **Click Unknown** - item has an unknown right-click effect restriction
* **Click Worn** - item has a right-click spell and must be equipped to click it
* **Combat** - weapon has a proc
* **Spell Scroll** - Scribeable spell scroll
* **Worn** - item has a focus effect

{% hint style="warning" %}
This next section needs to be moved to the MQ2ItemDisplay article
{% endhint %}

## DisplayItem Index

**${DisplayItem}** now takes an index as an option parameter index can be 0-5 you can still just do ${DsiplayItem} and it will just pick whatever you inspected last.

**Example:** /echo ${DisplayItem\[5]}

* Info = 1,
* WindowTitle = 2,
* AdvancedLore = 3,
* MadeBy = 4,
* Information = 5,
* DisplayIndex = 6

**NOTE:** There is a difference between .Info and .Information .Info contains for example: .Info can return text like; this item is placable in yards, guild yards blah blah , This item can be used in tradeskills .Information can return text like Item Information: Placing this augment into blah blah, this armor can only be used in blah blah


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://macroquest.gitbook.io/macroquest/data-types-and-top-level-objects/data-types/datatype-item.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
