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

На главную


craft.GetReforgeInfo( itemId, offenceMode )

Возвращает список доступных рефоржей для предмета.

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

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

-- параметры
itemId - ObjectId, идентификатор предмета
offenceMode - boolean, если true, то искать доступный рефорж на атаку, если false, то искать доступный рефорж на защиту

-- возвращаемые значения
table или nil - если ошибка, то nil; иначе таблица с полями:
  price - number (int64), стоимость модификации
  recipe - ReforgeResourceId, идентификатор ресурса для reforge крафта
  resources - table of ObjectId, список (индексируется с 1) идентификаторов предмета-ресурса для рефоржа
  altCurrencies: table - индексированный с 1 список требуемой альтвалюты, каждая ячейка таблица с полями
    currency: CurrencyId - ресурсный идентификатор валюты
    count: number (int) - количество требуемой валюты
-- пример использования
local recipe = craft.GetReforgeInfo( itemId )

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

На главную