Chat macro: Difference between revisions
Jump to navigation
Jump to search
imported>Bale new function in r8932 |
imported>Bale add category |
||
Line 23: | Line 23: | ||
cli_equiv=In the CLI, simply prefix your command with / and KoLmafia will send that off as a chat message.| | cli_equiv=In the CLI, simply prefix your command with / and KoLmafia will send that off as a chat message.| | ||
}} | }} | ||
[[Category:Miscellaneous Functions]] |
Revision as of 18:07, 23 January 2011
Function Syntax
void chat_macro(string message )
- message message is the macro you want sent to chat.
message should contain all the information about your macro. Rather than coding a list of things that should be accepted, instead, it will work like an honor system. KoLmafia will continue allowing you to use scripted chat commands until you send something which results in the chat parser believing that you said something in a non-clan channel. Should this happen, all future chat macros (and chat messages, for that matter) executed through script will fail to execute.
CLI Equivalent
In the CLI, simply prefix your command with / and KoLmafia will send that off as a chat message.