summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/script_commands.txt5
-rw-r--r--src/map/script.c1
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 4dcbd75d1..c0fc8ce40 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -4632,8 +4632,9 @@ skill requirements.
---------------------------------------
-itemeffect <item id>;
-itemeffect "<item name>";
+*itemeffect <item id>;
+*itemeffect "<item name>";
+*consumeitem is an alias of itemeffect (added for compatibility)
This command will run the item script of the specified item on the
invoking character. The character does not need to posess the item, and
diff --git a/src/map/script.c b/src/map/script.c
index 5fa248f4e..8460b23b0 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -17738,6 +17738,7 @@ void script_parse_builtin(void) {
BUILDIN_DEF2(cleanmap,"cleanarea","siiii"),
BUILDIN_DEF(npcskill,"viii"),
BUILDIN_DEF(itemeffect,"v"),
+ BUILDIN_DEF2(itemeffect,"consumeitem","v"), /* alias of itemeffect */
BUILDIN_DEF(delequip,"i"),
/**
* @commands (script based)