home » builders » builder's lessons » sample objects - containers
Sample objects - containers
There are a couple of containers that you cannot make because of the way they are hard coded.
- Spell Pouch - If you want to sell spell pouches in your area, then you will need to use vnum 68. You can rename the spellpouch so that it can be different colours etc. See the lesson on restringing generic objects. If you do make a spellpouch, it will not work like the hard coded one, that allows players to store components in the pouch and cast spells without having to take the components out and put them into inventory.
- Money Pouch - The hard coded money pouch allows players to store money in the money pouch and not have to take the money out when paying for goods. Again this can be restrung with programs if you wish to fancy it up. Use vnum 8132 if you want to sell money pouches in your area.
The container below can be closed, but it cannot be locked. When bought it is open. It can hold 100 pounds worth of items. Containers that can hold more than 100 pounds worth of items should be rare. Value0 determines the carrying capacity of the container. Note that the layer value is not the same as for armour. Also the container is flagged transparent so when it is worn on the body, it does not hide the armour.
#8036 travellers pack~ {30}a travellers pack~ {30}A travellers pack lies here. ~ ~ ITEM_TYPE_CONTAINER FLAG_TRANSPARENT CAN_WEAR_TAKE|CAN_WEAR_BODY QUALITY_AVERAGE MATERIAL_LEATHER COND_PERFECT SIZE_MEDIUM 100 CONT_CLOSEABLE -1 0 LAYER_OVER 0 E travellers pack~ It is a pack that one would use to put things in before travelling. ~
If you want any kind of armour to have pockets then you need to make it type container. It will not protect as well however. Make sure the carrying capacity reflects the kind of container it is. For instance this apron holds far less than the pack above. The PC has a choice as to if they will wear it on their waist or on their legs. Very few would wear this into battle, but there are plenty of roleplay opportunites for an item like this with trades etc. Because an apron would not wrap all the way around, it is flagged transparent so what is worn underneath it can be seen. Although, if it is worn at the waist, the layer aspect will not work as the waist location cannot be layered.
#8267 apron with pockets~ {70}an apron with pockets~ {70}An apron lies here.~ ~ ITEM_TYPE_CONTAINER FLAG_TRANSPARENT CAN_WEAR_TAKE|CAN_WEAR_WAIST|CAN_WEAR_LEGS QUALITY_AVERAGE MATERIAL_CLOTH COND_PERFECT SIZE_MEDIUM 20 0 0 0 LAYER_OVER 0 E apron pockets~ This apron is made from a plain white cloth with two large pockets. ~