didn't i do this for era like three years ago?
anyway, here's a better script probably. change the loop at the bottom and it'll give you the top richest players etc
PHP Code:
function onCreated() {
for (temp.i: getstringkeys("this.acc_"))
temp.accs.add({i, this.("acc_" @ i)[0]});
for (i: accs) {
temp.e.add(i[0]);
temp.e[temp.c].sortvalue = i[1];
temp.c++;
}
e.sortbyvalue("sortvalue", "float", false);
echo("Richest 5 Players:");
for (i = 0; i < 5; i++)
echo(e[i] @ ":-" SPC this.("acc_" @ e[i])[0]);
}