DataType:item

From the wonderful RedGuides Wiki

Contains data about items


This Data Type is referenced in MacroQuest, and accessed by Top-Level Object(s): Cursor, FindItem, FindItemBank, SelectedItem
item is used as a return type by these members:  [ Toggle ]

Page Member Description
augtype Item
character Bank[#] Item in this bankslot #
Inventory[#] Item in this slot #
Inventory[slotname] Item in this slotname (inventory slots only). See Slot names for a list of slotnames.
SharedBank
corpse Item[#|name] Returns the item on corpse. # is the #th item on corpse. Name accepts partial or exact matches. (use Item[=name] for exact)
DisplayItem Item Gives access to the item datatype, although its members are already inherited. e.g. /echo ${DisplayItem[2].Item.HP}
invslot Item data for the item in this slot
item Item[#] Item in #th slot, if this is a container or has augs
keyringitem Item The item on the keyring
merchant Item[#|name] Returns item # on the merchant list, or finds name match.
SelectedItem The currently selected item in the merchant window, and item type
solventtype Item access item type
tradeskilldepot FindItem[#|name] Find item by ID or name. Prefix with "=" for exact match.
SelectedItem Information on the currently selected item in the tradeskill depot window.

Members

Type Member Description
action Inspect Opens the item display window for this item
augtype AugSlot[#] Access the augment datatype
bool Attuneable
CanUse
Collectible
Expendable
Heirloom
Lore
LoreEquipped
Magic
NoDestroy
NoDrop Alias: NoTrade. Returns true if you cannot drop
NoRent True if item is temporary
Prestige
Quest
Stackable
Tradeskills
WornSlot[name] Can item be worn in invslot with this name? (worn slots only)
class Class[#|name] Returns the #th long class name of the listed classes on an item.
Deity Deity[#|name] Returns the #th deity of the listed deities on an item. Items with no deity restrictions will return NULL for all values of #.
Evolving Evolving Does this item have Evolving experience on?
float InstrumentMod Instrument Modifier Value
PctPower
int AC AC value on item
Accuracy Accuracy
AGI AGI value on item
Attack Attack value on item
AugRestrictions Augment Restrictions
Augs Number of augs on this item
AugSlot1
AugSlot2
AugSlot3
AugSlot4
AugSlot5
AugSlot6
AugType
Avoidance
CHA
Charges
Clairvoyance
Classes The number of classes that can use the item. Items suitable for ALL classes will return 16.
CombatEffects
Container Number of slots, if this is a container
ContentSize
Damage
DamageShieldMitigation
DamShield Damage Shield value on item
Deities The number of deities that can use the item. Items with no deity restrictions will return 0.
DEX
DoTShielding
Endurance
EnduranceRegen
FirstFreeSlot
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.
Haste Haste value on item
HealAmount
HeroicAGI
HeroicCHA
HeroicDEX
HeroicINT
HeroicSTA
HeroicSTR
HeroicSvCold
HeroicSvCorruption
HeroicSvDisease
HeroicSvFire
HeroicSvMagic
HeroicSvPoison
HeroicWIS
HP
HPRegen
Icon
ID
IDFile
IDFile2
INT
ItemDelay Returns the delay of the weapon
Items Number of items, if this is a container.
ItemSlot Item Slot number see Slot names
ItemSlot2 Item Slot subindex see Slot names
Luck
Mana
ManaRegen
MaxLuck
MaxPower Max power on an power source
MerchQuantity Quantity of item active merchant has
MinLuck
Open
OrnamentationIcon
Power Power left on power source
Purity Purity of item
Races The number of races that can use the item. Items suitable for ALL races will return 15.
Range
RequiredLevel Returns the Required Level of an item. Items with no required level will return 0.
SellPrice Price to sell this item at this merchant
Shielding
Size Item size: 1 SMALL, 2 MEDIUM, 3 LARGE, 4 GIANT
SizeCapacity If item is a container, size of items it can hold: 1 SMALL, 2 MEDIUM, 3 LARGE, 4 GIANT
SkillModMax
SkillModValue
SlotsUsedByItem
SpellDamage
SpellShield
STA
Stack Number of items in the stack
StackCount The total number of the stackable item in your inventory
Stacks Number of stacks of the item in your inventory
StackSize Maximum number if items that can be in the stack
STR
StrikeThrough
StunResist
svCold
svCorruption
svDisease
svFire
svMagic
svPoison
TimerReady Returns the number of seconds remaining on an item recast timer
Tribute
Value Item value in coppers
Weight Item weight
WIS
WornSlots The number of invslots this item can be worn in (fingers/ears count as 2 slots)
int64 BuyPrice The cost to buy this item from active merchant
invslot InvSlot Inventory Slot Number (Historic and now deprecated, use ItemSlot and ItemSlot2)
WornSlot[#] The #th invslot this item can be worn in (fingers/ears count as 2 slots)
item Item[#] Item in #th slot, if this is a container or has augs
itemspell Clicky
Familiar
Focus
Focus2
Illusion
Mount
Proc
Scroll
Worn
race Race[#|name] Returns the #th long race name of the listed races on an item.
spell Spell Spell effect
string DMGBonusType "None", "Magic", "Fire", "Cold", "Poison", "Disease"
EffectType Spell effect type.
  • 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.
ItemLink[CLICKABLE] Prints the actual hexlink for an item (not clickable) unless [CLICKABLE] is included
LDoNTheme "All", "Deepest Guk", "Miragul's", "Mistmoore", "Rujarkian", "Takish", "Unknown"
Name
Type returns item class
ticks Timer Returns the number of ticks remaining on an item recast timer
timestamp CastTime Spell effect's cast time

Examples

ItemSlot

  • Finds the slot that holds the first backpack found,

/echo ${FindItem[Backpack].ItemSlot}

(returns 23)


See also