Quest
Represents a quest.
Properties
Section titled “Properties”Type: QuestData
id Getter
Section titled “id ”The ID of this quest.
Type: number
inProgress Getter
Section titled “inProgress ”Whether this quest is in progress.
Type: boolean
name Getter
Section titled “name ”The name of this quest.
Type: string
once Getter
Section titled “once ”Whether this quest can only be completed once.
Type: boolean
requirements Getter
Section titled “requirements ”The requirements needed to complete this quest.
Type: QuestRequiredItem[]
rewards Getter
Section titled “rewards ”The rewards for completing this quest.
Type: QuestReward[]
Methods
Section titled “Methods”canComplete
Section titled “canComplete”Whether this quest can be completed.
Returns: boolean
hasCompletedBefore
Section titled “hasCompletedBefore”Whether this quest has been completed before.
Returns: boolean
isAvailable
Section titled “isAvailable”Whether this quest is available.
Returns: boolean
isDaily
Section titled “isDaily”Whether this quest is a daily quest.
Returns: boolean
isMonthly
Section titled “isMonthly”Whether this quest is a monthly quest.
Returns: boolean
isUpgrade
Section titled “isUpgrade”Whether this quest requires membership to accept.
Returns: boolean
isWeekly
Section titled “isWeekly”Whether this quest is a weekly quest.
Returns: boolean
fromId static
Section titled “fromId ”Creates a Quest instance by loading its data from the game.
| Parameter | Type | Description |
|---|---|---|
| id | number | The quest ID to load. |
Returns: Promise<Quest | null>