1430 lines
81 KiB
PHP
1430 lines
81 KiB
PHP
<?php
|
||
if (!defined('GAME')) {
|
||
die();
|
||
}
|
||
|
||
if ($e['bm_a1'] == 'bot_priems1') {
|
||
unset($pr_vars);
|
||
$pr_use = 0;
|
||
$pr_vars = ['hp_u1' => $this->users[$this->uids[$uid1]]['hpNow'], 'hp_u2' => $this->users[$this->uids[$uid2]]['hpNow']];
|
||
|
||
if ($this->users[$this->uids[$uid1]]['hpNow'] > 0) {
|
||
|
||
###=======================Потерянный вход начало ========================== ###
|
||
if ($this->users[$this->uids[$uid1]]['bot_id'] == 499) {
|
||
//Сила
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 12;
|
||
$pr_vars['priem_use'][0]['name'] = 'Проклятье Валлуара';
|
||
$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;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Кровавый Плевок';
|
||
$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) {
|
||
### Боль
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 8;
|
||
$pr_vars['priem_use'][0]['name'] = 'Ошеломить';
|
||
$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;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Вспышка Боли';
|
||
$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) {
|
||
### Душа
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Ошеломить';
|
||
$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;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Темный Удар';
|
||
$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) {
|
||
### Меткий Глаз
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 20;
|
||
$pr_vars['priem_use'][0]['name'] = 'Снайпер';
|
||
$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) {
|
||
### Заправщик
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 15;
|
||
$pr_vars['priem_use'][0]['name'] = 'Храбрый Дух';
|
||
$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) {
|
||
### Тяжпех ( пропуск на 7 ходов )
|
||
$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) {
|
||
### Злыдень ( пропуск на 3 хода )
|
||
$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) {
|
||
### Бугаг ( пуропуск на 5 ходов )
|
||
$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) {
|
||
### Буйвол ( пропуск на 7 ходов )
|
||
$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) {
|
||
### Гнеющий Дух
|
||
if (rand(1, 100) > 90 && mt_rand(1, 100) > 50) {
|
||
$pr_vars['priem_use_e']['name'] = "Гниение";
|
||
$pr_vars['priem_use_e']['uron'] = floor($this->stats[$this->uids[$uid2]]['hpAll'] / 5);
|
||
}
|
||
}
|
||
###====================Потерянный вход Конец=======================###
|
||
|
||
|
||
###================================================================###
|
||
|
||
|
||
###====================КАТАКОМБЫ БОТЫ ПРИЕМЫ НАЧАЛО================###
|
||
elseif ($this->users[$this->uids[$uid1]]['bot_id'] == 287 || $this->users[$this->uids[$uid1]]['bot_id'] == 286) {
|
||
//Древний страж
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Стойкость';
|
||
$pr_vars['priem_use'][0]['id'] = 13;
|
||
$pr_vars['priem_use'][0]['on'] = $this->users[$this->uids[$uid1]];
|
||
|
||
//Пламенная вспышка
|
||
$pr_vars['priem_team_f'][0]['chance'] = 15;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Пламенная Вспышка';
|
||
$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) {
|
||
//Шут повелителя
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 15;
|
||
$pr_vars['priem_use'][0]['name'] = 'Ярость';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Стойкость';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Шокирующий удар';
|
||
$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) {
|
||
//Волшебный фокус ворует 8-12% маны
|
||
$pr_vars['priem_regen2']['mp'] = floor($this->stats[$this->uids[$uid2]]['hpAll'] / 100 * rand(8, 12));
|
||
$pr_vars['priem_regen2']['chance'] = 50;
|
||
$pr_vars['priem_regen2']['name'] = 'Волшебный Фокус';
|
||
$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) {
|
||
//Украсть душу
|
||
$pr_vars['priem_regen']['hp'] = floor($this->stats[$this->uids[$uid2]]['hpAll'] - 1);
|
||
$pr_vars['priem_regen']['chance'] = 100;
|
||
$pr_vars['priem_regen']['name'] = 'Украсть Душу';
|
||
$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;
|
||
$pr_vars['priem_use'][3]['name'] = 'Украденная Душа';
|
||
$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;
|
||
$pr_vars['priem_use'][3]['name'] = 'Честная Игра';
|
||
$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) {
|
||
//Проклятые
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 5;
|
||
$pr_vars['priem_use'][0]['name'] = 'Абсолютная Защита';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Усиленные Удары';
|
||
$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;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Проклятый Удар';
|
||
$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) {
|
||
##Зомби
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Проклятье Голодного Мертвеца';
|
||
$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;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Ядовитый Укус';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Стылое касание';
|
||
$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) {
|
||
### Пипка
|
||
$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) {
|
||
### Офицер Глубин
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_regen']['hp'] = 500;
|
||
$pr_vars['priem_regen']['chance'] = 3;
|
||
$pr_vars['priem_regen']['name'] = 'Эликсир лечения';
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 9;
|
||
$pr_vars['priem_use'][0]['name'] = 'Ярость';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Сонный яд';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Танец Лезвий';
|
||
$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) {
|
||
### Трупожор
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Пришпилить';
|
||
$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;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Сожрать';
|
||
$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) {
|
||
### Слизь
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Ярость';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Поцелуй Слизи';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Удачный удар';
|
||
$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;
|
||
$pr_vars['priem_use'][3]['name'] = 'Хлебнуть Крови';
|
||
$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;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Кислотный Плевок';
|
||
$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) {
|
||
### Повелитель
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Ярость Павших';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Обреченность';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Проклятье Стражей';
|
||
$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;
|
||
$pr_vars['priem_use'][3]['name'] = 'Защита Ангела';
|
||
$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) {
|
||
### Чернокнижник
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 5;
|
||
$pr_vars['priem_use'][0]['name'] = 'Ярость';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Стойкость';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Проклятье Тьмы';
|
||
$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;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Касание Тьмы';
|
||
$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) {
|
||
### Епископ
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_regen']['hp'] = 300;
|
||
$pr_vars['priem_regen']['chance'] = 3;
|
||
$pr_vars['priem_regen']['name'] = 'Лечение';
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Святая Ярость';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Обречённость';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Абсолютная Защита';
|
||
$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;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Разрушение';
|
||
$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) {
|
||
### Проклятый Пленник
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_regen']['hp'] = 300;
|
||
$pr_vars['priem_regen']['chance'] = 3;
|
||
$pr_vars['priem_regen']['name'] = 'Свежая Кровь';
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 8;
|
||
$pr_vars['priem_use'][0]['name'] = 'Точный Удар';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Абсолютная Защита';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Танец Ветра';
|
||
$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;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Взрыв';
|
||
$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;
|
||
|
||
// Попытка клонирования
|
||
if (rand(0, 100) > 80) //&& rand(0,100) < 5
|
||
|
||
{
|
||
$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'));
|
||
$bot_cou = $bot_cou[0] + 1;
|
||
|
||
if ($bot_cou < 2 && $this->stats[$this->uids[$uid1]]['hpNow'] <= $this->stats[$this->uids[$uid1]]['hpAll'] / 2) {
|
||
$clone = [
|
||
'id' => $this->users[$this->uids[$uid2]]['id'],
|
||
'login' => $this->users[$this->uids[$uid2]]['login'] . ' (клон ' . $bot_cou . ')',
|
||
'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');
|
||
//Доабвляем лог
|
||
|
||
$pr_vars['mas']['text'] = '{tm1} {u1} использовал прием "<b>Клонирование</b>" и призвал клона<b> ' . $this->users[$this->uids[$uid2]]['login'] . '</b>.';
|
||
$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'] = ['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']);
|
||
|
||
}
|
||
}
|
||
// Конец
|
||
|
||
}
|
||
|
||
|
||
###======================Конец Катакомб===================###
|
||
|
||
|
||
#############################################################
|
||
|
||
|
||
###======================Начало Излома====================###
|
||
elseif ($this->users[$this->uids[$uid1]]['bot_id'] == 416) {
|
||
$pr_use = 1;
|
||
#Валентайский Охотник#
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 7;
|
||
$pr_vars['priem_use'][0]['name'] = 'Танец Ветра';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Предвидение';
|
||
$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;
|
||
#Шипокрыл Хаоса#
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 7;
|
||
$pr_vars['priem_use'][0]['name'] = 'Сокрушающий Удар';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Усиленные Удары';
|
||
$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;
|
||
#Шипокрыл#
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 15;
|
||
$pr_vars['priem_use'][0]['name'] = 'Сильный Удар';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Слепая Удача';
|
||
$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;
|
||
#Лик Хаоса#
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Жажда Крови';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Призрачная Защита';
|
||
$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
|
||
$pr_vars['priem_use'][2]['name'] = 'Удачный Удар';
|
||
$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;
|
||
#Фанатик Хаоса#
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Обреченность';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Разгадать Тактику';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Кровожадность';
|
||
$pr_vars['priem_use'][2]['id'] = 305;
|
||
$pr_vars['priem_use'][2]['on'] = $this->users[$this->uids[$uid1]];
|
||
#1#
|
||
}
|
||
###==========================КОНЕЦ ИЗЛОМА=====================###
|
||
|
||
|
||
#################################################################
|
||
|
||
|
||
###==========================Начало Грибницы==================###
|
||
elseif ($this->users[$this->uids[$uid1]]['bot_id'] == 295) {
|
||
$pr_use = 1;
|
||
#Пылающий Паразит
|
||
/*if( $this->stats[$this->uids[$uid1]]['hpNow'] <= $this->stats[$this->uids[$uid2]]['hpAll']/2 )
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Пожирающее Пламя';
|
||
$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;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Испепеление';
|
||
$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;
|
||
#Искрящийся Паразит
|
||
$pr_vars['priem_team_f'][0]['chance'] = 20;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Молния';
|
||
$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;
|
||
$pr_vars['priem_team_f'][1]['name'] = 'Искра';
|
||
$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;
|
||
#Гусенец с 1 этажа#
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Свернутся';
|
||
$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;
|
||
#Гусенец с 3 этажа#
|
||
if ($this->stats[$this->uids[$uid1]]['hpNow'] <= $this->stats[$this->uids[$uid2]]['hpAll'] / 4)
|
||
$pr_vars['priem_use'][0]['chance'] = 25;
|
||
$pr_vars['priem_use'][0]['name'] = 'Свернутся';
|
||
$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;
|
||
#скользкий рогоносец#
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Вязкая Слизь';
|
||
$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) {
|
||
###Изгнанник Мглы [9]
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Второе дыхание';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Удар серпом';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Полная защита';
|
||
$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;
|
||
$pr_vars['priem_use'][3]['name'] = 'Сильный удар';
|
||
$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;
|
||
$pr_vars['priem_use'][4]['name'] = 'Слепая удача';
|
||
$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;
|
||
$pr_vars['priem_use'][5]['name'] = 'Стойкость';
|
||
$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;
|
||
$pr_vars['priem_use'][6]['name'] = 'Ярость';
|
||
$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;
|
||
$pr_vars['priem_regen']['name'] = 'Воля к победе';
|
||
|
||
} elseif ($this->users[$this->uids[$uid1]]['bot_id'] == 125) {
|
||
###Страж Крантон [9]
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 5;
|
||
$pr_vars['priem_use'][0]['name'] = 'Удар правым жвалом';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Удачный удар';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Коварный уход';
|
||
$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;
|
||
$pr_vars['priem_use'][3]['name'] = 'Стойкость';
|
||
$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;
|
||
$pr_vars['priem_use'][4]['name'] = 'Ярость';
|
||
$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;
|
||
$pr_vars['priem_regen']['name'] = 'Воля к победе';
|
||
} elseif ($this->users[$this->uids[$uid1]]['bot_id'] == 356) {
|
||
###Страж Дайтон [9] - Бездна 1 этаж
|
||
$pr_use = 1;
|
||
$pr_vars['priem_regen']['hp'] = 45;
|
||
$pr_vars['priem_regen']['chance'] = 5;
|
||
$pr_vars['priem_regen']['name'] = 'Воля к победе';
|
||
|
||
$pr_vars['priem_team_f'][0]['chance'] = 20;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Удар правым жвалом';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Ярость';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Коварный уход';
|
||
$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;
|
||
$pr_vars['priem_use'][3]['name'] = 'Удачный удар';
|
||
$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) {
|
||
### Кошмар Глубин [12] - Бездна 3 этаж
|
||
|
||
$pr_use = 1;
|
||
// Подставить лоб - аналог Полной Защите
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Подставить лоб';
|
||
$pr_vars['priem_use'][0]['id'] = 45;
|
||
$pr_vars['priem_use'][0]['on'] = $this->users[$this->uids[$uid1]];
|
||
|
||
// Раздавить - аналог Скрытой Силе.
|
||
$pr_vars['priem_use'][1]['chance'] = 10;
|
||
$pr_vars['priem_use'][1]['name'] = 'Раздавить';
|
||
$pr_vars['priem_use'][1]['id'] = 216;
|
||
$pr_vars['priem_use'][1]['on'] = $this->users[$this->uids[$uid1]];
|
||
|
||
// Удар Хвостом - наносит моментальный урон.
|
||
$pr_vars['priem_team_f'][0]['chance'] = 10;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Удар Хвостом';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Стойкость';
|
||
$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;
|
||
$pr_vars['priem_use'][3]['name'] = 'Ярость';
|
||
$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) {
|
||
### Гарл Йонни Салистон [9] - Бездна 3 этаж
|
||
|
||
// Хлебнуть Крови
|
||
$pr_vars['priem_use'][0]['chance'] = 16;
|
||
$pr_vars['priem_use'][0]['name'] = 'Хлебнуть Крови';
|
||
$pr_vars['priem_use'][0]['id'] = 240;
|
||
$pr_vars['priem_use'][0]['on'] = $this->users[$this->uids[$uid1]];
|
||
|
||
// Слепая удача.
|
||
$pr_vars['priem_use'][1]['chance'] = 20;
|
||
$pr_vars['priem_use'][1]['name'] = 'Слепая удача';
|
||
$pr_vars['priem_use'][1]['id'] = 47;
|
||
$pr_vars['priem_use'][1]['on'] = $this->users[$this->uids[$uid1]];
|
||
|
||
// Ярость - лечится на 3000HP.
|
||
$pr_vars['priem_regen']['hp'] = 1500;
|
||
$pr_vars['priem_regen']['chance'] = 10;
|
||
$pr_vars['priem_regen']['name'] = 'Дикость';
|
||
|
||
$pr_use = 1;
|
||
} elseif ($this->users[$this->uids[$uid1]]['bot_id'] == 350) {
|
||
|
||
//Служитель глубин 8
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_regen']['hp'] = 45;
|
||
$pr_vars['priem_regen']['chance'] = 5;
|
||
$pr_vars['priem_regen']['name'] = 'Воля к победе';
|
||
|
||
$pr_vars['priem_team_f'][0]['chance'] = 5;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Проклятье Бездны';
|
||
$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) {
|
||
### Служитель Глубин [9] - Бездна 1-3 этаж
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_regen']['hp'] = 45;
|
||
$pr_vars['priem_regen']['chance'] = 5;
|
||
$pr_vars['priem_regen']['name'] = 'Воля к победе';
|
||
|
||
$pr_vars['priem_team_f'][0]['chance'] = 10;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Проклятье Бездны';
|
||
$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) {
|
||
### Смерть - тропа
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_regen']['hp'] = 1500;
|
||
$pr_vars['priem_regen']['chance'] = 5;
|
||
$pr_vars['priem_regen']['name'] = 'Воля к победе';
|
||
|
||
$pr_vars['priem_team_f'][0]['chance'] = 10;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Смертельная Рана';
|
||
$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) {
|
||
### Повелитель
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Ярость Валлуара';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Сокрушающий Удар';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Проклятье Валлуара';
|
||
$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;
|
||
$pr_vars['priem_use'][3]['name'] = 'Защита Валлуара';
|
||
$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) {
|
||
### Большой Тяжелый Молот [9] - Бездна 3 этаж
|
||
// Удачный удар.
|
||
$pr_vars['priem_use'][0]['chance'] = 25;
|
||
$pr_vars['priem_use'][0]['name'] = 'Удачный удар';
|
||
$pr_vars['priem_use'][0]['id'] = 11;
|
||
$pr_vars['priem_use'][0]['on'] = $this->users[$this->uids[$uid1]];
|
||
|
||
// Активная защита.
|
||
$pr_vars['priem_use'][1]['chance'] = 10;
|
||
$pr_vars['priem_use'][1]['name'] = 'Полная защита';
|
||
$pr_vars['priem_use'][1]['id'] = 45;
|
||
$pr_vars['priem_use'][1]['on'] = $this->users[$this->uids[$uid1]];
|
||
|
||
// Стойкость.
|
||
$pr_vars['priem_use'][2]['chance'] = 15;
|
||
$pr_vars['priem_use'][2]['name'] = 'Стойкость';
|
||
$pr_vars['priem_use'][2]['id'] = 13;
|
||
$pr_vars['priem_use'][2]['on'] = $this->users[$this->uids[$uid1]];
|
||
|
||
// Ярость.
|
||
$pr_vars['priem_use'][3]['chance'] = 15;
|
||
$pr_vars['priem_use'][3]['name'] = 'Ярость';
|
||
$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) {
|
||
###Маул Счастливчик [8]
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 15;
|
||
$pr_vars['priem_use'][0]['name'] = 'Удар Феникса';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Слепая удача';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Активная защита';
|
||
$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;
|
||
$pr_vars['priem_use'][3]['name'] = 'Стойкость';
|
||
$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;
|
||
$pr_vars['priem_use'][4]['name'] = 'Ярость';
|
||
$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) {
|
||
###Заблудшая Душа [10]
|
||
###To Do : Призрачный удар, Крик души
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Призрачная защита';
|
||
$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) {
|
||
###Страж Сокровищ [11]
|
||
###To Do : Сотрясение, Проклятье стража, Раздавить, Сотрясение мозга
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 8;
|
||
$pr_vars['priem_use'][0]['name'] = 'Обреченность';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Ошеломить';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Точный Удар';
|
||
$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) {
|
||
###Механический Убийца [10]
|
||
###To Do : Взрыв, Глубокая рана
|
||
$pr_use = 1;
|
||
$pr_vars['priem_use'][0]['chance'] = 18;
|
||
$pr_vars['priem_use'][0]['name'] = 'Точный Удар';
|
||
$pr_vars['priem_use'][0]['id'] = 219;
|
||
$pr_vars['priem_use'][0]['on'] = $this->users[$this->uids[$uid1]];
|
||
|
||
|
||
//Зловонная Вода
|
||
$pr_vars['priem_team_f'][0]['chance'] = 25;
|
||
$pr_vars['priem_team_f'][0]['name'] = 'Зловонная Вода';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Зловонная Вода';
|
||
$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) {
|
||
###Мастер Грит [11]
|
||
###To Do : Холодный Луч, Оюжигающее пламя, Тяжесть земли, Молния, Истинная форма, Самоуничтожение, Двойной удар, Оглушающий удар
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 15;
|
||
$pr_vars['priem_use'][0]['name'] = 'Вонючая Слизь';
|
||
$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) {
|
||
###Механический Охранник [10]
|
||
###To Do : Вспышка, Обнять
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 15;
|
||
$pr_vars['priem_use'][0]['name'] = 'Сокрушающий Удар';
|
||
$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) {
|
||
###Древнее проклятие Глубин [9]
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_regen']['hp'] = 18;
|
||
$pr_vars['priem_regen']['chance'] = 7;
|
||
$pr_vars['priem_regen']['name'] = 'Утереть пот';
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 3;
|
||
$pr_vars['priem_use'][0]['name'] = 'Подставить лоб';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Раздавить';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Активная защита';
|
||
$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;
|
||
$pr_vars['priem_use'][3]['name'] = 'Удачный удар';
|
||
$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;
|
||
$pr_vars['priem_use'][4]['name'] = 'Стойкость';
|
||
$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;
|
||
$pr_vars['priem_use'][5]['name'] = 'Ярость';
|
||
$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) {
|
||
###берсерк
|
||
$pr_use = 1;
|
||
|
||
$pr_vars['priem_regen']['hp'] = 75;
|
||
$pr_vars['priem_regen']['chance'] = 5;
|
||
$pr_vars['priem_regen']['name'] = 'Регенерация';
|
||
|
||
$pr_vars['priem_use'][0]['chance'] = 10;
|
||
$pr_vars['priem_use'][0]['name'] = 'Удачный удар';
|
||
$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;
|
||
$pr_vars['priem_use'][1]['name'] = 'Ярость';
|
||
$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;
|
||
$pr_vars['priem_use'][2]['name'] = 'Раздробить череп';
|
||
$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'])) {
|
||
$pr_vars['mas']['text'] = '{tm1} {u1} использовал прием "<b>' . $pr_vars['priem_use_e']['name'] . '</b>" на {u2}';
|
||
$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'] = ['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 = [];
|
||
$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) {
|
||
//priem_use , priem_team_f , priem_regen БОТ ИСПОЛЬЗУЕТ ТОЛЬКО 1 ПРИЕМ
|
||
//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'] = [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'] = [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, ['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']);
|
||
###тестирование востановления ХП после нанесенного урона. (Востанавливает)
|
||
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');
|
||
$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'] . ']';
|
||
$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'] = ['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'];
|
||
}
|
||
$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'] . ']';
|
||
$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'] = ['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'];
|
||
}
|
||
$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'] . ']';
|
||
$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'] = ['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, ['user_use' => $uid1], 0, 0, 0, 0, true, $this->users[$this->uids[$uid1]]['id'], $pl['name']);
|
||
}
|
||
|
||
if (isset($pl['id'])) {
|
||
$rcu = false;
|
||
$j = Helper\Conversion::dataStringToArray($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 = [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 = Helper\Conversion::dataStringToArray($mpr['data']);
|
||
$j2 = Helper\Conversion::dataStringToArray($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 = Helper\Conversion::arrayToDataString($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)) {
|
||
$pr_vars['mas']['text'] = '{tm1} {u1} использовал прием "<b>' . $pr_vars['priem_use'][$i]['name'] . $pld[0] . '</b>" на персонажа {u2}. <small>' . $inf . '</small>';
|
||
} else {
|
||
$pr_vars['mas']['text'] = '{tm1} {u1} использовал прием "<b>' . $pr_vars['priem_use'][$i]['name'] . $pld[0] . '</b>" на персонажа {u2}.';
|
||
}
|
||
} else {
|
||
if (isset($inf)) {
|
||
$pr_vars['mas']['text'] = '{tm1} {u1} использовал прием "<b>' . $pr_vars['priem_use'][$i]['name'] . $pld[0] . '</b>". <small>' . $inf . '</small>';
|
||
} else {
|
||
$pr_vars['mas']['text'] = '{tm1} {u1} использовал прием "<b>' . $pr_vars['priem_use'][$i]['name'] . $pld[0] . '</b>".';
|
||
}
|
||
}
|
||
$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'] = ['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'])) {
|
||
$pr_vars['mas']['text'] = '{tm1} {u1} использовал прием "<b>Парализация</b>" на {u2}';
|
||
$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'] = ['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']) {
|
||
$pr_vars['mas']['text'] = '{tm1} {u2} Пропустил ход!';
|
||
$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'] = ['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');
|
||
$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'] . ']';
|
||
$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'] = ['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']);
|
||
//Тест спасение смерть----------------------
|
||
$this->spaCheck($this->users[$this->uids[$uid2]]['id']);
|
||
//----------------
|
||
|
||
$i++;
|
||
}
|
||
|
||
|
||
//------------------------------------------
|
||
|
||
}
|
||
|
||
|
||
unset($pr_use, $pr_vars);
|
||
}
|
||
}
|
||
}
|
||
?>
|