In addition, Sastronagoro also had the title Mas Pajangwasistho, because he was a descendant of the kings of the Pajang Sultanate.
The most famous of his literary works is Serat Babat Pakepung, a historical document about the siege of the Surakarta palace by a combination of VOC, Yogyakarta and Mangkunegaran troops in 1790.
However thanks, to the training of Yasadipura II's best friend, Kyai Imam Besari from Ponorogo, Ranggawarsita's bad character changed.
[citation needed] In 1845, a year after the death of Yasadipura II, Ranggawarsita was appointed poet of the Surakarta palace in his place.
Then the title Ranggawarsita II was used by his son, namely Mas pajangswara, who worked as a palace clerk.