Esempio n. 1
0
$quest = getQuest($entry);
if (!$quest) {
    RenderError("{$lang['quest_not_found1']}");
} else {
    $q_status = 0;
    if ($guid) {
        $q_status = $cDB->selectRow("SELECT * FROM `character_queststatus` WHERE `guid` = ?d AND `quest` = ?d", $guid, $entry);
    }
    if ($lang['www_quest']) {
        echo "<a href=\"" . sprintf($lang['www_quest'], $entry) . "\" target=\"_blank\"\">" . sprintf($lang['www_quest'], $entry) . "</a><br>";
    }
    echo "<table class=quest width=550>";
    echo "<tbody>";
    echo "<tr><td class=head>{$quest['Title']}";
    if ($quest['Type']) {
        echo "<br><FONT size=-3>&lt;" . getQuestType($quest['Type']) . "&gt;</FONT>";
    }
    if (getAllowableRace($quest['RequiredRaces']) && $quest['RequiredRaces'] & 1101 && $quest['RequiredRaces'] != 1791) {
        echo "<br><FONT color=#0000ff>{$lang['required_races']}&nbsp;{$lang['Alliance']}&nbsp;</FONT><img width=22 height=22 src='images/player_info/factions_img/alliance.gif'>";
        echo '<br><FONT color=#0000ff>' . $game_text['allowable_race'] . '&nbsp;' . getAllowableRace($quest['RequiredRaces']) . '</FONT>';
    }
    if (getAllowableRace($quest['RequiredRaces']) && $quest['RequiredRaces'] & 690 && $quest['RequiredRaces'] != 1791) {
        echo "<br><FONT color=#ff0000>{$lang['required_races']}&nbsp;{$lang['Horde']}&nbsp;</FONT><img width=22 height=22 src='images/player_info/factions_img/horde.gif'>";
        echo '<br><FONT color=#ff0000>' . $game_text['allowable_race'] . '&nbsp;' . getAllowableRace($quest['RequiredRaces']) . '</FONT>';
    }
    if ($quest['RequiredRaces'] == 0 or $quest['RequiredRaces'] == 1791) {
        echo "</br>";
        echo "<br><FONT color=#008800>{$lang['required_races']}&nbsp;{$lang['Both']}</FONT>";
        echo '<br><FONT color=#008800>' . $game_text['allowable_race'] . '&nbsp;' . getAllowableRace(1791) . '</FONT>';
    }
    if (getAllowableClass($quest['RequiredClasses'])) {
function r_questLvl($data)
{
    echo $data['QuestLevel'];
    if ($data['Type']) {
        echo '<br><FONT size=-3><b>' . getQuestType($data['Type']) . '</b></FONT>';
    }
}