= 2 ORDER BY geld DESC LIMIT 50');
} else {
$npc_race = getRaceTypeName('NPC'); // do not remove npc (there is a separate setting for this)
$races = getRacesByType($npc_race); // remove all NPC
foreach($races as $race) {
$exclude_race_ids[] = '\''.$race['id'].'\'';
}
$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 NOT IN('.implode(',',$exclude_race_ids).') ORDER BY ('.$wahl.') DESC LIMIT 50';
// Uncomment for hp/mp in PL
// $sql = 'SELECT cl.clanzeichen, u.nickname, u.id as userid, 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+substring_index(hp,\',\',-1)/10+substring_index(mp,\',\',-1)/5 as powerlevel' .
// ' FROM chars as c INNER JOIN user as u on c.besitzer = u.id' .
// ' LEFT JOIN clan as cl on u.clan = cl.id ' .
// 'WHERE rasse != \'NPC\' ORDER BY ('.$wahl.') DESC LIMIT 50';
// echo $sql.'
';
$choice_s = mysql_query($sql);
}
?>
Platz | User | Geld | |||
---|---|---|---|---|---|
Platz | Charakter | Trainer | Siege / Niederlagen | Preis | |
align="center"> | align="center"> | align="center">??? | |||
align="center"> | align="center"> | align="center"> | align="center"> | align="center"> | align="center"> |