Переезд impstats и additem..

This commit is contained in:
2023-04-16 02:54:34 +03:00
parent 3dc4cf7284
commit 2bc67ce543
127 changed files with 584 additions and 612 deletions
+11 -11
View File
@@ -1663,7 +1663,7 @@ class Battle
$i01 = 1;
while ($i01 <= (($this->info['izlomObr'] - $this->info['izlomObrNow'])) * 7) {
$u->addItem(1226, $u->info['id'], '|sudba=' . $u->info['login']);
\User\ItemsModel::addItem(1226, $u->info['id'], '|sudba=' . $u->info['login']);
$i01++;
}
mysql_query(
@@ -2182,18 +2182,18 @@ class Battle
if (isset($pld['id'])) {
if ($this->users[$i]['battle_yron'] >= 500) {
$u->addItem(4754, $pld['id'], '');
$u->addItem(4754, $pld['id'], '');
$u->addItem(4754, $pld['id'], '');
$u->addItem(4754, $pld['id'], '');
$u->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'], '');
\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) {
$u->addItem(10020, $pld['id'], '');
\User\ItemsModel::addItem(10020, $pld['id'], '');
$pld['battle_text'] .= ' и <strong>Жетон Успеха</strong>. ';
}
} else {
@@ -3153,7 +3153,7 @@ class Battle
}
$tmoni = 1;
while ($tmoni <= floor($tmon / 2)) {
$u->addItem(4754, $this->users[$i]['id'], ''); //
\User\ItemsModel::addItem(4754, $this->users[$i]['id'], ''); //
$tmoni++;
}
$this->users[$i]['battle_text'] .= ' За призовой хаот вы получаете <strong>Призовой Жетон (x' . floor(
@@ -3313,7 +3313,7 @@ class Battle
}
while ($tmoni >= 1) {
if ($u->info['ang_g'] < $limitg) {
$u->addItem(4754, $this->users[$i]['id'], '');
\User\ItemsModel::addItem(4754, $this->users[$i]['id'], '');
mysql_query(
'UPDATE `users` SET `ang_g`=`ang_g`+1 WHERE `id` =' . $this->users[$i]['id'] . ''
);
@@ -3334,7 +3334,7 @@ class Battle
if (date('d.m') == '31.10' || (date('m') == 11 && date('d') < 7)) {
//Хэллоуин 4504
$this->users[$i]['battle_text'] .= ' Вы получаете <strong>Тыква (x1)</strong>.';
$u->addItem(4504, $this->users[$i]['id'], '|sudba=1');
\User\ItemsModel::addItem(4504, $this->users[$i]['id'], '|sudba=1');
}
}
@@ -4144,7 +4144,7 @@ class Battle
if ($itm_e[0] > 0) {
$j = 0;
while ($j < $itm_e[1]) {
$u->addItem($itm_e[0], $uid, '|' . $itm_e[2]);
\User\ItemsModel::addItem($itm_e[0], $uid, '|' . $itm_e[2]);
$j++;
}
if (!isset($this->ainm[$itm_e[0]])) {