BlackICE Scripting

custom type re

InventoryChangeRequest

re.InventoryChangeRequest

One change in InventoryChangeRequested that waits for approval.

Properties

PropertyTypeDescription
transactionuintPass this to Inventory.Approve or Inventory.Reject.
kindre.InventoryChangeKind
destinationre.InventoryIdThe inventory the item goes into, or 0 for a drop, whose inventory is created on approval. For Updated and Generated it is the inventory that contains the item.
sourcere.InventoryIdThe inventory the item comes from for Transfer, otherwise 0.
itemre.ItemInfoThe server's copy for Transfer, and the client's version for every other kind. Its quantity is the amount that changes, or the whole stack for Updated and Generated.
previousre.ItemInfoFor Updated and Generated, the server's copy before the change, to compare stats and parts with. For Generated this is the item as the server created it, without the client's rolls. Empty (record 0) for other kinds.
distancefloatFor Claimed, how far the client's player is from the entity in meters, otherwise 0.