As I said, I came up with four distinct solutions to the problem you posted, which includes the one Joe posted, the solution to this riddle, and two more. There are also many variations - it diverges, but since there are only 10 prisoners, it's finite.
Assume that the ground is flat, visibility is infinite, and viziers have perfect vision.
Did you read Joe's solution to your problem? It doesn't work for this riddle, because there isn't a certain number of viziers. There are only two variations on one solution to this problem, and it's elegant; it can be explained in two concise sentences, not five paragraphs like Joe's solution.
Is it time for a hint yet?