Macros - Reetus/ClassicAssist GitHub Wiki

ClassicAssist Macro Commands

Generated on 12/15/2024 3:30:41 AM
Version: 4.425.22+b9a337759d26b9d39ae8ccaac75a36c4255be94a

Macros

IsRunning

Method Signature:

Boolean IsRunning(System.String)

Parameters

  • name: Macro name.

Description:

Returns True if the specified macro name is currently running

Example:

if IsRunning('macro'):  

PlayCUOMacro

Method Signature:

Void PlayCUOMacro(System.String)

Parameters

  • name: Macro name.

Description:

Plays the specified CUO macro name

Example:

PlayCUOMacro('Paperdoll')  

PlayMacro

Method Signature:

Void PlayMacro(System.String, System.Object[])

Parameters

  • name: Macro name.
  • args: Comma seperated list of parameters.

Description:

Plays the given macro name.

Example:

# Play another macro

PlayMacro("beep")

# Play another macro passing parameters to it

PlayMacro("beep", 1, "moo")

# In the played macro, args[0] will be 1 and args[1] will be "moo"  

Replay

Method Signature:

Void Replay(System.Object[])

Parameters

  • args: Comma seperated list of parameters.

Description:

Replay the current macro

Example:

Replay()  

Stop

Method Signature:

Void Stop(System.String)

Parameters

  • name: Macro name. (Optional)

Description:

Stops the current macro.

Example:

# Stop the current macro
Stop()
# Stop a macro by name
Stop("Background Macro")  

StopAll

Method Signature:

Void StopAll()

Description:

Stops all running macros including background macros.

Example:

StopAll()