Sam distributed everything that is needed for the formation among the people.
They didn't have to do much. The major task is dodging the birds made out of that molten rock and their massive number. Once they dodge and reach the marked spot, all they have to do is place the puppet set up that Sam has prepared.
When the cultivators of the city got the instructions, they divided themselves into small teams and started moving out one by one.
During his stay inside the tower, the number of birds increased by dozens of times. A lot of rocks on mountain have disappeared. On top of that when these birds are finally being destroyed, they are leaving a lot of residue on the ground.
Basically, the fight is going to change the terrain of the whole thing.
The main problem from this is, if the terrain changes too much, Sam's formation will be effected, so he had to speed up the process.