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

На главную


craft.DiceCraftGetPlacedItems()

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

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

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

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

-- возвращаемые значения
table или nil - nil, если режим крафтинга не включён; иначе таблица, ключами в которой являются номера слотов (integer, начинаются от 0), а значениями - идентификаторы предметов (ObjectId), размещённых в слотах (если слот пуст значением будет nil)

-- пример использования
local slots = craft.DiceCraftGetPlacedItems()

См. также craft.DiceCraftEmptySlot( slot ), craft.DiceCraftPutItem( itemId, slot, count ), EVENT_DICE_CRAFT_SLOT_CHANGED.

Search: "CategoryLuaApi" "CategoryCraft"

CategoryCraft
EnumDiceCraftCmdType
EventDiceCraftCanceled
EventDiceCraftCmdFailed
EventDiceCraftFinished
EventDiceCraftNotEnoughComponents
EventDiceCraftPrepared
EventDiceCraftRecipesChanged
EventDiceCraftScoreChanged
EventDiceCraftSlotChanged
EventDiceCraftStatusChanged
FunctionAvatarGetRecipeInfo
FunctionCraftDiceCraftEmptySlot
FunctionCraftDiceCraftGetCurrentDices
FunctionCraftDiceCraftGetCurrentRecipe
FunctionCraftDiceCraftGetDiceValues
FunctionCraftDiceCraftGetInspirationLevels
FunctionCraftDiceCraftGetInspiredRecipes
FunctionCraftDiceCraftGetLockedSlots
FunctionCraftDiceCraftGetPlacedItems
FunctionCraftDiceCraftGetRecipeInspiration
FunctionCraftDiceCraftGetRecipes
FunctionCraftDiceCraftIsJoker
FunctionCraftDiceCraftPutItem
FunctionCraftDiceCraftRecipeIsSameItem
FunctionCraftDiceCraftState
FunctionCraftDiceCraftUseInspiration
FunctionCraftGetDiceCraftRecipeResults
FunctionCraftGetItemSlotsCount
FunctionCraftIncreaseQualification


CategoryLuaApi CategoryFunction CategoryCraft

На главную