v0.13.8

EditMacro

functionimplementedavailable in: camelot

Modifies an existing macro.

The client has this function, but Blizzard's documentation leaves it out, so its parameters and results aren't known.

Parameters

nametypedescription
macroInfonumber | stringThe index or name of the macro to be edited. Index ranges from 1 to 120 for account-wide macros and 121 to 150 for character-specific.
namestring?The name to assign to the macro. The current UI imposes a 16-character limit. The existing name remains unchanged if this argument is nil.
iconnumber | string?FileID - The path to the icon texture to assign to the macro. The existing icon remains unchanged if this argument is nil.
bodystring?The macro commands to be executed. If this string is longer than 255 characters, only the first 255 will be saved.

Returns

macroID · number · The new index of the macro, as displayed in the "Create Macros" UI. Same as argument "index" unless the macro name is changed, as they are sorted alphabetically.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

sources

Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.