2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
if ( ! defined ( 'GAME' )) { die (); }
if ( $e [ 'bm_a1' ] == 'bot_priems1' ) {
unset ( $pr_vars );
$pr_use = 0 ;
$pr_vars = array ( 'hp_u1' => $this -> users [ $this -> uids [ $uid1 ]][ 'hpNow' ], 'hp_u2' => $this -> users [ $this -> uids [ $uid2 ]][ 'hpNow' ]);
if ( $this -> users [ $this -> uids [ $uid1 ]][ 'hpNow' ] > 0 ){
2023-01-10 16:29:32 +00:00
###=======================Потерянный вход начало ========================== ###
2022-06-06 21:30:34 +00:00
if ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 499 ) {
2023-01-10 16:29:32 +00:00
//Сила
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 12 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Проклятье Валлуара' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 351 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Кровавый Плевок' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 6 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 900 , 1800 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 160 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = false ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 498 ) {
2023-01-10 16:29:32 +00:00
### Боль
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 8 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Ошеломить' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 189 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Вспышка Боли' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 900 , 1800 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 160 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = false ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 497 ) {
2023-01-10 16:29:32 +00:00
### Душа
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Ошеломить' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 189 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 7 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Темный Удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 500 , 1000 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 160 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = false ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 520 ) {
2023-01-10 16:29:32 +00:00
### Меткий Глаз
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 20 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Снайпер' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 352 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 522 ) {
2023-01-10 16:29:32 +00:00
### Заправщик
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Храбрый Дух' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 353 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 517 ) {
2023-01-10 16:29:32 +00:00
### Тяжпех ( пропуск на 7 ходов )
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
if ( rand ( 1 , 100 ) > 90 && mt_rand ( 1 , 100 ) > 50 )
{
$pr_vars [ 'priem_use_p' ][ 'kolvo' ] = 7 ;
$pr_vars [ 'priem_use_p' ][ 'd_min' ] = 150 ;
$pr_vars [ 'priem_use_p' ][ 'd_max' ] = 250 ;
}
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 505 ) {
2023-01-10 16:29:32 +00:00
### Злыдень ( пропуск на 3 хода )
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
if ( rand ( 1 , 100 ) > 90 && mt_rand ( 1 , 100 ) > 50 )
{
$pr_vars [ 'priem_use_p' ][ 'kolvo' ] = 3 ;
$pr_vars [ 'priem_use_p' ][ 'd_min' ] = 150 ;
$pr_vars [ 'priem_use_p' ][ 'd_max' ] = 250 ;
}
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 509 ) {
2023-01-10 16:29:32 +00:00
### Бугаг ( пуропуск на 5 ходов )
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
if ( rand ( 1 , 100 ) > 90 && mt_rand ( 1 , 100 ) > 50 )
{
$pr_vars [ 'priem_use_p' ][ 'kolvo' ] = 5 ;
$pr_vars [ 'priem_use_p' ][ 'd_min' ] = 150 ;
$pr_vars [ 'priem_use_p' ][ 'd_max' ] = 250 ;
}
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 512 ) {
2023-01-10 16:29:32 +00:00
### Буйвол ( пропуск на 7 ходов )
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
if ( rand ( 1 , 100 ) > 90 && mt_rand ( 1 , 100 ) > 50 )
{
$pr_vars [ 'priem_use_p' ][ 'kolvo' ] = 7 ;
$pr_vars [ 'priem_use_p' ][ 'd_min' ] = 150 ;
$pr_vars [ 'priem_use_p' ][ 'd_max' ] = 250 ;
}
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 515 ) {
2023-01-10 16:29:32 +00:00
### Гнеющий Дух
2022-06-06 21:30:34 +00:00
if ( rand ( 1 , 100 ) > 90 && mt_rand ( 1 , 100 ) > 50 )
{
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use_e' ][ 'name' ] = " Гниение " ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use_e' ][ 'uron' ] = floor ( $this -> stats [ $this -> uids [ $uid2 ]][ 'hpAll' ] / 5 );
}
}
2023-01-10 16:29:32 +00:00
###====================Потерянный вход Конец=======================###
2022-06-06 21:30:34 +00:00
###================================================================###
2023-01-10 16:29:32 +00:00
###====================КАТАКОМБЫ БОТЫ ПРИЕМЫ НАЧАЛО================###
2022-06-06 21:30:34 +00:00
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 287 || $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 286 ) {
2023-01-10 16:29:32 +00:00
//Древний страж
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Стойкость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 13 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
2023-01-10 16:29:32 +00:00
//Пламенная вспышка
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Пламенная Вспышка' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 300 , 600 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 73 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = true ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 283 ) {
2023-01-10 16:29:32 +00:00
//Шут повелителя
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Ярость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 14 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 3 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Стойкость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 13 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Шокирующий удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 235 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
if ( rand ( 0 , 100 ) > 50 && rand ( 0 , 100 ) < 10 ) {
2023-01-10 16:29:32 +00:00
//Волшебный фокус ворует 8-12% маны
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_regen2' ][ 'mp' ] = floor ( $this -> stats [ $this -> uids [ $uid2 ]][ 'hpAll' ] / 100 * rand ( 8 , 12 ));
$pr_vars [ 'priem_regen2' ][ 'chance' ] = 50 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_regen2' ][ 'name' ] = 'Волшебный Фокус' ;
2022-06-06 21:30:34 +00:00
$this -> stats [ $this -> uids [ $uid2 ]][ 'mpNow' ] -= $pr_vars [ 'priem_regen2' ][ 'mp' ];
if ( $this -> stats [ $this -> uids [ $uid2 ]][ 'mpNow' ] < 0 ) {
$this -> stats [ $this -> uids [ $uid2 ]][ 'mpNow' ] = 0 ;
}
mysql_query ( 'UPDATE `stats` SET `mpNow` = "' . $this -> stats [ $this -> uids [ $uid2 ]][ 'mpNow' ] . '" WHERE `id` = "' . $this -> users [ $this -> uids [ $uid2 ]][ 'id' ] . '" LIMIT 1' );
} elseif ( rand ( 0 , 100 ) > 50 && rand ( 0 , 100 ) < 10 ) {
if ( $this -> stats [ $this -> uids [ $uid1 ]][ 'hpNow' ] <= $this -> stats [ $this -> uids [ $uid1 ]][ 'hpAll' ] / 4 ) {
2023-01-10 16:29:32 +00:00
//Украсть душу
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_regen' ][ 'hp' ] = floor ( $this -> stats [ $this -> uids [ $uid2 ]][ 'hpAll' ] - 1 );
$pr_vars [ 'priem_regen' ][ 'chance' ] = 100 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_regen' ][ 'name' ] = 'Украсть Душу' ;
2022-06-06 21:30:34 +00:00
$this -> stats [ $this -> uids [ $uid2 ]][ 'hpNow' ] -= $pr_vars [ 'priem_regen' ][ 'hp' ];
if ( $this -> stats [ $this -> uids [ $uid2 ]][ 'hpNow' ] < 1 ) {
$this -> stats [ $this -> uids [ $uid2 ]][ 'hpNow' ] = 1 ;
}
mysql_query ( 'UPDATE `stats` SET `hpNow` = "' . $this -> stats [ $this -> uids [ $uid2 ]][ 'hpNow' ] . '" WHERE `id` = "' . $this -> users [ $this -> uids [ $uid2 ]][ 'id' ] . '" LIMIT 1' );
//
$pr_vars [ 'priem_use' ][ 3 ][ 'chance' ] = 100 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'name' ] = 'Украденная Душа' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'id' ] = 341 ;
$pr_vars [ 'priem_use' ][ 3 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
//
}
} else {
if ( $this -> stats [ $this -> uids [ $uid1 ]][ 'hpNow' ] <= $this -> stats [ $this -> uids [ $uid1 ]][ 'hpAll' ] / 2 )
{
$pr_vars [ 'priem_use' ][ 3 ][ 'chance' ] = 20 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'name' ] = 'Честная Игра' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'id' ] = 217 ;
$pr_vars [ 'priem_use' ][ 3 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
}
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 285 ) {
2023-01-10 16:29:32 +00:00
//Проклятые
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Абсолютная Защита' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 140 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 7 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Усиленные Удары' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 193 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Проклятый Удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 6 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 100 , 300 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 160 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = false ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 542 ) {
2023-01-10 16:29:32 +00:00
##Зомби
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Проклятье Голодного Мертвеца' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 339 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Ядовитый Укус' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 3 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 30 , 70 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 83 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = true ;
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Стылое касание' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 338 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 277 ) {
2023-01-10 16:29:32 +00:00
### Пипка
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
if ( $this -> hodID == 1 )
{
$pr_vars [ 'priem_use_p' ][ 'kolvo' ] = 3 ;
$pr_vars [ 'priem_use_p' ][ 'd_min' ] = 150 ;
$pr_vars [ 'priem_use_p' ][ 'd_max' ] = 250 ;
}
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 251 ) {
2023-01-10 16:29:32 +00:00
### Офицер Глубин
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_regen' ][ 'hp' ] = 500 ;
$pr_vars [ 'priem_regen' ][ 'chance' ] = 3 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_regen' ][ 'name' ] = 'Эликсир лечения' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 9 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Ярость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 14 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 20 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Сонный яд' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 333 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Танец Лезвий' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 48 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 284 ) {
2023-01-10 16:29:32 +00:00
### Трупожор
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Пришпилить' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 345 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Сожрать' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 3 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = rand ( 400 , 800 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 400 , 800 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 164 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = true ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hpregen' ] = true ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 530 ) {
2023-01-10 16:29:32 +00:00
### Слизь
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Ярость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 14 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Поцелуй Слизи' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 335 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 7 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Удачный удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 11 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 3 ][ 'chance' ] = 7 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'name' ] = 'Хлебнуть Крови' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'id' ] = 240 ;
$pr_vars [ 'priem_use' ][ 3 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Кислотный Плевок' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 3 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 100 , 400 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 164 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = false ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 288 ) {
2023-01-10 16:29:32 +00:00
### Повелитель
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Ярость Павших' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 347 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Обреченность' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 204 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 8 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Проклятье Стражей' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 348 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
$pr_vars [ 'priem_use' ][ 3 ][ 'chance' ] = 12 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'name' ] = 'Защита Ангела' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'id' ] = 349 ;
$pr_vars [ 'priem_use' ][ 3 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 275 ) {
2023-01-10 16:29:32 +00:00
### Чернокнижник
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Ярость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 14 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Стойкость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 13 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 9 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Проклятье Тьмы' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 336 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Касание Тьмы' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 6 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 100 , 300 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 160 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = false ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 266 ) {
2023-01-10 16:29:32 +00:00
### Епископ
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_regen' ][ 'hp' ] = 300 ;
$pr_vars [ 'priem_regen' ][ 'chance' ] = 3 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_regen' ][ 'name' ] = 'Лечение' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Святая Ярость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 334 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 8 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Обречённость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 204 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 9 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Абсолютная Защита' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 140 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 8 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Разрушение' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 6 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 100 , 300 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = round ( $pr_vars [ 'priem_team_f' ][ 1 ][ 'hp_dmg' ] / 2 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 160 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = false ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hpregen' ] = true ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 279 ) {
2023-01-10 16:29:32 +00:00
### Проклятый Пленник
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_regen' ][ 'hp' ] = 300 ;
$pr_vars [ 'priem_regen' ][ 'chance' ] = 3 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_regen' ][ 'name' ] = 'Свежая Кровь' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 8 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Точный Удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 219 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 9 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Абсолютная Защита' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 140 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'no_chat' ] = true ;
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 7 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Танец Ветра' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 8 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 8 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Взрыв' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 6 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 800 , 1600 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 160 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = false ;
2023-01-10 16:29:32 +00:00
// Попытка клонирования
2022-06-06 21:30:34 +00:00
if ( rand ( 0 , 100 ) > 80 ) //&& rand(0,100) < 5
{
2023-01-10 16:29:32 +00:00
$bot_cou = mysql_fetch_array ( mysql_query ( 'SELECT COUNT(`id`) FROM `users` WHERE `login` LIKE "%' . $this -> users [ $this -> uids [ $uid2 ]][ 'login' ] . ' (клон%" AND `battle` = "' . $this -> info [ 'id' ] . '" LIMIT 1' ));
2022-06-06 21:30:34 +00:00
$bot_cou = $bot_cou [ 0 ] + 1 ;
if ( $bot_cou < 2 && $this -> stats [ $this -> uids [ $uid1 ]][ 'hpNow' ] <= $this -> stats [ $this -> uids [ $uid1 ]][ 'hpAll' ] / 2 )
{
$clone = array (
'id' => $this -> users [ $this -> uids [ $uid2 ]][ 'id' ],
2023-01-10 16:29:32 +00:00
'login' => $this -> users [ $this -> uids [ $uid2 ]][ 'login' ] . ' (клон ' . $bot_cou . ')' ,
2022-06-06 21:30:34 +00:00
'level' => $this -> users [ $this -> uids [ $uid2 ]][ 'level' ],
'city' => $this -> users [ $this -> uids [ $uid2 ]][ 'city' ],
'cityreg' => $this -> users [ $this -> uids [ $uid2 ]][ 'cityreg' ],
'name' => $this -> users [ $this -> uids [ $uid2 ]][ 'name' ],
'sex' => $this -> users [ $this -> uids [ $uid2 ]][ 'sex' ],
'hobby' => $this -> users [ $this -> uids [ $uid2 ]][ 'hobby' ],
'time_reg' => $this -> users [ $this -> uids [ $uid2 ]][ 'time_reg' ],
'obraz' => $this -> users [ $this -> uids [ $uid2 ]][ 'obraz' ],
'stats' => $this -> users [ $this -> uids [ $uid2 ]][ 'stats' ],
'upLevel' => $this -> users [ $this -> uids [ $uid2 ]][ 'upLevel' ],
'priems' => $this -> users [ $this -> uids [ $uid2 ]][ 'priems' ],
'loclon' => true ,
'inTurnir' => $this -> users [ $this -> uids [ $uid2 ]][ 'inTurnir' ]
);
$bot = $u -> addNewbot ( 1 , NULL , $clone , NULL , true );
mysql_query ( 'UPDATE `stats` SET `team` = "' . $this -> users [ $this -> uids [ $uid1 ]][ 'team' ] . '",`hpNow` = "' . $this -> users [ $this -> uids [ $uid2 ]][ 'hpNow' ] . '",`mpNow` = "' . $this -> users [ $this -> uids [ $uid2 ]][ 'mpNow' ] . '" WHERE `id` = "' . $bot . '" LIMIT 1' );
mysql_query ( 'UPDATE `users` SET `battle` = "' . $this -> info [ 'id' ] . '" WHERE `id` = "' . $bot . '" LIMIT 1' );
2023-01-10 16:29:32 +00:00
//Доабвляем лог
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
$pr_vars [ 'mas' ][ 'text' ] = '{tm1} {u1} использовал прием "<b>Клонирование</b>" и призвал клона<b> ' . $this -> users [ $this -> uids [ $uid2 ]][ 'login' ] . '</b>.' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'mas' ][ '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' ] . '' ;
$pr_vars [ 'mas' ] = array ( 'time' => time (), 'battle' => $this -> info [ 'id' ], 'id_hod' => ( $this -> hodID + 1 ), 'text' => $pr_vars [ 'mas' ][ 'text' ], 'vars' => $pr_vars [ 'mas' ][ 'vLog' ], 'zona1' => '' , 'zonb1' => '' , 'zona2' => '' , 'zonb2' => '' , 'type' => '1' );
$this -> add_log ( $pr_vars [ 'mas' ]);
}
}
2023-01-10 16:29:32 +00:00
// Конец
2022-06-06 21:30:34 +00:00
}
2023-01-10 16:29:32 +00:00
###======================Конец Катакомб===================###
2022-06-06 21:30:34 +00:00
#############################################################
2023-01-10 16:29:32 +00:00
###======================Начало Излома====================###
2022-06-06 21:30:34 +00:00
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 416 ) {
$pr_use = 1 ;
2023-01-10 16:29:32 +00:00
#Валентайский Охотник#
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 7 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Танец Ветра' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 8 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Предвидение' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 10 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 417 ) {
$pr_use = 1 ;
2023-01-10 16:29:32 +00:00
#Шипокрыл Х а о с а #
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 7 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Сокрушающий Удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 138 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Усиленные Удары' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 193 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 418 ) {
$pr_use = 1 ;
2023-01-10 16:29:32 +00:00
#Шипокрыл#
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Сильный Удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 4 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Слепая Удача' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 47 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 419 ) {
$pr_use = 1 ;
2023-01-10 16:29:32 +00:00
#Лик Х а о с а #
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Жажда Крови' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 188 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Призрачная Защита' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 141 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 15 ; //7
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Удачный Удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 11 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 420 ) {
$pr_use = 1 ;
2023-01-10 16:29:32 +00:00
#Фанатик Х а о с а #
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Обреченность' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 204 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 12 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Разгадать Тактику' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 217 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 8 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Кровожадность' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 305 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
#1#
}
2023-01-10 16:29:32 +00:00
###==========================КОНЕЦ ИЗЛОМА=====================###
2022-06-06 21:30:34 +00:00
#################################################################
2023-01-10 16:29:32 +00:00
###==========================Начало Грибницы==================###
2022-06-06 21:30:34 +00:00
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 295 ) {
$pr_use = 1 ;
2023-01-10 16:29:32 +00:00
#Пылающий Паразит
2022-06-06 21:30:34 +00:00
/* if ( $this -> stats [ $this -> uids [ $uid1 ]][ 'hpNow' ] <= $this -> stats [ $this -> uids [ $uid2 ]][ 'hpAll' ] / 2 )
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Пожирающее Пламя' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 57 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]]; */
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 20 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Испепеление' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 30 , 60 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 52 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = false ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 300 ) {
$pr_use = 1 ;
2023-01-10 16:29:32 +00:00
#Искрящийся Паразит
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 20 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Молния' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 2 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 30 , 60 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 93 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = false ;
$pr_vars [ 'priem_team_f' ][ 1 ][ 'chance' ] = 20 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 1 ][ 'name' ] = 'Искра' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 1 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 1 ][ 'type' ] = 2 ;
$pr_vars [ 'priem_team_f' ][ 1 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 1 ][ 'hp_dmg' ] = rand ( 30 , 60 );
$pr_vars [ 'priem_team_f' ][ 1 ][ 'priem' ] = 259 ;
$pr_vars [ 'priem_team_f' ][ 1 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 1 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 1 ][ 'nomf' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 1 ][ 'fiz' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 1 ][ 'krituet' ] = false ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 296 ) {
$pr_use = 1 ;
2023-01-10 16:29:32 +00:00
#Гусенец с 1 этажа#
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Свернутся' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 355 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 308 ) {
$pr_use = 1 ;
2023-01-10 16:29:32 +00:00
#Гусенец с 3 этажа#
2022-06-06 21:30:34 +00:00
if ( $this -> stats [ $this -> uids [ $uid1 ]][ 'hpNow' ] <= $this -> stats [ $this -> uids [ $uid2 ]][ 'hpAll' ] / 4 )
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 25 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Свернутся' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 354 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 297 ) {
$pr_use = 1 ;
2023-01-10 16:29:32 +00:00
#скользкий рогоносец#
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Вязкая Слизь' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 356 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 124 ) {
2023-01-10 16:29:32 +00:00
###Изгнанник Мглы [9]
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Второе дыхание' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 49 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Удар серпом' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 219 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Полная защита' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 45 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 3 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'name' ] = 'Сильный удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'id' ] = 15 ;
$pr_vars [ 'priem_use' ][ 3 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 4 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 4 ][ 'name' ] = 'Слепая удача' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 4 ][ 'id' ] = 47 ;
$pr_vars [ 'priem_use' ][ 4 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 5 ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 5 ][ 'name' ] = 'Стойкость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 5 ][ 'id' ] = 13 ;
$pr_vars [ 'priem_use' ][ 5 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 6 ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 6 ][ 'name' ] = 'Ярость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 6 ][ 'id' ] = 14 ;
$pr_vars [ 'priem_use' ][ 6 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_regen' ][ 'hp' ] = 45 ;
$pr_vars [ 'priem_regen' ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_regen' ][ 'name' ] = 'Воля к победе' ;
2022-06-06 21:30:34 +00:00
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 125 ) {
2023-01-10 16:29:32 +00:00
###Страж Крантон [9]
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Удар правым жвалом' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 216 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 20 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Удачный удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 11 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Коварный уход' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 213 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 3 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'name' ] = 'Стойкость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'id' ] = 13 ;
$pr_vars [ 'priem_use' ][ 3 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 4 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 4 ][ 'name' ] = 'Ярость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 4 ][ 'id' ] = 14 ;
$pr_vars [ 'priem_use' ][ 4 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_regen' ][ 'hp' ] = 45 ;
$pr_vars [ 'priem_regen' ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_regen' ][ 'name' ] = 'Воля к победе' ;
2022-06-06 21:30:34 +00:00
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 356 ) {
2023-01-10 16:29:32 +00:00
###Страж Дайтон [9] - Бездна 1 этаж
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_regen' ][ 'hp' ] = 45 ;
$pr_vars [ 'priem_regen' ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_regen' ][ 'name' ] = 'Воля к победе' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 20 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Удар правым жвалом' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 7 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 75 , 200 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 216 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = true ;
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 20 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Ярость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 14 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Коварный уход' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 213 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 3 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'name' ] = 'Удачный удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'id' ] = 11 ;
$pr_vars [ 'priem_use' ][ 3 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 355 ) {
2023-01-10 16:29:32 +00:00
### Кошмар Глубин [12] - Бездна 3 этаж
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
2023-01-10 16:29:32 +00:00
// Подставить лоб - аналог Полной Защите
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Подставить лоб' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 45 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
2023-01-10 16:29:32 +00:00
// Раздавить - аналог Скрытой Силе.
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Раздавить' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 216 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
2023-01-10 16:29:32 +00:00
// Удар Хвостом - наносит моментальный урон.
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Удар Хвостом' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 3 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 35 , 40 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 164 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = true ;
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Стойкость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 13 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 3 ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'name' ] = 'Ярость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'id' ] = 14 ;
$pr_vars [ 'priem_use' ][ 3 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 158 ) {
2023-01-10 16:29:32 +00:00
### Гарл Йонни Салистон [9] - Бездна 3 этаж
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
// Хлебнуть Крови
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 16 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Хлебнуть Крови' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 240 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
2023-01-10 16:29:32 +00:00
// Слепая удача.
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 20 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Слепая удача' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 47 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
2023-01-10 16:29:32 +00:00
// Ярость - лечится на 3000HP.
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_regen' ][ 'hp' ] = 1500 ;
$pr_vars [ 'priem_regen' ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_regen' ][ 'name' ] = 'Дикость' ;
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 350 ) {
2023-01-10 16:29:32 +00:00
//Служитель глубин 8
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_regen' ][ 'hp' ] = 45 ;
$pr_vars [ 'priem_regen' ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_regen' ][ 'name' ] = 'Воля к победе' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Проклятье Бездны' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 7 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 15 , 100 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 216 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = true ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 351 ) {
2023-01-10 16:29:32 +00:00
### Служитель Глубин [9] - Бездна 1-3 этаж
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_regen' ][ 'hp' ] = 45 ;
$pr_vars [ 'priem_regen' ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_regen' ][ 'name' ] = 'Воля к победе' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Проклятье Бездны' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 7 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 15 , 100 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 216 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = true ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 553 ) {
2023-01-10 16:29:32 +00:00
### Смерть - тропа
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_regen' ][ 'hp' ] = 1500 ;
$pr_vars [ 'priem_regen' ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_regen' ][ 'name' ] = 'Воля к победе' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Смертельная Рана' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 7 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = rand ( 400 , 800 );
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 216 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = true ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 554 ) {
2023-01-10 16:29:32 +00:00
### Повелитель
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Ярость Валлуара' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 347 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Сокрушающий Удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 138 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 8 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Проклятье Валлуара' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 348 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
$pr_vars [ 'priem_use' ][ 3 ][ 'chance' ] = 12 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'name' ] = 'Защита Валлуара' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'id' ] = 349 ;
$pr_vars [ 'priem_use' ][ 3 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 352 ) {
2023-01-10 16:29:32 +00:00
### Большой Тяжелый Молот [9] - Бездна 3 этаж
// Удачный удар.
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 25 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Удачный удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 11 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
2023-01-10 16:29:32 +00:00
// Активная защита.
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Полная защита' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 45 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
2023-01-10 16:29:32 +00:00
// Стойкость.
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Стойкость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 13 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
2023-01-10 16:29:32 +00:00
// Ярость.
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'name' ] = 'Ярость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'id' ] = 14 ;
$pr_vars [ 'priem_use' ][ 3 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_use = 1 ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 126 ) {
2023-01-10 16:29:32 +00:00
###Маул Счастливчик [8]
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Удар Феникса' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 216 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Слепая удача' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 47 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Активная защита' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 7 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 3 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'name' ] = 'Стойкость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'id' ] = 13 ;
$pr_vars [ 'priem_use' ][ 3 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 4 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 4 ][ 'name' ] = 'Ярость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 4 ][ 'id' ] = 14 ;
$pr_vars [ 'priem_use' ][ 4 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 134 ) {
2023-01-10 16:29:32 +00:00
###Заблудшая Душа [10]
###To Do : Призрачный удар, Крик души
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Призрачная защита' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 141 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 139 ) {
2023-01-10 16:29:32 +00:00
###Страж Сокровищ [11]
###To Do : Сотрясение, Проклятье стража, Раздавить, Сотрясение мозга
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 8 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Обреченность' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 204 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Ошеломить' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 340 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 18 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Точный Удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 219 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 141 ) {
2023-01-10 16:29:32 +00:00
###Механический Убийца [10]
###To Do : Взрыв, Глубокая рана
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 18 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Точный Удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 219 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
2023-01-10 16:29:32 +00:00
//Зловонная Вода
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'chance' ] = 25 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'name' ] = 'Зловонная Вода' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_team_f' ][ 0 ][ 'x' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'type' ] = 3 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp' ] = 0 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'hp_dmg' ] = 50 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'priem' ] = 164 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'team' ] = $this -> users [ $this -> uids [ $uid2 ]][ 'team' ];
$pr_vars [ 'priem_team_f' ][ 0 ][ 'on' ] = $uid ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'nomf' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ] = 1 ;
$pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ] = false ;
//
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Зловонная Вода' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 294 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'no_chat' ] = true ;
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 142 ) {
2023-01-10 16:29:32 +00:00
###Мастер Грит [11]
###To Do : Холодный Луч, Оюжигающее пламя, Тяжесть земли, Молния, Истинная форма, Самоуничтожение, Двойной удар, Оглушающий удар
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Вонючая Слизь' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 356 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid2 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 143 ) {
2023-01-10 16:29:32 +00:00
###Механический Охранник [10]
###To Do : Вспышка, Обнять
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 15 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Сокрушающий Удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 138 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 376 ) {
2023-01-10 16:29:32 +00:00
###Древнее проклятие Глубин [9]
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_regen' ][ 'hp' ] = 18 ;
$pr_vars [ 'priem_regen' ][ 'chance' ] = 7 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_regen' ][ 'name' ] = 'Утереть пот' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 3 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Подставить лоб' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 45 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 3 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Раздавить' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 216 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 3 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Активная защита' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 7 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 3 ][ 'chance' ] = 3 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'name' ] = 'Удачный удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 3 ][ 'id' ] = 11 ;
$pr_vars [ 'priem_use' ][ 3 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 4 ][ 'chance' ] = 3 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 4 ][ 'name' ] = 'Стойкость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 4 ][ 'id' ] = 13 ;
$pr_vars [ 'priem_use' ][ 4 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 5 ][ 'chance' ] = 3 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 5 ][ 'name' ] = 'Ярость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 5 ][ 'id' ] = 14 ;
$pr_vars [ 'priem_use' ][ 5 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
elseif ( $this -> users [ $this -> uids [ $uid1 ]][ 'bot_id' ] == 254 ) {
2023-01-10 16:29:32 +00:00
###берсерк
2022-06-06 21:30:34 +00:00
$pr_use = 1 ;
$pr_vars [ 'priem_regen' ][ 'hp' ] = 75 ;
$pr_vars [ 'priem_regen' ][ 'chance' ] = 5 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_regen' ][ 'name' ] = 'Регенерация' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'chance' ] = 10 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'name' ] = 'Удачный удар' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 0 ][ 'id' ] = 11 ;
$pr_vars [ 'priem_use' ][ 0 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 1 ][ 'chance' ] = 25 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'name' ] = 'Ярость' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 1 ][ 'id' ] = 14 ;
$pr_vars [ 'priem_use' ][ 1 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
$pr_vars [ 'priem_use' ][ 2 ][ 'chance' ] = 30 ;
2023-01-10 16:29:32 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'name' ] = 'Раздробить череп' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'priem_use' ][ 2 ][ 'id' ] = 219 ;
$pr_vars [ 'priem_use' ][ 2 ][ 'on' ] = $this -> users [ $this -> uids [ $uid1 ]];
}
if ( isset ( $pr_vars [ 'priem_use_e' ][ 'name' ]) && isset ( $pr_vars [ 'priem_use_e' ][ 'uron' ]))
{
2023-01-10 16:29:32 +00:00
$pr_vars [ 'mas' ][ 'text' ] = '{tm1} {u1} использовал прием "<b>' . $pr_vars [ 'priem_use_e' ][ 'name' ] . '</b>" на {u2}' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'mas' ][ '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' ] . '' ;
$pr_vars [ 'mas' ] = array ( 'time' => time (), 'battle' => $this -> info [ 'id' ], 'id_hod' => ( $this -> hodID ), 'text' => $pr_vars [ 'mas' ][ 'text' ], 'vars' => $pr_vars [ 'mas' ][ 'vLog' ], 'zona1' => '' , 'zonb1' => '' , 'zona2' => '' , 'zonb2' => '' , 'type' => '1' );
$this -> add_log ( $pr_vars [ 'mas' ]);
$priem -> addPriem ( $this -> users [ $this -> uids [ $uid2 ]][ 'id' ], 23 , 'atgm=' . $pr_vars [ 'priem_use_e' ][ 'uron' ] . '' , 0 , 77 , 5 , $this -> users [ $this -> uids [ $uid1 ]][ 'id' ], 1 , $pr_vars [ 'priem_use_e' ][ 'name' ], 0 , 0 , 1 , 0 , 0 , 0 , $pr_vars [ 'priem_use_e' ][ 'name' ]);
}
if ( ! function_exists ( 'rand_user_team' )) {
function rand_user_team ( $tm , $tp ) {
global $btl ;
$r = array ();
$i = 0 ;
while ( $i < count ( $btl -> users )) {
if ( $btl -> users [ $i ][ 'team' ] == $tm && $tp == 1 ) {
$r [] = $btl -> users [ $i ][ 'id' ];
} elseif ( $btl -> users [ $i ][ 'team' ] != $tm && $tp == 2 ) {
$r [] = $btl -> users [ $i ][ 'id' ];
}
$i ++ ;
}
if ( count ( $r ) == 0 ) {
$r = 0 ;
} else {
$r = rand ( 0 , count ( $r ) - 1 );
}
return $r ;
}
}
if ( $pr_use > 0 )
{
2023-01-10 16:29:32 +00:00
//priem_use , priem_team_f , priem_regen БОТ ИСПОЛЬЗУЕТ ТОЛЬКО 1 ПРИЕМ
2022-06-06 21:30:34 +00:00
//if( count($pr_vars['priem_use']) > 0 && count($pr_vars['priem_team_f']) > 0 ) {
if ( rand ( 0 , 1 ) == 1 || ! isset ( $pr_vars [ 'priem_team_f' ]) ) {
$pr_vars [ 'priem_use' ] = $pr_vars [ 'priem_use' ][ rand ( 0 , count ( $pr_vars [ 'priem_use' ]) - 1 )];
$pr_vars [ 'priem_use' ] = array ( 0 => $pr_vars [ 'priem_use' ] );
unset ( $pr_vars [ 'priem_team_f' ]);
} else {
$pr_vars [ 'priem_team_f' ] = $pr_vars [ 'priem_team_f' ][ rand ( 0 , count ( $pr_vars [ 'priem_team_f' ]) - 1 )];
$pr_vars [ 'priem_team_f' ] = array ( 0 => $pr_vars [ 'priem_team_f' ] );
unset ( $pr_vars [ 'priem_use' ]);
}
//}
$i = 0 ;
while ( $i < count ( $pr_vars [ 'priem_team_f' ])) {
if ( $pr_vars [ 'priem_team_f' ][ $i ][ 'chance' ] * 10000 >= rand ( 0 , 1000000 )) {
$xx = 0 ; $ix = 0 ;
$pl = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `priems` WHERE `activ` != "-1" AND `id` = "' . $pr_vars [ 'priem_team_f' ][ $i ][ 'priem' ] . '" LIMIT 1' ));
while ( $ix < count ( $this -> users )) {
if ( $this -> stats [ $ix ][ 'hpNow' ] > 0 && $this -> users [ $ix ][ 'team' ] == $pr_vars [ 'priem_team_f' ][ $i ][ 'team' ] && $xx < $pr_vars [ 'priem_team_f' ][ $i ][ 'x' ]) {
if ( isset ( $pl [ 'id' ])) {
$pr_vars [ 'priem_team_f' ][ $i ][ 'hp_dmg' ] = $this -> testYronPriem ( $uid1 , $uid2 , 12 , $pr_vars [ 'priem_team_f' ][ $i ][ 'hp_dmg' ], - 1 , true );
$as = $priem -> magicAtack ( $this -> users [ $ix ], $pr_vars [ 'priem_team_f' ][ $i ][ 'hp_dmg' ], $pr_vars [ 'priem_team_f' ][ $i ][ 'type' ], $pl , array ( 'user_use' => $this -> users [ $this -> uids [ $uid1 ]][ 'id' ]), 0 , 0 , $pr_vars [ 'priem_team_f' ][ 0 ][ 'fiz' ], $pr_vars [ 'priem_team_f' ][ $i ][ 'nomf' ], $pr_vars [ 'priem_team_f' ][ 0 ][ 'krituet' ], $this -> users [ $this -> uids [ $uid1 ]][ 'id' ], $pr_vars [ 'priem_team_f' ][ $i ][ 'name' ]);
2023-01-10 16:29:32 +00:00
###тестирование востановления ХП после нанесенного урона. (Востанавливает)
2022-06-06 21:30:34 +00:00
if ( $as && isset ( $pr_vars [ 'priem_team_f' ][ $i ][ 'hpregen' ])) {
if ( isset ( $pr_vars [ 'priem_team_f' ][ $i ][ 'hp' ]) || isset ( $pr_vars [ 'priem_team_f' ][ $i ][ 'hp_dmg' ])) {
if ( isset ( $pr_vars [ 'priem_team_f' ][ $i ][ 'hp_dmg' ])) {
$n_hp = $this -> stats [ $this -> uids [ $uid1 ]][ 'hpNow' ] + $as [ 0 ];
$hp_vis = '+' . $as [ 0 ];
} else {
$n_hp = $this -> stats [ $this -> uids [ $uid1 ]][ 'hpNow' ] + $pr_vars [ 'priem_team_f' ][ $i ][ 'hp' ];
$hp_vis = '+' . $pr_vars [ 'priem_team_f' ][ $i ][ 'hp' ];
}
if ( $n_hp > $this -> stats [ $this -> uids [ $uid1 ]][ 'hpAll' ]) {
$n_hp = $this -> stats [ $this -> uids [ $uid1 ]][ 'hpAll' ];
}
$uid_b = $this -> users [ $this -> uids [ $uid1 ]][ 'id' ];
$this -> users [ $this -> uids [ $uid1 ]][ 'hpNow' ] = $n_hp ;
$this -> stats [ $this -> uids [ $uid1 ]][ 'hpNow' ] = $n_hp ;
mysql_query ( 'UPDATE `stats` SET `hpNow` = ' . $n_hp . ' WHERE `id` = "' . $uid_b . '" LIMIT 1' );
2023-01-10 16:29:32 +00:00
$pr_vars [ 'mas' ][ 'text' ] = '{tm1} {u1} использовал прием "<b>' . $pr_vars [ 'priem_team_f' ][ $i ][ 'name' ] . '</b>" и восстановил свое здоровье. <b><font color=#006699>' . $hp_vis . '</font></b> [' . $this -> users [ $this -> uids [ $uid1 ]][ 'hpNow' ] . '/' . $this -> stats [ $this -> uids [ $uid1 ]][ 'hpAll' ] . ']' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'mas' ][ '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' ] . '' ;
$pr_vars [ 'mas' ] = array ( 'time' => time (), 'battle' => $this -> info [ 'id' ], 'id_hod' => ( $this -> hodID + 1 ), 'text' => $pr_vars [ 'mas' ][ 'text' ], 'vars' => $pr_vars [ 'mas' ][ 'vLog' ], 'zona1' => '' , 'zonb1' => '' , 'zona2' => '' , 'zonb2' => '' , 'type' => '1' );
$this -> add_log ( $pr_vars [ 'mas' ]);
}
}
###
}
$xx ++ ;
}
$ix ++ ;
}
}
$i ++ ;
}
if ( isset ( $pr_vars [ 'priem_regen' ]) && $pr_vars [ 'priem_regen' ][ 'chance' ] * 10000 >= rand ( 0 , 1000000 )) {
if ( $this -> stats [ $this -> uids [ $uid1 ]][ 'hpAll' ] < ( $pr_vars [ 'hp_u1' ] + $pr_vars [ 'priem_regen' ][ 'hp' ]))
{
$pr_vars [ 'priem_regen' ][ 'hp' ] = $this -> stats [ $this -> uids [ $uid1 ]][ 'hpAll' ] - $pr_vars [ 'hp_u1' ];
}
$pr_vars [ 'hp_u1' ] += $pr_vars [ 'priem_regen' ][ 'hp' ];
if ( $pr_vars [ 'priem_regen' ][ 'hp' ] > 0 ) {
$pr_vars [ 'priem_regen' ][ 'hp' ] = '+' . $pr_vars [ 'priem_regen' ][ 'hp' ];
}
else
{ $pr_vars [ 'priem_regen' ][ 'hp' ] = 0 ;}
$this -> users [ $this -> uids [ $uid1 ]][ 'hpNow' ] = $pr_vars [ 'hp_u1' ];
$this -> stats [ $this -> uids [ $uid1 ]][ 'hpNow' ] = $pr_vars [ 'hp_u1' ];
mysql_query ( 'UPDATE `stats` SET `hpNow` = ' . $pr_vars [ 'hp_u1' ] . ' WHERE `id` = "' . $uid2 . '" LIMIT 1' );
if ( $pr_vars [ 'hp_u1' ] > $this -> stats [ $this -> uids [ $uid1 ]][ 'hpAll' ] ) {
$pr_vars [ 'hp_u1' ] = $this -> stats [ $this -> uids [ $uid1 ]][ 'hpAll' ];
}
2023-01-10 16:29:32 +00:00
$pr_vars [ 'mas' ][ 'text' ] = '{tm1} {u1} использовал прием "<b>' . $pr_vars [ 'priem_regen' ][ 'name' ] . '</b>" и восстановил свое здоровье. <b><font color=#006699>' . $pr_vars [ 'priem_regen' ][ 'hp' ] . '</font></b> [' . ceil ( $pr_vars [ 'hp_u1' ]) . '/' . $this -> stats [ $this -> uids [ $uid1 ]][ 'hpAll' ] . ']' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'mas' ][ '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' ] . '' ;
$pr_vars [ 'mas' ] = array ( 'time' => time (), 'battle' => $this -> info [ 'id' ], 'id_hod' => ( $this -> hodID ), 'text' => $pr_vars [ 'mas' ][ 'text' ], 'vars' => $pr_vars [ 'mas' ][ 'vLog' ], 'zona1' => '' , 'zonb1' => '' , 'zona2' => '' , 'zonb2' => '' , 'type' => '1' );
$this -> add_log ( $pr_vars [ 'mas' ]);
}
if ( isset ( $pr_vars [ 'priem_regen2' ]) && $pr_vars [ 'priem_regen2' ][ 'chance' ] * 10000 >= rand ( 0 , 1000000 )) {
$pr_vars [ 'mp_u1' ] += $pr_vars [ 'priem_regen' ][ 'mp' ];
if ( $pr_vars [ 'priem_regen' ][ 'mp' ] > 0 ) {
$pr_vars [ 'priem_regen' ][ 'mp' ] = '+' . $pr_vars [ 'priem_regen' ][ 'mp' ];
}
$this -> users [ $this -> uids [ $uid1 ]][ 'mpNow' ] = $pr_vars [ 'mp_u1' ];
$this -> stats [ $this -> uids [ $uid1 ]][ 'mpNow' ] = $pr_vars [ 'mp_u1' ];
mysql_query ( 'UPDATE `stats` SET `mpNow` = ' . $pr_vars [ 'mp_u1' ] . ' WHERE `id` = "' . $uid2 . '" LIMIT 1' );
if ( $pr_vars [ 'mp_u1' ] > $this -> stats [ $this -> uids [ $uid1 ]][ 'mpAll' ] ) {
$pr_vars [ 'mp_u1' ] = $this -> stats [ $this -> uids [ $uid1 ]][ 'mpAll' ];
}
2023-01-10 16:29:32 +00:00
$pr_vars [ 'mas' ][ 'text' ] = '{tm1} {u1} использовал прием "<b>' . $pr_vars [ 'priem_regen2' ][ 'name' ] . '</b>" и восстановил свою ману. <b><font color=#006699>' . $pr_vars [ 'priem_regen2' ][ 'mp' ] . '</font></b> [' . ceil ( $pr_vars [ 'mp_u1' ]) . '/' . $this -> stats [ $this -> uids [ $uid1 ]][ 'mpAll' ] . ']' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'mas' ][ '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' ] . '' ;
$pr_vars [ 'mas' ] = array ( 'time' => time (), 'battle' => $this -> info [ 'id' ], 'id_hod' => ( $this -> hodID ), 'text' => $pr_vars [ 'mas' ][ 'text' ], 'vars' => $pr_vars [ 'mas' ][ 'vLog' ], 'zona1' => '' , 'zonb1' => '' , 'zona2' => '' , 'zonb2' => '' , 'type' => '1' );
$this -> add_log ( $pr_vars [ 'mas' ]);
}
$i = 0 ;
while ( $i < count ( $pr_vars [ 'priem_use' ])) {
if ( isset ( $pr_vars [ 'priem_use' ][ $i ]) && $pr_vars [ 'priem_use' ][ $i ][ 'chance' ] >= rand ( 0 , 100 )) {
$pl = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `priems` WHERE `activ` != "-1" AND `id` = "' . mysql_real_escape_string ( $pr_vars [ 'priem_use' ][ $i ][ 'id' ]) . '" LIMIT 1' ));
if ( isset ( $pl [ 'zad' ])){ $pl [ 'zad' ] = 0 ;}
if ( isset ( $pl [ 'id' ]) && $pl [ 'id' ] == 290 ) {
$priem -> magicAtack ( $pr_vars [ 'priem_use' ][ $i ][ 'on' ], 100 , $pr_vars [ 'priem_use' ][ $i ][ 'type' ], $pl , array ( 'user_use' => $uid1 ), 0 , 0 , 0 , 0 , true , $this -> users [ $this -> uids [ $uid1 ]][ 'id' ], $pl [ 'name' ]);
}
if ( isset ( $pl [ 'id' ])) {
$rcu = false ;
$j = $u -> lookStats ( $pl [ 'date2' ]);
$mpr = false ; $addch = 0 ;
$uid = $this -> users [ $this -> uids [ $uid1 ]][ 'id' ];
if ( isset ( $pr_vars [ 'priem_use' ][ $i ][ 'on' ][ 'id' ])) {
$uid = $pr_vars [ 'priem_use' ][ $i ][ 'on' ][ 'id' ];
}
if ( isset ( $j [ 'onlyOne' ])) {
$mpr = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `eff_users` WHERE `v2` = "' . $pl [ 'id' ] . '" AND `uid` = "' . $uid . '" AND `delete` = 0 LIMIT 1' ));
}
$pld = array ( 0 => '' ); $nc = 0 ;
if ( isset ( $mpr [ 'id' ]) && $j [ 'onlyOne' ] == 1 ) {
$addch = 1 ;
//$priem->mintr($pl);
$priem -> uppz ( $pl , $id );
if ( isset ( $pr_vars [ 'priem_use' ][ $i ][ 'on' ][ 'id' ])) {
$this -> stats [ $this -> uids [ $uid ]] = $u -> getStats ( $pr_vars [ 'priem_use' ][ $i ][ 'on' ], 0 );
} else {
$this -> stats [ $this -> uids [ $uid ]] = $u -> getStats ( $this -> users [ $this -> uids [ $uid1 ]], 0 );
}
$nc = 1 ;
} elseif ( ! isset ( $mpr [ 'id' ])) {
$data = '' ;
if ( isset ( $j [ 'date3Plus' ])) {
$data = $priem -> redate ( $pl [ 'date3' ], $this -> users [ $this -> uids [ $uid1 ]][ 'id' ]);
}
$hd1 = - 1 ;
if ( $pl [ 'limit' ] > 0 ) {
$tm = 77 ;
$hd1 = $pl [ 'limit' ];
} else {
$tm = 77 ;
}
mysql_query ( 'INSERT INTO `eff_users` (`hod`, `v2`, `img2`, `id_eff`, `uid`, `name`, `data`, `overType`, `timeUse`, `v1`, `user_use`) VALUES ("' . $hd1 . '", "' . $pl [ 'id' ] . '", "' . $pl [ 'img' ] . '.gif", 22, "' . $uid . '", "' . $pr_vars [ 'priem_use' ][ $i ][ 'name' ] . '", "' . $data . '", 0, "' . $tm . '", "priem", "' . $uid . '")' ); //$this->users[$this->uids[$uid1]]['id']
unset ( $hd1 );
$addch = 1 ; $rcu = true ; $nc = 1 ;
//$priem->mintr($pl);
$priem -> uppz ( $pl , $id );
} elseif ( $j [ 'onlyOne' ] > 1 ) {
if ( $mpr [ 'x' ] < $j [ 'onlyOne' ]) {
if ( isset ( $j [ 'date3Plus' ])) {
$j1 = $u -> lookStats ( $mpr [ 'data' ]);
$j2 = $u -> lookStats ( $priem -> redate ( $pl [ 'date3' ], $this -> users [ $this -> uids [ $uid1 ]][ 'id' ]));
$v = $u -> lookKeys ( $priem -> redate ( $pl [ 'date3' ], $this -> users [ $this -> uids [ $uid1 ]][ 'id' ]), 0 );
$i56 = 0 ; $inf = '' ;
while ( $i56 < count ( $v )) {
$j1 [ $v [ $i56 ]] += $j2 [ $v [ $i56 ]];
$vi = str_replace ( 'add_' , '' , $v [ $i56 ]);
if ( $u -> is [ $vi ] != '' ) {
if ( $j2 [ $v [ $i56 ]] > 0 ) {
$inf .= $u -> is [ $vi ] . ': +' . ( $j2 [ $v [ $i56 ]] * ( 1 + $mpr [ 'x' ])) . ', ' ;
} elseif ( $j2 [ $v [ $i56 ]] < 0 ) {
$inf .= $u -> is [ $vi ] . ': ' . ( $j2 [ $v [ $i56 ]] * ( 1 + $mpr [ 'x' ])) . ', ' ;
}
}
$i56 ++ ;
}
$inf = rtrim ( $inf , ', ' );
$j1 = $u -> impStats ( $j1 );
$pld [ 0 ] = ' x' . ( $mpr [ 'x' ] + 1 );
$upd = mysql_query ( 'UPDATE `eff_users` SET `data` = "' . $j1 . '", `x` = `x`+1 WHERE `id` = "' . $mpr [ 'id' ] . '" LIMIT 1' );
if ( $upd ) {
//$priem->mintr($pl);
$priem -> uppz ( $pl , $id );
$addch = 1 ;
$rcu = true ;
$nc = 1 ;
}
}
}
}
}
if ( $rcu == true && ! isset ( $pr_vars [ 'priem_use' ][ $i ][ 'no_chat' ])) {
if ( $inf != '' ) {
$inf = '(' . $inf . ')' ;
}
if ( $this -> users [ $this -> uids [ $uid1 ]][ 'id' ] != $uid ) {
if ( isset ( $inf )) {
2023-01-10 16:29:32 +00:00
$pr_vars [ 'mas' ][ 'text' ] = '{tm1} {u1} использовал прием "<b>' . $pr_vars [ 'priem_use' ][ $i ][ 'name' ] . $pld [ 0 ] . '</b>" на персонажа {u2}. <small>' . $inf . '</small>' ;
2022-06-06 21:30:34 +00:00
} else {
2023-01-10 16:29:32 +00:00
$pr_vars [ 'mas' ][ 'text' ] = '{tm1} {u1} использовал прием "<b>' . $pr_vars [ 'priem_use' ][ $i ][ 'name' ] . $pld [ 0 ] . '</b>" на персонажа {u2}.' ;
2022-06-06 21:30:34 +00:00
}
} else {
if ( isset ( $inf )) {
2023-01-10 16:29:32 +00:00
$pr_vars [ 'mas' ][ 'text' ] = '{tm1} {u1} использовал прием "<b>' . $pr_vars [ 'priem_use' ][ $i ][ 'name' ] . $pld [ 0 ] . '</b>". <small>' . $inf . '</small>' ;
2022-06-06 21:30:34 +00:00
} else {
2023-01-10 16:29:32 +00:00
$pr_vars [ 'mas' ][ 'text' ] = '{tm1} {u1} использовал прием "<b>' . $pr_vars [ 'priem_use' ][ $i ][ 'name' ] . $pld [ 0 ] . '</b>".' ;
2022-06-06 21:30:34 +00:00
}
}
$pr_vars [ 'mas' ][ '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' ] . '' ;
$pr_vars [ 'mas' ] = array ( 'time' => time (), 'battle' => $this -> info [ 'id' ], 'id_hod' => ( $this -> hodID ), 'text' => $pr_vars [ 'mas' ][ 'text' ], 'vars' => $pr_vars [ 'mas' ][ 'vLog' ], 'zona1' => '' , 'zonb1' => '' , 'zona2' => '' , 'zonb2' => '' , 'type' => '1' );
$this -> add_log ( $pr_vars [ 'mas' ]);
}
}
$i ++ ;
}
if ( isset ( $pr_vars [ 'priem_use_p' ][ 'kolvo' ]) && isset ( $pr_vars [ 'priem_use_p' ][ 'd_min' ]) && isset ( $pr_vars [ 'priem_use_p' ][ 'd_max' ]))
{
2023-01-10 16:29:32 +00:00
$pr_vars [ 'mas' ][ 'text' ] = '{tm1} {u1} использовал прием "<b>Парализация</b>" на {u2}' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'mas' ][ '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' ] . '' ;
$pr_vars [ 'mas' ] = array ( 'time' => time (), 'battle' => $this -> info [ 'id' ], 'id_hod' => ( $this -> hodID ), 'text' => $pr_vars [ 'mas' ][ 'text' ], 'vars' => $pr_vars [ 'mas' ][ 'vLog' ], 'zona1' => '' , 'zonb1' => '' , 'zona2' => '' , 'zonb2' => '' , 'type' => '1' );
$this -> add_log ( $pr_vars [ 'mas' ]);
$i = 0 ;
while ( $i < $pr_vars [ 'priem_use_p' ][ 'kolvo' ])
{
2023-01-10 16:29:32 +00:00
$pr_vars [ 'mas' ][ 'text' ] = '{tm1} {u2} Пропустил ход!' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'mas' ][ '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' ] . '' ;
$pr_vars [ 'mas' ] = array ( 'time' => time (), 'battle' => $this -> info [ 'id' ], 'id_hod' => ( $this -> hodID ), 'text' => $pr_vars [ 'mas' ][ 'text' ], 'vars' => $pr_vars [ 'mas' ][ 'vLog' ], 'zona1' => '' , 'zonb1' => '' , 'zona2' => '' , 'zonb2' => '' , 'type' => '1' );
$this -> add_log ( $pr_vars [ 'mas' ]);
//
$dmg = rand ( $pr_vars [ 'priem_use_p' ][ 'd_min' ], $pr_vars [ 'priem_use_p' ][ 'd_max' ]);
$this -> stats [ $this -> uids [ $uid2 ]][ 'hpNow' ] = $this -> stats [ $this -> uids [ $uid2 ]][ 'hpNow' ] - $dmg ;
if ( $this -> stats [ $this -> uids [ $uid2 ]][ 'hpNow' ] <= 0 ){ $this -> stats [ $this -> uids [ $uid2 ]][ 'hpNow' ] = 0 ;}
mysql_query ( 'UPDATE `stats` SET `hpNow` = ' . $this -> stats [ $this -> uids [ $uid2 ]][ 'hpNow' ] . ' WHERE `id` = "' . $uid2 . '" LIMIT 1' );
2023-01-10 16:29:32 +00:00
$pr_vars [ 'mas' ][ 'text' ] = '{tm1} {zn2_4} {u2} {1x1x9}{1x2x2}{2x3x0} {u1} {2x4x9}{2x5x1}{2x6x0} {1x7x2} по левой ягодице. <font title=(правая рука) color=#0066aa><b>-' . $dmg . '</font></b> [' . ceil ( $this -> stats [ $this -> uids [ $uid2 ]][ 'hpNow' ]) . '/' . $this -> stats [ $this -> uids [ $uid2 ]][ 'hpAll' ] . ']' ;
2022-06-06 21:30:34 +00:00
$pr_vars [ 'mas' ][ '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' ] . '' ;
$pr_vars [ 'mas' ] = array ( 'time' => time (), 'battle' => $this -> info [ 'id' ], 'id_hod' => ( $this -> hodID ), 'text' => $pr_vars [ 'mas' ][ 'text' ], 'vars' => $pr_vars [ 'mas' ][ 'vLog' ], 'zona1' => '' , 'zonb1' => '' , 'zona2' => '' , 'zonb2' => '' , 'type' => '1' );
$this -> add_log ( $pr_vars [ 'mas' ]);
2023-01-10 16:29:32 +00:00
//Тест спасение смерть----------------------
2022-06-06 21:30:34 +00:00
$this -> spaCheck ( $this -> users [ $this -> uids [ $uid2 ]][ 'id' ]);
//----------------
$i ++ ;
}
//------------------------------------------
}
unset ( $pr_use , $pr_vars );
}
}
}
?>