game/modules_data/stats_loc.php.bac

88 lines
4.8 KiB
Plaintext
Raw Normal View History

2022-06-06 21:30:34 +00:00
<?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;">
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <b><? echo $u->stats['s1']; ?></b><br />
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<b><? echo $u->stats['s2']; ?></b><br />
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<b><? echo $u->stats['s3']; ?></b><br />
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<b><? echo $u->stats['s4']; ?></b><br />
<? if($u->info['level'] > 3 || $u->stats['s5']!=0){ ?><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<b><? echo 0+$u->stats['s5']; ?></b><br /><? } ?>
<? if($u->info['level'] > 6 || $u->stats['s6']!=0){ ?><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<b><? echo 0+$u->stats['s6']; ?></b><br /><? } ?>
<? if($u->info['level'] > 9 || $u->stats['s7']!=0){ ?><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<b><? echo 0+$u->stats['s7']; ?></b><br /><? } ?>
<? if($u->info['level'] > 13 || $u->stats['s8']!=0){ ?><3E><><EFBFBD><EFBFBD>:&nbsp;<b><? echo 0+$u->stats['s8']; ?></b><br /><? } ?>
<? if($u->info['level'] > 14 || $u->stats['s9']!=0){ ?><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>:&nbsp;<b><? echo 0+$u->stats['s9']; ?></b><br /><? } ?>
<? if($u->info['level'] > 19 || $u->stats['s10']!=0){ ?><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<b><? echo 0+$u->stats['s10']; ?></b><br /><? } ?>
<?
/*
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&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">+ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a><br />';
}
/*if($u->info['skills'] > 0 && $u->info['level'] > 0)
{
echo '&bull;&nbsp;<a href="main.php?skills=1&side=1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></a><br />';
} */
$expbase = number_format($u->stats['levels']['exp'], 0, ",", " ");
if( $expbase-1 == $u->info['exp'] && $c['nolevel'] == true ) {
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
$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><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.$u->info['level'].' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>.</b><br><3E><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <u>'.((1+$u->info['level']*10)-$tlus[0]).' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></u> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.\',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 />
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&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 />
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<? echo $u->info['level']; ?><br />
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<? echo number_format($u->info['win'], 0, ",", " "); ?><br />
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<? echo number_format($u->info['lose'], 0, ",", " "); ?><br />
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<? echo number_format($u->info['nich'], 0, ",", " "); ?><br />
<!--<2D><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<?=(0+$u->info['swin'])?><br>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<?=(0+$u->info['slose'])?><br>-->
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<b><? echo $u->info['money']; ?> <20><>.</b>&nbsp;<br />
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<b style="color:green"><? echo $u->info['money2']; ?> <20><><EFBFBD>.</b>&nbsp;<br />
<?
if($u->stats['pbe'] > 0) {
echo '<a href="https://new-combats.com/news/268/" target="_blank"><3E><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;'.$u->stats['pbe'].'&nbsp;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></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>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</font>';
}
echo '<br>';
}
?>
<? if($u->info['level'] < 8 && $c['zuby'] == true) { ?>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<small><?=$u->zuby($u->info['money4'])?></small><br /><? } ?>
<? if($u->info['level'] > 7) { ?>
<!--<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:&nbsp;<?=$u->info['transfers']?><br /></span>--><? } ?>
<? if( $u->info['level'] > 0 ) { ?>
<b><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <?=$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(\' <20><><EFBFBD><EFBFBD><EFBFBD> '.$u->timeOut($bns['time']-time()).'\');" class="btn btn-danger"> <20><><EFBFBD><EFBFBD><EFBFBD> '.$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\';"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>!</button></div>';
}
}
}
?>