105 lines
2.8 KiB
PHP
105 lines
2.8 KiB
PHP
|
<?
|
|||
|
if(!defined('GAME')) {
|
|||
|
die();
|
|||
|
}
|
|||
|
/*
|
|||
|
if( $this->stats[$this->uids[$vrm['uid1']]]['yhod'] > 0 ) {
|
|||
|
$this->atacks[$id]['uid1'] = $vrm['uid1'];
|
|||
|
}elseif( $this->stats[$this->uids[$vrm['uid2']]]['yhod'] > 0 ) {
|
|||
|
$this->atacks[$id]['uid2'] = $vrm['uid2'];
|
|||
|
}
|
|||
|
*/
|
|||
|
/*
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [9]
|
|||
|
*/
|
|||
|
$pvr = array();
|
|||
|
if( isset($pr_momental_this)) {
|
|||
|
$fx_moment = function( $uid, $enemy, $j_id, $yron, $profil ) {
|
|||
|
return round($yron);
|
|||
|
};
|
|||
|
}elseif( isset($pr_tested_this) ) {
|
|||
|
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
|||
|
// -- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
global $u, $btl;
|
|||
|
//
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
$pvr['used'] = 0;
|
|||
|
//
|
|||
|
$uid1 = $btl->atacks[$id]['uid1'];
|
|||
|
$uid2 = $btl->atacks[$id]['uid2'];
|
|||
|
if( $uid == $uid2 ) {
|
|||
|
$a = 1;
|
|||
|
$b = 2;
|
|||
|
$u1 = ${'uid1'};
|
|||
|
$u2 = ${'uid2'};
|
|||
|
}elseif( $uid == $uid1 ) {
|
|||
|
$a = 2;
|
|||
|
$b = 1;
|
|||
|
$u1 = ${'uid2'};
|
|||
|
$u2 = ${'uid1'};
|
|||
|
}
|
|||
|
if( isset($at['p'][$a]['priems']['kill'][$uid][$j_id]) ) {
|
|||
|
mysql_query('UPDATE `eff_users` SET `delete` = "'.time().'" WHERE `id` = "'.$btl->stats[$btl->uids[$uid]]['u_priem'][$j_id][3].'" AND `uid` = "'.$uid.'" LIMIT 1');
|
|||
|
unset($btl->stats[$btl->uids[$uid]]['u_priem'][$j_id]);
|
|||
|
}
|
|||
|
//
|
|||
|
// -- <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
return $at;
|
|||
|
};
|
|||
|
unset( $pr_used_this );
|
|||
|
}elseif( isset($pr_used_this) ) {
|
|||
|
$fx_priem = function( $id , $at , $uid, $j_id ) {
|
|||
|
// -- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
global $u, $btl;
|
|||
|
//
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
$pvr['used'] = 0;
|
|||
|
//
|
|||
|
//echo '$user::['.$uid.']->("<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");';
|
|||
|
$uid1 = $btl->atacks[$id]['uid1'];
|
|||
|
$uid2 = $btl->atacks[$id]['uid2'];
|
|||
|
if( $uid == $uid2 ) {
|
|||
|
$a = 1;
|
|||
|
$b = 2;
|
|||
|
$u1 = ${'uid1'};
|
|||
|
$u2 = ${'uid2'};
|
|||
|
}elseif( $uid == $uid1 ) {
|
|||
|
$a = 2;
|
|||
|
$b = 1;
|
|||
|
$u1 = ${'uid2'};
|
|||
|
$u2 = ${'uid1'};
|
|||
|
}
|
|||
|
if( $a > 0 ) {
|
|||
|
if( $pvr['used'] == 0 && !isset($at['p'][$a]['priems']['kill'][$uid][$j_id]) ) {
|
|||
|
//
|
|||
|
$this->priemAddLog( $id, $b, $a, $u2, $u1,
|
|||
|
'<font color^^^^#'.$prv['color2'].'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> [9]</font>',
|
|||
|
'{tm1} '.$btl->addlt(1 , 17 , $btl->users[$btl->uids[$u2]]['sex'] , NULL).'.'.$prv['effx'],
|
|||
|
($btl->hodID + 1)
|
|||
|
);
|
|||
|
//
|
|||
|
$at['p'][$a]['atack'][$j]['yron']['used'][] = array($j_id,$uid,$pvr['used']);
|
|||
|
$at['p'][$a]['atack'][$j]['yron']['kill'][] = array($j_id,$uid,$pvr['kill']);
|
|||
|
//
|
|||
|
$at['p'][$a]['priems']['kill'][$uid][$j_id] = true;
|
|||
|
}
|
|||
|
}
|
|||
|
//
|
|||
|
// -- <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
return $at;
|
|||
|
};
|
|||
|
unset( $pr_used_this );
|
|||
|
}else{
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
$this->addEffPr($pl,$id);
|
|||
|
/*$prv['color2'] = '000000';
|
|||
|
$prv['text'] = $btl->addlt(1 , 17 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL);
|
|||
|
$prv['text2'] = '{tm1} '.$prv['text'].'.'.$prv['effx'];
|
|||
|
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $this->ue['id'],
|
|||
|
'<font color^^^^#'.$prv['color2'].'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> [9]</font>',
|
|||
|
$prv['text2'],
|
|||
|
($btl->hodID + 0)
|
|||
|
);*/
|
|||
|
}
|
|||
|
unset($pvr);
|
|||
|
?>
|