summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthatakkarin <thatakkarin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-06 23:16:19 +0000
committerthatakkarin <thatakkarin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-06 23:16:19 +0000
commit856265e88641238b78d359bd64912ad85864db79 (patch)
tree3be08ad0e0f5f9530e842f721d0a02e9abac3e09
parentee2a0472e04446bfaa4086727744dad60b2d5d6d (diff)
downloadhercules-856265e88641238b78d359bd64912ad85864db79.tar.gz
hercules-856265e88641238b78d359bd64912ad85864db79.tar.bz2
hercules-856265e88641238b78d359bd64912ad85864db79.tar.xz
hercules-856265e88641238b78d359bd64912ad85864db79.zip
* Added documentation in script_commands.txt for 'getrandgroupitem' (r16752)
* Added 'disable_commands_when_dead' to the list in permissions.txt (r16751) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16754 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--doc/permissions.txt1
-rw-r--r--doc/script_commands.txt14
2 files changed, 14 insertions, 1 deletions
diff --git a/doc/permissions.txt b/doc/permissions.txt
index 3c936b157..e0e083f08 100644
--- a/doc/permissions.txt
+++ b/doc/permissions.txt
@@ -30,3 +30,4 @@ receive_requests : Ability to receive @requests.
show_bossmobs : Ability to see boss mobs with @showmobs.
disable_pvm : Ability to disable Player vs. Monster.
disable_pvp : Ability to disable Player vs. Player.
+disable_commands_when_dead : Ability to disable @command usage when dead. \ No newline at end of file
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index d87c66cf4..bb2e10a4e 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -4378,7 +4378,7 @@ Check 'getitem2' to understand the arguments of the function.
*groupranditem <group id>;
Returns the item_id of a random item picked from the group specified. The
-different groups and their group number are specified in db/item_group_db.txt
+different groups and their group number are specified in db/(pre-)re/item_group_db.txt
When used in conjunction with other functions, you can get a random item. For
example, for a random pet lure:
@@ -4387,6 +4387,18 @@ getitem groupranditem(15),1;
---------------------------------------
+*getrandgroupitem <group id>,<quantity>;
+
+Similar to the above example, this command allows players to obtain the specified
+quantity of a random item from the group "<group id>". The different groups and
+their group number are specified in db/(pre-)re/item_group_db.txt
+
+For example, obtaining three of the same random item from Old Blue Box:
+
+getrandgroupitem(1,3);
+
+---------------------------------------
+
*enable_items;
*disable_items;