Page 1 of 1

empty containers?

Posted: Sun Jan 21, 2007 8:00 am
by qrak
Hi. Im using perl script to remove empty containers in storage.txt because storage is expanding after some weeks with some crap. Is there other way to prevent that expansion? maybe scripting way? Could someone tell me why it happens?

Here is a link to perl script: http://qrak.lanet.wroc.net/cleanup.txt

Posted: Sun Jan 21, 2007 8:05 am
by MuadDib
Then you are actually cleaning up the old abandoned merchant stuff and so forth.

Yes, look into the 097 Distro, there is a new storage system in there, that would help you cycle through it and remove "abandoned" storage devices, to help the same as the perl script.

Posted: Sun Jan 21, 2007 8:28 am
by qrak
ok i've used storage.inc and storageAreas.inc include functions in npc death script and in ondelete.src. Is it enought? (i don't have merchants on my shard).

Posted: Sun Jan 21, 2007 8:41 am
by MuadDib
Unsure, Easiest way to find out is trial and error. Let it run and see if it's still finding abandoned ones. If it does, find out why and script for it.