From Runes of Magic Wiki
Jump to: navigation, search
GetActionUsable( slotno )

Find out if an action icon placed on an action bar can be used or not. This refers to the type of the item in the associated slotno, not if you can currently use it (the cooldown). For example if you use it to check a slotno with a consumable in it, it will always return true regardless of whether it is on cooldown.

Parameters[edit | edit source]

Arguments[edit | edit source]

number - the slot number of an action bar.

Returns[edit | edit source]

Boolean value. true if action is usable, false otherwise.

Example[edit | edit source]

-- Print if an action is usable or not to the Say channel.
local function PrintUsable( slotno )
   if( GetActionUsable( slotno ) then
      SendChatMessage("My action is usable.","SAY");
      SendChatMessage("My action is not usable.","SAY");

Notes[edit | edit source]

GetActionUsable screenshot

Reference to slot numbers.

Related Functions[edit | edit source]