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

VendorStockRow

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

One thing a vendor sells.

amount: number

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

How many the vendor has. A row the players buy out disappears.


item: string

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

The item class, by GUID or by the game’s own item name.


optional metadata?: Record<string, unknown>

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

Item properties, including custom display overrides and private data. Preserved when bought.


price: number

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

What one costs, in money units – the amount of the game’s money item, which is also what player.giveItem('money', n) hands out.