36 lines
1.8 KiB
PHP
36 lines
1.8 KiB
PHP
|
<?
|
|||
|
if(!defined('GAME'))
|
|||
|
{
|
|||
|
die();
|
|||
|
}
|
|||
|
|
|||
|
if($e['bm_a1']=='wpchr41' && $end > 0)
|
|||
|
{
|
|||
|
$hpmin = $this->atacks[$end]['uid_'.$uid1.'_t1']+$this->atacks[$end]['uid_'.$uid1.'_t4']+$this->atacks[$end]['uid_'.$uid1.'_t5'];
|
|||
|
if(rand(0,10000) < 100 && $hpmin > 0)
|
|||
|
{
|
|||
|
//
|
|||
|
$e['imposed_name'] = str_replace(' ',' ',$e['imposed_name']);
|
|||
|
//
|
|||
|
$pvr['test'] = mysql_fetch_array(mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "'.$uid2.'" AND `delete` = 0 AND `name` = "'.$e['imposed_name'].'" LIMIT 1'));
|
|||
|
//<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1%
|
|||
|
if( !isset($pvr['test']['id']) ) {
|
|||
|
//
|
|||
|
mysql_query("
|
|||
|
INSERT INTO `eff_users` ( `id_eff`, `uid`, `name`, `data`, `overType`, `timeUse`, `timeAce`, `user_use`, `delete`, `v1`, `v2`, `img2`, `x`, `hod`, `bj`, `sleeptime`, `no_Ace`, `file_finish`, `tr_life_user`, `deactiveTime`, `deactiveLast`, `mark`, `bs`) VALUES
|
|||
|
( 22, '".$uid2."', '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1', 'add_s4=-30|add_hpAll=-50', 0, 77, 0, '".$uid1."', 0, 'priem', 313, 'enhp_3_copower1.gif', 1, 5, '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1', 0, 0, '', 0, 0, 0, 1, 0);
|
|||
|
");
|
|||
|
//
|
|||
|
$vLog = 'time1='.time().'||s1='.$this->users[$this->uids[$uid1]]['sex'].'||t1='.$this->users[$this->uids[$uid1]]['team'].'||login1='.$this->users[$this->uids[$uid1]]['login'].'||s2='.$this->users[$this->uids[$uid2]]['sex'].'||t2='.$this->users[$this->uids[$uid2]]['team'].'||login2='.$this->users[$this->uids[$uid2]]['login'].'';
|
|||
|
$mas1 = array('time'=>time(),'battle'=>$this->info['id'],'id_hod'=>($this->hodID),'text'=>'','vars'=>$vLog,'zona1'=>'','zonb1'=>'','zona2'=>'','zonb2'=>'','type'=>'1');
|
|||
|
$sax = '';
|
|||
|
if( $this->users[$this->uids[$uid2]]['sex'] == 1 ) {
|
|||
|
$sax = '<27>';
|
|||
|
}
|
|||
|
$mas1['text'] = '{tm1} {u2} <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'.$sax.' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "<b>'.$e['imposed_name'].'</b>". (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: -30, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: -50 <20><> 5 <20><><EFBFBD><EFBFBD><EFBFBD>)';
|
|||
|
$this->add_log($mas1);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
?>
|