summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-10-07 19:17:10 -0300
committershennetsind <ind@henn.et>2013-10-07 19:17:10 -0300
commitb703fbd42f4c1e782d6d2bf202a563bbceee0a7e (patch)
tree25930fad4ced7e0be6b60c713b7901fe03e86243
parent5d6acd951f98bb54c64231d97e196e23f926980a (diff)
downloadhercules-b703fbd42f4c1e782d6d2bf202a563bbceee0a7e.tar.gz
hercules-b703fbd42f4c1e782d6d2bf202a563bbceee0a7e.tar.bz2
hercules-b703fbd42f4c1e782d6d2bf202a563bbceee0a7e.tar.xz
hercules-b703fbd42f4c1e782d6d2bf202a563bbceee0a7e.zip
Added 'consumeitem' as an alias of 'itemeffect'
For compatibility purposes, Closes #148 Signed-off-by: shennetsind <ind@henn.et>
-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)