Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Data shapeServer APIGenerated

InventoryChange

Defined in: server/api.d.ts:2298

What one operation did to one inventory.

items: object[]

Defined in: server/api.d.ts:2312

Only the rows that changed. before: null is a new row and after: null an emptied one.

after: InventoryRow | null

before: InventoryRow | null

id: string


reason: string

Defined in: server/api.d.ts:2307

add, remove, properties, set, transfer, wear when the player’s game wore an item down in use, use for food, potions and ointments, shot for a fired round, pickpocket, trade for a vendor deal, repair for a repair kit, sharpen for a grindstone, drop for player.dropInventory, loot, npcDeposit, harvest, outfit, or the ground, stash and gathering reasons. equipment reports an equipment or quickslot change: items is empty, the item revision does not advance, and Inventory.get returns the new snapshot.


revision: number

Defined in: server/api.d.ts:2302

The revision the operation produced.