Wikia

WoWWiki

API GetMacroBody

Talk0
101,295pages on
this wiki
Revision as of 17:00, March 28, 2008 by Snago (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
WoW API < GetMacroBody

Returns the body (macro text) of a macro.

body = GetMacroBody(macroIndex or "name")


Arguments Edit

macroID 
number or String - Macro index or name.


Returns Edit

body 
String - The macro body or nothing if the macro doesn't exsist.


Example Edit

local body = GetMacroBody("Flash")
DEFAULT_CHAT_FRAME:AddMessage(body)

Result

#showtooltip
/cast [target=mouseover, help, exists] [help, exists] [target=player] Flash Heal

Around Wikia's network

Random Wiki