# Пользовательские дополнения

На главную

## avatar.ReturnQuest( questId )

Попытка сдать задание юнита, который является текущей целью аватара. *Нельзя сдать задание юнита, не являющемуся текущей целью.

    -- библиотека
    avatar

    -- объявление:
    function ReturnQuest( questId, rewardId )

    -- параметры
    questId: QuestId -- идентификатор квеста
    rewardId: ObjectId -- идентификатор награды

    -- возвращаемые значения
    нет

    -- пример использования
    avatar.ReturnQuest( questId, nil )

#### Search: "CategoryLuaApi" "CategoryQuest"

CategoryQuest
EnumQuestFindNextQuestMode
EnumQuestType
EventCurrentQuestChanged
EventInteractionStarted
EventItemQuestsReceived
EventQuestAbandoned
EventQuestAcceptError
EventQuestBookChanged
EventQuestBookLimitsChanged
EventQuestCompleted
EventQuestDiscarded
EventQuestFailed
EventQuestFindNextResult
EventQuestFinishFailedNoSpace
EventQuestMarkUpdated
EventQuestObjectiveUpdated
EventQuestReadyToReturnChanged
EventQuestReceived
EventQuestShareInvitation
EventQuestShareInvitationResult
EventQuestShareInvitationTimeout
EventQuestSkipResult
EventQuestStartFailedLogFull
EventQuestStartFailedNoSpace
EventQuestTimerFinished
EventQuestTimerUpdated
EventQuestUpdated
FunctionAvatarAcceptQuest
FunctionAvatarAcceptShareQuest
FunctionAvatarDeclineShareQuest
FunctionAvatarDiscardQuest
FunctionAvatarFindNextQuest
FunctionAvatarFindNextSecretComponentQuest
FunctionAvatarGetAvailableItemQuests
FunctionAvatarGetAvailableQuests
FunctionAvatarGetCurrentQuest
FunctionAvatarGetQuestAstralUnlocks
FunctionAvatarGetQuestBook
FunctionAvatarGetQuestHistory
FunctionAvatarGetQuestImage
FunctionAvatarGetQuestInfo
FunctionAvatarGetQuestObjectiveInfo
FunctionAvatarGetQuestProgress
FunctionAvatarGetQuestReward
FunctionAvatarGetQuestShareInvitations
FunctionAvatarGetQuestsLimit
FunctionAvatarGetReturnableQuests
FunctionAvatarGetSkipQuestCost
FunctionAvatarRequestInteractions
FunctionAvatarRequestQuestsForItem
FunctionAvatarReturnQuest
FunctionAvatarSetCurrentQuest
FunctionAvatarShareQuest
FunctionAvatarSkipQuest
FunctionCartographerGetQuestGeodata
FunctionCartographerGetQuestObjectiveGeodata
FunctionCartographerGetZonesMapLowQuests
FunctionCartographerGetZonesMapQuests
FunctionCartographerIsFinalQuestCompleted
FunctionDeviceGetRelatedQuestObjectives
FunctionObjectGetInteractorQuests
FunctionUnitGetRelatedQuestObjectives
QuestId
QuestLocation
QuestShareResult

CategoryLuaApi CategoryFunction CategoryQuest CategoryAvatar

На главную