Package net.storm.api.quests
Interface IQuests
public interface IQuests
Interface for querying quest states and completion status.
This interface provides methods to check the current state of any quest in the game and determine whether quests have been completed. Quest states are important for determining access to certain content, teleport spells, and other features that require quest completion.
Quest states include:
QuestState.NOT_STARTED- The quest has not been startedQuestState.IN_PROGRESS- The quest has been started but not completedQuestState.FINISHED- The quest has been completed
Example usage:
IQuests quests = Static.getQuests();
// Check if a quest is finished
if (quests.isFinished(Quest.DESERT_TREASURE)) {
// Player has access to Ancient Magicks
}
// Get the current state of a quest
QuestState state = quests.getState(Quest.LUNAR_DIPLOMACY);
if (state == QuestState.IN_PROGRESS) {
// Quest is currently in progress
}
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionnet.runelite.api.QuestStategetState(net.runelite.api.Quest quest) Gets the current state of the specified quest.booleanisFinished(net.runelite.api.Quest quest) Checks if the specified quest has been completed.
-
Method Details
-
getState
net.runelite.api.QuestState getState(net.runelite.api.Quest quest) Gets the current state of the specified quest.The quest state indicates whether the quest has not been started, is currently in progress, or has been completed.
- Parameters:
quest- the quest to check- Returns:
- the current
QuestStateof the quest
-
isFinished
boolean isFinished(net.runelite.api.Quest quest) Checks if the specified quest has been completed.This is a convenience method equivalent to checking if
getState(quest) == QuestState.FINISHED.- Parameters:
quest- the quest to check- Returns:
trueif the quest is finished,falseotherwise
-