Tranquility 12 Posted October 24, 2015 File Name: [script] storage{mod}item File Submitter: Tranquility File Submitted: 23 Oct 2015 File Category: Plugins Greetings! The past week I've been messing around with processing how to utilise the storage better for my in-game NPCs & scripts. Coming from rA, I noticed we didn't have the script commands "storageadditem", "storagecountitem", "storagedelitem". Because of that I thought I should give it a try and aim to develop a plugin or a means, to make it possible to use this functionality again. How to use: you can use storageadditem to add an item name or itemid to a players storage.storageadditem <item id>, <amount>{, <account id>}storageadditem<item name>, <amount>{, <account id>}Example: storageadditem(501,10); you can use storagecountitem to count a specific item name or itemid in a players storage.storagecountitem(nameID,{accountID})returns number of items that meet the conditionsExample: .@pots = storagecountitem(501); you can use storagedeltitem to delete a specific item name or itemid in a players storage.storagedelitem <item id>,<amount>{,<account id>}storagedelitem "<item name>",<amount>{,<account id>}Deletes items from the target/attached player.Example: storagedelitem(501,.@pots); Read the Hercules Plugin Manager wiki page if you don't know how to add this functionality to your server. If you have any questions, suggestions or notice any bugs, kindly let me know and I'll see what I can do about it. Uploaded to my Git Repo now for easier access. Click here to download this file 2 Garr and Legend reacted to this Quote Share this post Link to post Share on other sites
Tranquility 12 Posted October 27, 2015 Updated first post with link to github repository, changed title so that it's more clear upon viewing the Plugin Releases forum what to expect from this plugin. Quote Share this post Link to post Share on other sites
vykimo 68 Posted October 27, 2015 Really Good, but what about this kind of command : storageadditem? Quote Share this post Link to post Share on other sites
Tranquility 12 Posted October 27, 2015 Really Good, but what about this kind of command : storageadditem? Haven't thought about that one to be honest, since I haven't used that idea for scripting yet! I'll see what I can do 1 vykimo reacted to this Quote Share this post Link to post Share on other sites
Tranquility 12 Posted November 4, 2015 any news? Haven't been able to work on the addition yet, but there is a @storeitem command that probably will be used for the conversion to a script. I think Ind made that one quite a while ago, could look at it yourself and add the code if you're able to! Quote Share this post Link to post Share on other sites
Tranquility 12 Posted November 6, 2015 (edited) any news? It is partially working now, will update the files once I fixed the bugs. Edit: fixed. Uploaded the new file, awaiting approval. Already available on my github repository. Edited November 6, 2015 by Tranquility 1 vykimo reacted to this Quote Share this post Link to post Share on other sites
vykimo 68 Posted December 3, 2015 Problem : map-server.exe [Error]: script:op_1: argument is not a number (op=C_LNOT)[Debug]: Data: C_ARG Quote Share this post Link to post Share on other sites