summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorIbrahem Zidan <brahem@aotsw.com>2019-04-29 06:01:03 +0200
committerGitHub <noreply@github.com>2019-04-29 06:01:03 +0200
commite7585e18ee42517913e35aa7df750d76f2e76bad (patch)
tree20e7fc77ad042c8b82eec3cf11bf10481c6e04af /doc
parenta99d988be4d469c1ab60d860aac57ff3a6f24cac (diff)
parent9f6ffd2f9aae9c39eb2fe2be2c60cfd45c18842a (diff)
downloadhercules-e7585e18ee42517913e35aa7df750d76f2e76bad.tar.gz
hercules-e7585e18ee42517913e35aa7df750d76f2e76bad.tar.bz2
hercules-e7585e18ee42517913e35aa7df750d76f2e76bad.tar.xz
hercules-e7585e18ee42517913e35aa7df750d76f2e76bad.zip
Merge pull request #2440 from Emistry/scriptcommand_consolemes
Added *consolemes script command
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index b53dda2f6..f767f890d 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -7775,6 +7775,10 @@ solution rather than sending the map and the monster_id.
*debugmes("<format string>"{, <param>{, ...}})
+ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+ @ /!\ This command is deprecated @
+ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
+
This command will print a message in the server console (map-server window),
after applying the same format-string replacements as sprintf(). It will not be
displayed anywhere else. Returns true on success.
@@ -7788,6 +7792,29 @@ Example:
---------------------------------------
+*consolemes("<type>", "<format string>"{,<param>{, ...}})
+
+This command will print a message in the server console (map-server window),
+after applying the same format-string replacements as sprintf(). It will not be
+displayed anywhere else. Returns true on success.
+
+List of available <type> are:
+ CONSOLEMES_DEBUG = 0
+ CONSOLEMES_ERROR = 1
+ CONSOLEMES_WARNING = 2
+ CONSOLEMES_INFO = 3
+ CONSOLEMES_STATUS = 4
+ CONSOLEMES_NOTICE = 5
+
+Example:
+
+ // Displays "NAME has clicked me!" in the map-server window.
+ consolemes(CONSOLEMES_DEBUG, "%s has clicked me!", strcharinfo(PC_NAME));
+
+ consolemes(CONSOLEMES_DEBUG, "\033[0;32mHello World"); // supports ANSI escape sequences
+
+---------------------------------------
+
*logmes("<message>"{, <log type>})
This command will write the message given to the map server log files, as