@ -52,7 +52,7 @@ foreach($chars as $my_charz){
$temproom="< br > < a href = index.php?as=clan/c_ware&char_id=$my_charz[id] id = popup > Trainingsraum: ".$clanroom['name']."< / a > ";
$hp = "HP: ".$hptemp['0']." / ".$hptemp['1'].' (+'.$char1_buffs['hp'].')';;
if($my_charz['status'] == "Schatz Suche")
$statustemp = "Schatz%20Suche";
else
@ -63,14 +63,17 @@ foreach($chars as $my_charz){
// echo 'Problematic Entry = '.$chara_1['kampf_item'].'< br > ';
$char1_buffs = mysql_fetch_assoc(mysql_query('SELECT sum(i.hp) as hp, sum(i.mp) as mp, sum(i.starke) as starke, sum(i.verteidigung) as verteidigung, sum(i.speed) as speed FROM ware w LEFT JOIN item i ON(i.id=w.item_id) WHERE w.id IN (' . $my_charz['kampf_item'] . ')'));
}
$c_starke = $char1_buffs['starke']==0?$my_charz['starke']:($my_charz['starke']).' (+'.$char1_buffs['starke'].')';
$c_verteidigung = $char1_buffs['verteidigung']==0?$my_charz['verteidigung']:($my_charz['verteidigung']).' (+'.$char1_buffs['verteidigung'].')';
$c_speed = $char1_buffs['speed']==0?$my_charz['speed']:($my_charz['speed']).' (+'.$char1_buffs['speed'].')';
$c_ausdauer = $char1_buffs['ausdauer']==0?$my_charz['ausdauer']:($my_charz['ausdauer']).' (+'.$char1_buffs['ausdauer'].')';
$c_glueck = $char1_buffs['glueck']==0?$my_charz['glueck']:($my_charz['glueck']).' (+'.$char1_buffs['glueck'].')';
$c_starke = ($char1_buffs['starke']==0)?$my_charz['starke']:($my_charz['starke']).' (+'.$char1_buffs['starke'].')';
$c_verteidigung = ($char1_buffs['verteidigung']==0)?$my_charz['verteidigung']:($my_charz['verteidigung']).' (+'.$char1_buffs['verteidigung'].')';
$c_speed = ($char1_buffs['speed']==0)?$my_charz['speed']:($my_charz['speed']).' (+'.$char1_buffs['speed'].')';
$c_ausdauer = ($char1_buffs['ausdauer']==0)?$my_charz['ausdauer']:($my_charz['ausdauer']).' (+'.$char1_buffs['ausdauer'].')';
$c_glueck = ($char1_buffs['glueck']==0)?$my_charz['glueck']:($my_charz['glueck']).' (+'.$char1_buffs['glueck'].')';
$mp = "MP: ".$mptemp['0']." / ".$mptemp['1'].' (+'.$char1_buffs['mp'].')';;
$exp = "Exp: ".$exptemp['0']." / ".$exptemp['1'];
$hp = ($char1_buffs['hp']==0)?("HP: ".$hptemp[0]." / ".$hptemp[1]):("HP: ".$hptemp[0]." / ".$hptemp[1].' (+'.$char1_buffs['hp'].')');
$mp = ($char1_buffs['mp']==0)?("MP: ".$mptemp[0]." / ".$mptemp[1]):("MP: ".$mptemp[0]." / ".$mptemp[1].' (+'.$char1_buffs['mp'].')');
//$mp = "MP: ".$mptemp[0]." / ".$mptemp[1].' (+'.$char1_buffs['mp'].')';
$exp = "Exp: ".$exptemp[0]." / ".$exptemp[1];
if($my_charz['status'] == 'Frei' ){
$temp = 'Status: '.$my_charz['status'];
} elseif($my_charz['status'] == 'Angemeldet' OR $my_charz['status'] == 'Kampf erstellt') {