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

На главную

## guild.GetDistributedTabards()

Возвращает описание знаков отличия, уже розданных гильдией.

См. типы знаков отличия в ENUM_TabardType_....

    -- библиотека:
    guild

    -- объявление:
    function GetDistributedTabards()

    -- параметры:
    нет

    -- возвращаемое значение
    table or nil - если гильдия есть, то таблица с полями, проиндексированными по типу награды
      key: number (enum ENUM_TabardType_...) - по этому индексу лежит количество розданных наград данного типа
      value: number (integer) or nil - количество розданных наград данного типа. Если наград нет, то nil

    -- пример:
    local rewards = guild.GetTabards()
    local distributedTabards = guild.GetDistributedTabards()
    if rewards then
      local championRewardCount = rewards[ ENUM_TabardType_Champion ] or 0
      local championDistributedCount = distributedTabards[ ENUM_TabardType_Champion ] or 0
    end

#### Связанные страницы: "CategoryLuaApi" "CategoryGuild"

EnumAvatarOnlineStatus
EnumGuildBGVeteranBGRole
EnumGuildMemberRight
EnumGuildResult
EnumGuildSymbolicsTextureType
EventCanCreateGuildHereResponse
EventDisbandGuildRequest
EventGuildAccepted
EventGuildAllodAttackFailed
EventGuildAllodAttackSuccessful
EventGuildAllodOwnerChanged
EventGuildAllodsChanged
EventGuildAlreadyInGuild
EventGuildAppeared
EventGuildAuthorityChanged
EventGuildBankMinimumTransactionChanged
EventGuildBankMoneyHistoryChanged
EventGuildBankOperationHistoryChanged
EventGuildBankOperationResult
EventGuildBuffsChanged
EventGuildCantAccept
EventGuildCreated
EventGuildCurrenciesChanged
EventGuildDecline
EventGuildDeclineBusy
EventGuildDeclineIgnored
EventGuildDescriptionChanged
EventGuildDisappeared
EventGuildEnableProgressRequest
EventGuildFailed
EventGuildInvite
EventGuildLeaderChanged
EventGuildLevelChanged
EventGuildListChanged
EventGuildMemberAdded
EventGuildMemberAuthorityChanged
EventGuildMemberBalanceChanged
EventGuildMemberChanged
EventGuildMemberKicked
EventGuildMemberLoayaltyChanged
EventGuildMemberMoneyHistoryChanged
EventGuildMemberMonthAuthorityChanged
EventGuildMemberOnlineStatusChanged
EventGuildMemberOperationHistoryChanged
EventGuildMemberRankChanged
EventGuildMemberRemoved
EventGuildMemberTabardChanged
EventGuildMessageChanged
EventGuildMoneyChanged
EventGuildMonthAuthorityChanged
EventGuildNameChanged
EventGuildNameNotAvailable
EventGuildNeedRenameChanged
EventGuildTabardsChanged
EventGuildTextureChanged
EventGuildUnlockedLevelChanged
EventUnitGuildChanged
FunctionAvatarHasItemGuildComponent
FunctionGuildAccept
FunctionGuildCanCreateGuildHereRequest
FunctionGuildCanDistributeTabard
FunctionGuildCanRename
FunctionGuildChangeRank
FunctionGuildCorrectMemberBalance
FunctionGuildCreate
FunctionGuildDecline
FunctionGuildDistributeTabard
FunctionGuildEnableProgressReply
FunctionGuildGetBankInfo
FunctionGuildGetBuffInfo
FunctionGuildGetBuffs
FunctionGuildGetCreationTime
FunctionGuildGetCurrencies
FunctionGuildGetDescription
FunctionGuildGetDistributedTabards
FunctionGuildGetEnableTime
FunctionGuildGetLeader
FunctionGuildGetLimits
FunctionGuildGetMember
FunctionGuildGetMemberBalance
FunctionGuildGetMemberDescription
FunctionGuildGetMemberInfo
FunctionGuildGetMemberMoneyHistory
FunctionGuildGetMemberOperationHistory
FunctionGuildGetMembers
FunctionGuildGetMessage
FunctionGuildGetMoney
FunctionGuildGetMoneyHistory
FunctionGuildGetName
FunctionGuildGetOperationHistory
FunctionGuildGetProgress
FunctionGuildGetRank
FunctionGuildGetRankInfo
FunctionGuildGetRanksCount
FunctionGuildGetRewards
FunctionGuildGetRights
FunctionGuildGetTabardBonus
FunctionGuildGetTabards
FunctionGuildGetTexture
FunctionGuildInvite
FunctionGuildInviteByName
FunctionGuildIsExist
FunctionGuildIsLeader
FunctionGuildIsNeedRename
FunctionGuildLeave
FunctionGuildRaiseFunds
FunctionGuildRename
FunctionGuildSetDescription
FunctionGuildSetMemberDescription
FunctionGuildSetMessage
FunctionGuildSetMinimumTransaction
FunctionGuildTransferMoney
FunctionUnitGetGuildInfo

CategoryLuaApi CategoryFunction CategoryGuild

На главную