Inventory

Info

Also see Spire Quest API Explorer for latest definitions and Quest examples

Last generated 2022.05.11

$inventory->CanItemFitInContainer(ItemInstance item_to_check, ItemInstance container_to_check);
$inventory->CheckNoDrop(int16 slot_id);
$inventory->CountAugmentEquippedByID(uint32 item_id);
$inventory->CountItemEquippedByID(uint32 item_id);
$inventory->DeleteItem(int16 slot_id, [uint8 quantity = 0]);
$inventory->FindFreeSlot(bool is_for_bag, bool try_cursor, [uint8 min_size = 0, bool is_arrow = false]);
$inventory->GetBagIndex(int16 slot_id);
$inventory->GetItem(int16 slot_id);
$inventory->GetMaterialFromSlot(int16 slot_id);
$inventory->GetSlotByItemInst(ItemInstance item);
$inventory->GetSlotFromMaterial(uint8 material);
$inventory->GetSlotID(int16 slot_id, [uint8 bag_index]);
$inventory->HasAugmentEquippedByID(uint32 item_id);
$inventory->HasItem(uint32 item_id, [uint8 quantity, uint8 where]);
$inventory->HasItemByLoreGroup(uint32 loregroup, [uint8 where]);
$inventory->HasItemByUse(uint8 use, uint8 quantity, [uint8 where]);
$inventory->HasItemEquippedByID(uint32 item_id);
$inventory->HasSpaceForItem(ItemInstance item_to_check, uint8 quantity);
$inventory->PopItem(int16 slot_id);
$inventory->PushCursor(ItemInstance item);
$inventory->PutItem(int16 slot_id, ItemInstance item);
$inventory->SupportsContainers(int16 slot_id);
$inventory->SwapItem(int16 source_slot_id, int16 destination_slot_id);

Info

Also see Spire Quest API Explorer for latest definitions and Quest examples

Last generated 2022.05.11

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