summaryrefslogtreecommitdiff
path: root/src/emap/init.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-12 14:45:02 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-12 14:45:02 +0300
commitb697b14764f18978c7894113adbad86637cbcdcc (patch)
tree66fe7dd978ccf0601e877df8766695b4773a0f2a /src/emap/init.c
parent32edcdcf47c804d0bb40299fad5d184b558bb76c (diff)
downloadplugin-b697b14764f18978c7894113adbad86637cbcdcc.tar.gz
plugin-b697b14764f18978c7894113adbad86637cbcdcc.tar.bz2
plugin-b697b14764f18978c7894113adbad86637cbcdcc.tar.xz
plugin-b697b14764f18978c7894113adbad86637cbcdcc.zip
Add script command for get item amount from one craft slot.
New script command: getcraftslotamount id, slot
Diffstat (limited to 'src/emap/init.c')
-rw-r--r--src/emap/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index 7a00569..b71ac37 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -104,6 +104,7 @@ HPExport void plugin_init (void)
addScriptCommand("dumpcraft", "i", dumpCraft);
addScriptCommand("deletecraft", "i", deleteCraft);
addScriptCommand("getcraftslotid", "ii", getCraftSlotId);
+ addScriptCommand("getcraftslotamount", "ii", getCraftSlotAmount);
addScriptCommand("getq", "i", getq);
addScriptCommand("setq", "ii", setq);
addScriptCommand("setnpcdir", "*", setNpcDir);