Exemplo n.º 1
0
function IsFinalItem($itemid)
{
    if ($itemid == 1056) {
        // Doran's Ring
        return false;
    }
    $item_data = GetItem($itemid);
    if (isset($item_data["into"])) {
        return false;
    }
    return true;
}
function renderSubList($lootList)
{
    global $Quality, $lang;
    if (!$lootList) {
        return;
    }
    $curloot = -1;
    foreach ($lootList as $loot) {
        $gtext = "";
        if ($loot['groupid'] != $curloot) {
            echo "<tr><th colspan = 3>{$lang['kill_kredit_group']}&nbsp;{$loot['groupid']}</th></tr>";
            $curloot = $loot['groupid'];
        }
        echo "<tr>";
        if ($loot['mincountOrRef'] > 0) {
            if ($item = GetItem($loot['item'], "`entry`, `Quality`, `name`, `displayid`")) {
                $colorname = $item['Quality'];
                echo "<td width=1%>";
                show_item($item['entry'], $item['displayid'], 'reagent');
                echo "</td>";
                echo "<td class=left><a class={$Quality[$colorname]} href=\"?item={$item['entry']}\">{$item['name']}</a></td>";
            } else {
                echo "<td>-</td><td>{$lang['item_not_found']}&nbsp;{$loot['item']}</td>";
            }
        } else {
            echo "<td align=center>" . $loot['maxcount'] . "x</td>";
            echo "<td class=forsub>{$gtext}<table class=sublist><tbody>";
            renderSubList($loot['item']);
            echo "</tbody></table></td>";
        }
        if ($loot['ChanceOrQuestChance'] < 0) {
            echo "<td align=center>Q" . -$loot['ChanceOrQuestChance'] . "%</td>";
        } else {
            if ($loot['ChanceOrQuestChance'] > 0) {
                echo "<td align=center>" . $loot['ChanceOrQuestChance'] . "%</td>";
            }
        }
        echo "</tr>";
    }
}
Exemplo n.º 3
0
 function sethtml($setval)
 {
     $this->myhtml = GetItem($setval);
 }