YaCharacterQuest
YaCharacterQuest is a handle for quest API. You can add, remove, and edit quests with it.Functions
boolean IsValid()
Returns true if the struct is valid.
boolean TryAddQuest(number questID, number requesterID)
Adds a quest to the current character from the requester.
questIDThe unique identifier of the questrequesterIDThe unique identifier of the requester
boolean ContainsQuest(number questID, number requesterID)
Returns true if the current character contains requestID from the requester.
questIDThe unique identifier of the questrequesterIDThe entityID of the requester
boolean RemoveQuest(number questID, number requesterID)
Removes a quest from the request from the current character.
questIDThe unique identifier for the questrequesterIDThe entityID of the request
void ClearQuest()
Removes all quests on the current character.
YaQuestProgress UpdateQuestProgress(number questID, number requesterID, number targetID, [number count])
Updates the progress of the quest on the current character.
questIDThe unique identifier for the questrequesterIDThe entityID of the requestertargetIDThe quest to updatecountThe progress to update
Array<YaQuestProgress> GetQuestProgress(number questID, number requesterID)
Gets the progress of a quest for the current character.
questIDThe unique identifier for the questrequesterIDThe entityID of the requester
boolean IsQuestCompleted(number questID, number requesterID)
Returns true if the quest from the requester is finished.
questIDThe unique identifier for the questrequesterIDThe entityID of the requester
boolean TryAddCompletedQuest(number questID, number requesterID)
Records the finished quest from the requester for the current character.
questIDThe unique identifier for the questrequesterIDThe entityID of the requester
boolean ContainsCompletedQuest(number questID, number requesterID)
Returns true if the quest from the requester is finished.
questIDThe unique identifier for the questrequesterIDThe entityID of the requester
boolean ContainsCompletedQuestByAny(number questID)
Returns true if the quest from the requester is finished.
questIDThe unique identifier for the quest
boolean RemoveCompletedQuest(number questID, number requesterID)
Removes the finished quest from the requester for the current character.
questIDThe unique identifier of the questrequesterIDThe entityID of the requester
Events
AddQuestEvent<YaQuestData>
questDataIncluding information about quest
QuestUpdateProgressEvent<YaQuestProgress>
progressInfoQuest progress information.
QuestCompletedEvent<YaQuestData>
questDataIncluding information about quest