Skip to content

YaCharacterQuestByRequester

Beta
YaCharacterQuestByRequester is an object representing quests from the specified requester. You can only apply this API to a requester. A requester is a non-player character (NPC) with a Quest component.

Functions

boolean IsValid()Beta
Returns true if the struct is valid.
boolean TryAddQuest(number questID)Beta
Takes an available quest from the requester. The quest will be marked as to-do for the current character.
  • questID The unique identifier of the quest
boolean ContainsQuest(number questID)Beta
Returns true if the current character contains the quest.
  • questID The unique identifier of the quest
boolean RemoveQuest(number questID)Beta
Removes a quest from the character.
  • questID The unique identifier of the quest
void ClearQuest()Beta
Removes all quests on the character.
YaQuestProgress UpdateQuestProgress(number questID, number targetID, [number count])Beta
Updates the progress of the quest on the current character.
  • questID The unique identifier of the quest
  • targetID The unique identifier of the quest to update
  • count The progress to update
YaQuestProgress[] GetQuestProgress(number questID)Beta
Gets the progress of a quest for the current character.
  • questID The unique identifier of the quest
boolean IsQuestCompleted(number questID)Beta
Returns true if the quest from the requester is finished.
  • questID The unique identifier of the quest
boolean TryAddCompletedQuest(number questID)Beta
Records the finished quest from the requester for the current character.
  • questID The unique identifier of the quest
boolean ContainsCompletedQuest(number questID)Beta
Returns true if the quest from the requester is finished.
  • questID The unique identifier of the quest
boolean ContainsCompletedQuestByAny(number questID)Beta
Returns true if the quest from the requester is finished.
  • questID The unique identifier of the quest
boolean RemoveCompletedQuest(number questID)Beta
Removes the finished quest from the requester for the current character.
  • questID The unique identifier of the quest
YaQuestConfig GetQuestConfig(number questID)Beta
Gets quest configuration using quest ID.
  • questID The unique identifier of the quest