Software Documentation MQ2EmuAutoMacro
Reply
MQ2EmuAutoMacro

Overview


This lets you set a macro to automatically start on game-entry for a specific character, or a default for all other characters. If you’ve set a default macro, it’s only run if you haven’t specified a macro for the current character. In other words if you only have “foo.mac” for Maudigan and a default of “bar.mac” then bar will run for everyone, except Maudigan who will run foo.

Commands



/automacro [default] [<macroname:string>]


This will set the macro that starts on game entry for the current or all characters.

default: the optional literal default specifies if the requested change is meant to update the current character or the default for all characters. Leave it blank and it assumes the current character.

<macroname:string>: this optional string specifies the name of the macro you want to assign. Do not include the .mac file extension or any kind of directories, just the root file name. Leaving it blank would turn off the auto play.

Example
Make Maudigan run foo.mac automatically. Login as Maudigan and run:
/automacro foo

Example
Make Maudigan not run a macro when he logs in. Login as Maudigan and run:
/automacro

You currently can not set a character-specific macro for another character, only the one you’re currently logged in as. At least not from in-game; you can edit the ini file directly.



Example
Make every character run bar.mac automatically when they login. This would get trumped by a character specific setting.
/automacro default bar

Example
Make every character not run a macro when they log in. This would get trumped by a character specific setting.
/automacro default


INI Settings


You can manually set the macros in the INI file. It should mostly mirror how the above commands work, e.g. no file extensions.

Default
The default key lets you set a macro to run on ALL charactes. Leave this out of the INI file entirely if you want to do it on a per name basis.

<character name>
Using a character name as a key will set the macro that runs for that specific character.


Example
INI
More +
[Macros]
Maudigan=monkmac
Default=toonman



Limitations



Not available on SoF.
This is not on SoF and it will most likely never be added to SoF.
Last edited by Maudigan on Wed Nov 18, 2020 12:56 pm; edited 2 times in total
Sun Sep 26, 2010 4:38 pm
Project Lead
This no longer requires gold membership.
Thu Mar 07, 2013 7:04 pm
Project Lead
Thanks Maudigan!
Fri Mar 08, 2013 9:47 am
Listen to This Guy
My pleasure!
Fri Mar 08, 2013 6:07 pm
Project Lead
What would be the command to end a macro, but without replacing it with another?
Wed Nov 18, 2020 5:03 am
I think formally it’s /endmacro, but /end probably works too, unless something else is reserving that word (don’t think it is)

That answer is for a general macro that’s currently running. Did you mean, if you’ve setup an auto play macro and you want to know how to remove it from auto play without replacing it? If that’s the case just leave the macro name blank. So /automacro for current character or /automacro default for all other chars.

Updated the documentation to reflect that option.
Last edited by Maudigan on Wed Nov 18, 2020 12:58 pm; edited 1 time in total
Wed Nov 18, 2020 12:06 pm
Project Lead
Software Documentation MQ2EmuAutoMacro
Reply