remove runes
This commit is contained in:
@@ -248,15 +248,6 @@ function dressitem($id)
|
||||
case 23:
|
||||
$slot1 = 'plaw';
|
||||
break;
|
||||
case 24:
|
||||
$slot1 = 'rune_1';
|
||||
break;
|
||||
case 25:
|
||||
$slot1 = 'rune_2';
|
||||
break;
|
||||
case 26:
|
||||
$slot1 = 'rune_3';
|
||||
break;
|
||||
}
|
||||
|
||||
if ($item['type'] == 5) {
|
||||
@@ -270,17 +261,6 @@ function dressitem($id)
|
||||
$slot1 = 'r1';
|
||||
dropitem(5);
|
||||
}
|
||||
} elseif ($item['type'] == 24) {
|
||||
if (!$user['rune_1']) {
|
||||
$slot1 = 'rune_1';
|
||||
} elseif (!$user['rune_2']) {
|
||||
$slot1 = 'rune_2';
|
||||
} elseif (!$user['rune_3']) {
|
||||
$slot1 = 'rune_3';
|
||||
} else {
|
||||
$slot1 = 'rune_1';
|
||||
dropitem(24);
|
||||
}
|
||||
} elseif ($item['type'] == 12) {
|
||||
if (!$user['m1']) {
|
||||
$slot1 = 'm1';
|
||||
@@ -604,17 +584,6 @@ function showpersinv($id)
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
|
||||
<table cellspacing="0" cellpadding="0" border="0"
|
||||
style="background: url('http://i.oldbk.com/i/runes_slots.jpg') no-repeat center bottom;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="59" height="48" align="right"><? echo show_rune(1, $user['id'], 1); ?></td>
|
||||
<td width="74" height="48" align="center"><? echo show_rune(2, $user['id'], 1); ?></td>
|
||||
<td width="57" height="48" align="left"><? echo show_rune(3, $user['id'], 1); ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</CENTER> <?php
|
||||
}
|
||||
|
||||
@@ -1609,12 +1578,12 @@ if (input::get('edit')) {
|
||||
$q = db::c()->query('SELECT `id` FROM `komplekt` WHERE `name` = "?s" AND `owner` = ?i', input::get('savecomplect'), $_SESSION['uid'])->getNumRows();
|
||||
if (empty($q)) {
|
||||
$items = [];
|
||||
$q2 = db::c()->query('SELECT `id` FROM `inventory` WHERE `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i',
|
||||
$q2 = db::c()->query('SELECT `id` FROM `inventory` WHERE `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i OR `id` = ?i',
|
||||
$user['sergi'], $user['kulon'], $user['perchi'], $user['weap'],
|
||||
$user['bron'], $user['rybax'], $user['r1'], $user['r2'], $user['r3'],
|
||||
$user['helm'], $user['shit'], $user['m1'], $user['m2'], $user['m3'],
|
||||
$user['m4'], $user['m5'], $user['m6'], $user['m7'], $user['m8'], $user['m9'], $user['m10'],
|
||||
$user['boots'], $user['plaw'], $user['rune_1'], $user['rune_2'], $user['rune_3']);
|
||||
$user['boots'], $user['plaw']);
|
||||
while ($res = $q2->fetch_assoc()) $items[] = $res['id'];
|
||||
$t_items = implode(";", $items);
|
||||
db::c()->query('INSERT INTO `komplekt` (`name`, `owner`, `items`) VALUES ("?s",?i,"?s")', input::get('savecomplect'), $_SESSION['uid'], $t_items);
|
||||
|
||||
Reference in New Issue
Block a user