|
|
|
@ -40,7 +40,7 @@ function displayHighscore($wahl, $char_name, $user, $char_vorhanden){
|
|
|
|
|
if($wahl == 'geld') {
|
|
|
|
|
$choice_s = mysql_query('SELECT geld, id FROM user where id >= 2 ORDER BY geld DESC LIMIT 50');
|
|
|
|
|
} else {
|
|
|
|
|
$sql = 'SELECT c.name, c.level, c.besitzer, c.starke, c.preis, c.speed, c.glueck, c.bild, c.verteidigung, c.ausdauer, c.siege, c.niederlagen, c.id as charid, starke+verteidigung+speed+ausdauer+glueck as powerlevel ' .
|
|
|
|
|
$sql = 'SELECT c.name, c.level, c.besitzer, c.starke, c.preis, c.speed, c.glueck, c.bild, c.verteidigung, c.ausdauer, c.siege, c.niederlagen, c.id as charid, starke+verteidigung+speed+ausdauer+glueck as powerlevel FROM chars c ' .
|
|
|
|
|
'WHERE rasse != \'NPC\' ORDER BY ('.$wahl.') DESC LIMIT 50';
|
|
|
|
|
|
|
|
|
|
// Uncomment for hp/mp in PL
|
|
|
|
|