function plus_get_item_ids() { require_once dirname(__FILE__) . '/../include/blmgs.class.php'; $myblmgs = new BLMGS(); require_once dirname(__FILE__) . '/../include/blsql.class.php'; $myblsql = new BLSQL(); $bl_conf = $myblsql->get_config('bossloot'); $bzone = $myblsql->get_bzone(); $id_list = array(); foreach ($bzone as $zoneid => $bosslist) { foreach ($bosslist as $bossid) { $loottable = $myblmgs->bl_get_loottable($bl_conf['item_lang'], $bossid, $bl_conf['item_minqual']); foreach ($loottable as $id => $name) { $id_list[$id] = $name; } } } return $id_list; }
global $bs_image_suffix, $bs_image_map, $mybsmgs; $mapfile = dirname(__FILE__) . "/games/" . $mybsmgs->get_current_game() . "/image_config.php"; if (file_exists($mapfile)) { include $mapfile; $bs_image_suffix = $suffix; $bs_image_map = $image_map; } } import_image_config(); if ($myblmgs->modelviewer_supported() && $bl_conf['en_mv'] == 1) { $bl_out .= '<tr class="row1"><td colspan="3" align="center">' . $myblmgs->bl_get_bossmodel($bossid) . '</td></tr>' . "\n"; } else { $bl_out .= '<tr class="row1"><td colspan="3" align="center">' . $myblmgs->bl_get_bossimage($bossid) . '</td></tr>' . "\n"; } //get loot table $loottable = $myblmgs->bl_get_loottable($bl_conf['item_lang'], $bossid, $bl_conf['item_minqual']); $printed0 = 0; $printed1 = 0; //Framework include include_once $eqdkp_root_path . 'plugins/bosssuite/include/libloader.inc.php'; if (is_array($loottable) && !empty($loottable)) { if ($data['kc'] > 0 && count($data['items']) > 0) { arsort($data['items']); if ($myblmgs->bl_get_current_game() == 'WoW') { foreach ($data['items'] as $item_info => $values) { list($itemname, $ingame_item_id) = explode('__', $item_info); $itemcount = $values['dc']; $itemeid = $values['id']; if (array_key_exists($ingame_item_id, $loottable)) { $droprate = round($itemcount / $data['kc'] * 100, 2); $rowid0 = $printed0 % 2 + 1;