113 lines
4.1 KiB
PHP
113 lines
4.1 KiB
PHP
|
<?
|
|||
|
if(!defined('GAME')) {
|
|||
|
die();
|
|||
|
}
|
|||
|
/*
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
*/
|
|||
|
$pvr = array();
|
|||
|
//$pvr['mg'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "'.$btl->users[$btl->uids[$this->ue['id']]]['id'].'" AND `v2` = "260" AND `user_use` = "'.$u->info['id'].'" ORDER BY `id` DESC LIMIT 1'));
|
|||
|
$pvr['mg'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "'.$btl->users[$btl->uids[$this->ue['id']]]['id'].'" AND `v2` = "260" ORDER BY `id` DESC LIMIT 1'));
|
|||
|
if( isset($pvr['mg']['id']) ) {
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
//$pvr['hp'] = floor(144/3*$pvr['mg']['x']);
|
|||
|
/*$pvr['hp'] = 1;*/
|
|||
|
//
|
|||
|
$pvr['data'] = $this->lookStatsArray($pvr['mg']['data']);
|
|||
|
//
|
|||
|
/**/
|
|||
|
if( $pvr['data']['add_mg2static_points'][0] < 1 ) {
|
|||
|
echo '<font color=red><b><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></b></font>';
|
|||
|
$cup = true;
|
|||
|
}else{
|
|||
|
$prv['text'] = $btl->addlt(1 , 21 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
if( $pvr['promah'] == false ) {
|
|||
|
if( $pvr['krit'] == false ) {
|
|||
|
$prv['color2'] = '006699';
|
|||
|
if(isset($btl->mcolor[$btl->mname['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']])) {
|
|||
|
$prv['color2'] = $btl->mcolor[$btl->mname['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']];
|
|||
|
}
|
|||
|
$prv['color'] = '000000';
|
|||
|
if(isset($btl->mncolor[$btl->mname['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']])) {
|
|||
|
$prv['color'] = $btl->mncolor[$btl->mname['<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>']];
|
|||
|
}
|
|||
|
}else{
|
|||
|
$prv['color2'] = 'FF0000';
|
|||
|
$prv['color'] = 'FF0000';
|
|||
|
}
|
|||
|
}else{
|
|||
|
$prv['color2'] = '909090';
|
|||
|
$prv['color'] = '909090';
|
|||
|
}
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|||
|
$pvr['mp'] = $pvr['data']['add_mg2static_points'][0]*(3*$u->info['level']);
|
|||
|
//
|
|||
|
$pvr['mpSee'] = '';
|
|||
|
$pvr['mpNow'] = floor($btl->stats[$btl->uids[$u->info['id']]]['mpNow']);
|
|||
|
$pvr['mpAll'] = $btl->stats[$btl->uids[$u->info['id']]]['mpAll'];
|
|||
|
|
|||
|
$pvr['mpTr'] = $pvr['mpNow'] + $pvr['mp'];
|
|||
|
if( $pvr['mpTr'] > $pvr['mpAll'] ) {
|
|||
|
$pvr['mp'] = $pvr['mp'] - ( $pvr['mpTr'] - $pvr['mpAll'] );
|
|||
|
}
|
|||
|
|
|||
|
$pvr['mpNow'] = floor($pvr['mpNow']+$pvr['mp']);
|
|||
|
|
|||
|
if( $pvr['mp'] > 0 ) {
|
|||
|
$pvr['mpSee'] = '+' . $pvr['mp'];
|
|||
|
}else{
|
|||
|
$pvr['mpSee'] = $pvr['mp'];
|
|||
|
}
|
|||
|
|
|||
|
if( $pvr['mpSee'] == '' || $pvr['mpSee'] == 0 ) {
|
|||
|
$pvr['mpSee'] = '--';
|
|||
|
}
|
|||
|
$u->stats['mpNow'] = $pvr['mpNow'];
|
|||
|
$u->info['mpNow'] = $pvr['mpNow'];
|
|||
|
$btl->stats[$btl->uids[$u->info['id']]]['mpNow'] = $pvr['mpNow'];
|
|||
|
$btl->users[$btl->uids[$u->info['id']]]['mpNow'] = $pvr['mpNow'];
|
|||
|
mysql_query('UPDATE `stats` SET `mpNow` = "'.$u->stats['mpNow'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
$pvr['no'] = ' AND `a`.`v2` != 201';
|
|||
|
|
|||
|
$pvr['sp'] = mysql_query('SELECT `a`.* FROM `eff_users` AS `a` LEFT JOIN `priems` AS `b` ON `b`.`id` = `a`.`v2` WHERE `a`.`uid` = "'.$u->info['id'].'" AND `a`.`delete` = 0 AND `a`.`v1` = "priem" '.$pvr['no'].' AND `b`.`neg` > 0 LIMIT 1');
|
|||
|
$pvr['pl'] = mysql_fetch_array($pvr['sp']);
|
|||
|
$pvr['pl']['priem'] = mysql_fetch_array(mysql_query('SELECT * FROM `priems` WHERE `id` = "'.$pvr['pl']['v2'].'" LIMIT 1'));
|
|||
|
if( isset($pvr['pl']['priem']) ) {
|
|||
|
$btl->delPriem($pvr['pl'],$btl->users[$btl->uids[$u->info['id']]],100);
|
|||
|
}
|
|||
|
|
|||
|
$prv['text2'] = '{tm1} '.$prv['text'].' <20><><EFBFBD><EFBFBD><EFBFBD> {u2}. <font Color='.$prv['color'].'><b>'.$pvr['mpSee'].'</b></font> ['.$pvr['mpNow'].'/'.$pvr['mpAll'].'] (<28><><EFBFBD><EFBFBD>)';
|
|||
|
|
|||
|
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $this->ue['id'],
|
|||
|
'<font color^^^^#'.$prv['color2'].'><3E><><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></font>',
|
|||
|
$prv['text2'],
|
|||
|
($btl->hodID + 1)
|
|||
|
);
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
//$this->addEffPr($pl,$id);
|
|||
|
//$this->addPriem($this->ue['id'],$pl['id'],'atgm='.($pvr['hp']/16).'',2,77,4,$u->info['id'],3,'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',0,0,1);
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
$pvr['mg']['priem']['id'] = $pvr['mg']['id'];
|
|||
|
//$btl->delPriem($pvr['mg'],$btl->users[$btl->uids[$this->ue['id']]],2);
|
|||
|
|
|||
|
$pvr['edt'] = $u->lookStats($pvr['mg']['data']);
|
|||
|
$pvr['edt']['add_zm2proc'] = 0;
|
|||
|
$pvr['edt']['add_mg2static_points'] = 0;
|
|||
|
$pvr['edt'] = $u->impStats($pvr['edt']);
|
|||
|
mysql_query('UPDATE `eff_users` SET `x` = 1, `data` = "'.$pvr['edt'].'" WHERE `id` = "'.$pvr['mg']['id'].'" LIMIT 1');
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
//$this->mintr($pl);
|
|||
|
}
|
|||
|
}else{
|
|||
|
echo '<font color=red><b><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</b></font>';
|
|||
|
$cup = true;
|
|||
|
}
|
|||
|
unset($pvr);
|
|||
|
?>
|