Get auto attack

From Kolmafia
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

int get_auto_attack()

Returns your auto-attack as an integer code. Possible values are 0 for disabled, 1 for attack with weapon, a skillID number, or a macroID number preceeded by 99.

CLI Equivalent

The CLI command "autoattack" does not appear to have reporting capability.

See Also

set_auto_attack()


Attention KoLmafia Experts!

We need your help; some details of this function's operation are unknown or unclear.

The following specific question has been raised:

  • In r8981, the CLI command w/o parameters caused a debug log. Update cli_equip and ask questions similar to set_auto_attack() when fixed.