Chat private: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
r8932 adds chat_macro
imported>Bale
m add category
Line 35: Line 35:
see_also={{SeeAlso|chat_clan|chat_macro}}|
see_also={{SeeAlso|chat_clan|chat_macro}}|
}}
}}
[[Category:Miscellaneous Functions]]

Revision as of 18:07, 23 January 2011

Function Syntax

void chat_private(string player ,string message )

  • player is the name of the player you wish to contact.
  • message is the message you wish to send them.

This function allows you to send ingame private messages through chat to players who are either in your clan or (if you have access to it) on your clan's whitelist.

Code Samples

If you save this as example.ash, then type "set chatbotScript=example.ash" into the CLI, this script will log messages sent to you and reply to the sender with an away message.

void main(string sender , string message){
   print(sender + ": " + message , "green");
   chat_private(sender , "I am not here right now, but will see your message when I return. Thanks for calling!");
}

See Also

chat_clan() | chat_macro()