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

На главную

## itemLib.GetRootCategories()

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

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

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

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

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

    -- пример:
    local roots = itemLib.GetRootCategories()
    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

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

CategoryItemLib
FunctionItemLibCanActivateForUseOnItem
FunctionItemLibCanCreateAuction
FunctionItemLibCanDrop
FunctionItemLibCanUseOnItem
FunctionItemLibGetActionGroupsInfo
FunctionItemLibGetActivationInfo
FunctionItemLibGetActivators
FunctionItemLibGetActivatorsAlternative
FunctionItemLibGetAlternativePriceInfo
FunctionItemLibGetBindingInfo
FunctionItemLibGetBonus
FunctionItemLibGetBoxInfo
FunctionItemLibGetBundle
FunctionItemLibGetCategory
FunctionItemLibGetCategoryInfo
FunctionItemLibGetChildCategories
FunctionItemLibGetClass
FunctionItemLibGetClassInfo
FunctionItemLibGetCompatibleSlots
FunctionItemLibGetContainerInfo
FunctionItemLibGetCountInfo
FunctionItemLibGetCouponInfo
FunctionItemLibGetCraftInfo
FunctionItemLibGetCraftToolInfo
FunctionItemLibGetDressConditions
FunctionItemLibGetDressToSlotConditions
FunctionItemLibGetExchangeInfo
FunctionItemLibGetExtraDescs
FunctionItemLibGetExtraDescsRatings
FunctionItemLibGetInBagStackCount
FunctionItemLibGetIncludedMob
FunctionItemLibGetIncludedMountSkin
FunctionItemLibGetItemInfo
FunctionItemLibGetMetaInfo
FunctionItemLibGetOverallCount
FunctionItemLibGetOverallStackCount
FunctionItemLibGetPriceInfo
FunctionItemLibGetQuality
FunctionItemLibGetRelatedQuestObjectives
FunctionItemLibGetResourceId
FunctionItemLibGetResourceInfo
FunctionItemLibGetRootCategories
FunctionItemLibGetRuneInfo
FunctionItemLibGetRuneInstrumentInfo
FunctionItemLibGetSource
FunctionItemLibGetSpell
FunctionItemLibGetStackInfo
FunctionItemLibGetStateCooldownMs
FunctionItemLibGetTemporaryInfo
FunctionItemLibGetUniversalMetaEnchancerItems
FunctionItemLibGetUsageInfo
FunctionItemLibGetUsageOnItemInfo
FunctionItemLibGetUseOnItemCursor
FunctionItemLibGetValuedObject
FunctionItemLibGetZodiacSignInfo
FunctionItemLibIsBoxKey
FunctionItemLibIsCopied
FunctionItemLibIsCursed
FunctionItemLibIsGuildCreator
FunctionItemLibIsHideLifestyleWhileNotEquipped
FunctionItemLibIsItem
FunctionItemLibIsMetaEnhancerConvertor
FunctionItemLibIsMultipleUse
FunctionItemLibIsPointed
FunctionItemLibIsProbe
FunctionItemLibIsPurifier
FunctionItemLibIsQuestOperator
FunctionItemLibIsQuestRelated
FunctionItemLibIsSOSMessageSender
FunctionItemLibIsUsable
FunctionItemLibIsUseItemAndTakeActions
FunctionItemLibIsUseOnItemAndTakeActions
FunctionItemLibIsWeapon
FunctionItemMallGetItemType
FunctionItemMallIsItemSellable
FunctionSpellLibGetRequiredResources

CategoryLuaApi CategoryFunction CategoryItemLib CategoryItemInfo

На главную