Ejemplo n.º 1
0
function GetQuestTooltip($row)
{
    $x = '';
    // Название квеста
    $x .= '<table><tr><td><b class="q">' . $row['Title'] . '</b></td></tr></table>';
    $x .= '<table>';
    if ($row['Objectives']) {
        $x .= '<tr><td><br>';
        $x .= $row['Objectives'];
        $x .= '</td></tr>';
    }
    //	$x .= '<br>';
    if ($row['RequiredNpcOrGo1'] and $row['RequiredNpcOrGoCount1'] or $row['RequiredNpcOrGo2'] and $row['RequiredNpcOrGoCount2'] or $row['RequiredNpcOrGo3'] and $row['RequiredNpcOrGoCount3'] or $row['RequiredNpcOrGo4'] and $row['RequiredNpcOrGoCount4'] or $row['RequiredItemId1'] and $row['RequiredItemCount1'] or $row['RequiredItemId2'] and $row['RequiredItemCount2'] or $row['RequiredItemId3'] and $row['RequiredItemCount3'] or $row['RequiredItemId4'] and $row['RequiredItemCount4']) {
        $x .= '<tr><td><br>';
        $x .= '<div class="q">' . LOCALE_REQUIREMENTS . ':<br></div>';
        for ($j = 1; $j <= 4; $j++) {
            if ($row['RequiredNpcOrGo' . $j] and $row['RequiredNpcOrGoCount' . $j]) {
                $x .= '- ' . (!empty($row['ObjectiveText'][$j]) ? $row['ObjectiveText'][$j] : GetQuestReq($row['RequiredNpcOrGo' . $j], $row['RequiredNpcOrGoCount' . $j], 1)) . '<br>';
            }
        }
        for ($j = 1; $j <= 4; $j++) {
            if ($row['RequiredItemId' . $j] and $row['RequiredItemCount' . $j]) {
                $x .= '- ' . GetQuestReq($row['RequiredItemId' . $j], $row['RequiredItemCount' . $j], 2) . '<br>';
            }
        }
        $x .= '</td></tr>';
    }
    $x .= '</table>';
    return $x;
}
Ejemplo n.º 2
0
function GetQuestTooltip($row)
{
    $x = '';
    // Название квеста
    $x .= '<table><tr><td><b class="q">' . $row['Title'] . '</b></td></tr></table>';
    $x .= '<table>';
    if ($row['Objectives']) {
        $x .= '<tr><td><br>';
        $x .= $row['Objectives'];
        $x .= '</td></tr>';
    }
    //	$x .= '<br>';
    if ($row['ReqCreatureOrGOId1'] and $row['ReqCreatureOrGOCount1'] or $row['ReqCreatureOrGOId2'] and $row['ReqCreatureOrGOCount2'] or $row['ReqCreatureOrGOId3'] and $row['ReqCreatureOrGOCount3'] or $row['ReqCreatureOrGOId4'] and $row['ReqCreatureOrGOCount4'] or $row['ReqItemId1'] and $row['ReqItemCount1'] or $row['ReqItemId2'] and $row['ReqItemCount2'] or $row['ReqItemId3'] and $row['ReqItemCount3'] or $row['ReqItemId4'] and $row['ReqItemCount4']) {
        $x .= '<tr><td><br>';
        $x .= '<div class="q">' . LOCALE_REQUIREMENTS . ':<br></div>';
        if ($row['RequiredMinRepFaction'] && $row['RequiredMinRepValue']) {
            $x .= '<div class="q0">- ' . LOCALE_REPUTATION_WITH . ' ' . $DB->selectCell('SELECT name_loc' . $_SESSION['locale'] . ' FROM ?_factions WHERE factionID=?d LIMIT 1', $row['RequiredMinRepFaction']) . ' >= ' . reputations($row['RequiredMinRepValue']) . '</div>';
        }
        if ($row['RequiredMaxRepFaction'] && $row['RequiredMaxRepValue']) {
            $x .= '<div class="q0">- ' . LOCALE_REPUTATION_WITH . ' ' . $DB->selectCell('SELECT name_loc' . $_SESSION['locale'] . ' FROM ?_factions WHERE factionID=?d LIMIT 1', $row['RequiredMaxRepFaction']) . ' <= ' . reputations($row['RequiredMaxRepValue']) . '</div>';
        }
        for ($j = 1; $j <= 4; $j++) {
            if ($row['ReqCreatureOrGOId' . $j] and $row['ReqCreatureOrGOCount' . $j]) {
                $x .= '- ' . (!empty($row['ObjectiveText'][$j]) ? $row['ObjectiveText'][$j] : GetQuestReq($row['ReqCreatureOrGOId' . $j], $row['ReqCreatureOrGOCount' . $j], 1)) . '<br>';
            }
        }
        for ($j = 1; $j <= 4; $j++) {
            if ($row['ReqItemId' . $j] and $row['ReqItemCount' . $j]) {
                $x .= '- ' . GetQuestReq($row['ReqItemId' . $j], $row['ReqItemCount' . $j], 2) . '<br>';
            }
        }
        $x .= '</td></tr>';
    }
    $x .= '</table>';
    return $x;
}