showpersout() наконец удалена!
This commit is contained in:
parent
0292ec5d35
commit
3ca97c3bad
@ -80,24 +80,24 @@ class User
|
||||
$variables = $this->level . '<br>' . $this->getStrength() . '<br>' . $this->getDexterity() . '<br>' . $this->getIntuition() . '<br>' . $this->getEndurance() . '<br>' . $this->getIntelligence() . '<br>' . $this->getWisdom() . '<br>' . $this->getRoomName($this->room);
|
||||
if ($isMainWindow) {
|
||||
$this->Bank = new Bank($this->id);
|
||||
$captions = 'Уровень:<br>Сила:<br>Ловкость:<br>Интуиция:<br>Выносливость:<br>Интеллект:<br>Мудрость:<br>Деньги:<br>Деньги в банке:';
|
||||
$variables =$this->level . '<br>' . $this->getStrength(1) . '<br>' . $this->getDexterity(1) . '<br>' . $this->getIntuition(1) . '<br>' . $this->getEndurance(1) . '<br>' . $this->getIntelligence(1) . '<br>' . $this->getWisdom(1) . '<br>' . $this->money . '<br>' . $this->Bank->money;
|
||||
$captions = 'Уровень:<br>Сила:<br>Ловкость:<br>Интуиция:<br>Выносливость:<br>Интеллект:<br>Мудрость:<br>Опыт:<br>Очки характеристик:<br>Деньги:<br>Деньги в банке:';
|
||||
$variables = $this->level . '<br>' . $this->getStrength(1) . '<br>' . $this->getDexterity(1) . '<br>' . $this->getIntuition(1) . '<br>' . $this->getEndurance(1) . '<br>' . $this->getIntelligence(1) . '<br>' . $this->getWisdom(1) . '<br>' . $this->experience . '<br>' . $this->stat_points . '<br>' . $this->money . '<br>' . $this->Bank->money;
|
||||
}
|
||||
|
||||
if ($this->align) {
|
||||
$nameString = sprintf('<img src="/i/align_%s.png" >', $this->align);
|
||||
}
|
||||
if ($this->block) {
|
||||
$nameString .= '<span class="private"><s>'.$this->login.'</s></span>';
|
||||
$nameString .= '<span class="private"><s>' . $this->login . '</s></span>';
|
||||
} else {
|
||||
$nameString .= ' <b>'.$this->login.'</b> ';
|
||||
$nameString .= ' <b>' . $this->login . '</b> ';
|
||||
}
|
||||
if ($this->clan) {
|
||||
$nameString .= sprintf('<img src="/i/klan/%s.png" >', ClanImage($this->clan));
|
||||
}
|
||||
echo '<div class="user-info">';
|
||||
echo '<div class="info">';
|
||||
echo '<b>' .$nameString. '</b>';
|
||||
echo '<b>' . $nameString . '</b>';
|
||||
echo '</div><!-- info -->';
|
||||
echo '<div class="stats-container">';
|
||||
echo '<div class="column">';
|
||||
@ -111,37 +111,48 @@ class User
|
||||
echo '</div><!-- user-info -->';
|
||||
}
|
||||
|
||||
private function getStrength($isMainWindow = 0) {
|
||||
private function getStrength($isMainWindow = 0)
|
||||
{
|
||||
if ($this->stat_points && $isMainWindow) {
|
||||
return sprintf('%s <a href="#">[+]</a>', $this->strength);
|
||||
}
|
||||
return $this->strength;
|
||||
}
|
||||
private function getDexterity($isMainWindow = 0) {
|
||||
|
||||
private function getDexterity($isMainWindow = 0)
|
||||
{
|
||||
if ($this->stat_points && $isMainWindow) {
|
||||
return sprintf('%s <a href="#">[+]</a>', $this->dexterity);
|
||||
}
|
||||
return $this->strength;
|
||||
}
|
||||
private function getIntuition($isMainWindow = 0) {
|
||||
|
||||
private function getIntuition($isMainWindow = 0)
|
||||
{
|
||||
if ($this->stat_points && $isMainWindow) {
|
||||
return sprintf('%s <a href="#">[+]</a>', $this->intuition);
|
||||
}
|
||||
return $this->strength;
|
||||
}
|
||||
private function getEndurance($isMainWindow = 0) {
|
||||
|
||||
private function getEndurance($isMainWindow = 0)
|
||||
{
|
||||
if ($this->stat_points && $isMainWindow) {
|
||||
return sprintf('%s <a href="#">[+]</a>', $this->endurance);
|
||||
}
|
||||
return $this->strength;
|
||||
}
|
||||
private function getIntelligence($isMainWindow = 0) {
|
||||
|
||||
private function getIntelligence($isMainWindow = 0)
|
||||
{
|
||||
if ($this->stat_points && $isMainWindow) {
|
||||
return sprintf('%s <a href="#">[+]</a>', $this->intelligence);
|
||||
}
|
||||
return $this->strength;
|
||||
}
|
||||
private function getWisdom($isMainWindow = 0) {
|
||||
|
||||
private function getWisdom($isMainWindow = 0)
|
||||
{
|
||||
if ($this->stat_points && $isMainWindow) {
|
||||
return sprintf('%s <a href="#">[+]</a>', $this->wisdom);
|
||||
}
|
||||
@ -229,7 +240,8 @@ class User
|
||||
echo '</div><!-- user-info-container -->';
|
||||
}
|
||||
|
||||
public function showUserInfoMain() {
|
||||
public function showUserInfoMain()
|
||||
{
|
||||
echo '<div class="user-info-container">';
|
||||
$this->UserInfoDoll();
|
||||
$this->userInfoStats(1);
|
||||
|
333
functions.php
333
functions.php
@ -525,339 +525,6 @@ function timetoheals($user)
|
||||
return $fulltime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Смотрим на себя в главном окне игры.
|
||||
*
|
||||
* @param int $pas
|
||||
*/
|
||||
function showpersout($pas = 0) //FIXME Сделать по человечески!
|
||||
{
|
||||
global $user;
|
||||
|
||||
echo '<CENTER>';
|
||||
nick::id($user['id'])->full();
|
||||
|
||||
if ($user['block']) {
|
||||
echo "<br><span class=private>Персонаж заблокирован!</span>";
|
||||
}
|
||||
?>
|
||||
|
||||
<table class="allzeroes">
|
||||
<tr>
|
||||
<TD colspan=3>
|
||||
<?= setHP($user['hp'], $user['maxhp']) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php if (($user['level'] > 3) && !$pas): ?>
|
||||
<TR>
|
||||
<TD colspan=3>
|
||||
<?php
|
||||
echoscroll('m1');
|
||||
echoscroll('m2');
|
||||
echoscroll('m3');
|
||||
echoscroll('m4');
|
||||
echoscroll('m5');
|
||||
?>
|
||||
</TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD colspan=3>
|
||||
<?php
|
||||
echoscroll('m6');
|
||||
echoscroll('m7');
|
||||
echoscroll('m8');
|
||||
echoscroll('m9');
|
||||
echoscroll('m10');
|
||||
?>
|
||||
</TD>
|
||||
</TR>
|
||||
<?php endif; ?>
|
||||
<TR>
|
||||
<TD style="width: 62px;">
|
||||
<TABLE class="allzeroes">
|
||||
<TR>
|
||||
<TD><?php
|
||||
if ($user['sergi'] > 0) {
|
||||
$dress = db::c()->query('SELECT * FROM `inventory` WHERE `id` = ?i', $user['sergi'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && !$pas) {
|
||||
echo showhrefmagic($dress);
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' ' . ((($dress['maxdur'] - 2) <= $dress['duration'] && $dress['duration'] > 2 && !$pas) ? " style='background-image:url(i/blink.gif);' " : "") . ' src="i/sh/' . $dress['img'] . '" width=60 height=20 title="<b>' . $dress['name'] . "</b><br />Прочность " . $dress['duration'] . "/" . $dress['maxdur'] . "" . "" . (($dress['ghp'] > 0) ? "<br />Уровень жизни " . plusorminus($dress['ghp']) : "") . (($dress['text'] != null) ? "<br />На серьгах выгравировано '{$dress['text']}'" : "") . (($dress['gsila'] != 0) ? "<br />Сила " . plusorminus($dress['gsila']) : "") . (($dress['glovk'] != 0) ? "<br />Ловкость " . plusorminus($dress['glovk']) : "") . (($dress['ginta'] != 0) ? "<br />Интуиция " . plusorminus($dress['ginta']) : "") . (($dress['gintel'] != 0) ? "<br />Интеллект " . plusorminus($dress['gintel']) : "") . (($dress['bron1'] != 0) ? "<br />Броня головы: " . plusorminus($dress['bron1']) : "") . (($dress['bron2'] != 0) ? "<br />Броня корпуса: " . plusorminus($dress['bron2']) : "") . (($dress['bron3'] != 0) ? "<br />Броня пояса: " . plusorminus($dress['bron3']) : "") . (($dress['bron4'] != 0) ? "<br />Броня ног: " . plusorminus($dress['bron4']) : "") . '" />';
|
||||
}
|
||||
} else {
|
||||
echo '<img src="i/w1.gif" width=60 height=20 class="tooltip" title="Пустой слот Серьги" />';
|
||||
}
|
||||
?></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><?php
|
||||
if ($user['kulon'] > 0) {
|
||||
$dress = db::c()->query('SELECT * FROM `inventory` WHERE `id` = ?i', $user['kulon'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && !$pas) {
|
||||
echo showhrefmagic($dress);
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' ' . ((($dress['maxdur'] - 2) <= $dress['duration'] && $dress['duration'] > 2 && !$pas) ? " style='background-image:url(i/blink.gif);' " : "") . ' src="i/sh/' . $dress['img'] . '" width=60 height=20 title="<b>' . $dress['name'] . "</b><br />Прочность " . $dress['duration'] . "/" . $dress['maxdur'] . "" . "" . (($dress['ghp'] > 0) ? "<br />Уровень жизни " . plusorminus($dress['ghp']) : "") . (($dress['text'] != null) ? "<br />На ожерелье выгравировано '{$dress['text']}'" : "") . (($dress['gsila'] != 0) ? "<br />Сила " . plusorminus($dress['gsila']) : "") . (($dress['glovk'] != 0) ? "<br />Ловкость " . plusorminus($dress['glovk']) : "") . (($dress['ginta'] != 0) ? "<br />Интуиция " . plusorminus($dress['ginta']) : "") . (($dress['gintel'] != 0) ? "<br />Интеллект " . plusorminus($dress['gintel']) : "") . (($dress['bron1'] != 0) ? "<br />Броня головы: " . plusorminus($dress['bron1']) : "") . (($dress['bron2'] != 0) ? "<br />Броня корпуса: " . plusorminus($dress['bron2']) : "") . (($dress['bron3'] != 0) ? "<br />Броня пояса: " . plusorminus($dress['bron3']) : "") . (($dress['bron4'] != 0) ? "<br />Броня ног: " . plusorminus($dress['bron4']) : "") . '" />';
|
||||
}
|
||||
} else {
|
||||
echo '<img src="i/w2.gif" width=60 height=20 class="tooltip" title="Пустой слот Ожерелье" />';
|
||||
}
|
||||
?></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><?php
|
||||
if ($user['weap'] > 0) {
|
||||
$dress = db::c()->query('SELECT * FROM `inventory` WHERE `id` = ?i', $user['weap'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && !$pas) {
|
||||
echo showhrefmagic($dress);
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' ' . ((($dress['maxdur'] - 2) <= $dress['duration'] && $dress['duration'] > 2 && !$pas) ? " style='background-image:url(i/blink.gif);' " : "") . ' src="i/sh/' . $dress['img'] . '" width=60 height=60 title="<b>' . $dress['name'] . "</b><br />Прочность " . $dress['duration'] . "/" . $dress['maxdur'] . "" . "" . (($dress['ghp'] > 0) ? "<br />Уровень жизни " . plusorminus($dress['ghp']) : "") . (($dress['minu'] > 0) ? "<br />Урон {$dress['minu']}-{$dress['maxu']}" : "") . (($dress['text'] != null) ? "<br />На оружии выгравировано '{$dress['text']}'" : "") . (($dress['gsila'] != 0) ? "<br />Сила " . plusorminus($dress['gsila']) : "") . (($dress['glovk'] != 0) ? "<br />Ловкость " . plusorminus($dress['glovk']) : "") . (($dress['ginta'] != 0) ? "<br />Интуиция " . plusorminus($dress['ginta']) : "") . (($dress['gintel'] != 0) ? "<br />Интеллект " . plusorminus($dress['gintel']) : "") . (($dress['bron1'] != 0) ? "<br />Броня головы: " . plusorminus($dress['bron1']) : "") . (($dress['bron2'] != 0) ? "<br />Броня корпуса: " . plusorminus($dress['bron2']) : "") . (($dress['bron3'] != 0) ? "<br />Броня пояса: " . plusorminus($dress['bron3']) : "") . (($dress['bron4'] != 0) ? "<br />Броня ног: " . plusorminus($dress['bron4']) : "") . '" />';
|
||||
}
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' src="i/w3.gif" width=60 height=60 title="Пустой слот Оружие" />';
|
||||
}
|
||||
?></A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><?php
|
||||
if ($user['bron'] > 0 || $user['rybax'] > 0 || $user['plaw'] > 0) {
|
||||
$title = '';
|
||||
$d = '';
|
||||
if ($user['plaw']) {
|
||||
$d = $user['plaw'];
|
||||
if ($user['bron']) {
|
||||
$dress = db::c()->query('SELECT * FROM `inventory` WHERE `id` = ?i', $user['bron'])->fetch_assoc();
|
||||
$title .= '<br />--------------------<br /><b>' . $dress['name'] . '</b><br />Прочность ' . $dress['duration'] . '/' . $dress['maxdur'] . '' . (($dress['ghp'] > 0) ? '<br />Уровень жизни ' . plusorminus($dress['ghp']) : '') . (($dress['text'] != null) ? '<br />На одежде вышито ' . $dress['text'] . '' : '') . (($dress['gsila'] != 0) ? '<br />Сила ' . plusorminus($dress['gsila']) . '' : '') . (($dress['glovk'] != 0) ? '<br />Ловкость ' . plusorminus($dress['glovk']) . '' : '') . (($dress['ginta'] != 0) ? '<br />Интуиция ' . plusorminus($dress['ginta']) . '' : '') . (($dress['gintel'] != 0) ? '<br />Интеллект ' . plusorminus($dress['gintel']) . '' : '') . (($dress['bron1'] != 0) ? '<br />Броня головы: ' . plusorminus($dress['bron1']) . '' : '') . (($dress['bron2'] != 0) ? '<br />Броня корпуса: ' . plusorminus($dress['bron2']) . '' : '') . (($dress['bron3'] != 0) ? '<br />Броня пояса: ' . plusorminus($dress['bron3']) . '' : '') . (($dress['bron4'] != 0) ? '<br />Броня ног: ' . plusorminus($dress['bron4']) . '' : '');
|
||||
}
|
||||
if ($user['rybax']) {
|
||||
$dress = db::c()->query('SELECT * FROM `inventory` WHERE `id` = ?i', $user['rybax'])->fetch_assoc();
|
||||
$title .= '<br />--------------------<br /><b>' . $dress['name'] . '</b><br />Прочность ' . $dress['duration'] . '/' . $dress['maxdur'] . '' . (($dress['ghp'] > 0) ? '<br />Уровень жизни ' . plusorminus($dress['ghp']) : '') . (($dress['text'] != null) ? '<br />На одежде вышито ' . $dress['text'] . '' : '') . (($dress['gsila'] != 0) ? '<br />Сила ' . plusorminus($dress['gsila']) . '' : '') . (($dress['glovk'] != 0) ? '<br />Ловкость ' . plusorminus($dress['glovk']) . '' : '') . (($dress['ginta'] != 0) ? '<br />Интуиция ' . plusorminus($dress['ginta']) . '' : '') . (($dress['gintel'] != 0) ? '<br />Интеллект ' . plusorminus($dress['gintel']) . '' : '') . (($dress['bron1'] != 0) ? '<br />Броня головы: ' . plusorminus($dress['bron1']) . '' : '') . (($dress['bron2'] != 0) ? '<br />Броня корпуса: ' . plusorminus($dress['bron2']) . '' : '') . (($dress['bron3'] != 0) ? '<br />Броня пояса: ' . plusorminus($dress['bron3']) . '' : '') . (($dress['bron4'] != 0) ? '<br />Броня ног: ' . plusorminus($dress['bron4']) . '' : '');
|
||||
}
|
||||
} elseif ($user['bron']) {
|
||||
$d = $user['bron'];
|
||||
if ($user['rybax']) {
|
||||
$dress = db::c()->query('SELECT * FROM `inventory` WHERE `id` = ?i', $user['rybax'])->fetch_assoc();
|
||||
$title .= "<br />--------------------<br /><b>$dress[name]</b><br />Прочность $dress[duration]/$dress[maxdur]" . (($dress['ghp'] > 0) ? "<br />Уровень жизни " . plusorminus($dress['ghp']) : "") . (($dress['text'] != null) ? "<br />На одежде вышито '{$dress['text']}'" : "") . (($dress['gsila'] != 0) ? "<br />Сила " . plusorminus($dress['gsila']) : "") . (($dress['glovk'] != 0) ? "<br />Ловкость " . plusorminus($dress['glovk']) : "") . (($dress['ginta'] != 0) ? "<br />Интуиция " . plusorminus($dress['ginta']) : "") . (($dress['gintel'] != 0) ? "<br />Интеллект " . plusorminus($dress['gintel']) : "") . (($dress['bron1'] != 0) ? "<br />Броня головы: " . plusorminus($dress['bron1']) : "") . (($dress['bron2'] != 0) ? "<br />Броня корпуса: " . plusorminus($dress['bron2']) : "") . (($dress['bron3'] != 0) ? "<br />Броня пояса: " . plusorminus($dress['bron3']) : "") . (($dress['bron4'] != 0) ? "<br />Броня ног: " . plusorminus($dress['bron4']) : "") . '"';
|
||||
}
|
||||
} elseif ($user['rybax']) {
|
||||
$d = $user['rybax'];
|
||||
}
|
||||
$dress = db::c()->query('SELECT * FROM `inventory` WHERE `id` = ?i', $d)->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && !$pas) {
|
||||
echo showhrefmagic($dress);
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' ' . ((($dress['maxdur'] - 2) <= $dress['duration'] && $dress['duration'] > 2 && !$pas) ? " style='background-image:url(i/blink.gif);' " : "") . ' src="i/sh/' . $dress['img'] . '" width=60 height=80 title="<b>' . $dress['name'] . "</b><br />Прочность " . $dress['duration'] . "/" . $dress['maxdur'] . "" . "" . (($dress['ghp'] > 0) ? "<br />Уровень жизни " . plusorminus($dress['ghp']) : "") . (($dress['text'] != null) ? "<br />На одежде вышито '{$dress['text']}'" : "") . (($dress['gsila'] != 0) ? "<br />Сила " . plusorminus($dress['gsila']) : "") . (($dress['glovk'] != 0) ? "<br />Ловкость " . plusorminus($dress['glovk']) : "") . (($dress['ginta'] != 0) ? "<br />Интуиция " . plusorminus($dress['ginta']) : "") . (($dress['gintel'] != 0) ? "<br />Интеллект " . plusorminus($dress['gintel']) : "") . (($dress['bron1'] != 0) ? "<br />Броня головы: " . plusorminus($dress['bron1']) : "") . (($dress['bron2'] != 0) ? "<br />Броня корпуса: " . plusorminus($dress['bron2']) : "") . (($dress['bron3'] != 0) ? "<br />Броня пояса: " . plusorminus($dress['bron3']) : "") . (($dress['bron4'] != 0) ? "<br />Броня ног: " . plusorminus($dress['bron4']) : "") . $title . '" />';
|
||||
}
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' src="i/w4.gif" width=60 height=80 title="Пустой слот Броня" />';
|
||||
}
|
||||
?></a></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD>
|
||||
<TABLE class="allzeroes">
|
||||
<tr>
|
||||
<td><?php
|
||||
if ($user['r1'] > 0) {
|
||||
$dress = db::c()->query('SELECT * FROM `inventory` WHERE `id` = ?i', $user['r1'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && !$pas) {
|
||||
showhrefmagic($dress);
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' ' . ((($dress['maxdur'] - 2) <= $dress['duration'] && $dress['duration'] > 2 && !$pas) ? " style='background-image:url(i/blink.gif);' " : "") . ' src="i/sh/' . $dress['img'] . '" width=20 height=20 title="<b>' . $dress['name'] . "</b><br />Прочность " . $dress['duration'] . "/" . $dress['maxdur'] . "" . "" . (($dress['ghp'] > 0) ? "<br />Уровень жизни " . plusorminus($dress['ghp']) : "") . (($dress['text'] != null) ? "<br />На кольце выгравировано '{$dress['text']}'" : "") . (($dress['gsila'] != 0) ? "<br />Сила " . plusorminus($dress['gsila']) : "") . (($dress['glovk'] != 0) ? "<br />Ловкость " . plusorminus($dress['glovk']) : "") . (($dress['ginta'] != 0) ? "<br />Интуиция " . plusorminus($dress['ginta']) : "") . (($dress['gintel'] != 0) ? "<br />Интеллект " . plusorminus($dress['gintel']) : "") . (($dress['bron1'] != 0) ? "<br />Броня головы: " . plusorminus($dress['bron1']) : "") . (($dress['bron2'] != 0) ? "<br />Броня корпуса: " . plusorminus($dress['bron2']) : "") . (($dress['bron3'] != 0) ? "<br />Броня пояса: " . plusorminus($dress['bron3']) : "") . (($dress['bron4'] != 0) ? "<br />Броня ног: " . plusorminus($dress['bron4']) : "") . '" />';
|
||||
}
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />';
|
||||
}
|
||||
?></A></td>
|
||||
<td><?php
|
||||
if ($user['r2'] > 0) {
|
||||
$dress = db::c()->query('SELECT * FROM `inventory` WHERE `id` = ?i', $user['r2'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && !$pas) {
|
||||
echo showhrefmagic($dress);
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' ' . ((($dress['maxdur'] - 2) <= $dress['duration'] && $dress['duration'] > 2 && !$pas) ? " style='background-image:url(i/blink.gif);' " : "") . ' src="i/sh/' . $dress['img'] . '" width=20 height=20 title="<b>' . $dress['name'] . "</b><br />Прочность " . $dress['duration'] . "/" . $dress['maxdur'] . "" . "" . (($dress['ghp'] > 0) ? "<br />Уровень жизни " . plusorminus($dress['ghp']) : "") . (($dress['text'] != null) ? "<br />На кольце выгравировано '{$dress['text']}'" : "") . (($dress['gsila'] != 0) ? "<br />Сила " . plusorminus($dress['gsila']) : "") . (($dress['glovk'] != 0) ? "<br />Ловкость " . plusorminus($dress['glovk']) : "") . (($dress['ginta'] != 0) ? "<br />Интуиция " . plusorminus($dress['ginta']) : "") . (($dress['gintel'] != 0) ? "<br />Интеллект " . plusorminus($dress['gintel']) : "") . (($dress['bron1'] != 0) ? "<br />Броня головы: " . plusorminus($dress['bron1']) : "") . (($dress['bron2'] != 0) ? "<br />Броня корпуса: " . plusorminus($dress['bron2']) : "") . (($dress['bron3'] != 0) ? "<br />Броня пояса: " . plusorminus($dress['bron3']) : "") . (($dress['bron4'] != 0) ? "<br />Броня ног: " . plusorminus($dress['bron4']) : "") . '" />';
|
||||
}
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />';
|
||||
}
|
||||
?></A></td>
|
||||
<td><?php
|
||||
if ($user['r3'] > 0) {
|
||||
$dress = db::c()->query('SELECT * FROM `inventory` WHERE `id` = ?i', $user['r3'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && !$pas) {
|
||||
echo showhrefmagic($dress);
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' ' . ((($dress['maxdur'] - 2) <= $dress['duration'] && $dress['duration'] > 2 && !$pas) ? " style='background-image:url(i/blink.gif);' " : "") . ' src="i/sh/' . $dress['img'] . '" width=20 height=20 title="<b>' . $dress['name'] . "</b><br />Прочность " . $dress['duration'] . "/" . $dress['maxdur'] . "" . "" . (($dress['ghp'] > 0) ? "<br />Уровень жизни " . plusorminus($dress['ghp']) : "") . (($dress['text'] != null) ? "<br />На кольце выгравировано '{$dress['text']}'" : "") . (($dress['gsila'] != 0) ? "<br />Сила " . plusorminus($dress['gsila']) : "") . (($dress['glovk'] != 0) ? "<br />Ловкость " . plusorminus($dress['glovk']) : "") . (($dress['ginta'] != 0) ? "<br />Интуиция " . plusorminus($dress['ginta']) : "") . (($dress['gintel'] != 0) ? "<br />Интеллект " . plusorminus($dress['gintel']) : "") . (($dress['bron1'] != 0) ? "<br />Броня головы: " . plusorminus($dress['bron1']) : "") . (($dress['bron2'] != 0) ? "<br />Броня корпуса: " . plusorminus($dress['bron2']) : "") . (($dress['bron3'] != 0) ? "<br />Броня пояса: " . plusorminus($dress['bron3']) : "") . (($dress['bron4'] != 0) ? "<br />Броня ног: " . plusorminus($dress['bron4']) : "") . '" />';
|
||||
}
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' src="i/w6.gif" width=20 height=20 title="Пустой слот Кольцо" />';
|
||||
}
|
||||
?></A></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
<TD><img src="i/shadow/<?= $user['shadow'] ?>" width=76 height=209 alt="<?= $user['login'] ?>">
|
||||
</TD>
|
||||
<TD style="width: 62px;">
|
||||
<TABLE class="allzeroes">
|
||||
<TR>
|
||||
<TD><?php
|
||||
if ($user['helm'] > 0) {
|
||||
$dress = db::c()->query('SELECT * FROM `inventory` WHERE `id` = ?i', $user['helm'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && !$pas) {
|
||||
echo showhrefmagic($dress);
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' ' . ((($dress['maxdur'] - 2) <= $dress['duration'] && $dress['duration'] > 2 && !$pas) ? " style='background-image:url(i/blink.gif);' " : "") . ' src="i/sh/' . $dress['img'] . '" width=60 height=60 title="<b>' . $dress['name'] . "</b><br />Прочность " . $dress['duration'] . "/" . $dress['maxdur'] . "" . "" . (($dress['ghp'] > 0) ? "<br />Уровень жизни " . plusorminus($dress['ghp']) : "") . (($dress['text'] != null) ? "<br />На шлеме выгравировано '{$dress['text']}'" : "") . (($dress['gsila'] != 0) ? "<br />Сила " . plusorminus($dress['gsila']) : "") . (($dress['glovk'] != 0) ? "<br />Ловкость " . plusorminus($dress['glovk']) : "") . (($dress['ginta'] != 0) ? "<br />Интуиция " . plusorminus($dress['ginta']) : "") . (($dress['gintel'] != 0) ? "<br />Интеллект " . plusorminus($dress['gintel']) : "") . (($dress['bron1'] != 0) ? "<br />Броня головы: " . plusorminus($dress['bron1']) : "") . (($dress['bron2'] != 0) ? "<br />Броня корпуса: " . plusorminus($dress['bron2']) : "") . (($dress['bron3'] != 0) ? "<br />Броня пояса: " . plusorminus($dress['bron3']) : "") . (($dress['bron4'] != 0) ? "<br />Броня ног: " . plusorminus($dress['bron4']) : "") . '" />';
|
||||
}
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' src="i/w9.gif" width=60 height=60 title="Пустой слот Шлем" />';
|
||||
}
|
||||
?></A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><?php
|
||||
if ($user['perchi'] > 0) {
|
||||
$dress = db::c()->query('SELECT * FROM `inventory` WHERE `id` = ?i', $user['perchi'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && !$pas) {
|
||||
echo showhrefmagic($dress);
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' ' . ((($dress['maxdur'] - 2) <= $dress['duration'] && $dress['duration'] > 2 && !$pas) ? " style='background-image:url(i/blink.gif);' " : "") . ' src="i/sh/' . $dress['img'] . '" width=60 height=40 title="<b>' . $dress['name'] . "</b><br />Прочность " . $dress['duration'] . "/" . $dress['maxdur'] . "" . "" . (($dress['ghp'] > 0) ? "<br />Уровень жизни " . plusorminus($dress['ghp']) : "") . (($dress['text'] != null) ? "<br />На перчатках выгравировано '{$dress['text']}'" : "") . (($dress['gsila'] != 0) ? "<br />Сила " . plusorminus($dress['gsila']) : "") . (($dress['glovk'] != 0) ? "<br />Ловкость " . plusorminus($dress['glovk']) : "") . (($dress['ginta'] != 0) ? "<br />Интуиция " . plusorminus($dress['ginta']) : "") . (($dress['gintel'] != 0) ? "<br />Интеллект " . plusorminus($dress['gintel']) : "") . '" />';
|
||||
}
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' src="i/w11.gif" width=60 height=40 alt="Пустой слот Перчатки" />';
|
||||
}
|
||||
?></A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><?php
|
||||
if ($user['shit'] > 0) {
|
||||
$dress = db::c()->query('SELECT * FROM `inventory` WHERE `id` = ?i', $user['shit'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && !$pas) {
|
||||
echo showhrefmagic($dress);
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' ' . ((($dress['maxdur'] - 2) <= $dress['duration'] && $dress['duration'] > 2 && !$pas) ? " style='background-image:url(i/blink.gif);' " : "") . ' src="i/sh/' . $dress['img'] . '" width=60 height=60 title="<b>' . $dress['name'] . "</b><br />Прочность " . $dress['duration'] . "/" . $dress['maxdur'] . "" . "" . (($dress['ghp'] > 0) ? "<br />Уровень жизни " . plusorminus($dress['ghp']) : "") . (($dress['text'] != null) ? "<br />На щите выгравировано '{$dress['text']}'" : "") . (($dress['gsila'] != 0) ? "<br />Сила " . plusorminus($dress['gsila']) : "") . (($dress['glovk'] != 0) ? "<br />Ловкость " . plusorminus($dress['glovk']) : "") . (($dress['ginta'] != 0) ? "<br />Интуиция " . plusorminus($dress['ginta']) : "") . (($dress['gintel'] != 0) ? "<br />Интеллект " . plusorminus($dress['gintel']) : "") . (($dress['bron1'] != 0) ? "<br />Броня головы: " . plusorminus($dress['bron1']) : "") . (($dress['bron2'] != 0) ? "<br />Броня корпуса: " . plusorminus($dress['bron2']) : "") . (($dress['bron3'] != 0) ? "<br />Броня пояса: " . plusorminus($dress['bron3']) : "") . (($dress['bron4'] != 0) ? "<br />Броня ног: " . plusorminus($dress['bron4']) : "") . '" />';
|
||||
}
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' src="i/w10.gif" width=60 height=60 title="Пустой слот Щит" />';
|
||||
}
|
||||
?></A></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD><?php
|
||||
if ($user['boots'] > 0) {
|
||||
$dress = db::c()->query('SELECT * FROM `inventory` WHERE `id` = ?i', $user['boots'])->fetch_assoc();
|
||||
if ($dress['includemagicdex'] && !$pas) {
|
||||
echo showhrefmagic($dress);
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' ' . ((($dress['maxdur'] - 2) <= $dress['duration'] && $dress['duration'] > 2 && !$pas) ? " style='background-image:url(i/blink.gif);' " : "") . ' src="i/sh/' . $dress['img'] . '" width=60 height=40 title="<b>' . $dress['name'] . "</b><br />Прочность " . $dress['duration'] . "/" . $dress['maxdur'] . "" . "" . (($dress['ghp'] > 0) ? "<br />Уровень жизни " . plusorminus($dress['ghp']) : "") . (($dress['text'] != null) ? "<br />На ботинках выгравировано '{$dress['text']}'" : "") . (($dress['gsila'] != 0) ? "<br />Сила " . plusorminus($dress['gsila']) : "") . (($dress['glovk'] != 0) ? "<br />Ловкость " . plusorminus($dress['glovk']) : "") . (($dress['ginta'] != 0) ? "<br />Интуиция " . plusorminus($dress['ginta']) : "") . (($dress['gintel'] != 0) ? "<br />Интеллект " . plusorminus($dress['gintel']) : "") . (($dress['bron1'] != 0) ? "<br />Броня головы: " . plusorminus($dress['bron1']) : "") . (($dress['bron2'] != 0) ? "<br />Броня корпуса: " . plusorminus($dress['bron2']) : "") . (($dress['bron3'] != 0) ? "<br />Броня пояса: " . plusorminus($dress['bron3']) : "") . (($dress['bron4'] != 0) ? "<br />Броня ног: " . plusorminus($dress['bron4']) : "") . '" />';
|
||||
}
|
||||
} else {
|
||||
echo '<img class=\'tooltip\' src="i/w12.gif" width=60 height=40 title="Пустой слот Oбувь" />';
|
||||
}
|
||||
?>
|
||||
</A>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
</TR>
|
||||
</table>
|
||||
<TABLE class="allzeroes">
|
||||
<TBODY>
|
||||
<?php
|
||||
if (!$pas) {
|
||||
// FIXME Научиться отображать травмы
|
||||
// if ($trt) {
|
||||
// echo "<TR><TD><IMG height=25 src=\"i/travma.gif\" width=40></TD><TD><SMALL>У персонажа $trt травма.</SMALL></TD></TR>";
|
||||
// }
|
||||
$dd = db::c()->query('SELECT `time`, `type` FROM `effects` WHERE `owner` = ?i', $user['id']);
|
||||
$param_bonus = [];
|
||||
array_fill_keys($param_bonus, 0);
|
||||
while ($row = $dd->fetch_assoc()) {
|
||||
if ($row['time'] < time()) {
|
||||
$row['time'] = time();
|
||||
}
|
||||
|
||||
if ($row['type'] == 21) {
|
||||
$param_bonus = [];
|
||||
$param_bonus['sila'] = $row['sila'];
|
||||
$param_bonus['lovk'] = $row['lovk'];
|
||||
$param_bonus['inta'] = $row['inta'];
|
||||
$param_bonus['vinos'] = $row['vinos'];
|
||||
}
|
||||
}
|
||||
?>
|
||||
</TBODY></TABLE></CENTER>
|
||||
|
||||
|
||||
</TD>
|
||||
<TD valign=top style='width:450px;'></TD>
|
||||
|
||||
Сила: <?= $user['sila'] ?>
|
||||
<?php if (isset($param_bonus['sila'])) {
|
||||
echo " <span class='success'>(+" . $param_bonus['sila'] . ")</span>";
|
||||
} ?>
|
||||
<BR>
|
||||
Ловкость: <?= $user['lovk'] ?>
|
||||
<?php if (isset($param_bonus['lovk'])) {
|
||||
echo " <span class='success'>(+" . $param_bonus['lovk'] . ")</span>";
|
||||
} ?>
|
||||
<BR>
|
||||
Интуиция: <?= $user['inta'] ?>
|
||||
<?php if (isset($param_bonus['inta'])) {
|
||||
echo " <span class='success'>(+" . $param_bonus['inta'] . ")</span>";
|
||||
} ?>
|
||||
<BR>
|
||||
Выносливость:<?= $user['vinos'] ?>
|
||||
<?php if (isset($param_bonus['vinos'])) {
|
||||
echo " <span class='success'>(+" . $param_bonus['vinos'] . ")</span>";
|
||||
} ?>
|
||||
<BR>
|
||||
Интеллект: <?= $user['intel'] ?><BR>
|
||||
Мудрость: <?= $user['mudra'] ?><BR>
|
||||
|
||||
<?php if ($user['stats'] > 0 || $user['master'] > 0): ?>
|
||||
<a href="main.php?edit=1">+ Способности</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<hr>
|
||||
Опыт: <b><?= $user['exp'] ?></b> (<?= $user['nextup'] ?>) <br>
|
||||
Уровень: <?= $user['level'] ?><br>
|
||||
Побед: <?= $user['win'] ?><br>
|
||||
Поражений: <?= $user['lose'] ?><br>
|
||||
Ничьих: <?= $user['nich'] ?><br>
|
||||
|
||||
<?php
|
||||
$ekr_bank = db::c()->query('SELECT SUM(`ekr`) AS `bank_ekr`,SUM(`cr`) AS `bank_cr` FROM `bank` WHERE `id`= ?i', $user['id'])->fetch_assoc();
|
||||
?>
|
||||
|
||||
Деньги: <b><?= $user['money'] ?></b> кр.<br>
|
||||
В банке: <b><?= $ekr_bank['bank_cr'] ?></b> кр. / <b><?= $ekr_bank['bank_ekr'] ?></b> eкр.<br>
|
||||
|
||||
<?php
|
||||
if ($user['klan']) {
|
||||
echo "Клан: " . ClanImage($user['klan']) . "<BR>";
|
||||
|
||||
}
|
||||
} else {
|
||||
?>
|
||||
<TR>
|
||||
<TD colSpan=2 style="padding-left:25px;">
|
||||
Сила: <?= $user['sila'] ?><BR>
|
||||
Ловкость: <?= $user['lovk'] ?><BR>
|
||||
Интуиция: <?= $user['inta'] ?><BR>
|
||||
Выносливость: <?= $user['vinos'] ?><BR>
|
||||
Интеллект: <?= $user['intel'] ?><BR>
|
||||
Мудрость: <?= $user['mudra'] ?><BR>
|
||||
</td>
|
||||
</tr></table>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $time
|
||||
* @param $vars
|
||||
|
@ -83,7 +83,7 @@ if ($fd['location'] == '28' and $fd['name'] == 'Канализация 1 эта
|
||||
<?php
|
||||
$userInfo = new User($_SESSION['uid']);
|
||||
$userInfo->showUserDoll();
|
||||
showpersout(1) ?>
|
||||
?>
|
||||
</CENTER>
|
||||
</TD>
|
||||
</TR>
|
||||
|
Loading…
Reference in New Issue
Block a user