function r_npcMap($data)
{
    global $lang;
    $h = getHeroicList();
    $h1 = getHeroicList1();
    $h2 = getHeroicList2();
    if (isset($h2[$data['entry']])) {
        echo '<a href="?map&npc=' . $h2[$data['entry']] . '">' . $lang['map'] . '</a>';
    } else {
        if (isset($h1[$data['entry']])) {
            echo '<a href="?map&npc=' . $h1[$data['entry']] . '">' . $lang['map'] . '</a>';
        } else {
            if (isset($h[$data['entry']])) {
                echo '<a href="?map&npc=' . $h[$data['entry']] . '">' . $lang['map'] . '</a>';
            } else {
                echo '<a href="?map&npc=' . $data['entry'] . '">' . $lang['map'] . '</a>';
            }
        }
    }
}
Exemplo n.º 2
0
 echo "<tr>";
 echo "<td align=center>";
 generateCreatureTable($cr);
 echo "</td>";
 echo "</tr>";
 echo "</tbody></table>";
 if ($cr['mingold']) {
     echo "<b>{$lang['Rew_money']}</b>&nbsp;&nbsp;" . money($cr['mingold']);
 }
 if ($cr['maxgold'] && $cr['maxgold'] > $cr['mingold']) {
     echo "&nbsp;-&nbsp;" . money($cr['maxgold']);
 }
 if ($cr['mingold']) {
     echo "<br>";
 }
 $heroic = getHeroicList();
 $heroic1 = getHeroicList1();
 $heroic2 = getHeroicList2();
 $hentry = isset($heroic[$entry]) ? $heroic[$entry] : $entry;
 $hentry1 = isset($heroic1[$entry]) ? $heroic1[$entry] : $entry;
 $hentry2 = isset($heroic2[$entry]) ? $heroic2[$entry] : $entry;
 if ($hentry2) {
     echo "<a href=\"?map&npc={$hentry2}\">{$lang['show_map']}&nbsp;(" . getCreatureCount($hentry2) . ")</a><br>";
 } else {
     if ($hentry1) {
         echo "<a href=\"?map&npc={$hentry1}\">{$lang['show_map']}&nbsp;(" . getCreatureCount($hentry1) . ")</a><br>";
     } else {
         if ($hentry) {
             echo "<a href=\"?map&npc={$hentry}\">{$lang['show_map']}&nbsp;(" . getCreatureCount($hentry) . ")</a><br>";
         }
     }