-
Notifications
You must be signed in to change notification settings - Fork 52
Quest
MMOMinion edited this page Feb 8, 2014
·
6 revisions
- Functions needed for questing.
- none
- Quest:GetQuestList()
- returns a lua table containing the players current quests. The table key is the questid. The questid is also part of the returned quest objects inside the table.
- Quest:IsQuestCompleted( QuestId )
- Checks if the quest with the passed id is flagged as completed and can be turned in
- Quest:GetQuestCurrentStep( QuestId )
- Returns the current quest step (1-254). A quest step with the value 255 indicates the quest is completed
- Quest:HasQuest( QuestId )
- Checks if the quest with the passed id is currently in the journal of the player
- Quest:AcceptQuest()
- Accepts the quest currently open in the quest accept dialog. Returns true if the dialog was open, false else
- Quest:DeclineQuest()
- Declines the quest currently open in the quest accept dialog. Returns true if the dialog was open, false else
- Quest:IsQuestAcceptDialogOpen( questid )
- Checks if the quest accept dialog is open. if a questid is passed it also checks that the quest id of the dialog matches it. Returns true if so, false else
- Quest:GetSelectedJournalQuest()
- Returns the quest currently selected in the quest journal. If the journal is closed or none is selected, nil is returned