János Petki

Later he moved to the Transyvanian Royal Court and became aulae familiaris again for Regent Maria Christina of Austria, wife of Sigismund Báthory who fled Transylvania in 1597 at the first time.

Under Prince Andrew Báthory, he participated in the Battle of Sellenberk in 1599, where the Transyvanian army suffered a severe defeat from Michael the Brave, ruler of Wallachia.

In the next year, he was a member of the delegation appointed by the Diet of Kolozsvár (today: Cluj-Napoca, Romania) which sent to Moldavia to call back Sigismund Báthory to retake the Transylvanian throne.

He was also a member of the delegation of the Diet of Gyulafehérvár (today: Alba Iulia, Romania) in 1603 which offered Transylvania to Emperor Rudolf II.

Then the new commander Menyhért Bogáthy and him besieged Segesvár (today: Sighișoara, Romania) and played a key role in occupation of the castle.

On 31 March 1608, on the day of the election of the new prince, Gabriel Báthory, he resigned from his position on the reason of deterioration of his health.

In the summer of 1611, he joined to the army of Baron Zsigmond Forgách who invaded Transylvania, but fled to Brassó (today: Brașov, Romania) after the failure of the campaign.