$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><" . getQuestType($quest['Type']) . "></FONT>"; } if (getAllowableRace($quest['RequiredRaces']) && $quest['RequiredRaces'] & 1101 && $quest['RequiredRaces'] != 1791) { echo "<br><FONT color=#0000ff>{$lang['required_races']} {$lang['Alliance']} </FONT><img width=22 height=22 src='images/player_info/factions_img/alliance.gif'>"; echo '<br><FONT color=#0000ff>' . $game_text['allowable_race'] . ' ' . getAllowableRace($quest['RequiredRaces']) . '</FONT>'; } if (getAllowableRace($quest['RequiredRaces']) && $quest['RequiredRaces'] & 690 && $quest['RequiredRaces'] != 1791) { echo "<br><FONT color=#ff0000>{$lang['required_races']} {$lang['Horde']} </FONT><img width=22 height=22 src='images/player_info/factions_img/horde.gif'>"; echo '<br><FONT color=#ff0000>' . $game_text['allowable_race'] . ' ' . getAllowableRace($quest['RequiredRaces']) . '</FONT>'; } if ($quest['RequiredRaces'] == 0 or $quest['RequiredRaces'] == 1791) { echo "</br>"; echo "<br><FONT color=#008800>{$lang['required_races']} {$lang['Both']}</FONT>"; echo '<br><FONT color=#008800>' . $game_text['allowable_race'] . ' ' . 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>'; } }