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

VendorOptions

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

How a vendor starts out.

optional buys?: boolean

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

Whether the vendor takes the player’s items at all. On by default; setBuyPrices says which ones.


optional name?: string

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

Shown in the server’s log only. The trade screen names whoever keeps the shop.


optional purse?: number

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

Money units the vendor starts with, and all it can pay out. Omit it for a purse that never runs out.