34 lines
1.3 KiB
PHP
34 lines
1.3 KiB
PHP
|
<?
|
|||
|
if(!defined('GAME')) {
|
|||
|
die();
|
|||
|
}
|
|||
|
/*
|
|||
|
<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['id'] = mysql_fetch_array(mysql_query('SELECT `id` FROM `test_bot` WHERE `login` = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD>)" AND `level` = "'.$u->info['level'].'" LIMIT 1'));
|
|||
|
if( isset($pvr['id']['id']) ) {
|
|||
|
$pvr['bot'] = $u->addNewbot($pvr['id']['id'],NULL,NULL);
|
|||
|
//
|
|||
|
$pvr['xznm'] = mysql_fetch_array(mysql_query('SELECT COUNT(`id`) FROM `users` WHERE `battle` = "'.$btl->info['id'].'" AND `login` LIKE "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>%" LIMIT 1'));
|
|||
|
if($pvr['xznm'][0] > 0) {
|
|||
|
$pvr['xznm'] = ' ('.($pvr['xznm'][0]).')';
|
|||
|
}else{
|
|||
|
$pvr['xznm'] = '';
|
|||
|
}
|
|||
|
//
|
|||
|
mysql_query('UPDATE `users` SET `login` = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>'.$pvr['xznm'].'",`obraz` = "0.gif",`battle` = "'.$btl->info['id'].'" WHERE `id` = "'.$pvr['bot']['id'].'" LIMIT 1');
|
|||
|
mysql_query('UPDATE `stats` SET `team` = "'.$u->info['team'].'" WHERE `id` = "'.$pvr['bot']['id'].'" LIMIT 1');
|
|||
|
//
|
|||
|
$btl->priemAddLog( $id, 1, 2, $u->info['id'], $u->info['enemy'],
|
|||
|
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>',
|
|||
|
'{tm1} '.$btl->addlt(1 , 21 , $btl->users[$btl->uids[$u->info['id']]]['sex'] , NULL).'.',
|
|||
|
($btl->hodID)
|
|||
|
);
|
|||
|
//
|
|||
|
$this->addPriem($u->info['id'],254,'add_yhod='.floor($pvr['bot']['id']).'',2,77,-2,$u->info['id'],1,'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',0,0,1,floor($pvr['bot']['id']));
|
|||
|
}
|
|||
|
|
|||
|
unset($pvr);
|
|||
|
?>
|