Our Scripts Vault contains many game scripts that you can use to create your own game!
SELECT COUNT(`id`),SUM(`score`),MAX(`score`) FROM `table`
SELECT stat1,stat2,stat3,stat4,stat5,score FROM `table`while ($query) {if ($score<=$group1) { $grp = 1; $player_group[1] += 1;} else if ($score>$group1 AND $score<=$group2){ $grp = 2; $player_group[2] += 1;} else { $grp = 3; $player_group[3] += 1;}for ($i=1 TO 5) {$totalstat[$grp][$i] += stat.$i; //you choose such for loop that it uses all your stat1 to stat5if (stat:$i>$maxium[$grp][$i]) { $maxium[$grp][$i] = stat.$i; }if (stat.$i>100) { $above_hundred[$i] += 1; }}}
SELECT COUNT(`id`),SUM(`stat5`) FROM `table`
I can send you pics of my cocks if you want reference.
Raise the amount of income produced by Factories, they are almost worthless compared to others. My income is population * 42 per tick atm, and I still make more gold from a single attack than in 3 ticks. Peaceful approach to the game is impossible now.