The concept idea is to make a certain container in a certain map, spawn a bag (or some items randomly) and make it "refresh" each 30 real minutes.
This is what I got so far.
//////randomizer spawner clutter A
void _ItemConA( Item& item, bool firstTime )
{
CreateTimeEvent( __FullSecond + REAL_MINUTE( 1 ), "e_AddItemSelfA", item.Id, true );
}
uint e_AddItemSelfA(uint[] @ values)
{
Item@ item = GetItem( values[ 0 ] );
item.AddItem( PID_BOTTLE_CAPS, Random( 0, 100 ), 0 );
item.AddItem( PID_ANTIDOTE, Random( 0, 1 ), 0 );
item.AddItem( PID_BLUE_CONDOM, Random( 0, 1 ), 0 );
CreateTimeEvent( __FullSecond + 20, "e_AddItemSelfA", item.Id, true );
return 0;
}
I have it working but what I want is to add the items through bags from _bags.fos