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

На главную


avatar.OpenBox( boxId, quantity )

Попытка открыть сундуки. Результат операции приходит в виде события EVENT_BOX_OPERATION_RESULT.

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

-- объявление:
function OpenBox( boxId, quantity )

-- параметры:
boxId: ObjectId - item id сундучка, сундучок должен находиться в одном из контейнеров (например в инвентаре или переполненной сумке)
quantity: Number(int) or nil - необязательный параметр, количество открываемых сундуков; по умолчанию 1.

-- возвращаемые значения:
нет

-- пример:
avatar.OpenBox( boxId )

Search: "CategoryLuaApi" "CategoryInventory"

CategoryInventory
EnumBoxOperationResult
EnumDressResult
EnumDressSlot
EnumItemBinding
EnumItemmallItem
EventBoxOperationResult
EventEquipFailed
EventInventoryChanged
EventInventoryItemEffect
EventInventorySizeChanged
EventInventorySlotChanged
EventItemQuestsReceived
EventUnequipFailed
FunctionAvatarArrangeContainerItems
FunctionAvatarEquipItem
FunctionAvatarEquipItemById
FunctionAvatarEquipItemByIdToSlot
FunctionAvatarEquipItemToSlot
FunctionAvatarGetContainerItem
FunctionAvatarGetEquipResult
FunctionAvatarGetInventoryBagItemId
FunctionAvatarGetInventoryItemId
FunctionAvatarGetInventoryItemIds
FunctionAvatarGetInventoryItemSlot
FunctionAvatarGetInventorySize
FunctionAvatarGetMetaUpgradeCost
FunctionAvatarGetRuneSlotMakerInfo
FunctionAvatarGetSameBindingStackCount
FunctionAvatarInventoryCanPlaceItemToSlot
FunctionAvatarInventoryGetBaseBagSlotCount
FunctionAvatarInventoryGetItemPocket
FunctionAvatarInventoryGetPocketIndexBySlot
FunctionAvatarInventoryGetPocketInfo
FunctionAvatarInventoryGetPocketsCount
FunctionAvatarInventoryMoveItem
FunctionAvatarInventorySplitItem
FunctionAvatarIsInventoryMoveItemModified
FunctionAvatarIsItemsStackable
FunctionAvatarOpenBox
FunctionAvatarShowMetaUpgradeDialog
FunctionAvatarUnequipItemToSlot
ItemCategoryId

Search: "CategoryLuaApi" "CategoryInventoryOverflow"

CategoryInventoryOverflow
EventInventoryOverflowChanged
EventInventoryOverflowSlotAdded
EventInventoryOverflowSlotRemoved
FunctionAvatarArrangeContainerItems
FunctionAvatarGetContainerItem
FunctionAvatarGetInventoryOverflowItemIds
FunctionAvatarGetInventoryOverflowSize
FunctionAvatarIsItemsStackable
FunctionAvatarOpenBox


CategoryLuaApi CategoryFunction CategoryAvatar CategoryInventory CategoryInventoryOverflow

На главную