summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2017-10-20 15:32:26 -0400
committerGitHub <noreply@github.com>2017-10-20 15:32:26 -0400
commit018f1ffc77c8f690a6a5643365f64794451c9aa9 (patch)
treecb2413045d91d9fcdfad100b019793554c2d18b8 /doc/script_commands.txt
parent6b1fe2d069cb0251bc5798767f97454ab63a47c0 (diff)
parent7bc1b1c09e3c3e7d0c4460803d16dfc01cd56a22 (diff)
downloadhercules-018f1ffc77c8f690a6a5643365f64794451c9aa9.tar.gz
hercules-018f1ffc77c8f690a6a5643365f64794451c9aa9.tar.bz2
hercules-018f1ffc77c8f690a6a5643365f64794451c9aa9.tar.xz
hercules-018f1ffc77c8f690a6a5643365f64794451c9aa9.zip
Merge pull request #1843 from mekolat/logmes2
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 331bed1c7..92fb53445 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -7506,13 +7506,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);
---------------------------------------