NBA sets Oct. 16 draft date, Oct. 18 for free-agent talks