0 used as the object of a verb or preposition when people, animals etc are the object of actions they perform -- diri mereka sendiri
1 used to emphasize they, them or the names of people, animals etc -- sendiri
They themselves did nothing wrong.
2 without help etc -- sendiri
They decided to do it themselves.