A really subtle typo: DActivateItem -> DDestroyItem
Added dota.setTotalExpRequiredForLevel and ent.changeTeam