DataType:invslot

From the wonderful RedGuides Wiki

Data related to an inventory slot.


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

Page Member Description
invslot Pack Container that must be opened to access the slot with /itemnotify
item 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)

Members

Type Member Description
int ID ID of this item slot (usable directly by /itemnotify)
Slot Slot number inside the pack which holds the item, otherwise NULL
invslot Pack Container that must be opened to access the slot with /itemnotify
item Item Item data for the item in this slot
string Name For inventory slots not inside packs, the slot name, otherwise NULL

Examples

Bag is a defined variable in a for loop in this case:

/if (${InvSlot[pack${Bag}].Item.Item[${Slot}].NoDrop}) {
	/echo I found a No Drop Item: \ag${InvSlot[pack${Bag}].Item.Item[${Slot}].Name}
	/return
}

See also