Skip to content

YaQuestAPI

Beta
YaQuestAPI is a class for managing quests.

Functions

YaQuestListener YaQuestAPI.StateListener(YaEntity entity)Beta
A listener to events about the quest for the specified entity
  • entity The entity that you want to listen to
YaCharacterQuest YaQuestAPI.CharacterQuest(YaEntity character)Beta
Returns all quests of the character.
YaCharacterQuestByRequester YaQuestAPI.CharacterQuestByRequester(YaEntity character, YaEntity requester)Beta
Associates the character and the requester.
YaQuestConfig YaQuestAPI.GetQuestConfig(number questID)Beta
Gets quest configuration using quest ID.
  • questID The unique identifier of the quest
void YaQuestAPI.AddQuestCompletedEvent(function callback<YaEntity, YaQuestData>)Beta
Fired when any quest is finished.
  • callback A callback with the character who takes the quest and quest information