Get auto attack

From Kolmafia
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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.