This might be dangerous to do, but I thought I would give it a go. Are there any reasons why we can't/shouldn't use while loops in the quest system?
It does work by the way ^_^
	Code:
	        $count = 0;
        while ($count <= 24) {
            $randX = int(rand(60));
            $randY = int(rand(90));
            $randZ = int(rand(45));
            $randH = int(rand(260));
            $randPNX = int(rand(2));
            $randPNY = int(rand(2));
            $randPNZ = int(rand(2));
                ##quest::say("Randomness1: $randX, $randY, $randZ, $randH, $randPNX, $randPNY, $randPNZ");
            if($randPNX == 1) {
                $randX = -$randX;
            }
            if($randPNY == 1) {
                $randY = -$randY;
            }
            if($randPNZ == 1) {
                $randZ = -$randZ;
            }
                ##quest::say("Randomness2: $randX, $randY, $randZ, $randH");
        		quest::spawn2(216071,0,0,$randX,$randY,$randZ,$randH); # Triloun Vaporfiend
            $count ++;
		}