Shops
Properties
Section titled “Properties”Type: Bot
info Getter
Section titled “info ”The info about the current loaded shop.
Type: ShopInfo | null
isMergeShop Getter
Section titled “isMergeShop ”Whether the shop is a merge shop.
Type: boolean
Methods
Section titled “Methods”buyById
Section titled “buyById”Buy an item from the shop.
| Parameter | Type | Description |
|---|---|---|
| itemId | number | The id of the item. |
| quantity | number | The quantity of the item. |
Returns: Promise<void>
buyByName
Section titled “buyByName”Buy an item from the shop.
| Parameter | Type | Description |
|---|---|---|
| itemName | string | The name of the item. |
| quantity | number | null | The quantity of the item. If not provided, it will default to 1. |
Returns: Promise<void>
canBuyItem
Section titled “canBuyItem”Whether an item can be bought from the shop, works for both normal and merge shops.
| Parameter | Type | Description |
|---|---|---|
| itemName | string | The name of the item. |
Returns: boolean
getById
Section titled “getById”Get a shop item by its ID.
| Parameter | Type | Description |
|---|---|---|
| itemId | number | The ID of the item. |
Returns: ShopItem | null
getByName
Section titled “getByName”Get a shop item by its name.
| Parameter | Type | Description |
|---|---|---|
| itemName | string | The name of the item. |
Returns: ShopItem | null
isShopLoaded
Section titled “isShopLoaded”Whether any shop is loaded.
Returns: boolean
Load a shop.
| Parameter | Type | Description |
|---|---|---|
| shopId | string | number | The shop ID. |
Returns: Promise<void>
loadHairShop
Section titled “loadHairShop”Loads a hair shop.
| Parameter | Type | Description |
|---|---|---|
| shopId | string | number | The shop ID. |
Returns: void
openArmorCustomizer
Section titled “openArmorCustomizer”Opens the Armor Customization menu.
Returns: void
Sells an entire stack of an item.
| Parameter | Type | Description |
|---|---|---|
| key | string | The name or ID of the item. |
Returns: Promise<void>