企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
These functions relate to[Macros](https://wow.gamepedia.com/Macro "Macro"). NOCOMBAT[CreateMacro](https://wow.gamepedia.com/API_CreateMacro "API CreateMacro")("name", icon, "body", perCharacter, isLocal) - Create a new macro. [DeleteMacro](https://wow.gamepedia.com/index.php?title=API_DeleteMacro&action=edit&redlink=1 "API DeleteMacro (page does not exist)")(id or "name") - Deletes a macro. NOCOMBAT[EditMacro](https://wow.gamepedia.com/API_EditMacro "API EditMacro")(index, "name", iconIndex, "body", isLocal, perCharacter) - Saves a macro. [GetLooseMacroIcons](https://wow.gamepedia.com/index.php?title=API_GetLooseMacroIcons&action=edit&redlink=1 "API GetLooseMacroIcons (page does not exist)")() [GetLooseMacroItemIcons](https://wow.gamepedia.com/index.php?title=API_GetLooseMacroItemIcons&action=edit&redlink=1 "API GetLooseMacroItemIcons (page does not exist)")() [GetMacroBody](https://wow.gamepedia.com/API_GetMacroBody "API GetMacroBody")(id or "name") - Returns the body (macro text) of a macro. [GetMacroIcons](https://wow.gamepedia.com/index.php?title=API_GetMacroIcons&action=edit&redlink=1 "API GetMacroIcons (page does not exist)")(table) - Returns an array of available macro texture paths (but not icons of items). [GetMacroIndexByName](https://wow.gamepedia.com/API_GetMacroIndexByName "API GetMacroIndexByName")("name") - Returns macro index. [GetMacroInfo](https://wow.gamepedia.com/API_GetMacroInfo "API GetMacroInfo")(id or "name") - Returns "name", "iconTexture", "body", isLocal. [GetMacroItemIcons](https://wow.gamepedia.com/index.php?title=API_GetMacroItemIcons&action=edit&redlink=1 "API GetMacroItemIcons (page does not exist)")(table) - Returns an array of available macro texture paths (icons of items). [GetMacroItem](https://wow.gamepedia.com/index.php?title=API_GetMacroItem&action=edit&redlink=1 "API GetMacroItem (page does not exist)")() [GetMacroSpell](https://wow.gamepedia.com/API_GetMacroSpell "API GetMacroSpell")() [GetNumMacros](https://wow.gamepedia.com/API_GetNumMacros "API GetNumMacros")() - Returns the number of macros the user has. [GetRunningMacroButton](https://wow.gamepedia.com/index.php?title=API_GetRunningMacroButton&action=edit&redlink=1 "API GetRunningMacroButton (page does not exist)")() [GetRunningMacro](https://wow.gamepedia.com/index.php?title=API_GetRunningMacro&action=edit&redlink=1 "API GetRunningMacro (page does not exist)")() PROTECTED[RunMacro](https://wow.gamepedia.com/API_RunMacro "API RunMacro")(id or "name") - Runs a macro. PROTECTED[RunMacroText](https://wow.gamepedia.com/API_RunMacroText "API RunMacroText")("macro") - Interpret the given string as a macro and run it. [SecureCmdOptionParse](https://wow.gamepedia.com/API_SecureCmdOptionParse "API SecureCmdOptionParse")("command") - Used for evaluating conditionals in macros, returning the appropriate choice. [SetMacroItem](https://wow.gamepedia.com/index.php?title=API_SetMacroItem&action=edit&redlink=1 "API SetMacroItem (page does not exist)")(macro, item \[,target\]) [SetMacroSpell](https://wow.gamepedia.com/index.php?title=API_SetMacroSpell&action=edit&redlink=1 "API SetMacroSpell (page does not exist)")(macro, spell \[,target\]) PROTECTED[StopMacro](https://wow.gamepedia.com/index.php?title=API_StopMacro&action=edit&redlink=1 "API StopMacro (page does not exist)")() - Stops the currently executing macro.