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

На главную


craft.GetForgeRecipeInfo( recipeId )

Возвращает информацию о рецепте для forge крафта.

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

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

-- параметры
recipeId - ForgeRecipeId, идентификатор рецепта для forge крафта

-- возвращаемые значения
table or nil - в случае неудачи вернётся nil, иначе таблица с полями:
  name: WString - название
  price: number (int) - стоимость в деньгах
  description: ValuedText or nil - описание с подставленными текущими значениями параметров
  tierResource: ForgeResourceId or nil - идентификатор ресурса (тира) для этого forge-крафта, если доступен (иначе-nil)
  result: ObjectId or nil - итем, получаемый в результате форжа
  resources: table of ObjectId - индексированный с 1 список требуемых ресурсов в виде необходимых итемов
  available: boolean - true, если рецепт доступен, иначе false
  requirements: RequirementsTable or nil - если available == false, то список условий необходимых для получения доступа к рецепту, иначе nil
  altCurrencies: table - индексированный с 1 список требуемой альтвалюты, каждая ячейка таблица с полями
    currency: CurrencyId - ресурсный идентификатор валюты
    count: number (int) - количество требуемой валюты
-- пример использования
LogInfo( craft.GetForgeRecipeInfo( recipeId ) )

Доп. ссылки:

Search: "CategoryLuaApi" "CategoryCraft"

CategoryCraft
EnumDiceCraftCmdType
EventDiceCraftCanceled
EventDiceCraftCmdFailed
EventDiceCraftFinished
EventDiceCraftNotEnoughComponents
EventDiceCraftPrepared
EventDiceCraftRecipesChanged
EventDiceCraftScoreChanged
EventDiceCraftSlotChanged
EventDiceCraftStatusChanged
EventReforgeResult
EventReforgeResultFail
EventReforgeResultReady
FunctionAvatarGetRecipeAfflatusItem
FunctionAvatarGetRecipeInfo
FunctionCraftDiceCraftEmptySlot
FunctionCraftDiceCraftGetCurrentDices
FunctionCraftDiceCraftGetCurrentRecipe
FunctionCraftDiceCraftGetDiceValues
FunctionCraftDiceCraftGetInspirationLevels
FunctionCraftDiceCraftGetInspiredRecipes
FunctionCraftDiceCraftGetLockedSlots
FunctionCraftDiceCraftGetPlacedItems
FunctionCraftDiceCraftGetRecipeInspiration
FunctionCraftDiceCraftGetRecipes
FunctionCraftDiceCraftIsJoker
FunctionCraftDiceCraftPutItem
FunctionCraftDiceCraftRecipeIsSameItem
FunctionCraftDiceCraftState
FunctionCraftDiceCraftUseInspiration
FunctionCraftFinishReforge
FunctionCraftGetDiceCraftRecipeResults
FunctionCraftGetForgeComponent
FunctionCraftGetForgeRecipe
FunctionCraftGetForgeRecipeInfo
FunctionCraftGetForgeRecipes
FunctionCraftGetGoldenSlotsForgeRecipes
FunctionCraftGetGoldenSlotsForgeTiersOrder
FunctionCraftGetItemSlotsCount
FunctionCraftGetReforgeComponent
FunctionCraftGetReforgeInfo
FunctionCraftGetReforgeRecipe
FunctionCraftGetReforgeVariants
FunctionCraftIncreaseQualification
FunctionCraftMakeForge
FunctionCraftMakeReforge
FunctionCraftPutForgeComponent
FunctionCraftPutReforgeComponent
FunctionCraftSetForgeRecipe
FunctionCraftSetReforgeRecipe


CategoryLuaApi CategoryFunction CategoryCraft

На главную