diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-21 18:01:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-21 20:11:59 +0300 |
commit | 36fb4cda271bda394b7e5e3b5911c6d9858aa8f8 (patch) | |
tree | 5f196194ab5e3810cfbc4d8346b275cbf1f41583 /src/emap/init.c | |
parent | 2a2edf5da86b7a5847f62242744376e7a9b304c7 (diff) | |
download | evol-hercules-36fb4cda271bda394b7e5e3b5911c6d9858aa8f8.tar.gz evol-hercules-36fb4cda271bda394b7e5e3b5911c6d9858aa8f8.tar.bz2 evol-hercules-36fb4cda271bda394b7e5e3b5911c6d9858aa8f8.tar.xz evol-hercules-36fb4cda271bda394b7e5e3b5911c6d9858aa8f8.zip |
Add script functions requestItemIndex and requestItemsIndex.
This functions request from player inventory indexes for items.
Example:
requestItemIndex @item;
requestItemsIndex @item$, num;
Diffstat (limited to 'src/emap/init.c')
-rw-r--r-- | src/emap/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index 255eeb4..fcd8208 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -89,6 +89,8 @@ HPExport void plugin_init (void) addScriptCommand("requestlang", "v", requestLang); addScriptCommand("requestitem", "v", requestItem); addScriptCommand("requestitems", "v*", requestItems); + addScriptCommand("requestitemindex", "v", requestItemIndex); + addScriptCommand("requestitemsindex", "v*", requestItemsIndex); addScriptCommand("getq", "i", getq); addScriptCommand("setq", "ii", setq); addScriptCommand("setnpcdir", "*", setNpcDir); |