$menu .= '<li><a href="#" rel="b' . $bid['b_id'] . '" >' . $bid['b_name'] . '</a></li>' . "\n"; $sx++; $roster->tpl->assign_block_vars('menue', array('ID' => $bid['b_id'], 'NAME' => $bid['b_name'], 'SELECTED' => isset($sx) && $sx == 1 ? true : false)); $roster->tpl->assign_block_vars('boss_block', array('ID' => $bid['b_id'], 'B_NAME' => $bid['b_name'], 'B_IMAGE' => isset($roster->locale->act['img'][$bid['b_name']]['small']) && file_exists($addon['url'] . 'images/' . $roster->locale->act['img'][$bid['b_name']]['small']) ? '<img src="' . $addon['url'] . 'images/' . $roster->locale->act['img'][$bid['b_name']]['small'] . '" />' : '', 'B_KILLS' => $bid['b_kills'], 'B_PERCENT' => $bid['b_percent'])); if (isset($lootcfg[$inst['inst_id']][$bid['b_id']][$bid['b_lt_id']])) { foreach ($lootcfg[$inst['inst_id']][$bid['b_id']][$bid['b_lt_id']] as $loot => $lt) { if ($lt['l_looted'] == 'yes') { $class = ' class="loot1"'; } else { $class = ' class="loot2"'; } $textur = $lt['l_texture']; if ($lt['l_texture'] == '') { $textur = $prog->get_item_icon($lt['l_id'], 'loot_info'); } $roster->tpl->assign_block_vars('boss_block.info', array('ID' => $bid['b_id'], 'I_TEXTURE' => $roster->config['interface_url'] . 'Interface/Icons/' . strtolower($textur) . '.' . $imgext, 'I_ID' => $lt['l_id'], 'I_LT_TABLE' => $lt['l_lt_id'], 'I_QUALITY' => isset($roster->locale->act['quality'][$lt['l_id']]) && $roster->locale->act['quality'][$lt['l_id']] != '' ? $roster->locale->act['quality'][$lt['l_id']] : '', 'NAME' => $lt['l_name'], 'I_TOOLTIP' => makeOverlib($prog->get_tooltip($lt['l_id']), $caption = $items['item_name'], $caption_color = '', $mode = 2, $locale = '', $extra_parameters = ''), 'I_CLASS' => $class, 'I_LOOTED' => $lt['l_looted'])); } } /* $ltt .= '</table>'; $body .= messageboxtoggle($ltt, $title = '<span style="color:#00ff00;">Loots</span>', $style = 'sgreen', false, $width = '500px').'</td></tr>'; $body .= '</table>'.border('sgreen','end').''; $body .= "</div>\n\n"; */ } } } $menu .= '</ul></div>' . border('sgray', 'end'); $roster->tpl->set_handle('body', $addon['basename'] . '/index.html'); $roster->tpl->display('body');
$stripe = $stripe % 2 + 1; $textur = $items['item_texture']; if ($items['item_texture'] == '') { $textur = $prog->get_item_icon_mod($items['item_id'], 'mod_info'); } if ($items['item_quality'] == '') { $iquality = $prog->get_item_quality($items['item_id'], $items['item_name']); } else { $iquality = $items['item_quality']; } $players = explode('|', $items['item_looters']); $ltr = ''; foreach ($players as $value) { if ($value != '') { $ltr .= '<a href="index.php?p=char-info&a=c:' . $value . '">' . $prog->getplayername($value) . '</a><br>'; } if ($value == '' && $ltr == '') { $ltr .= ' '; } } $roster->tpl->assign_block_vars('key1_block.key2_block.items', array('INFO_NAME' => $items['item_name'], 'INFO_ID' => $items['item_id'], 'INFO_TEXTURE' => $roster->config['interface_url'] . 'Interface/Icons/' . strtolower($textur) . '.' . $imgext, 'INFO_QUALITY' => $iquality, 'INFO_LOOTED' => $items['item_looted'], 'INFO_LOOTERS' => $ltr, 'INFO_TOOLTIP' => makeOverlib($prog->get_tooltip($items['item_id']), $caption = $items['item_name'], $caption_color = '', $mode = 2, $locale = '', $extra_parameters = ''), 'INFO_STRIPE' => $stripe)); } } } } } } $menu .= '</ul></div>' . border('sgray', 'end'); $roster->tpl->set_handle('body', $addon['basename'] . '/mod.html'); $roster->tpl->display('body'); }