Lua API Reference: Inventory (34 methods)

Browse the complete Lua API documentation for the Inventory class. Search through 34 methods and 247 events to find the exact function signatures, parameters, and usage examples you need for your EQ-Emulator scripts.

Methods

inventory:CalcBagIdx(slot_id) # int
inventory:CalcMaterialFromSlot(equipslot) # int
inventory:CalcSlotFromMaterial(material) # int
inventory:CalcSlotId(slot_id) # int
inventory:CalcSlotId(slot_id, bag_slot) # int
inventory:CanItemFitInContainer(item, container) # bool
inventory:CheckNoDrop(slot_id) # bool
inventory:CountAugmentEquippedByID(item_id) # uint32
inventory:CountItemEquippedByID(item_id) # uint32
inventory:DeleteItem(slot_id) # bool
inventory:DeleteItem(slot_id, quantity) # bool
inventory:FindFreeSlot(for_bag, try_cursor) # int
inventory:FindFreeSlot(for_bag, try_cursor, min_size) # int
inventory:FindFreeSlot(for_bag, try_cursor, min_size, is_arrow) # int
inventory:GetAugmentIDsBySlotID(slot_id) # object
inventory:GetItem(slot_id) # Lua_ItemInst
inventory:GetItem(slot_id, bag_slot) # Lua_ItemInst
inventory:GetSlotByItemInst(inst) # int
inventory:HasAugmentEquippedByID(item_id) # bool
inventory:HasItem(item_id, quantity) # int
inventory:HasItem(item_id, quantity, where) # int
inventory:HasItem(item_id) # int
inventory:HasItemByLoreGroup(loregroup) # int
inventory:HasItemByLoreGroup(loregroup, where) # int
inventory:HasItemByUse(use, quantity, where) # int
inventory:HasItemByUse(use, quantity) # int
inventory:HasItemByUse(use) # int
inventory:HasItemEquippedByID(item_id) # bool
inventory:HasSpaceForItem(item, quantity) # bool
inventory:PopItem(slot_id) # Lua_ItemInst
inventory:PushCursor(item) # int
inventory:PutItem(slot_id, item) # int
inventory:SupportsContainers(slot_id) # bool
inventory:SwapItem(source_slot, destination_slot) # bool