game/modules_data/stats_loc.php.bac
2022-06-07 00:30:34 +03:00

88 lines
4.8 KiB
Plaintext

<?php
if(!defined('GAME'))
{
die();
}
if( $u->info['level'] > 0 ) {
$bns = mysql_fetch_array(mysql_query('SELECT `id`,`time` FROM `aaa_bonus` WHERE `uid` = "'.$u->info['id'].'" AND `time` > '.time().' LIMIT 1'));
if(isset($_GET['takebns']) && $u->newAct($_GET['takebns'])==true && !isset($bns['id'])) {
$u->takeBonus();
$bns = mysql_fetch_array(mysql_query('SELECT `id`,`time` FROM `aaa_bonus` WHERE `uid` = "'.$u->info['id'].'" AND `time` > '.time().' LIMIT 1'));
}
}
?>
<span style="font-size:12px;">
Ñèëà: <b><? echo $u->stats['s1']; ?></b><br />
Ëîâêîñòü:&nbsp;<b><? echo $u->stats['s2']; ?></b><br />
Èíòóèöèÿ:&nbsp;<b><? echo $u->stats['s3']; ?></b><br />
Âûíîñëèâîñòü:&nbsp;<b><? echo $u->stats['s4']; ?></b><br />
<? if($u->info['level'] > 3 || $u->stats['s5']!=0){ ?>Èíòåëëåêò:&nbsp;<b><? echo 0+$u->stats['s5']; ?></b><br /><? } ?>
<? if($u->info['level'] > 6 || $u->stats['s6']!=0){ ?>Ìóäðîñòü:&nbsp;<b><? echo 0+$u->stats['s6']; ?></b><br /><? } ?>
<? if($u->info['level'] > 9 || $u->stats['s7']!=0){ ?>Äóõîâíîñòü:&nbsp;<b><? echo 0+$u->stats['s7']; ?></b><br /><? } ?>
<? if($u->info['level'] > 13 || $u->stats['s8']!=0){ ?>Âîëÿ:&nbsp;<b><? echo 0+$u->stats['s8']; ?></b><br /><? } ?>
<? if($u->info['level'] > 14 || $u->stats['s9']!=0){ ?>Ñâîáîäà äóõà:&nbsp;<b><? echo 0+$u->stats['s9']; ?></b><br /><? } ?>
<? if($u->info['level'] > 19 || $u->stats['s10']!=0){ ?>Áîæåñòâåííûé:&nbsp;<b><? echo 0+$u->stats['s10']; ?></b><br /><? } ?>
<?
/*
Ýíåðãèÿ:&nbsp;<? echo 0+$u->stats['s11']; ?> &nbsp; <small>[<?=round($u->info['enNow'],3)?>/<?=$u->stats['enAll']?>]</small><br />
*/
if($u->info['ability'] > 0 || ($u->info['skills'] > 0 && $u->info['level'] > 0))
{
echo '<a href="main.php?skills=1&side=1">+ Ñïîñîáíîñòè</a><br />';
}
/*if($u->info['skills'] > 0 && $u->info['level'] > 0)
{
echo '&bull;&nbsp;<a href="main.php?skills=1&side=1">Îáó÷åíèå</a><br />';
} */
$expbase = number_format($u->stats['levels']['exp'], 0, ",", " ");
if( $expbase-1 == $u->info['exp'] && $c['nolevel'] == true ) {
//Ïðîâåðÿåì áëîê îïûòà
$tlus = mysql_fetch_array(mysql_query('SELECT COUNT(*) FROM `users` WHERE `real` = 1 AND `level` = "'.$u->info['level'].'" LIMIT 1'));
if($tlus[0] < $u->info['level']*10) {
$expbase = '<strike>'.$expbase.'</strike>';
}
$expbase = '(<a href="https://new-combats.com/exp" target="_blank">'.$expbase.'</a>)';
if(((1+$u->info['level']*10)-$tlus[0]) > 0) {
$expbase .= ' <u><a onMouseOver="top.hi(this,\'<b>Ïåðñîíàæè '.$u->info['level'].' óðîâíÿ íå ïîëó÷àþò îïûò.</b><br>Äëÿ ðàçáëîêèðîâêè íå õâàòàåò <u>'.((1+$u->info['level']*10)-$tlus[0]).' ïåðñîíàæåé</u> äàííîãî óðîâíÿ.\',event,0,1,1,1,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();" style="cursor:help">[?]</a></u>';
}
}else{
$expbase = '(<a href="https://new-combats.com/exp" target="_blank">'.$expbase.'</a>)';
}
?>
&nbsp;<br />
Îïûò:&nbsp;<a href="https://new-combats.com/exp" target="_blank"><? echo number_format($u->info['exp'], 0, ",", " "); ?></a><!-- <b><? echo number_format($u->info['exp'], 0, ",", " "); ?></b> <?=$expbase?> --><br />
Óðîâåíü:&nbsp;<? echo $u->info['level']; ?><br />
Ïîáåä:&nbsp;<? echo number_format($u->info['win'], 0, ",", " "); ?><br />
Ïîðàæåíèé:&nbsp;<? echo number_format($u->info['lose'], 0, ",", " "); ?><br />
Íè÷üèõ:&nbsp;<? echo number_format($u->info['nich'], 0, ",", " "); ?><br />
<!--Ñåðèÿ ïîáåä:&nbsp;<?=(0+$u->info['swin'])?><br>
Ñåðèÿ ïîðàæåíèé:&nbsp;<?=(0+$u->info['slose'])?><br>-->
Äåíüãè:&nbsp;<b><? echo $u->info['money']; ?> êð.</b>&nbsp;<br />
Äåíüãè:&nbsp;<b style="color:green"><? echo $u->info['money2']; ?> åêð.</b>&nbsp;<br />
<?
if($u->stats['pbe'] > 0) {
echo '<a href="https://new-combats.com/news/268/" target="_blank">Áîíóñ ïîêóïàòåëÿ:&nbsp;'.$u->stats['pbe'].'&nbsp;óðîâåíü</a>';
$nowby = mysql_fetch_array(mysql_query('SELECT `good` FROM `pay_operation` WHERE `uid` = "'.$u->info['id'].'" AND `good` > 0 ORDER BY `good` DESC LIMIT 1'));
if($u->stats['pbe'] > 0 && date('d.m.Y') != date('d.m.Y',$nowby['good'])) {
echo ' <font color="red"><br>(Ñîâåðøèòå ïîêóïêó ÅÊÐ ÷òîáû ñîõðàíèòü è óâåëè÷èòü áîíóñ ïîêóïàòåëÿ)</font>';
}
echo '<br>';
}
?>
<? if($u->info['level'] < 8 && $c['zuby'] == true) { ?>
Çóáû:&nbsp;<small><?=$u->zuby($u->info['money4'])?></small><br /><? } ?>
<? if($u->info['level'] > 7) { ?>
<!--Ïåðåäà÷:&nbsp;<?=$u->info['transfers']?><br /></span>--><? } ?>
<? if( $u->info['level'] > 0 ) { ?>
<b>Âàøà ïåíñèÿ <?=$u->pensia(false)?></b><br>
<?
if( $u->info['level'] > 2 ) {
if(isset($bns['id'])) {
echo '<button style="width:164px;margin-top:5px;" disabled="disabled" offclick="alert(\' ×åðåç '.$u->timeOut($bns['time']-time()).'\');" class="btn btn-danger"> ×åðåç '.$u->timeOut($bns['time']-time()).' </button>';
}else{
echo '<button style="width:164px;margin-top:5px;" class="btn btn-success" onclick="location.href=\'main.php?takebns='.$u->info['nextAct'].'&getb1w=3\';">Ïîëó÷èòü!</button></div>';
}
}
}
?>