function lootItem($entry)
 {
     global $dDB;
     $ref_loot =& getRefrenceItemLoot($entry);
     $spells = $dDB->select("SELECT `entry` AS ARRAY_KEY, `ChanceOrQuestChance`, `mincountOrRef` FROM `spell_loot_template` WHERE (`item` = ?d  AND `mincountOrRef` > 0) { OR -`mincountOrRef` IN (?a) }", $entry, count($ref_loot) == 0 ? DBSIMPLE_SKIP : array_keys($ref_loot));
     if ($spells) {
         $this->doRequirest('`id` IN (?a)', array_keys($spells));
     }
 }
Exemplo n.º 2
0
    //********************************************************************************
    $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");
    }
    /**/
}
?>