@@ -2182,19 +2182,13 @@ class Battle
|
||||
|
||||
if (isset($pld['id'])) {
|
||||
if ($this->users[$i]['battle_yron'] >= 500) {
|
||||
\User\ItemsModel::addItem(4754, $pld['id'], '');
|
||||
\User\ItemsModel::addItem(4754, $pld['id'], '');
|
||||
\User\ItemsModel::addItem(4754, $pld['id'], '');
|
||||
\User\ItemsModel::addItem(4754, $pld['id'], '');
|
||||
\User\ItemsModel::addItem(4754, $pld['id'], '');
|
||||
$pld['battle_text'] .= ' За Героическое Сражение вы получаете <strong>Реликвия Ангела (x5)</strong>. ';
|
||||
mysql_query(
|
||||
'UPDATE `users_achiv` SET `pg`= `pg`+1 WHERE `id` = "' . $pld['id'] . '" LIMIT 1'
|
||||
);
|
||||
|
||||
if ($this->users[$i]['team'] == $this->info['team_win'] && rand(1, 100) <= 5) {
|
||||
\User\ItemsModel::addItem(10020, $pld['id'], '');
|
||||
$pld['battle_text'] .= ' и <strong>Жетон Успеха</strong>. ';
|
||||
$pld['battle_text'] .= ' За Героическое Сражение вы получаете <strong>Жетон Успеха</strong>. ';
|
||||
}
|
||||
} else {
|
||||
$pld['battle_text'] .= ' Вы ничего не получили. <strong>Нужно набить больше 500 урона урона</strong> .';
|
||||
@@ -2624,17 +2618,11 @@ class Battle
|
||||
$this->users[$i]['battle_exp'] = ceil($this->users[$i]['battle_exp'] * 0.10);
|
||||
}
|
||||
$this->users[$i]['nich'] += 1;
|
||||
mysql_query(
|
||||
'UPDATE `users` SET `swin` = 0, `slose` = 0 WHERE `id` = "' . $this->users[$i]['id'] . '" LIMIT 1'
|
||||
);
|
||||
} elseif ($this->users[$i]['team'] == $this->info['team_win'] && $this->info['type'] != 564) {
|
||||
$gm[$i] = $this->info['money'];
|
||||
$gms[$i] = $this->info['money3'];
|
||||
$this->users[$i]['win'] += 1;
|
||||
$act01 = 1;
|
||||
mysql_query(
|
||||
'UPDATE `users` SET `swin` = `swin` + 1, `slose` = 0 WHERE `id` = "' . $this->users[$i]['id'] . '" LIMIT 1'
|
||||
);
|
||||
} elseif ($this->info['type'] != 564) {
|
||||
if ($this->users[$i]['level'] <= 1) {
|
||||
$this->users[$i]['battle_exp'] = ceil($this->users[$i]['battle_exp'] * 0.33);
|
||||
@@ -2644,9 +2632,6 @@ class Battle
|
||||
$bm[$i] = $this->info['money'];
|
||||
$bms[$i] = $this->info['money3'];
|
||||
$this->users[$i]['lose'] += 1;
|
||||
mysql_query(
|
||||
'UPDATE `users` SET `swin` = 0, `slose` = `slose` + 1 WHERE `id` = "' . $this->users[$i]['id'] . '" LIMIT 1'
|
||||
);
|
||||
$act01 = 2;
|
||||
}
|
||||
//Рассчитываем кол-во выигрышных сумм и кто сколько получил (для екр.)
|
||||
@@ -3108,7 +3093,7 @@ class Battle
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->info['priz'] > 0) {
|
||||
if ($this->info['priz'] > 0 && true == false) { // тут были реликвии ангела.
|
||||
//Призовой хаот
|
||||
/*
|
||||
[4754]
|
||||
@@ -3153,7 +3138,7 @@ class Battle
|
||||
}
|
||||
$tmoni = 1;
|
||||
while ($tmoni <= floor($tmon / 2)) {
|
||||
\User\ItemsModel::addItem(4754, $this->users[$i]['id'], ''); //
|
||||
\User\ItemsModel::addItem(0, $this->users[$i]['id'], ''); // тут были реликвии ангела.
|
||||
$tmoni++;
|
||||
}
|
||||
$this->users[$i]['battle_text'] .= ' За призовой хаот вы получаете <strong>Призовой Жетон (x' . floor(
|
||||
@@ -3289,47 +3274,6 @@ class Battle
|
||||
|
||||
}
|
||||
|
||||
if ($this->info['dungeon'] == 0 && $this->info['razdel'] == 5 && $u->info['battle_yron'] >= 2000) //$u->info['battle_yron']
|
||||
{
|
||||
//Реликвия Ангела ang_g
|
||||
if ($this->users[$i]['team'] == $this->info['team_win']) {
|
||||
//При выигрыше увеличиваем
|
||||
$tmoni = 2;
|
||||
} else {
|
||||
$tmoni = 1;
|
||||
}
|
||||
|
||||
//
|
||||
$tmon = $tmoni;
|
||||
$effblago = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT * FROM `eff_users` WHERE `uid` = ' . $this->users[$i]['id'] . ' AND `delete` = 0 AND `id_eff`= 414 LIMIT 1'
|
||||
)
|
||||
);
|
||||
if (isset ($effblago['id'])) {
|
||||
$limitg = 50;
|
||||
} else {
|
||||
$limitg = 25;
|
||||
}
|
||||
while ($tmoni >= 1) {
|
||||
if ($u->info['ang_g'] < $limitg) {
|
||||
\User\ItemsModel::addItem(4754, $this->users[$i]['id'], '');
|
||||
mysql_query(
|
||||
'UPDATE `users` SET `ang_g`=`ang_g`+1 WHERE `id` =' . $this->users[$i]['id'] . ''
|
||||
);
|
||||
} else {
|
||||
$tmon--;
|
||||
}
|
||||
$tmoni--;
|
||||
}
|
||||
|
||||
if ($this->info['type'] != 33) {
|
||||
$this->users[$i]['battle_text'] .= ' За хаот вы получаете <strong>Реликвия Ангела (' . $tmon . ')</strong>. Всего [' . ($u->info['ang_g'] + $tmon) . '/' . $limitg . '] в день. ';
|
||||
}
|
||||
unset($tmon, $tmoni, $effblago, $limitg);
|
||||
}
|
||||
|
||||
|
||||
if ($this->info['razdel'] == 5 || $this->info['razdel'] == 4) {
|
||||
if (date('d.m') == '31.10' || (date('m') == 11 && date('d') < 7)) {
|
||||
//Хэллоуин 4504
|
||||
|
||||
Reference in New Issue
Block a user