Same like before, I got this idea when I was playing Ragnarok Online, Private Server. It has command which if use, it will store items that I got to storage automatically, that Ragnarok Online use @autosore command to do it.
@autostore gives us option to decide the type of items what will I send to storage, and minimum weight to store the item automatically. The item type are, usable items, equipments, and etc items. If we decide the minimum weight to autostoring item, if character weight is below the minimum weight, the item will not be stored automatically.
Hmm, I’ve tried to search the command, @autostore, but I got nothing. So, I decide to make that myself, the command that will auto store gained item to storage.
The command is @autostore that will store the item that we get automatically, it has 2 parameters. First, the type of items. I decide to make 4 types, usable items, equipments, etc/misc, and cards. And the second is the minimum player weight, that means autostore will active if player weight more than the minimum weight. I use bitmask for the item type, so I can combine them.
@autostore <item_type> [<min_weight>]
example: @autostore 15 30
It will autostores all kinds of item if character’s weight more than 30%