From 7bc1b1c09e3c3e7d0c4460803d16dfc01cd56a22 Mon Sep 17 00:00:00 2001 From: gumi Date: Thu, 21 Sep 2017 11:22:59 -0400 Subject: update documentation for buildin_logmes --- doc/script_commands.txt | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index c9bdce7c5..37a2ca249 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -7489,13 +7489,21 @@ window). It will not be displayed anywhere else. debugmes("\033[38D\033[K ==Message== \n"); // enable colour code. --------------------------------------- -*logmes("") +*logmes(""{, }) -This command will write the message given to the map server NPC log file, -as specified in 'conf/map/logs.conf'. If SQL logging is enabled, the message -will go to the 'npclog' table. +This command will write the message given to the map server log files, as +specified in 'conf/map/logs.conf'. If SQL logging is enabled, the message will +go to the specified log table. If logs are not enabled, nothing will happen. -If logs are not enabled for NPCs, nothing will happen. +Log types are: + +LOGMES_NPC - log to the 'npclog' table (Default) +LOGMES_ATCOMMAND - log to the 'atcommandlog' table + +Example: + + logmes("foobar"); + logmes("foobar", LOGMES_ATCOMMAND); --------------------------------------- -- cgit v1.2.3-70-g09d2