Skip to content

Environment

Type: Bot

autoRegisterRequirements Getter Setter

Section titled “autoRegisterRequirements ”

Gets the auto register requirements flag.

Type: boolean

autoRegisterRewards Getter Setter

Section titled “autoRegisterRewards ”

Gets the auto register rewards flag.

Type: boolean

Gets the set of boosts.

Type: ReadonlySet<string>

Gets the set of item names.

Type: ReadonlySet<string>

Gets the set of quest IDs.

Type: ReadonlySet<number>

Gets the map of quest IDs to selected item IDs.

Type: ReadonlyMap<number, number>

rejectElse Getter Setter

Section titled “rejectElse ”

Gets the reject else flag.

Type: boolean

Adds a boost to the environment.

ParameterTypeDescription
boostNamestringThe boost name to add.

Returns: void

Adds an item name to the environment.

ParameterTypeDescription
itemNamestringThe item name to add.

Returns: void

Adds a quest ID to the environment.

ParameterTypeDescription
questIdstring | numberThe quest ID to add.

Returns: void

Updates the environment state with the given update payload.

ParameterTypeDescription
updateEnvironmentUpdatePayloadthe update payload

Returns: void

Gets the item ID for a quest.

ParameterTypeDescription
questIdnumberThe quest ID.

Returns: number | undefined

Checks if the environment has the specified boost.

ParameterTypeDescription
boostNamestringThe boost name to check.

Returns: boolean

Checks if the environment has the specified item name.

ParameterTypeDescription
itemNamestringThe item name to check.

Returns: boolean

Removes a boost from the environment.

ParameterTypeDescription
boostNamestringThe boost name to remove.

Returns: void

Removes an item name from the environment.

ParameterTypeDescription
itemNamestringThe item name to remove.

Returns: void

Removes a quest ID from the environment.

ParameterTypeDescription
questIdstring | numberThe quest ID to remove.

Returns: void

Removes the item ID for a quest.

ParameterTypeDescription
questIdnumberThe quest ID.

Returns: void

Sets the item ID for a quest (for quests with multiple rewards).

ParameterTypeDescription
questIdnumberThe quest ID.
itemIdnumberThe item ID to select when completing the quest.

Returns: void