function showPlayerTalents($guid, $class, $level, $spec)
{
    global $lang;
    $bild = generateCharacterBild($guid, $class, $spec);
    $calc = array('none', 'warrior', 'paladin', 'hunter', 'rogue', 'priest', 'FUTURE_1', 'shaman', 'mage', 'warlock', 'FUTURE_2', 'druid');
    echo '<div id="talent"></div>';
    echo '<a href="?talent=' . $calc[$class] . '" id=talent_bild_link>' . $lang['player_talent_calc'] . '</a><br>';
    includeTalentScript($class, -1, $level, getClass($class));
    echo '<script type="text/javascript">tc_bildFromStr("' . $bild['calc_bild'] . '");</script>';
    echo '<script type="text/javascript">tc_renderTree("talent");</script>';
}
Esempio n. 2
0
    echo '<a href="?talent=' . $name . '" ' . addTooltip(getClass($c)) . '><img class=item src="' . getClassImage($c) . '"></a>&nbsp;';
    if ($talent == $name) {
        $header = getClass($c);
        $link .= "=" . $name;
        $cid = $c;
    }
}
echo "<br>";
//echo "<br><b>Pets:</b> ";
$list = $wDB->select('SELECT `id`, `category` FROM `wowd_creature_family` WHERE `category` <> -1 ORDER BY `name`');
foreach ($list as $family) {
    $f = $family['id'];
    $c = $family['category'];
    echo '<a href="?talent&pet=' . $c . '" ' . addTooltip(getCreatureFamily($f, 0)) . '><img class=item src="' . getFamilyImage($f) . '"></a>&nbsp;';
    if ($pid == $c) {
        $header = getCreatureFamily($f);
        $link .= "&pet=" . $c;
    }
}
echo '</div><br>';
if ($cid or $pid >= 0) {
    echo '<div id="talent"></div>';
    includeTalentScript($cid, $pid, $config['talent_calc_max_level'], $header);
    if ($bild) {
        echo '<script type="text/javascript">tc_bildFromStr("' . $bild . '");</script>';
    }
    echo '<script type="text/javascript">tc_renderTree("talent");</script>';
}
echo '<div class=faq><center>';
echo '<a href="' . $link . '" id=talent_bild_link>' . $lang['bild_link'] . '</a> | <a href="#" onclick="return tc_resetBild();">' . $lang['reset_talents'] . '</a>';
echo '</center></div>';