game/_incl_data/class/priems/bloodring2_end.php

29 lines
907 B
PHP
Raw Normal View History

2023-01-28 02:24:37 +00:00
<?php
if (!defined('GAME')) {
die();
2022-06-06 21:30:34 +00:00
}
2023-01-28 02:24:37 +00:00
if ($ple['file_finish'] == 'bloodring2_end' && $this->users[$i]['team'] == $this->info['team_win']) {
if ($this->info['razdel'] == 5) {
$i1k = 0;
if ($ple['x'] > 6) {
$ple['x'] = 6;
}
while ($i1k < $ple['x']) {
2023-04-15 23:54:34 +00:00
\User\ItemsModel::addItem(3136, $this->users[$i]['id'], '|sudba=' . $this->users[$i]['login']);
2023-01-28 02:24:37 +00:00
$i1k++;
}
if ($ple['x'] > 1) {
$ple['xz'] = ' (x' . $ple['x'] . ')';
} else {
$ple['xz'] = '';
}
$cmsg = new ChatMessage();
$cmsg->setCity($this->users[$i]['city']);
$cmsg->setTo($this->users[$i]['login']);
$cmsg->setText("Вы получили предмет &quot;<b>Кровавый Рубин</b>{$ple['xz']}&quot;.");
$cmsg->setType(6);
(new Chat())->sendMsg($cmsg);
}
2022-06-06 21:30:34 +00:00
}