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

На главную


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" "CategoryInventory"

CategoryInventory
EnumBoxOperationResult
EnumDressResult
EnumDressSlot
EnumItemBinding
EnumItemmallItem
EventBoxOperationResult
EventEquipFailed
EventGameItemChanged
EventInventoryChanged
EventInventoryItemAdded
EventInventoryItemChanged
EventInventoryItemEffect
EventInventoryItemRemoved
EventInventorySizeChanged
EventItemDisabled
EventItemLost
EventItemQuestsReceived
EventItemReceived
EventUnequipFailed
FunctionAvatarEquipItem
FunctionAvatarEquipItemToSlot
FunctionAvatarGetEquipResult
FunctionAvatarGetInventoryBagItemId
FunctionAvatarGetInventoryItemId
FunctionAvatarGetInventoryItemIds
FunctionAvatarGetInventoryItemSlot
FunctionAvatarGetInventorySize
FunctionAvatarGetItemCategoryInfo
FunctionAvatarGetItemChildCategories
FunctionAvatarGetItemRootCategories
FunctionAvatarGetRuneSlotMakerInfo
FunctionAvatarInventoryCanPlaceItemToSlot
FunctionAvatarInventoryDestroyItem
FunctionAvatarInventoryGetBaseBagSlotCount
FunctionAvatarInventoryGetItemPocket
FunctionAvatarInventoryGetPocketIndexBySlot
FunctionAvatarInventoryGetPocketInfo
FunctionAvatarInventoryGetPocketsCount
FunctionAvatarInventoryMoveItem
FunctionAvatarInventorySplitItem
FunctionAvatarInventoryUseItem
FunctionAvatarInventoryUseItemOnPoint
FunctionAvatarIsEquipmentSlotEnabledForActions
FunctionAvatarIsInventorySlotEnabledForActions
FunctionAvatarOpenLockedBox
FunctionAvatarOpenUnlockedBox
FunctionAvatarRequestItemQuests
FunctionAvatarUnequipItemToSlot
ItemCategoryId


CategoryLuaApi CategoryFunction CategoryAvatar CategoryInventory

На главную