Quests
Properties
Section titled “Properties”Type: Bot
accepted Getter
Section titled “accepted ”A list of accepted quests.
Type: Quest[]
tree Getter
Section titled “tree ”A list of quests loaded in the client.
Type: Quest[]
Methods
Section titled “Methods”abandon
Section titled “abandon”Abandons a quest.
| Parameter | Type | Description |
|---|---|---|
| questId | number | The quest id to abandon. |
Returns: Promise<void>
accept
Section titled “accept”Accepts a quest.
| Parameter | Type | Description |
|---|---|---|
| questId | number | The quest id to accept. |
Returns: Promise<void>
acceptMultiple
Section titled “acceptMultiple”Accepts multiple quests concurrently.
| Parameter | Type | Description |
|---|---|---|
| questIds | number[] | List of quest ids to accept. |
Returns: Promise<void>
complete
Section titled “complete”Completes a quest.
| Parameter | Type | Optional | Default | Description |
|---|---|---|---|---|
| questId | number | The quest id to complete. | ||
| turnIns | number | ✓ | 1 | The number of times to turn-in the quest. |
| itemId | number | ✓ | -1 | The ID of the quest rewards to select. |
| special | boolean | ✓ | false | Whether the quest is “special.” |
Returns: Promise<void>
Resolves for a Quest instance.
| Parameter | Type | Description |
|---|---|---|
| questId | number | The id of the quest. |
Returns: Quest | null
Loads a quest.
| Parameter | Type | Description |
|---|---|---|
| questId | number | The quest id to load. |
Returns: Promise<void>
loadMultiple
Section titled “loadMultiple”Loads multiple quests at once.
| Parameter | Type | Description |
|---|---|---|
| questIds | number[] | List of quest ids to load |
Returns: Promise<void>