"; $n=0; $numcharacters = 0; while ($row = mysql_fetch_array($result)) { $numcharacters++; $searchcurrentchar = "no"; include Inc("fetchcurrentchar.inc"); $resultb = mysql_query("SELECT * FROM Buildings WHERE Id=$visit"); $rowb = mysql_fetch_array($resultb); $buildname = $rowb["AltTxt"]; if ($FP >= 10) { $Fratio = $FW / $FP; } else { $Fratio = 0; } $resultmes = mysql_query("SELECT * FROM Messages WHERE ToCharId=$id AND Unread=1"); if (mysql_num_rows($resultmes) <> '0') { $newmessages = true; } else { $newmessages = false; } $n++; if ($n==1) { echo ""; } echo ""; if ($displayplayer) { echoA($numcharacters."
"); } if ($displaynews) { echo ""; $size = GetImageSize (Inc($image)); $charsizeX = (int)($size[0]/$factor); $charsizeY = (int)($size[1]/$factor); echo "$name
$name
"; echoA ($Trace[$race]." ".$Tclass[$class]." ".$level."
"); echoA ("HPs "); if ($hp <= -10) { echoA ("".$hp.""); } else { if ($hp <= 0) { echoA ("".$hp.""); } else { echoA ($hp); } } echoA (", XPs ".$xp." "); if ($report <> "") { echo "News"; } if ($newmessages) { echo " Message"; } } else { if ($displaylist) { echo ""; echoAL ($name); echo "\n"; } else { echoA ($name); } } if ($displayplayer) { echo " "; echoA ($user); } if ($displaybuilding) { echo ""; echoA ($buildname); echo ""; } if ($displaychoice) { echo ""; echo ""; echo ""; } if ($podium) { echo ""; if (($Fratio <> 0) and ($Fratio == $Fratiomax)) { echo "\"Best"; } if (($xpvalue <> 0) and ($xpvalue == $XPvalmax)) { echo "\"Highest"; } if ($FP > 0) { if (($FP <= 20) and (($FW / $FP) >= 0.95)) { echo "\"Promising"; } } if ($FW >= 5) { $progress = $XP / $FW; if ($progress == $progressmax) { echo "\"Best"; } } echo ""; } echo ""; if ($n==4) { echo " "; $n=0; } else { echo "   "; } if ($podium) { if ($numcharacters == 3) { echo " "; } } } echo ""; ?>