summaryrefslogtreecommitdiff
path: root/src/game-server/item.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-01-17 16:57:59 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-01-17 16:59:09 +0100
commit85b659f70cbe7374eb511acf6a61abc443332752 (patch)
treee2f0df3f01966b262fade169987247f92673a0e6 /src/game-server/item.cpp
parent8b171e3a7e006aa492e2369969999a2336e2a731 (diff)
downloadmanaserv-85b659f70cbe7374eb511acf6a61abc443332752.tar.gz
manaserv-85b659f70cbe7374eb511acf6a61abc443332752.tar.bz2
manaserv-85b659f70cbe7374eb511acf6a61abc443332752.tar.xz
manaserv-85b659f70cbe7374eb511acf6a61abc443332752.zip
Filenames of item use scripts are now taken from the items.xml
Diffstat (limited to 'src/game-server/item.cpp')
-rw-r--r--src/game-server/item.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/item.cpp b/src/game-server/item.cpp
index 892be2cf..817c81ec 100644
--- a/src/game-server/item.cpp
+++ b/src/game-server/item.cpp
@@ -147,9 +147,9 @@ bool ItemClass::use(Being *itemUser)
if (mType != ITEM_USABLE) return false;
if (mScript)
{
- mScript->prepare("item_use");
- mScript->push(mDatabaseID);
+ mScript->prepare("use");
mScript->push(itemUser);
+ mScript->push(mDatabaseID); // ID of the item
mScript->execute();
}
mModifiers.applyAttributes(itemUser);