Set auto attack

From Kolmafia
Revision as of 20:44, 8 December 2016 by imported>Bale (r17491 adds version with a string parameter)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

void set_auto_attack(int setting )

  • setting is the KoL attack code: 0 for disabled, 1 for attack with weapon, a skillID number, or a macroID number preceeded by 99.

void set_auto_attack(string setting )

  • setting is the attack expressed as a string: "attack", "steal", "pickpocket", "pick pockey" or the name of a skill.

Sets your auto-attack to the setting.

CLI Equivalent

The CLI command "autoattack" functions similarly.

See Also

get_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:

  • Does the CLI command allow macro setting?