$reqForQuest->createReport($lang['req_for_quest']); } //******************************************************************************** // Give quest list //******************************************************************************** $giveQuest =& new QuestReportGenerator('go_giver'); $fields = array('QUEST_REPORT_LEVEL', 'QUEST_REPORT_NAME', 'QUEST_REPORT_REWARD'); if ($giveQuest->Init($fields, $baseLink, 'qgLIST', $config['fade_limit'], 'name')) { $giveQuest->getGiveTakeList($entry); $giveQuest->createReport($lang['give_quest']); } //******************************************************************************** // Take quest list //******************************************************************************** $takeQuest =& new QuestReportGenerator('go_take'); $fields = array('QUEST_REPORT_LEVEL', 'QUEST_REPORT_NAME', 'QUEST_REPORT_REWARD'); if ($takeQuest->Init($fields, $baseLink, 'qtLIST', $config['fade_limit'], 'name')) { $takeQuest->getGiveTakeList($entry); $takeQuest->createReport($lang['take_quest']); } //******************************************************************************** // Item loot //******************************************************************************** if ($ajaxmode == 0) { if ($obj['type'] == GAMEOBJECT_TYPE_CHEST or $obj['type'] == GAMEOBJECT_TYPE_FISHINGHOLE) { $page_seek = init_pagePerMark($mark, "g_lootLIST", $page); $rows = getLootList($obj['data1'], "gameobject_loot_template", $totalRecords, $page_seek, $config['fade_limit']); renderLootTableList($rows, $lang['can_loot'], $page_seek, $totalRecords, $baseLink, "g_lootLIST"); } } }
echo "<a href=\"" . sprintf($lang['www_faction'], $entry) . "\" target=\"_blank\"\">" . sprintf($lang['www_faction'], $entry) . "</a><br>"; } generateFactionTable($faction); createReportTab(); // Входящие в состав фракции $page_seek = init_pagePerMark($mark, "teamLIST", $page); $rows = $wDB->selectPage($totalRecords, 'SELECT * FROM `wowd_faction` WHERE `team` = ?d LIMIT ?d, ?d', $entry, $page_seek, $config['fade_limit']); renderFactionGroupList($faction, $rows, $lang['faction_contain'], $page_seek, $totalRecords, $baseLink, 'teamLIST'); // Входит в группу фракций if ($faction['team']) { $parent = getFaction($faction['team']); $page_seek = init_pagePerMark($mark, "cteamLIST", $page); $rows = $wDB->selectPage($totalRecords, 'SELECT * FROM `wowd_faction` WHERE `team` = ?d LIMIT ?d, ?d', $faction['team'], $page_seek, $config['fade_limit']); renderFactionGroupList($parent, $rows, $lang['faction_in'], $page_seek, $totalRecords, $baseLink, 'cteamLIST'); } /**/ } $templatesId = 0; // Состав фракции // НИП из данной фракции $npc =& new CreatureReportGenerator(); $fields = array('NPC_REPORT_LEVEL', 'NPC_REPORT_NAME', 'NPC_REPORT_REACTION', 'NPC_REPORT_MAP'); if ($npc->Init($fields, $baseLink, 'creatureLIST', $config['fade_limit'], 'level')) {
//******************************************************************************** $milling_loot =& new ItemReportGenerator('milling'); if ($milling_loot->Init($fields, $baseLink, 'millingLIST', $config['fade_limit'], 'chance')) { $milling_loot->lootItem($entry); $milling_loot->createReport($lang['milling_loot']); } //******************************************************************************** // Лут с дизэнчанта //******************************************************************************** $disenchant_loot =& new ItemReportGenerator('disenchant'); if ($disenchant_loot->Init($fields, $baseLink, 'disenchantLIST', $config['fade_limit'], 'chance')) { $disenchant_loot->lootItem($entry); $disenchant_loot->createReport($lang['disenchant_loot']); } if ($ajaxmode == 0) { //******************************************************************************** // Лут с рыбалки //******************************************************************************** $refLoot =& getRefrenceItemLoot($entry); $refList = array_keys($refLoot); // Получаем список рефренс лута $page_seek = init_pagePerMark($mark, "fishing_src_LIST", $page); $rows = $dDB->selectPage($totalRecords, "SELECT\n `fishing_loot_template`.`entry` AS `loot_entry`,\n `fishing_loot_template`.`ChanceOrQuestChance` AS `ChanceOrQuestChance`,\n `fishing_loot_template`.`groupid` AS `groupid`,\n `fishing_loot_template`.`mincountOrRef` AS `mincountOrRef`,\n `fishing_loot_template`.`maxcount` AS `maxcount`,\n `fishing_loot_template`.`condition_id` AS `condition_id`\n FROM\n `fishing_loot_template`\n WHERE\n (`fishing_loot_template`.`item` = ?d AND `fishing_loot_template`.`mincountOrRef` > 0)\n { OR -`fishing_loot_template`.`mincountOrRef` IN (?a) }\n ORDER BY\n ABS(`ChanceOrQuestChance`) DESC\n LIMIT ?d,?d", $item['entry'], empty($refList) ? DBSIMPLE_SKIP : $refList, $page_seek, $config['fade_limit']); renderItemFishingList($rows, $refLoot, $lang['fishing_loot'], $page_seek, $totalRecords, $baseLink, "fishing_src_LIST"); } /**/ } ?>
//************************************************** // Pickpocket loot //************************************************** if ($ajaxmode == 0) { if ($cr['pickpocketloot']) { $page_seek = init_pagePerMark($mark, "pickpocketLIST", $page); $rows = getLootList($cr['pickpocketloot'], "pickpocketing_loot_template", $totalRecords, $page_seek, $config['fade_limit']); renderLootTableList($rows, $lang['can_pickpocketing'], $page_seek, $totalRecords, $baseLink, "pickpocketLIST"); } } //************************************************** // Skining loot //************************************************** if ($ajaxmode == 0) { if ($cr['skinloot']) { $page_seek = init_pagePerMark($mark, "skinLIST", $page); $rows = getLootList($cr['skinloot'], "skinning_loot_template", $totalRecords, $page_seek, $config['fade_limit']); if ($cr['type_flags'] & CREATURE_TYPEFLAGS_HERBLOOT) { renderLootTableList($rows, $lang['give_herb'], $page_seek, $totalRecords, $baseLink, "skinLIST"); } else { if ($cr['type_flags'] & CREATURE_TYPEFLAGS_MININGLOOT) { renderLootTableList($rows, $lang['give_mining'], $page_seek, $totalRecords, $baseLink, "skinLIST"); } else { if ($cr['type_flags'] & CREATURE_TYPEFLAGS_ENGINEERLOOT) { renderLootTableList($rows, $lang['give_engineer'], $page_seek, $totalRecords, $baseLink, "skinLIST"); } else { renderLootTableList($rows, $lang['give_skin'], $page_seek, $totalRecords, $baseLink, "skinLIST"); } } } }