Difference between revisions of "Chat private"

From Kolmafia
Jump to navigation Jump to search
imported>Grotfang
(Create page - not sure which category to place it in though)
 
imported>Bale
(changed in r9043)
 
(6 intermediate revisions by 3 users not shown)
Line 6: Line 6:
  
 
name={{#var:name}}|
 
name={{#var:name}}|
function_category=CATEGORY|
+
function_category=Uncategorized|
  
 
function1={{Function|
 
function1={{Function|
Line 19: Line 19:
 
}}|
 
}}|
  
function_description=This function allows you to send ingame private messages through chat to players.|
+
function_description=This function allows you to send ingame private messages through chat to any player.|
  
 
code1={{CodeSample|
 
code1={{CodeSample|
Line 33: Line 33:
 
}}|
 
}}|
  
see_also={{SeeAlso|chat_clan|print}}|
+
see_also={{SeeAlso|chat_clan|chat_macro}}|
 
}}
 
}}
 +
 +
[[Category:Miscellaneous Functions]]

Latest revision as of 08:16, 15 February 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 any player.

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