summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-06-03 18:05:48 +0200
committerGitHub <noreply@github.com>2017-06-03 18:05:48 +0200
commitbab23871da1b01c9d5276fb761bb869b99343f62 (patch)
treeb68217596c1cc74252d5e6606bd379aba5cc2d6e /doc
parentce1166a0981f398d5c46bd74438ad4b3bc35d726 (diff)
parent7fa9eb8ecdeafe520fadf865ad8463a9ac1b47cb (diff)
downloadhercules-bab23871da1b01c9d5276fb761bb869b99343f62.tar.gz
hercules-bab23871da1b01c9d5276fb761bb869b99343f62.tar.bz2
hercules-bab23871da1b01c9d5276fb761bb869b99343f62.tar.xz
hercules-bab23871da1b01c9d5276fb761bb869b99343f62.zip
Merge pull request #1736 from mekolat/group2
new buildin: add_group_command
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt18
1 files changed, 17 insertions, 1 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 70306ba96..f1b7f14dc 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -7777,6 +7777,21 @@ OnAtcommand:
---------------------------------------
+*add_group_command("<command>", <group id>, <use on self>, <use on other>)
+
+Allows to explicitly change the command permissions for a specific group.
+
+This command bypasses group inheritance, which means groups inheriting from
+the specified <group id> will NOT inherit the specified permission. You should
+use add_group_command() for every group you want to give permission to.
+
+Example:
+ bindatcmd("foobar", "NPC::OnUseCommand", 99, 99, 0); // define the command
+ add_group_command("foobar", 2, true, false); // allow group 2 to use @foobar
+ add_group_command("foobar", 5, true, true); // allow group 5 to use @foobar and #foobar
+
+---------------------------------------
+
*unbindatcmd("command")
This command will unbind a NPC event label from an atcommand.
@@ -7794,7 +7809,8 @@ scripts-atcommands this way.
*can_use_command("<command>"{, <account id>})
Checks if the attached or specified player can use the specified
-atcommand and returns true or false accordingly.
+atcommand and returns true or false accordingly. Works for both
+built-in atcommands and custom atcommands.
---------------------------------------