|
 |
 |
 |
 |
Рейтинг Персонажей
РЕЙТИНГ
Место
|
Персонаж
|
Рейтинг
|
|
' . $pl['pos'] . ' -' . ($pl['pos'] - $last_post) . '';
} elseif ($last_post > $pl['pos']) {
$vid = ' ' . $pl['pos'] . ' +' . ($last_post - $pl['pos']) . '';
}
}
//
$usr = mysql_fetch_array(
mysql_query(
'SELECT `id`,`login`,`level`,`align`,`align2`,`clan` FROM `users` WHERE `id` = "' . $pl['uid'] . '" LIMIT 1'
)
);
$clrt = '';
if ('id' . $usr['id'] == $url[2]) {
$clrt = ' bgcolor="#c3a878"';
}
$html .= "" . $vid . " |
";
if ($usr['align2'] > 0) {
$html .= ' ';
}
if ($usr['clan'] > 0) {
$html .= ' ';
}
$html .= '' . $usr['login'] . ' [' . $usr['level'] . ']  |
';
if ($url[2] != 'exp' && $url[2] != 'wins') {
$html .= '' . round(
$pl['global'], 2
) . ' | ';
} else {
$html .= '' . round(
$pl['global'], 2
) . ' | ';
}
if ($url[2] == 'exp') {
$html .= '' . number_format(
$pl['exp_real'], 0, ",", " "
) . ' | ';
} elseif ($url[2] == 'wins') {
$html .= '' . number_format(
$pl['win'], 0, ",", " "
) . ' | ';
} else {
$html .= '' . number_format(
$pl['exp_real'], 0, ",", " "
) . ' | ';
}
}
//----------------------------------------- личный рейтинг
$spu = mysql_query(
'SELECT * FROM `aaa_reting_list` WHERE `date` = "' . date(
'dmY'
) . '" AND `uid` = "' . $u->info['id'] . '" ORDER BY ' . $bya . ' LIMIT 1'
);
while ($pl = mysql_fetch_array($spu)) {
//
if ($url[2] != 'exp' && $url[2] != 'wins') {
$last_post = mysql_fetch_array(
mysql_query(
'SELECT `pos` FROM `aaa_reting_list` WHERE `uid` = "' . $pl['uid'] . '" AND `date` != "' . $pl['date'] . '" ORDER BY `id` DESC LIMIT 1'
)
);
}
//
$i++;
$vid = $pl['pos'];
if (isset($last_post['pos']) && $url[2] != 'exp' && $url[2] != 'wins') {
$last_post = $last_post['pos'];
if ($last_post < $pl['pos']) {
$vid = ' ' . $pl['pos'] . ' -' . ($pl['pos'] - $last_post) . '';
} elseif ($last_post > $pl['pos']) {
$vid = ' ' . $pl['pos'] . ' +' . ($last_post - $pl['pos']) . '';
}
}
//
$html .= "Ваш рейтинг: | | | | ";
$usr = mysql_fetch_array(
mysql_query(
'SELECT `id`,`login`,`level`,`align`,`align2`,`clan` FROM `users` WHERE `id` = "' . $pl['uid'] . '" LIMIT 1'
)
);
$clrt = '';
if ('id' . $usr['id'] == $url[2]) {
$clrt = ' bgcolor="#c3a878"';
}
$html .= "" . $vid . " |
";
if ($usr['align2'] > 0) {
$html .= ' ';
}
if ($usr['clan'] > 0) {
$html .= ' ';
}
$html .= '' . $usr['login'] . ' [' . $usr['level'] . ']  |
';
if ($url[2] != 'exp' && $url[2] != 'wins') {
$html .= '' . round(
$pl['global'], 2
) . ' | ';
} else {
$html .= '' . round(
$pl['global'], 2
) . ' | ';
}
if ($url[2] == 'exp') {
$html .= '' . number_format(
$pl['exp_real'], 0, ",", " "
) . ' | ';
} elseif ($url[2] == 'wins') {
$html .= '' . number_format(
$pl['win'], 0, ",", " "
) . ' | ';
} else {
$html .= '' . number_format(
$pl['exp_real'], 0, ",", " "
) . ' | ';
}
}
echo $html;
unset($html);
?>
Рейтинг игроков
обновляется 1 раз в сутки в 00:00 по
серверу.
Полное обнуление рейтинга игроков осуществляется
1 раз в месяц, 1-го числа каждого месяца.
Очки рейтинга
начисляются в зависимости от выполнения
Ежедневных Событий
|
|
|  |
 |
|
|

 |
|