ID:1643726
 
Keywords: codeing, help
(See the best response by Zecronious.)


Problem description:
I have mostly everything down for my game Im just trying to make codeings so I can make a Consistent Loot respawn while in game without always rebooting and to have like Items, Objects and turf for bases save when the server goes down or changing servers someone keeps everything thats inside there inventory. I know this is alot to ask for but I really cant get this part done Im new to this but any help is appreciated thanks in advance!
Best response
There's plenty of documentation of saving. Here's an example:

http://www.byond.com/developer/Agrey123/SaveLoad

When a person takes loot start a timer that will replace it.

obj
var/respawnTime = 600

proc
respawn()
var/oldloc = loc
spawn(respawnTime)
var/obj/clone = new type
clone.loc = oldloc
In response to Zecronious
Thank you!