|
$info->showCharacter();
echo "$city ";
echo ($online) ?"Персонаж сейчас находится в клубе. \"$room\"" :"Персонаж не в клубе, но был тут: ".date('d.m.y H:i', $last_time)." (".getFormatedTime($last_time)." назад)";
echo " | ";
echo " ";
foreach ($behaviour as $key => $min_level)
{
if ($level < $min_level)
continue;
$stat_text = (in_array($key, array('str', 'dex', 'con', 'int'))) ?"%s".getBraces($char_stats[$key], $added[$key]) :"%s";
printf($lang[$key]." ".$stat_text." ", $char_stats[$key]);
}
echo " ";
echo "$lang[level] $level ";
echo ($level > 3) ?"$lang[wins] $win " :"$lang[wins] $win ";
echo "$lang[loses] $lose ";
echo "$lang[draws] $draw ";
echo ($clan) ?"Клан: $clan - $chin " :"";
echo "Место рождения: $state ";
echo "День рождения персонажа: $date ";
echo " ";
$info->showInfDetail();
?> |
/* TODO: Gift system
$rows = $adb->select("SELECT `c`.`id`,
`c`.`gift_author`
FROM `character_inventory` AS `c`
LEFT JOIN `item_template` AS `i`
ON `c`.`item_entry` = `i`.`entry`
WHERE `c`.`guid` = ?d
and `i`.`section` = 'thing'
and `i`.`type` = 'medal'
and `c`.`wear` = '0'", $guid);
foreach ($rows as $dat_t)
{
$item_id = $dat_t['id'];
$gift_author = $dat_t['gift_author'];
$obj_data = $adb->selectRow("SELECT `name`,
`img`,
`msg`
FROM `medal`
WHERE `id` = ?d", $item_id);
list($g_name, $img, $msg) = array_values($obj_data);
echo " ";
}*/
?>
|
Анкетные данные
echo "Имя: $name ";
echo "Пол: $sex";
echo ($town) ?" Город: $town" :"";
echo ($icq && !$hide_icq) ?" ICQ: $icq" :"";
echo ($url) ?" Домашняя страница: $url" :"";
echo ($motto) ?" Девиз: $motto " :"";
echo ($hobie) ?" Увлечения / хобби:
".str_replace(array("\'", '\"'), array("'", '"'), $hobie)." " :"";
?> |
|
|