Fusionsrasse: ".$my_charz['fusion_rasse']; } else{ $fusi = ""; } if($my_charz['type']=="Onepiece"){ $frucht = "
Teufelsfrucht: ".str_replace('"','\\\'',$my_charz['frucht']); } else{ $frucht = ""; } $hptemp = explode(",", $my_charz['hp']); $hpleft[$char_zahl] = $hptemp['0'] / $hptemp['1'] * 100; $mptemp = explode(",", $my_charz['mp']); $mpleft[$char_zahl] = $mptemp['0'] / $mptemp['1'] * 100; $exptemp = explode(",", $my_charz['exp']); $room = db_query('SELECT ci.name FROM clan_item ci inner join clan_ware cw on ci.id = cw.item_id WHERE cw.id='.$my_charz['clan_train']); $clanroom=mysqli_fetch_assoc($room); if($clanroom['name']=="") $clanroom['name']="kein"; $temproom="
Trainingsraum: ".$clanroom['name'].""; $hp = "HP: ".$hptemp['0']." / ".$hptemp['1']; if($my_charz['status'] == "Schatz Suche"){ $statustemp = "Schatz%20Suche"; } else{ $statustemp = $my_charz['status']; } if($my_charz['kampf_item'] != NULL && $my_charz['kampf_item'] != ',,,,'){ // echo 'Problematic Entry = '.$chara_1['kampf_item'].'
'; $char1_buffs = mysqli_fetch_assoc(db_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'].')'; $mp = "MP: ".$mptemp['0']." / ".$mptemp['1']; $exp = "Exp: ".$exptemp['0']." / ".$exptemp['1']; if($my_charz['status'] == 'Frei' ){ $temp = 'Status: '.$my_charz['status']; $quicklink = "
Auf Schatzsuche schicken
Attacken einstellen"; } else if($my_charz['status'] == 'Kampf Erstellt'){ $temp = 'Status: '.$my_charz['status']; $quicklink = ''; } else if($my_charz['status'] == 'Clanfight' && !isEventToFetchAwaiting($my_charz['id'], EVENT_CLAN_FIGHT)) { $temp = 'Status: '.$my_charz['status']; } else{ $temp = "Status: ".$my_charz['status'].""; $quicklink = ''; } $werte = "Stärke: ".$c_starke."
Verteidigung: ".$c_verteidigung."
Geschwindigkeit: ".$c_speed."
Ausdauer: ".$c_ausdauer."
Glück: ".$c_glueck; $lp = "
Lernpunkte: ".$my_charz['lernpunkte'].""; $tp = "Trainingspunkte: ".$my_charz['training_points']."".$temproom; //$temp = $statustemp.""; $temp2 = "Level: ".$my_charz['level']."
Powerlevel: $POWERLEVEL5
Typ: ".$my_charz['type']."
Rasse: ".$my_charz['rasse'].$fusi.$frucht.$lp."
$tp

$hp
$mp
$exp

$werte"; $popup[$char_zahl] = ''; $chars_bilds[] = $my_charz['bild']; $chars_names[] = $my_charz['name']; $char_zahl++; } $visiblechars = 8; for($i=$char_zahl;$i<$visiblechars;$i++){ $CHARAKTER_NAME[$i] = "Kein Charakter"; $CHARAKTER_VERWALTUNG[$i] = "none"; $CHARAKTER_LERNPUNKTE[$i] = "none"; $CHARAKTER_TRAINING[$i] = "none"; $CHARAKTER_STATUS[$i] = "none"; $CHARAKTER_SCHATZ[$i] = "none"; } for($i=0;$i<$visiblechars;$i++){ if($chars_bilds[$i] == null) { $chars_bilds[$i] = 'design/bilder/avatare/Char.gif'; } } // Zeige einen vertikalen Werbebanner an echo getHorizontalAdvertisement(); ?>

'; echo $popup[$i].$chars_names[$i].''; } } ?>

'; echo $popup[$i].''; } } echo '

'; for($i=0;$i<=3;$i++) { if($chars_bilds[$i]!='design/bilder/avatare/Char.gif') { echo ''; } } echo ''; for($i=0;$i<=3;$i++) { if($chars_bilds[$i]!='design/bilder/avatare/Char.gif') { echo ''; } } ?>
'; if($hpleft[$i] > 1) echo ''; if($hpleft[$i] < 100) echo ''; echo '
'; if($mpleft[$i] > 1) echo ''; if($mpleft[$i] < 100) echo ''; echo '


'; echo $popup[$i].$chars_names[$i].''; } } ?> '; echo $popup[$i].''; } } echo ''; for($i=4;$i<=7;$i++) { if($chars_bilds[$i]!='design/bilder/avatare/Char.gif') { echo ''; } } echo ''; for($i=4;$i<=7;$i++) { if($chars_bilds[$i]!='design/bilder/avatare/Char.gif') { echo ''; } } ?>
'; if($hpleft[$i] > 1) echo ''; if($hpleft[$i] < 100) echo ''; echo '
'; if($mpleft[$i] > 1) echo ''; if($mpleft[$i] < 100) echo ''; echo '