Skip to content

Shops

Type: Bot

The info about the current loaded shop.

Type: ShopInfo | null

Whether the shop is a merge shop.

Type: boolean

Buy an item from the shop.

ParameterTypeDescription
itemIdnumberThe id of the item.
quantitynumberThe quantity of the item.

Returns: Promise<void>

Buy an item from the shop.

ParameterTypeDescription
itemNamestringThe name of the item.
quantitynumber | nullThe quantity of the item. If not provided, it will default to 1.

Returns: Promise<void>

Whether an item can be bought from the shop, works for both normal and merge shops.

ParameterTypeDescription
itemNamestringThe name of the item.

Returns: boolean

Get a shop item by its ID.

ParameterTypeDescription
itemIdnumberThe ID of the item.

Returns: ShopItem | null

Get a shop item by its name.

ParameterTypeDescription
itemNamestringThe name of the item.

Returns: ShopItem | null

Whether any shop is loaded.

Returns: boolean

Load a shop.

ParameterTypeDescription
shopIdstring | numberThe shop ID.

Returns: Promise<void>

Loads a hair shop.

ParameterTypeDescription
shopIdstring | numberThe shop ID.

Returns: void

Opens the Armor Customization menu.

Returns: void

Sells an entire stack of an item.

ParameterTypeDescription
keystringThe name or ID of the item.

Returns: Promise<void>