• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • InventoryItem

    Inherits from: Object

    InventoryItem contains the data for an item retrieved through either Inventory.GetItem or Inventory.GetItems.

    Properties

    id

    string

    The id of the item

    holderId

    string

    The id of the holder which owns this item

    amount

    number

    How many of this item the owner owns. Includes items that have been reserved.

    available

    number

    How many of this item the owner owns that are not reserved.

    createdAt

    number

    The time the holder first gained this item. The time is in the UTC time zone expressed in unix epoch seconds. You can use os.date to format this time into a human-readable format.

    updatedAt

    number

    The last time the state of this item changed. The time is in the UTC time zone expressed in unix epoch seconds. You can use os.date to format this time into a human-readable format.

    Returns an array of InventoryReservations which contain how many items are reserved and the purpose.

    Updated about 1 month ago

    PocketWorlds Icon

    © 2024 Pocket Worlds. All rights reserved.