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

InventoryResult

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

What an inventory operation did.

code: string

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

Empty on success, otherwise why not: inventoryUnavailable, invalidRequest, staleRevision, invalidItem, invalidItems, invalidAmount, unknownItem, insufficientItems, inventoryCapacity, sameInventory, invalidEquipment, or a property policy code (invalidMetadata, unknownItemClass, questItem, invalidQuality, immutableItemHealth, invalidItemHealth, contradictoryItemHealth, invalidCreationSentinel, unsupportedPoisonProperties, unsupportedOnEquipBuffs).


items: InventoryUnit[]

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

The rows that received units: the row an add merged into or created, a transfer’s rows in the target, every row a set wrote. Empty for remove.


ok: boolean

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

It happened. Nothing changes when it did not.


revision: number

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

The revision after the operation; for a transfer, the source’s. 0 when refused.