Wikia

WoWWiki

Watchlist Recent changes

API GetMacroBody

Main Menue



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

Pages on WoWWiki

94,193pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,622photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki