Quelltext

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<script type="text/javascript" src="http://frontend1.gondal.de/img/js/prototype.js"></script>
<script type="text/javascript" src="http://frontend1.gondal.de/img/js/scriptaculous.js?load=effects,dragdrop"></script>

<script type="text/javascript" src="http://frontend1.gondal.de/img/js/jquery.js"></script>
<script type="text/javascript" src="http://frontend1.gondal.de/img/js/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
jQuery.noConflict();
window.$j = jQuery;
</script>
<title>
Gondal : Characters </title>

<link href="http://frontend1.gondal.de/img/css/front.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!—
body {
background-image: url(http://frontend1.gondal.de/img/images2/back.jpg);
background-repeat: repeat-x;
background-color: #110d0c;
margin-top: 11px;
}

—>
</style>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-7624094-1");
pageTracker._trackPageview();
</script>

<script type="text/javascript">
function popup (url) {
fenster = window.open(url, "Popupfenster", "width=620,height=420,resizable=no");
fenster.focus();
return false;
}
</script>

</head>

<body bgcolor="#110d0c">

<center>

<div id="gondal">

<table id="Tabelle_01" width="976" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="8" width="974" height="124">
<img style="margin-left: 8px;" src="http://frontend1.gondal.de/img/images2/index_01_extra.gif" width="34" height="124" /><img id="index_01" src="http://frontend1.gondal.de/img/images2/index_01.jpg" width="932" height="124" alt="" /></td>

<td rowspan="5">
<img id="index_02" src="http://frontend1.gondal.de/img/images2/index_02.gif" width="1" height="702" alt="" />
</td>
</tr>
<tr>
<td background="http://frontend1.gondal.de/img/images2/back3.gif" valign="top" rowspan="3">

<table id="Tabelle_01" width="184" border="0" cellpadding="0" cellspacing="0">
<tr>

<td>
<img id="nmenu_01" src="http://frontend1.gondal.de/img/images2/nmenu_01.gif" width="42" height="108" alt="" /></td>
<!—http://frontend1.gondal.de/img/img/avatars/ —>
<td background="http://frontend1.gondal.de/img/img/avatars/klein/3.jpg" colspan="2">
<img src="http://frontend1.gondal.de/img/images2/charvordergrund.png" alt="char" width="111" height="108" /></td>
<td>
<img id="nmenu_03" src="http://frontend1.gondal.de/img/images2/menu_03.jpg" width="31" height="108" alt="" /></td>
</tr>
<tr>

<td colspan="4">
<img id="nmenu_04" src="http://frontend1.gondal.de/img/images2/nmenu_04.gif" width="184" height="8" alt="" /></td>
</tr>
<tr>
<td rowspan="3">
<img id="nmenu_05" src="http://frontend1.gondal.de/img/images2/nmenu_05.gif" width="42" height="28" alt="" /></td>
<td>
<img src="http://frontend1.gondal.de/img/images2/gelb.gif" alt="ep" width="56%" height="11" align="left" /></td>
<td colspan="2" rowspan="3">

<img id="nmenu_07" src="http://frontend1.gondal.de/img/images2/nmenu_07.jpg" width="39" height="28" alt="" /></td>
</tr>
<tr>
<td>
<img id="nmenu_08" src="http://frontend1.gondal.de/img/images2/nmenu_08.jpg" width="103" height="6" alt="" /></td>
</tr>
<tr>
<td>
<img src="http://frontend1.gondal.de/img/images2/rot.gif" id="lifeBar" alt="leben" width="100%" height="11" align="left" />

<script type="text/javascript">
<!—
var secsDone = 0;
var lifePercent = 100;
var fullLifeAfter = 0;

function updateCharState()
{
if(lifePercent < 25) $j('#charState').text('Stark angeschlagen');
else if(lifePercent < 50) $j('#charState').text('Erschöpft');
else if(lifePercent < 75) $j('#charState').text('Etwas müde');
else $j('#charState').text('Ausgeruht');
}

window.attachForm = function(){
$j('.form_button').click(function(event){
$j('.form_form').prepend('<input type="hidden" name="data[Character][c]" value="'+event.pageX+'|'+event.pageY+'|'+this.value+'" />');
});
}

$j(document).ready(function(){
window.attachForm();
});

function lifeBar()
{
var timeToFullLP = 10 * 60;
var maxLife = parseInt($j('#lifeMax').text()) || 6908;
var secs = fullLifeAfter - secsDone;
secsDone++;
if(secs <= 0)
return;

var quote = (timeToFullLP - secs) / timeToFullLP;
var currentLife = Math.round(maxLife * quote);
lifePercent = Math.round(currentLife / maxLife * 100);
$j('#lifeCurrent').text(currentLife);
$j('#statLifeCurrent').text(currentLife);
$j('#lifeBarBig').width(lifePercent+'%');
$j('#lifeBar').width(lifePercent+'%');
updateCharState();
}

window.setInterval('lifeBar()', 1000); //—>
</script>

</td>
</tr>
<tr>
<td colspan="4">
<img id="nmenu_10" src="http://frontend1.gondal.de/img/images2/nmenu_10.gif" width="184" height="9" alt="" /></td>
</tr>

<tr>
<td background="http://frontend1.gondal.de/img/images2/nmenu_11.gif" width="184" height="23" colspan="4">
<center>

<span id="currentGold" style="font-family: Tahoma,Arial,Verdana, sans-serif; font-size: 12px; color:white;">336</span><img src="http://frontend1.gondal.de/img/img/icons/gold1.gif" style='vertical-align: middle;' /> <span id="currentCrystals" style="font-family: Tahoma,Arial,Verdana, sans-serif; font-size: 12px; color:white;">3</span> <img src="http://frontend1.gondal.de/img/img/icons/machtkristall2.gif" style='vertical-align: middle;' />
</center>
</td>

</tr>
<tr>
<td colspan="4">
<a href="/characters/index"><img id="nmenu_12" src="http://frontend1.gondal.de/img/images2/nmenu_12.gif" width="184" height="37" alt="" /></a>
</td>
</tr>
<tr>
<td colspan="4">
<a href="/pns/news"><img id="nmenu_13" src="http://frontend1.gondal.de/img/images2/nmenu_13.gif" width="184" height="37" alt="" /></a>

</td>
</tr>
<tr>
<td colspan="4">
<a href="/quests/start"><img id="nmenu_14" src="http://frontend1.gondal.de/img/images2/nmenu_14.gif" width="184" height="37" alt="" /></a>
</td>
</tr>
<tr>
<td colspan="4">

<a href="/fights/start"><img id="nmenu_15" src="http://frontend1.gondal.de/img/images2/nmenu_15.gif" width="184" height="36" alt="" /></a>
</td>
</tr>
<tr>
<td colspan="4">
<a href="/placeOfHonour/index"><img id="nmenu_16" src="http://frontend1.gondal.de/img/images2/nmenu_16.gif" width="184" height="37" alt="" /></a>
</td>
</tr>
<tr>

<td colspan="4">
<a href="/bank/banker"><img id="nmenu_17" src="http://frontend1.gondal.de/img/images2/nmenu_17.gif" width="184" height="37" alt="" /></a>
</td>
</tr>
<tr>
<td colspan="4">
<a href="/services/index"><img id="nmenu_18" src="http://frontend1.gondal.de/img/images2/nmenu_18.gif" width="184" height="36" alt="" /></a>
</td>
</tr>

<tr>
<td colspan="4">
<a href="/items/index"><img id="nmenu_19" src="http://frontend1.gondal.de/img/images2/nmenu_19.gif" width="184" height="37" alt="" /></a>
</td>
</tr>
<tr>
<td colspan="4">
<a href="/rides/index"><img id="nmenu_20" src="http://frontend1.gondal.de/img/images2/nmenu_20.gif" width="184" height="38" alt="" /></a>
</td>

</tr>
<tr>
<td colspan="4">
<a href="/guilds/shoutbox"><img id="nmenu_22" src="http://frontend1.gondal.de/img/images2/nmenu_21g.gif" width="184" height="36" alt="" /></a>
</td>
</tr>
<tr>
<td colspan="4">
<a href="/taverne/"><img id="nmenu_22" src="http://frontend1.gondal.de/img/images3/de/frontmenu_taverne.gif" width="184" height="37" alt="Taverne" /></a>

</td>
</tr>
<tr>
<td colspan="4">
<a href="/settings/changeGameSettings"><img id="nmenu_23" src="http://frontend1.gondal.de/img/images2/nmenu_22.gif" width="184" height="38" alt="" /></a>
</td>
</tr>
<tr>
<td colspan="4">

<a href="http://forum.gondal.de/" target="_blank"><img id="nmenu_23" src="http://frontend1.gondal.de/img/images2/de/frontmenu_17.gif" width="184" height="40" alt="" /></a>
</td>
</tr>
<tr>
<td colspan="4">
<a href="/crystals/index"><img id="nmenu_21" src="http://frontend1.gondal.de/img/images2/nmenu_21.gif" width="184" height="42" alt="" /></a>
</td>
</tr>
<tr>

<td>
<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="42" height="1" alt="" /></td>
<td>
<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="103" height="1" alt="" /></td>
<td>
<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="8" height="1" alt="" /></td>
<td>
<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="31" height="1" alt="" /></td>
</tr>

</table>

</td>
<td colspan="3" id="index_04" style="background:url(http://frontend1.gondal.de/img/images2/index_04.jpg); height: 74px; width: 44px;">
&nbsp;
<!<img id="index_04" src="http://frontend1.gondal.de/img/images2/index_04.jpg" width="44" height="74" alt="" />>
</td>
<td width="682" height="74" valign="top" background="http://frontend1.gondal.de/img/images2/index_05.jpg" style="text-align:left;">
<div class="boxoben">

<div style="float: left;">
<img src="http://frontend1.gondal.de/img/img/icons/infoklein.gif" style="vertical-align:middle; padding-bottom:3px; padding-left:12px;" />
</div>

<div style="padding-left: 33px;">Klicke hier um das Tutorial zu der Profil Seite aufzurufen: <a href="/infos/deinprofil"><b>Tutorial jetzt starten</b></a></div>

<div style="clear:left;"></div>

<div style="float: left;">
<img src="http://frontend1.gondal.de/img/img/icons/infoklein.gif" style="vertical-align:middle; padding-bottom:3px; padding-left:12px;" />
</div>

<div style="padding-left: 33px;" id="tip1">Intelligenz erhöht deinen Magieschlag, mit dem Du vor dem Kampf Magieschaden zufügst.</div>
<div style="clear:left;"></div>
<div style="padding-top:3px; padding-left: 33px; color:orange;"><a href="/crystals/"><b></b></a></div>
<div style="clear:left;"></div>
<div style="float: left;">
<img onClick="javascript:location.href='/pns/listRcv';" src="http://frontend1.gondal.de/img/images2/newnews.gif" style="vertical-align:middle; padding-bottom:3px; padding-left:12px;" width="16px" />
</div>
<div style="padding-left: 33px;" id="newPN">Du hast eine neue Nachricht bekommen!</div>
<div style="clear:left;"></div>

</div>

</td>
<td colspan="3" id="index_06" style="background:url(http://frontend1.gondal.de/img/images2/index_06.jpg); height: 74px; width: 64px;">
<!<img id="index_06" src="http://frontend1.gondal.de/img/images2/index_06.jpg" width="64" height="74" alt="" />>
</td><td>
<!<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="1" height="74" alt="" />></td>
</tr>
<tr>
<td colspan="7" id="index_07" height="26" style="background: url(http://frontend1.gondal.de/img/images2/index_07.jpg);">
<!<img id="index_07" src="http://frontend1.gondal.de/img/images2/index_07.jpg" width="790" height="26" alt="" />>

</td>
<td>
<!<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="1" height="26" alt="" />></td>
</tr>
<tr>
<td background="http://frontend1.gondal.de/img/images2/index_08.jpg" rowspan="2" valign="top">
</td>
<td background="http://frontend1.gondal.de/img/images2/rechts.jpg" rowspan="2" valign="top"> </td>

<td colspan="3" rowspan="2" valign="top" background="http://frontend1.gondal.de/img/images2/back2.jpg">

<div style="width: 697px; float: right; padding: 0px; margin 0px;" id="main">
<div style="border: 0px ; margin: 0px" id="cfl"> <style type="text/css">
.talents {background: url(http://frontend1.gondal.de/img/images/de/talente_background.jpg) no-repeat; height: 760px; padding-left: 1px;}
.tree {width: 232px; float: left; margin: 0; text-align: center; margin-top: 90px;}
.tree h2 {width: 150px; height: 174px; margin: auto;}
.tree_points {position: relative; top: 50%;}
.leaf {width: 106px; height: 102px; margin: 2px; display: inline; padding: 0;}
.leaf .points {margin: 0; padding: 0; position: relative; top: -5px;}
.talent_tooltip {margin: 15px; color: white; top:0; bottom: 0; left:0; right: 0; position: absolute; text-align: center;}
.talent_tooltip h2 {font-size: 16px;}
.button-div {clear:both; text-align: center; font-size: 1.6em; padding-top: 20px;}
html>body .leaf .points { *top: -40px; }
html>body .button-div { *padding-top: 0px; }
</style>
<script type="text/javascript" src="http://frontend1.gondal.de/img/js/overlib_mini.js"></script>

<script type="text/javascript">
<!
var ol_width=300;
var ol_height=170;
var ol_fgcolor='#000000';
var ol_bgcolor='#cccccc';
var ol_background='http://frontend1.gondal.de/img/images2/overlibback2.gif';
//
>

imgBase = "http://frontend1.gondal.de/img/images/talents/";

characterTalentPoints = currentCharacterTalentPoints = 0;
talentTreePoints = new Object();

talentTrees = {"off":{"1":{"id":"1","name":"St\u00e4rke","tree_name":"off","tree_level":"0","max_points":"5","description":"Erh\u00f6ht die St\u00e4rke des Charakters um bis zu 5%.","point_values":["1","2","3","4","5"],"effect_key":"strength","effect_type":"attribute","effect_target":"self","effect_calc":"addPercent","icon":"staerke"},"2":{"id":"2","name":"Trefferchance","tree_name":"off","tree_level":"0","max_points":"5","description":"Erh\u00f6ht die Trefferchance des Charakters um bis zu 5%.","point_values":["1","2","3","4","5"],"effect_key":"hitChance","effect_type":"combat","effect_target":"self","effect_calc":"add","icon":"trefferchance"},"3":{"id":"3","name":"R\u00fcstung ignorieren","tree_name":"off","tree_level":"1","max_points":"5","description":"Ignoriert bis zu 50% der gegnerischen R\u00fcstung.","point_values":["10","20","30","40","50"],"effect_key":"plating","effect_type":"combat","effect_target":"opponent","effect_calc":"subPercent","icon":"ruestung_ignorieren"},"4":{"id":"4","name":"Krit. Trefferchance","tree_name":"off","tree_level":"1","max_points":"5","description":"Erh\u00f6ht die Chance einen kritischen Treffer zu landen um bis zu 5%.","point_values":["1","2","3","4","5"],"effect_key":"critChance","effect_type":"combat","effect_target":"self","effect_calc":"add","icon":"kritische_trefferchance"},"5":{"id":"5","name":"Schadensbonus","tree_name":"off","tree_level":"2","max_points":"10","description":"Erh\u00f6ht verursachten Nahkampfschaden um bis zu 10%.","point_values":["1","2","3","4","5","6","7","8","9","10"],"effect_key":"meleeDmg","effect_type":"combat","effect_target":"self","effect_calc":"addPercent","icon":"schadensbonus"},"6":{"id":"6","name":"Klaffende Wunde","tree_name":"off","tree_level":"3","max_points":"1","description":"Jeder Nahkampftreffer hat eine Chance von 25% den Gegner zu verwunden und ihm \u00fcber die n\u00e4chsten 5 Runden jeweils 15% des Schadens zuzuf\u00fcgen.","point_values":null,"effect_key":"rupture","effect_type":"combat","effect_target":"self","effect_calc":"NA","icon":"klaffende_wunde"}},"def":{"7":{"id":"7","name":"Ausdauer","tree_name":"def","tree_level":"0","max_points":"5","description":"Erh\u00f6ht die Ausdauer des Charakters um bis zu 5%.","point_values":["1","2","3","4","5"],"effect_key":"endurance","effect_type":"attribute","effect_target":"self","effect_calc":"addPercent","icon":"ausdauer"},"8":{"id":"8","name":"Ausweichchance","tree_name":"def","tree_level":"0","max_points":"5","description":"Erh\u00f6ht die Ausweichchance des Charakters um bis zu 5%.","point_values":["1","2","3","4","5"],"effect_key":"hitChance","effect_type":"combat","effect_target":"opponent","effect_calc":"sub","icon":"ausweichchance"},"9":{"id":"9","name":"R\u00fcstung","tree_name":"def","tree_level":"1","max_points":"5","description":"Erh\u00f6ht die R\u00fcstung des Charakters um bis zu 100%.","point_values":["20","40","60","80","100"],"effect_key":"plating","effect_type":"combat","effect_target":"self","effect_calc":"addPercent","icon":"ruestung"},"10":{"id":"10","name":"Blockchance","tree_name":"def","tree_level":"1","max_points":"5","description":"Erh\u00f6ht die Blockchance des Charakters um bis zu 5%.","point_values":["1","2","3","4","5"],"effect_key":"block","effect_type":"combat","effect_target":"self","effect_calc":"add","icon":"blockchance"},"11":{"id":"11","name":"Schaden reflektieren","tree_name":"def","tree_level":"2","max_points":"5","description":"Bei geblockten Angriffen besteht eine Chance von bis zu 50% einen Teil des Schadens an den Angreifer zur\u00fcckzuwerfen (20%).","point_values":["10","20","30","40","50"],"effect_key":"reflectChance","effect_type":"combat","effect_target":"self","effect_calc":"NA","icon":"schaden_reflektieren"},"12":{"id":"12","name":"Harmlose Krits.","tree_name":"def","tree_level":"2","max_points":"5","description":"Gegnerische kritische Treffer werden mit einer Chance von bis zu 15% als normale Treffer gewertet.","point_values":["3","6","9","12","15"],"effect_key":"critDmgReduction","effect_type":"combat","effect_target":"self","effect_calc":"NA","icon":"harmlose_kritische"},"13":{"id":"13","name":"Schildmeister","tree_name":"def","tree_level":"3","max_points":"1","description":"Nach einem erfolgreichen Block besteht eine Chance von 35% \u00fcber die n\u00e4chsten 5 Runden Schadensreduktion zu erhalten (80%, 40%, 20%, 10%, 5%).","point_values":null,"effect_key":"dmgReduction","effect_type":"combat","effect_target":"self","effect_calc":"NA","icon":"schildmeister"}},"adv":{"14":{"id":"14","name":"Geschicklichkeit","tree_name":"adv","tree_level":"0","max_points":"5","description":"Erh\u00f6ht die Geschicklichkeit des Charakters um bis zu 5%.","point_values":["1","2","3","4","5"],"effect_key":"skill","effect_type":"attribute","effect_target":"self","effect_calc":"addPercent","icon":"geschicklichkeit"},"15":{"id":"15","name":"Questzeit","tree_name":"adv","tree_level":"0","max_points":"5","description":"Verringert die Questzeit um bis zu 25%.","point_values":["5","10","15","20","25"],"effect_key":"questTime","effect_type":"generic","effect_target":"self","effect_calc":"subPercent","icon":"questzeit"},"16":{"id":"16","name":"Regeneration","tree_name":"adv","tree_level":"1","max_points":"5","description":"Verringert die Regenerationszeit um bis zu 30%.","point_values":["6","12","18","24","30"],"effect_key":"timeToMaxLifeEnergy","effect_type":"generic","effect_target":"self","effect_calc":"subPercent","icon":"regeneration"},"17":{"id":"17","name":"Erfahrungsbonus","tree_name":"adv","tree_level":"1","max_points":"5","description":"Erh\u00f6ht die Erfahrung, die man bei Quests und Diensten bekommt um bis zu 50%.","point_values":["10","20","30","40","50"],"effect_key":"xp","effect_type":"generic","effect_target":"self","effect_calc":"addPercent","icon":"erfahrung"},"18":{"id":"18","name":"Wahrnehmung","tree_name":"adv","tree_level":"2","max_points":"10","description":"Erh\u00f6ht die Wahrnehmung des Reittiers um bis zu 10%.","point_values":["1","2","3","4","5","6","7","8","9","10"],"effect_key":"ride_cognition","effect_type":"attribute","effect_target":"self","effect_calc":"add","icon":"wahrnehmung"},"19":{"id":"19","name":"Unterh\u00e4ndler","tree_name":"adv","tree_level":"3","max_points":"1","description":"Man erh\u00e4lt 50% mehr Gold bei Quests und Diensten. Zus\u00e4tzlich hat man bei K\u00f6nigsquests eine erh\u00f6hte Chance, Items besserer Qualit\u00e4t zu finden.","point_values":["50"],"effect_key":"gold","effect_type":"generic","effect_target":"self","effect_calc":"addPercent","icon":"unterhaendler"}}};
charactersTalents = {"2":5,"7":5,"8":5,"10":5,"11":5,"13":1};
currentCharactersTalents = {"2":5,"7":5,"8":5,"10":5,"11":5,"13":1};

talentPointImages = {5:new Array(), 10:new Array(), 1:new Array()};

resetPoints = false;

function preload() {
var image;

for(i=0;i<=1;++i) {
image = new Image();
image.src = imgBase+"talentpoints_1_"+i+".png";
talentPointImages[1].push(image);
}

for(i=0;i<=5;++i) {
image = new Image();
image.src = imgBase+"talentpoints_5_"+i+".png";
talentPointImages[5].push(image);
}

for(i=0;i<=10;++i) {
image = new Image();
image.src = imgBase+"talentpoints_10_"+i+".png";
talentPointImages[10].push(image);
}

for(tree_name in talentTrees) {
for(talent_id in talentTrees[tree_name]) {
image = new Image();
image.src = imgBase+"icon_"+talentTrees[tree_name][talent_id].icon+"_active.png";
}
}
}

function getTalent(tree_name, talent_id) {
return talentTrees[tree_name][talent_id];
}

function getTalentTooltip(id) {
var parts = id.substring(3).split("_");
var talent = getTalent(parts[0], parts[1]);

if(talent.point_values && charactersTalents[talent.id]) {
var currentVal = talent.point_values[charactersTalents[talent.id]-1];
}

var currentString = currentVal ? "Aktuell: " + currentVal+" %" : '';

var template = $j("#tooltip_template").html();

template = template.replace("#TITLE#", talent.name);
template = template.replace("#TEXT#", talent.description);
template = template.replace("#CURRENT#", currentString);

return template;
}

function updateTalentIcons(tree_name, tree_level) {
for(i in talentTrees[tree_name]) {
var icon = talentTrees[tree_name][i].tree_level > tree_level ? "bw" : "active";
$j("#tt_"+tree_name+"_"+i+" .points").css("background-image", "url("+imgBase+"icon_"+talentTrees[tree_name][i].icon+"_"+icon+".png)");
}
}

function updateTreePoints(tree_name, tree_level, points) {
talentTreePoints[tree_name][tree_level] += points;
talentTreePoints[tree_name].count += points;

if(talentTreePoints[tree_name].count % 5 == 0) {
updateTalentIcons(tree_name, talentTreePoints[tree_name].count / 5);
}

$j("#"+tree_name+" .tree_points").text(talentTreePoints[tree_name].count);
}

function processAndConfirm(form) {
if(resetPoints) {
resetPoints = false;
return confirm("Willst du deine Talentpunkte wirklich zurücksetzen? Diese Aktion kostet: 100 Gold.");
}

if(confirm("Willst du die neuen Talente wirklich übernehmen?")) {
for(var i in charactersTalents) {
if(charactersTalents[i] != currentCharactersTalents[i]) {
$j(form).append('<input type="hidden" name="charactersTalents['+i+']" value="'+charactersTalents[i]+'" />');
}
}
return true;
}

return false;
}

function initTalentPoints() {
for(i in talentTrees) {
updateTalentIcons(i, 0);
}

$j(".tree .leaf .points").each(function() {
var parts = this.parentNode.id.substring(3).split("_");
var talent = getTalent(parts[0], parts[1]);

if(talentTreePoints[talent.tree_name] == undefined) {
talentTreePoints[talent.tree_name] = new Object();
talentTreePoints[talent.tree_name].count = 0;
}

if(talentTreePoints[talent.tree_name][talent.tree_level] == undefined) {
talentTreePoints[talent.tree_name][talent.tree_level] = 0;
}

var talentPoints = charactersTalents[talent.id];

if(talentPoints) {
updateTreePoints(talent.tree_name, talent.tree_level, parseInt(talentPoints));
this.src = talentPointImages[talent.max_points][talentPoints].src;
} else {
updateTreePoints(talent.tree_name, talent.tree_level, 0);
this.src = talentPointImages[talent.max_points][0].src;
}
});

$j("#talentPoints").text(""+characterTalentPoints);
}

function canRemovePoints(talent) {
var pointsToRemove = 5 - currentCharactersTalents[talent.id];

if(pointsToRemove + talentTreePoints[talent.tree_name][talent.tree_level+1] >= 5) {
return true;
}

for(level in talentTreePoints[talent.tree_name]) {
if(level == "count") continue;

if(level > talent.tree_level && talentTreePoints[talent.tree_name][level] > 0) {
return false;
}
}

return true;
}

function addTalentPoint(talent) {
if(talentTreePoints[talent.tree_name].count >= talent.tree_level * 5) {
if(charactersTalents[talent.id] == undefined) {
charactersTalents[talent.id] = 0;
}

if(characterTalentPoints > 0 && charactersTalents[talent.id] + 1 <= talent.max_points) {
characterTalentPoints—;
charactersTalents[talent.id]++;

updateTreePoints(talent.tree_name, talent.tree_level, 1);
} else if((charactersTalents[talent.id] == talent.max_points || characterTalentPoints == 0) && canRemovePoints(talent)) {
var resetVal = currentCharactersTalents[talent.id] != undefined ? currentCharactersTalents[talent.id] : 0;
var diff = charactersTalents[talent.id] - resetVal;

charactersTalents[talent.id] = resetVal;
characterTalentPoints += diff;

updateTreePoints(talent.tree_name, talent.tree_level, diff * -1);
}

$j("#talentPoints").text(""+characterTalentPoints);
return true;
} else {
return false;
}
}

function undoTalentPoints() {
characterTalentPoints = currentCharacterTalentPoints;
talentTreePoints = new Object();
charactersTalents = jQuery.extend(true, {}, currentCharactersTalents);
initTalentPoints();
}

preload();

$j(document).ready(function() {
$j(".tree .leaf .points").mouseover(function(event) {
return overlib(getTalentTooltip(this.parentNode.id));
}).mouseout(function() {
return nd();
});

initTalentPoints();

$j(".tree .leaf .points").click(function(event) {
var parts = this.parentNode.id.substring(3).split("_");
var talent = getTalent(parts[0], parts[1]);

if(addTalentPoint(talent)) {
this.src = talentPointImages[talent.max_points][charactersTalents[talent.id]].src;

$j(this).mouseover();
}
});
});
</script>
<div class="talents">
<div style="text-align: left; line-height: 0; position: relative; top: 0.5em;"><a href="/characters/index">zurück zum Profil</a></div>

<form method="post" onsubmit="return processAndConfirm(this);">
<div class="tree" id="off">
<h2 style="background: url(http://frontend1.gondal.de/img/images/talents/treeicon_off.png) no-repeat;"><span class="tree_points">0</span></h2>
<div class="leaf" id="tt_off_1">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_staerke_bw.png) no-repeat;" />
</div>
<div class="leaf" id="tt_off_2">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_trefferchance_bw.png) no-repeat;" />
</div>

<div style="clear: both;"></div> <div class="leaf" id="tt_off_3">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_ruestung_ignorieren_bw.png) no-repeat;" />
</div>
<div class="leaf" id="tt_off_4">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_kritische_trefferchance_bw.png) no-repeat;" />
</div>
<div style="clear: both;"></div> <div class="leaf" id="tt_off_5">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_schadensbonus_bw.png) no-repeat;" />

</div>
<div style="clear: both;"></div> <div class="leaf" id="tt_off_6">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_klaffende_wunde_bw.png) no-repeat;" />
</div>
<div style="clear: both;"></div>
</div>
<div class="tree" id="def">
<h2 style="background: url(http://frontend1.gondal.de/img/images/talents/treeicon_def.png) no-repeat;"><span class="tree_points">0</span></h2>

<div class="leaf" id="tt_def_7">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_ausdauer_bw.png) no-repeat;" />
</div>
<div class="leaf" id="tt_def_8">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_ausweichchance_bw.png) no-repeat;" />
</div>
<div style="clear: both;"></div> <div class="leaf" id="tt_def_9">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_ruestung_bw.png) no-repeat;" />

</div>
<div class="leaf" id="tt_def_10">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_blockchance_bw.png) no-repeat;" />
</div>
<div style="clear: both;"></div> <div class="leaf" id="tt_def_11">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_schaden_reflektieren_bw.png) no-repeat;" />
</div>
<div class="leaf" id="tt_def_12">

<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_harmlose_kritische_bw.png) no-repeat;" />
</div>
<div style="clear: both;"></div> <div class="leaf" id="tt_def_13">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_schildmeister_bw.png) no-repeat;" />
</div>
<div style="clear: both;"></div>
</div>
<div class="tree" id="adv">

<h2 style="background: url(http://frontend1.gondal.de/img/images/talents/treeicon_adv.png) no-repeat;"><span class="tree_points">0</span></h2>
<div class="leaf" id="tt_adv_14">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_geschicklichkeit_bw.png) no-repeat;" />
</div>
<div class="leaf" id="tt_adv_15">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_questzeit_bw.png) no-repeat;" />
</div>
<div style="clear: both;"></div> <div class="leaf" id="tt_adv_16">

<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_regeneration_bw.png) no-repeat;" />
</div>
<div class="leaf" id="tt_adv_17">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_erfahrung_bw.png) no-repeat;" />
</div>
<div style="clear: both;"></div> <div class="leaf" id="tt_adv_18">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_wahrnehmung_bw.png) no-repeat;" />
</div>

<div style="clear: both;"></div> <div class="leaf" id="tt_adv_19">
<img class="points" src="http://frontend1.gondal.de/img/images/talentpoints_0.png" width="106" height="102" style="background: url(http://frontend1.gondal.de/img/images/talents/icon_unterhaendler_bw.png) no-repeat;" />
</div>
<div style="clear: both;"></div>
</div>
<div class="button-div">
Übrige Talentpunkte: <span id="talentPoints">0</span><br />

<input type="submit" name="submit_talents" value="Speichern" />
<input type="button" name="undo_talents" value="Rückgängig machen" onclick="undoTalentPoints();" />
<input type="submit" name="reset_talents" value="Zurücksetzen" onclick="resetPoints = true;" />
</div>

</form>
</div>

<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<div id="tooltip_template" style="display: none;">
<div class="talent_tooltip">
<h2>#TITLE#</h2>

<div>
#TEXT#<br /><br />
#CURRENT#
</div>
</div>
</div> </div>
</div>
</td>
<td background="http://frontend1.gondal.de/img/images2/links.jpg" rowspan="2" valign="top">

</td>
<td background="http://frontend1.gondal.de/img/images2/index_12.jpg" rowspan="2" valign="top">
</td>
<td>
<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="1" height="450" alt="" /></td>
</tr>
<tr>
<td background="http://frontend1.gondal.de/img/images2/back3.gif">
</td>

<td>
<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="1" height="28" alt="" /></td>
</tr>
<tr>
<td colspan="9">
<img id="index_14" src="http://frontend1.gondal.de/img/images2/index_14.jpg" width="975" height="66" alt="" /></td>
<td>
<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="1" height="66" alt="" /></td>
</tr>

<tr>
<td>
<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="184" height="1" alt="" /></td>
<td>
<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="26" height="1" alt="" /></td>
<td>
<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="9" height="1" alt="" /></td>
<td>
<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="9" height="1" alt="" /></td>

<td>
<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="682" height="1" alt="" /></td>
<td>
<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="6" height="1" alt="" /></td>
<td>
<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="10" height="1" alt="" /></td>
<td>
<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="48" height="1" alt="" /></td>
<td>

<img src="http://frontend1.gondal.de/img/images2/Abstandhalter.gif" width="1" height="1" alt="" /></td>
<td></td>
</tr>
</table>
<div style="color:brown;">
<a href="http://forum.gondal.de" target="_blank">Forum</a> - <a href="http://gondal.de/chat" target="_blank" onclick="return popup(this.href);">Chat</a> - <a href="/pages/map">Karte</a> - <a href="/infos/impressum">Impressum</a> - <a href="/pages/agb_de">AGB</a> - <a href="/signups/logout">Ausloggen</a>

<br><br>
</div>

</center>

</body>
</html>

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License