"no" # can display extensive stats of the character when fed with $ext="yes" # can display small pictures of people in same building with links with $displayneighbours="yes" # can display visited picture building and link for exit to town with $showcurrentbuilding="yes" $factor = 3; # reduction factor for character sprites ?>
"; } echoAL("".$name.""); if (!$notmyown) { echo ""; } echoA("
Level ".$level." ".$racename." ".$classname); echo "
\n"; echoA ("Hit points="); if ($hp <= 0) { echoA ("".$hp.""); } else { echoA ($hp); } echoA ("/".$hpmax); if ($hp <= -10) { echoA(", dead"); } else { if ($hp <= 0) { echoA(", unconscious"); } } if ($deathpenalty > 0) { echoA(", Vitae=-".$deathpenalty.""); } echo "
\n"; $b1 = $xp - $TXPlevel[$level-1]; $b2 = $TXPlevel[$level] - $TXPlevel[$level-1]; $per = (int)(100*$b1/$b2); echoA($xp." XPs (".$per."%)
\n"); echoA ($totalgold." gold
\n"); if ($weapon <> 0) { echoA ($Tweapon[$weapon]." in hand, "); } else { echoA ("Bare hands, "); } if ($armor <> 0) { echoA ("wearing ".$Tarmor[$armor]); if ($shield <> 0) { echoA (" and "); } } if ($shield <> 0) { echoA ("holding ".$Tarmor[$shield]); } if (($armor == 0) and ($shield == 0)) { echoA ("in clothes"); } echo "

\n"; # allow access to planning if the character is the user's current one if ($searchcurrentchar <> "no") { # fetch and display current turn include Inc("fetchthetick.inc"); echoA (GiveDate($turn + $pi, "complete")."
\n"); if (!$notmyown) { echo "
"; # gives access to the character's planning if ($planning == "") { echo "Planning (empty)"; echoAL ("
Planning"); } else { echo ""; echo "Planning"; echoAL ("
Planning"); echo "
"; } echo "
   "; # gives access to the character's messages $resultmes = mysql_query("SELECT * FROM Messages WHERE ToCharId=$id"); if (mysql_num_rows($resultmes) == '0') { echo "Messages (none)"; echoAL ("
Messages"); } else { $resultmes = mysql_query("SELECT * FROM Messages WHERE ToCharId=$id AND Unread=1"); echo ""; if (mysql_num_rows($resultmes) == '0') { echo "Messages (none new)"; echoAL ("
Messages"); } else { echo "Messages"; echoAL ("
-=Messages=-"); } echo "
"; } echo "
\n"; } } ?>
'0') { $row = mysql_fetch_array($result); $townname = $row["Name"]; echo ""; echoAL("Enter ".$townname); echo ""; } } # if wanted display the visited building, with a link to go back to the city if ($showcurrentbuilding == "yes") { if ($hp <= 0) { echoA("Being unconscious, you cannot exit your location"); } else { $result = mysql_query("SELECT * FROM Buildings WHERE Id=$v"); $row = mysql_fetch_array($result); $imagegif = $row["Gif"]; $imagealt = $row["AltTxt"]; $size = GetImageSize (Inc($imagegif)); $sizeX = $size[0]; $sizeY = $size[1]; echo "
"; echo "\"Exit
"; echoA("".$imagealt."
"); } } ?>
'0') { echo "
"; echoA("also in the building :
"); /* echo ""; echoAL("Chat"); echo "";*/ echo "
"; while ($row=mysql_fetch_array($result)) { $idperso = $row["Id"]; $nameperso = $row["Name"]; $imageperso = $row["Image"]; $size = GetImageSize (Inc($imageperso)); $charsizeX = (int)($size[0]/$factor); $charsizeY = (int)($size[1]/$factor); echo "\"".$nameperso."\"\n"; } echo "
"; } } ?> ".$Txpvalueglobal[$level]."
"); echoA ("Next level at ".$TXPlevel[$level]." XPs
\n"); # echo "death=".$deathrating." uncon=".$unconrating."
"; if ($deathpenalty > 0) { echoA("Vitae penalty of ".$deathpenalty." on all actions, need to gain ".$deathrecover[1]." XPs to recover one point of penalty
\n"); } /* if ($damage > 0) { echoA("Damage=".$damage.", "); } else { echoA("Damage=".$damage.", "); }*/ if ($hp <> $hpmax) { $mediumgain = $level; $mediumnbrec = (int)($damage / $mediumgain + 1); $mediumnbdays = (int)(($mediumnbrec / $recoverytests) - ($recoverytests - $recov)); if (($recoverytests - $recov) >= $mediumnbrec) { echoA("Could recover from injuries today"); } else { if ($mediumnbdays <= 1) { echoA("Could recover from injuries tomorrow"); } else { echoA("Will need about ".$mediumnbdays." days to recover from injuries"); } } echo "
\n"; } echo "
"; # main attributes echo ""; for ($i=1; $i<=6; $i++) { echo ""; } echo "
"; echoA("Strength"); echo ""; echoA("Dexterity"); echo ""; echoA("Constitution"); echo ""; echoA("Intelligence"); echo ""; echoA("Wisdom"); echo ""; echoA("Charisma"); echo "
"; echoA($att[$i]); echo "
"; echo "
"; echoA("AC=".$ac."
"); # talents echoA ("Talents: "); if ($talentsnb > 0) { for ($ti=1; $ti <= $Ttnb; $ti++) { if ($talentsrank[$ti] > 0) { echoA($Ttalent[$ti]." (".$talentsrank[$ti].") "); } } } else { echoA("none"); } echo "
"; # equipment echoA ("Equipment: "); if ($charitemsnb > 0) { $one = 0; for ($ti=1; $ti <= $Twnb; $ti++) { if ($charitemsW[$ti] > 0) { if ($one > 0) { echo ", "; } $one++; if (!$notmyown) { echo ""; } echoAL($Tweapon[$ti]); if (!$notmyown) { echo ""; } if ($charitemsW[$ti] > 1) { echoA("(".$charitemsW[$ti].")"); } } } for ($ti=1; $ti <= $Tanb; $ti++) { if ($charitemsA[$ti] > 0) { if ($one > 0) { echo ", "; } $one++; if (!$notmyown) { echo ""; } echoAL($Tarmor[$ti]); if (!$notmyown) { echo ""; } if ($charitemsA[$ti] > 1) { echoA("(".$charitemsA[$ti].")"); } } } for ($ti=1; $ti <= $Tfnb; $ti++) { if ($charitemsF[$ti] > 0) { if ($one > 0) { echo ", "; } $one++; if (!$notmyown) { echo ""; } echoAL($Tfood[$ti]); if (!$notmyown) { echo ""; } if ($charitemsF[$ti] > 1) { echoA("(".$charitemsF[$ti].")"); } } } for ($ti=1; $ti <= $Tonb; $ti++) { if ($charitemsO[$ti] > 0) { if ($one > 0) { echo ", "; } $one++; if (!$notmyown) { echo ""; } echoAL($Tobject[$ti]); if (!$notmyown) { echo ""; } if ($charitemsO[$ti] > 1) { echoA("(".$charitemsO[$ti].")"); } } } } else { echoA("none"); } echo "
"; echoA ("Created ".$creationdate.", last played ".$lastused."
"); } ?>