dev-runes #7

Merged
lopar merged 14 commits from dev-runes into master 2022-06-11 11:32:32 +00:00
Showing only changes of commit 5413bc9476 - Show all commits

View File

@ -32,7 +32,6 @@ if (isset($_GET['itm']) && $qst_hram && $_GET['itm'] > 0) {
if ($itm1['iid'] == $itm2['iid'] || $itm2['iid'] == $itm3['iid'] || $itm1['iid'] == $itm3['iid']) {
$resz = 'Не удалось расплавить одну руну, она не сгорела.';
//mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `id` = "'.$itm3['iid'].'" OR `id` = "'.$itm2['iid'].'" OR `id` = "'.$itm1['iid'].'"');
} elseif (!isset($itm1['id']) || !isset($itm2['id']) || !isset($itm3['id'])) {
$resz = 'Недостаточно компонентов для преобразования.';
} elseif ($itm1['level'] != $itm2['level'] || $itm1['level'] != $itm3['level']) {
@ -81,11 +80,8 @@ if (isset($_GET['itm']) && $qst_hram && $_GET['itm'] > 0) {
}
$itm4 = $itm4[rand(0, count($itm4) - 1)];
mysql_query('UPDATE `items_users` SET `delete` = "' . time() . '" WHERE `id` = "' . $itm3['iid'] . '" OR `id` = "' . $itm2['iid'] . '" OR `id` = "' . $itm1['iid'] . '"');
//$u->rep['rep1'] += 10;
//mysql_query('UPDATE `rep` SET `rep1` = "'.$u->rep['rep1'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$u->addItem($itm4['id'], $u->info['id']);
$resz = 'Удачно преобразованы руны "' . $itm1['name'] . '","' . $itm2['name'] . '" и "' . $itm3['name'] . '" в "' . $itm4['name'] . '".';
//$resz .= '<Br>Добавлена репутация Храма Знаний +10';
} else {
$itm4 = [];
$sp = mysql_query('SELECT * FROM `items_main` WHERE `level` = "' . $itm1['level'] . '" AND `type` = 31
@ -95,11 +91,8 @@ if (isset($_GET['itm']) && $qst_hram && $_GET['itm'] > 0) {
}
$itm4 = $itm4[rand(0, count($itm4) - 1)];
mysql_query('UPDATE `items_users` SET `delete` = "' . time() . '" WHERE `id` = "' . $itm3['iid'] . '" OR `id` = "' . $itm2['iid'] . '" OR `id` = "' . $itm1['iid'] . '"');
//$u->rep['rep1'] += 1;
//mysql_query('UPDATE `rep` SET `rep1` = "'.$u->rep['rep1'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$u->addItem($itm4['id'], $u->info['id']);
$resz = 'Удачно преобразованы руны &quot;' . $itm1['name'] . '&quot;,&quot;' . $itm2['name'] . '&quot; и &quot;' . $itm3['name'] . '&quot; в &quot;' . $itm4['name'] . '&quot;.';
//$resz .= '<Br>Добавлена репутация Храма Знаний +1';
}
$re = '<font color=red><b>' . $resz . '</b></font>';
@ -308,7 +301,7 @@ if (!isset($_GET['r'])) {
</small>
</div>
</td>
<td><!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>--></td>
<td></td>
</tr>
</table>
<small>