1502 lines
64 KiB
PHP
1502 lines
64 KiB
PHP
<?
|
|
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){
|
|
|
|
###=======================Ïîòåðÿííûé âõîä íà÷àëî ========================== ###
|
|
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 = array(
|
|
'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'] = 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']);
|
|
|
|
}
|
|
}
|
|
// Êîíåö
|
|
|
|
}
|
|
|
|
|
|
###======================Êîíåö Êàòàêîìá===================###
|
|
|
|
|
|
#############################################################
|
|
|
|
|
|
###======================Íà÷àëî Èçëîìà====================###
|
|
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'] = 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)
|
|
{
|
|
//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'] = 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']);
|
|
###òåñòèðîâàíèå âîñòàíîâëåíèÿ ÕÏ ïîñëå íàíåñåííîãî óðîíà. (Âîñòàíàâëèâàåò)
|
|
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'] = 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'];
|
|
}
|
|
$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'] = 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'];
|
|
}
|
|
$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'] = 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)) {
|
|
$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'] = 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']))
|
|
{
|
|
$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'] = 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'])
|
|
{
|
|
$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'] = 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');
|
|
$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'] = 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']);
|
|
//Òåñò ñïàñåíèå ñìåðòü----------------------
|
|
$this->spaCheck($this->users[$this->uids[$uid2]]['id']);
|
|
//----------------
|
|
|
|
$i++;
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------
|
|
|
|
}
|
|
|
|
|
|
unset($pr_use, $pr_vars);
|
|
}
|
|
}
|
|
}
|
|
?>
|