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

На главную


avatar.GetItemChildCategories( itemCategoryId )

Возвращает список идентификаторов (ItemCategoryId) терминальных категорий предметов для корневой категории.

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

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

-- параметры:
itemCategoryId: ItemCategoryId - идентификатор корневой категории

-- возвращаемые значения:
table of ItemCategoryId - индексированная с 0 таблица с идентификаторами ресурсов терминальных категорий предметов

-- пример:
local roots = avatar.GetItemRootCategories()
for i = 0, GetTableSize( roots ) do

  local categoryInfo = avatar.GetItemCategoryInfo( roots[ i ] )
  if categoryInfo then
    local name = categoryInfo.name
  end

  local childs = avatar.GetItemChildCategories( roots[ i ] )
  for j = 0, GetTableSize( childs ) do

    local categoryInfo = avatar.GetItemCategoryInfo( childs[ 0 ] )
    if categoryInfo then
      local name = categoryInfo.name
    end
  end
end

Search: "CategoryLuaApi" "CategoryItemInfo"

CategoryItemLib
EnumItemSource
EnumToolProperty
EventGameItemChanged
EventGameItemCursedChanged
EventItemDisabled
EventItemRelatedQuestsChanged
EventShowItemsInfo
FunctionAvatarActivateItem
FunctionAvatarActivateItemAlternative
FunctionAvatarCanActivateItem
FunctionAvatarCanActivateItemAlternative
FunctionAvatarCanDisassembleItem
FunctionAvatarConvertMetaEnhancer
FunctionAvatarDuplicateMetaEnhancerItem
FunctionAvatarGetItemActionGroupsInfo
FunctionAvatarGetItemActivationInfo
FunctionAvatarGetItemActivators
FunctionAvatarGetItemActivatorsAlternative
FunctionAvatarGetItemBonus
FunctionAvatarGetItemBundle
FunctionAvatarGetItemChildCategories
FunctionAvatarGetItemCompatibleSlots
FunctionAvatarGetItemContainerInfo
FunctionAvatarGetItemCouponInfo
FunctionAvatarGetItemCraftInfo
FunctionAvatarGetItemCraftToolImproverInfo
FunctionAvatarGetItemCraftToolInfo
FunctionAvatarGetItemDressConditions
FunctionAvatarGetItemExtraDescs
FunctionAvatarGetItemExtraDescsRatings
FunctionAvatarGetItemMetaInfo
FunctionAvatarGetItemRelatedQuestObjectives
FunctionAvatarGetItemResourceId
FunctionAvatarGetItemResourceInfo
FunctionAvatarGetItemRootCategories
FunctionAvatarGetItemStateCooldownMs
FunctionAvatarGetItemValuedObject
FunctionAvatarHasItemGuildComponent
FunctionAvatarImproveCraftTool
FunctionAvatarIsItemEnabledForActions
FunctionAvatarIsMetaEnhancerDuplicator
FunctionAvatarPurifyItem
FunctionAvatarRequestItemQuests
FunctionAvatarRequestQuestsForItem
FunctionAvatarUseItem
FunctionAvatarUseItemOnItemAndTakeActions
FunctionAvatarUseItemOnPoint
FunctionItemMallGetItemInfo
InstancedEventResourceId
ItemId
LootGroupId


CategoryLuaApi CategoryFunction CategoryAvatar CategoryItemInfo

На главную