After we know how to get “how many certain item in storage” by storagecountitem(), what will we do now? Delete them! Of course, we can delete certain item in storage, storagedelitem will does it. Just like conventional delitem() that will deletes amount of certain item in player’s inventory. Of course, we must decide how many item will be deleted in storage.
This custom script provides 2 parameters to deletes item in storage. First parameters for storagedelitem is item id. The unique number that exists on db/item_db.txt or db/item_db2.txt. The second that needed is the amount of item that will be deleted.
For an example, I want to delete 10 Red Potions in my storage. I must know what’s item id for Red Potion, it is 501. Then write a script for storagedelitem.
It is just part of script body, need full a custom script of NPC to make it perfect!
Well, these some screenshots of storagedelitem that I made. Interested with this custom script which can deletes item in storage? Enjoy, download it, this is free code!
Download storagedelitem script – Delete certain item in storage – Free code!
*Above are Mediafire links*