info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 1'
)
);
if ($keyall[0] >= 2) {
mysql_query(
'DELETE FROM `items_users` WHERE (`item_id` = 4460 OR `item_id` = 4461 OR `item_id` = 4462 OR `item_id` = 4463) AND `uid` = ' . $this->info['id'] . ' AND `delete` = 0 AND `inShop` = 0 AND `inTransfer` = 0 LIMIT 2'
);
$trgos = true;
}
if ($trgos) {
//
$io .= 'Целебный пирог (х2), ';
ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
ItemsModel::addItem(1028, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
$io .= 'Запас маны (х2), ';
ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
ItemsModel::addItem(1029, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
$io .= 'Восстановление энергии 600HP, ';
ItemsModel::addItem(4015, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
$io .= 'Восстановление энергии 500MP, ';
ItemsModel::addItem(4024, $this->info['id'], '|nosale=1|sudba=' . $this->info['login']);
//
} else {
$no_open_itm = true;
$this->error = 'Требуется 2 ключа с поля битвы.';
}
}
unset($i5, $i3, $i4);