RSS

Пятница, 15.11.2024, 01:29
Главная » WoW API » API Функции » Действия »

IsStackableAction

[ править ]
Returns whether an action uses stackable items.
[клоны]
Returns whether an action uses stackable items. Applies to consumable items such as potions, wizard oils, food and drink; not used for spells which consume reagents (for those, see IsConsumableAction).

Signature:
Code
isStackable = IsStackableAction(slot)

Arguments:
  • slot - An action bar slot (number, actionID)

Returns:
  • isStackable - 1 if the action uses stackable items; otherwise nil (1nil)

Examples:
-- Print all "stackable actions" to your chat window
for i=1,120 do
if IsStackableAction(i) then
local count = GetActionCount(i)
local t,id = GetActionInfo(i)
local name = GetItemInfo(id)

print("Action:", i, "Item:", name, "Count:", count)
end
end

Также смотрите: Действия , Action functions
Ссылки: http://wowprogramming.com/docs/api/IsStackableAction