Jump to content

[Script] storage{mod}item 0.2

Sign in to follow this  

About This File

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 conditions
    Example: .@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.


What's New in Version 0.2   See changelog

Released

  • Initial Release
  • Added storageadditem



User Feedback

Recommended Comments

There are no comments to display.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.