61 lines
1.7 KiB
PHP
61 lines
1.7 KiB
PHP
|
<?
|
|||
|
if(!defined('GAME')) {
|
|||
|
die();
|
|||
|
}
|
|||
|
/*
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>
|
|||
|
*/
|
|||
|
$pvr = array();
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
|||
|
$pvr['hp'] = -floor($btl->users[$btl->uids[$u->info['id']]]['last_hp']);
|
|||
|
$pvr['hpSee'] = '--';
|
|||
|
$pvr['hpNow'] = floor($btl->stats[$btl->uids[$u->info['id']]]['hpNow']);
|
|||
|
$pvr['hpAll'] = $btl->stats[$btl->uids[$u->info['id']]]['hpAll'];
|
|||
|
|
|||
|
$pvr['hpTr'] = $pvr['hpAll'] - $pvr['hpNow'];
|
|||
|
if( $pvr['hpTr'] > 0 ) {
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|||
|
if( $pvr['hpTr'] < $pvr['hp'] ) {
|
|||
|
$pvr['hp'] = $pvr['hpTr'];
|
|||
|
}
|
|||
|
if( $pvr['hp'] > 0 ) {
|
|||
|
$pvr['hpSee'] = '+'.$pvr['hp'];
|
|||
|
}else{
|
|||
|
$pvr['hpSee'] = ''.$pvr['hp'];
|
|||
|
}
|
|||
|
$pvr['hpNow'] += $pvr['hp'];
|
|||
|
}else{
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><>
|
|||
|
$pvr['hpSee'] = $pvr['hp'];
|
|||
|
$pvr['hpNow'] += $pvr['hp'];
|
|||
|
}
|
|||
|
|
|||
|
$btl->users[$btl->uids[$u->info['id']]]['last_hp'] = $pvr['hp'];
|
|||
|
|
|||
|
if( $pvr['hpNow'] > $pvr['hpAll'] ) {
|
|||
|
$pvr['hpNow'] = $pvr['hpAll'];
|
|||
|
}elseif( $pvr['hpNow'] < 0 ) {
|
|||
|
$pvr['hpNow'] = 0;
|
|||
|
}
|
|||
|
|
|||
|
$u->stats['hpNow'] = $pvr['hpNow'];
|
|||
|
$u->info['hpNow'] = $pvr['hpNow'];
|
|||
|
$btl->stats[$btl->uids[$u->info['id']]]['hpNow'] = $pvr['hpNow'];
|
|||
|
$btl->users[$btl->uids[$u->info['id']]]['hpNow'] = $pvr['hpNow'];
|
|||
|
$btl->priemYronSave($u->info['id'],$this->ue['id'],$pvr['hp'],0);
|
|||
|
|
|||
|
mysql_query('UPDATE `stats` SET `last_hp` = "'.$btl->users[$btl->uids[$u->info['id']]]['last_hp'].'",`hpNow` = "'.$u->info['hpNow'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|||
|
|
|||
|
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $u->info['enemy'],
|
|||
|
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
'{tm1} '.$btl->addlt(1 , 17 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL).' <font Color=#006699><b>'.$pvr['hpSee'].'</b></font> ['.$pvr['hpNow'].'/'.$pvr['hpAll'].']',
|
|||
|
($btl->hodID)
|
|||
|
);
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
$this->mintr($pl);
|
|||
|
|
|||
|
unset($pvr);
|
|||
|
?>
|