Skip to content
ASArcaneMP Scripting APIScripting reference
Global objectServer APIGenerated

InventoryCatalog

const InventoryCatalog: object

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

The compiled Hogwarts Legacy inventory definition catalog, and the server’s stack limits over it.

get(itemId): InventoryCatalogDefinition | null

Returns a canonical catalog definition, or null when absent.

string

Exact lookup first, then case-insensitive fallback.

InventoryCatalogDefinition | null

has(itemId): boolean

Tests whether an item id exists in the compiled catalog.

string

Exact lookup first, then case-insensitive fallback.

boolean

holderPair(holder): InventoryHolderPair | null

Returns the canonical mount-holder pair for either half, or null for an ordinary holder.

string

Storage or active mount holder, matched case-insensitively.

InventoryHolderPair | null

info(): InventoryCatalogInfo

Returns catalog version, game build, and definition count.

InventoryCatalogInfo

list(filter?): InventoryCatalogDefinition[]

Returns fresh catalog objects in canonical itemId order.

InventoryCatalogFilter

All provided filters are combined with AND.

InventoryCatalogDefinition[]

setMaxStack(itemId, max): void

Sets the most one stack of an item may hold, for every player: give/patch/replace check it, and every client’s game takes the bigger stack too. Stacks already over a lowered limit are kept, but cannot grow.

string

A stacking catalog item (kind item); gear, tools, mounts and Knuts are refused.

number | null

1 to 1000000; null restores the game’s own.

void