Chat private

From Kolmafia
Revision as of 02:50, 10 March 2010 by imported>Grotfang (Create page - not sure which category to place it in though)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

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() | print()