summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-09-21 11:22:59 -0400
committergumi <mekolat@users.noreply.github.com>2017-09-21 18:53:36 -0400
commit7bc1b1c09e3c3e7d0c4460803d16dfc01cd56a22 (patch)
treec93c34c9df948674fd057d7f8aa6d18713a88290 /doc/script_commands.txt
parent0e738e87bb60700a41c21c817adf14b5a4da2639 (diff)
downloadhercules-7bc1b1c09e3c3e7d0c4460803d16dfc01cd56a22.tar.gz
hercules-7bc1b1c09e3c3e7d0c4460803d16dfc01cd56a22.tar.bz2
hercules-7bc1b1c09e3c3e7d0c4460803d16dfc01cd56a22.tar.xz
hercules-7bc1b1c09e3c3e7d0c4460803d16dfc01cd56a22.zip
update documentation for buildin_logmes
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt18
1 files changed, 13 insertions, 5 deletions
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("<message>")
+*logmes("<message>"{, <log type>})
-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);
---------------------------------------