ID:149852
 
I want to make something like a bank but for items, i want it to be a world think not a usr bank. As in anyone can put in or get stuff out. And i want to be able to save it when the server shuts down.
var/list/Bank = list("of stuff")

world/New()
..()
//Load Bank from a file just as you would load a savefile for a player.

world/Del()
//Save the Bank just as you would save a player.
..()

Saving instructions are in the references and or Guide if you need them.
In response to Foomer
huh, that just makes a list. I want, for ex., a chest with items that someone can place items in and take out.
In response to Scoobert
Heh I knew my demo would be useful.

http://www.byond.com/hub/super16/chestsave

I used it as a chest but that can be easily changed.
In response to Super16
thanks, this is one i didnt know were to start on. I only new how to make a usr chest but not a world chest. If that makes any sence.
In response to Scoobert
you gfet that error in it(or at least i do)
runtime error: Cannot execute null.Add().
proc name: Deposit (/obj/chest/verb/Deposit)
usr: Scoobert (/mob)
src: the chest (/obj/chest)
call stack:
the chest (/obj/chest): Deposit()

[edit]
NM on that it works now.