When this happens several times, he orders his friend "Tjeti" to follow the king, who in turn is frequently leaving the palace during the night.
He orders his friend "Tjeti" during the night. This was to follow the king. This happens several times. The king in turn is frequently leaving the palace.