To spawn items in some locker, you need to write script wich will take care of it, like this small example:
create file container_respawn.fos in scipts folder, put there code
#include "_defines.fos"
#include "_macros.fos"
#include "_itempid.fos"
#include "_time.fos"
void _ContainerRespawnInit(Item& container, bool firstTime)
{
CreateTimeEvent(__FullSecond + REAL_MINUTE( 1 ), "e_LootSpawn", container.Id , false);
}
uint e_LootSpawn( uint[] @ values )
{
Item@ container = GetItem( values[ 0 ] );
if( not valid( container ) )
return 0;
container.AddItem( PID_BOTTLE_CAPS, 100, 0);
return REAL_HOUR( 1 );
}
Than enable your script by
opening scripts.cfg and under # Used modules
add line
@ server module container_respawn # My script to spawn items
Than you need to open map in mapper, select needed locker and in opened panel define
ScriptName container_respawn
FuncName _ContainerRespawnInit
Than just save map and start server, in choosen locker after 1 minute will spawn 100 caps and will spawn 100 caps more every hour.
Same with items with stats, you must write own scripts as there is no ready tools in SDK