This commit is contained in:
lopar 2018-12-28 00:34:59 +02:00
parent 6121b648ee
commit 745f461d64

View File

@ -1142,9 +1142,43 @@ HTML;
$r .= '</td></tr></table></td></tr></table>';
$r .= '<div style="text-align: center">';
$r .= item('i/1x1.gif','#6D0329','#F94B89');
$r .= item('i/1x1.gif','#6D0329','#F94B89');
$r .= item('i/1x1.gif','#AAA','#EEE');
if ($user['r1'] > 0) {
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['r1'])->fetch_assoc();
if ($dress['includemagicdex'] && ($battle && $me)) {
$r .= showhrefmagic($dress);
} else {
$r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=20 height=20 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />';
}
} else {
#$r .= '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />';
$r .= item('i/1x1.gif');
}
if ($user['r2'] > 0) {
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['r2'])->fetch_assoc();
if ($dress['includemagicdex'] && ($battle && $me)) {
$r .= showhrefmagic($dress);
} else {
$r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=20 height=20 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />';
}
} else {
#$r .= '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />';
$r .= item('i/1x1.gif');
}
if ($user['r3'] > 0) {
$dress = db::c()->query('SELECT `name`, `img`, `duration`, `maxdur`, `ghp`, `text`, `includemagicdex` FROM `inventory` WHERE `id` = ?i', $user['r3'])->fetch_assoc();
if ($dress['includemagicdex'] && ($battle && $me)) {
$r .= showhrefmagic($dress);
} else {
$r .= '<img class="tooltip" src="i/sh/' . $dress['img'] . '" width=20 height=20 title="<b>' . $dress['name'] . "</b>" . ((!empty($dress['text'])) ? "<br><i>{$dress['text']}</i>" : "") . '" />';
}
} else {
#$r .= '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />';
$r .= item('i/1x1.gif');
}
$r .= '</div>';
#$ru_1 = show_rune(1, $user['id']);