Ejemplo n.º 1
0
function check_attack($char, $player, $type = 0, $map = 0)
{
    global $user_id;
    $check = 'Бой невозможен';
    if (close_combat == 1 and $user_id != 612) {
        return 'Все бои закрыты';
    }
    /*if ($map==0) */
    $map = mysql_fetch_array(myquery("SELECT * FROM game_maps WHERE id='" . $char['map_name'] . "'"));
    if (clans_war == 0 or $player['user_id'] == 612 or $map['dolina'] == 0) {
        $est_plash_monaha_char = mysql_result(myquery("SELECT COUNT(*) FROM game_items WHERE user_id=" . $char['user_id'] . " AND priznak=0 AND used=5 AND item_id=" . plash_monaha . ""), 0, 0);
        if ($est_plash_monaha_char == 1) {
            return 'Ты отказываешься от боя';
        }
        $est_plash_monaha_player = mysql_result(myquery("SELECT COUNT(*) FROM game_items WHERE user_id=" . $player['user_id'] . " AND priznak=0 AND used=5 AND item_id=" . plash_monaha . ""), 0, 0);
        if ($est_plash_monaha_player == 1) {
            return 'Противник отказывается от боя';
        }
    }
    if (!isset($map['maps_name'])) {
        $map['maps_name'] = $map['name'];
    }
    if ($map['boy_type1'] == 0 and $map['boy_type2'] == 0 and $map['boy_type3'] == 0 and $map['boy_type4'] == 0 and $map['boy_type5'] == 0 and $map['boy_type6'] == 0 and $map['boy_type7'] == 0) {
        return 'Запрещены все бои на карте';
    }
    if ($type >= 1 and $type <= 7) {
        if ($type == 1 and $map['boy_type1'] != 1) {
            return "Данный тип боя на этой карте запрещен";
        } elseif ($type == 2 and $map['boy_type2'] != 1) {
            return "Данный тип боя на этой карте запрещен";
        } elseif ($type == 3 and $map['boy_type3'] != 1) {
            return "Данный тип боя на этой карте запрещен";
        } elseif ($type == 4 and $map['boy_type4'] != 1) {
            return "Данный тип боя на этой карте запрещен";
        } elseif ($type == 5 and $map['boy_type5'] != 1) {
            return "Данный тип боя на этой карте запрещен";
        } elseif ($type == 6 and $map['boy_type6'] != 1) {
            return "Данный тип боя на этой карте запрещен";
        } elseif ($type == 7 and $map['boy_type7'] != 1) {
            return "Данный тип боя на этой карте запрещен";
        }
        //проверка в зависимости от типа боя
        $str_check_type = check_attack_type($char, $player, $type, 0);
        if ($str_check_type != 1) {
            return $str_check_type;
        } elseif ($map['dolina'] == 0 and $map['maps_name'] != 'Гильдия новичков') {
            $str_check_type = check_attack_type($char, $player, $type);
            if ($str_check_type != 1) {
                return $str_check_type;
            }
        }
    }
    list($host1, $time1) = mysql_fetch_array(myquery("SELECT host,last_active FROM game_users_active WHERE user_id='" . $char['user_id'] . "'"));
    list($host2, $time2) = mysql_fetch_array(myquery("SELECT host,last_active FROM game_users_active WHERE user_id='" . $player['user_id'] . "'"));
    $player_func = getFunc($player['user_id']);
    if (domain_name == 'localhost') {
        $host1 = 1;
        $host2 = 2;
    }
    if ($player['user_id'] == $char['user_id']) {
        //нельзя напасть на себя
        return 'Нельзя напасть на самого себя';
    } elseif (time() - $time2 > 300) {
        //противник не в игре
        return 'Противника нет в игре';
    } elseif ($host1 == $host2) {
        //нельзя напасть на мульта
        return 'Нельзя напасть на мульта';
    } elseif ($player['clan_id'] == $char['clan_id'] and $char['clan_id'] != 0 and $player['clan_id'] != 0 and $map['dolina'] != 1) {
        //нельзя напасть на своего соклановца, но можно в Долине Смерти
        return 'Нельзя нападать на соклановца (кроме Долины Смерти)';
    } elseif ($player_func == 1) {
        return 'Игрок занят в бою';
    } elseif ($player_func == 2) {
        return 'Игрок занят в крафте';
    } elseif ($player_func == 3) {
        return 'Игрок в магазине';
    } elseif ($player_func == 4) {
        return 'Игрок занят в Двух Башнях';
    } elseif ($player_func == 10) {
        return 'Игрок проходит квест';
    } elseif ($player_func == 9) {
        return 'Игрок в городе';
    } elseif ($player_func == 6) {
        return 'Игрок находится в зале палантиров';
    } elseif ($player_func == 7) {
        return 'Игрок находится в дневниках';
    } elseif (get_delay_reason_id($user_id) == 32) {
        return 'Игрок находится в личном землевладении';
    } elseif (($char['clan_id'] == 0 or $player['clan_id'] == 0) and $player['HP'] < $player['HP_MAX'] * 0.75) {
        //уберем шакальство
        return 'Шакальство не пройдет!';
    } elseif ($player['HP'] < $player['HP_MAX'] * 0.2) {
        //уберем шакальство 2
        return 'Шакальство не пройдет!';
    } elseif ($player['HP'] == 0 or $char['HP'] == 0) {
        //нельзя нападать мертвым или на мертвого
        return 'Кто-то из вас двоих мертв!';
    }
    if (clans_war == 0 or $map['dolina'] == 0 and $map['arena'] == 0) {
        if ($map['dolina'] == 1) {
            return 'В Долине Смерти бои еще запрещены!';
        }
    }
    if ($map['dolina'] == 1) {
        //все ограничения на атаку сняты
        $check = 1;
    } elseif ($map['maps_name'] == 'Гильдия новичков') {
        //В Гильдии Новичков можно нападать только на ровесников и уровнем выше независимо от типа боя
        if ($player['clevel'] - 3 <= $char['clevel'] and $char['clevel'] <= $player['clevel'] and $player['clevel'] != '0') {
            $check = 1;
        } else {
            return 'Ты не подходишь по уровню противника!';
        }
    } else {
        $est_kamikadze = mysql_result(myquery("SELECT COUNT(*) FROM game_items WHERE user_id=" . $char['user_id'] . " AND priznak=0 AND used=6 AND item_id=" . povyazka_kamikadze . ""), 0, 0);
        if ($est_kamikadze && $char['clevel'] <= $player['clevel']) {
            $check = 1;
        } else {
            $max_level = 3;
            $add = floor(($char['clevel'] - 5) / 5);
            $max_level += $add;
            $min_level = 2;
            if ($player['clevel'] - $max_level <= $char['clevel'] and $char['clevel'] <= $player['clevel'] + $min_level and $player['clevel'] != 0) {
                $check = 1;
            } else {
                return 'Ты не подходишь по уровню противника!';
            }
        }
    }
    return $check;
}
Ejemplo n.º 2
0
     exit('Не определен аватар!');
 }
 $MainHeight = 100;
 $img = ImageCreateTrueColor(490, $MainHeight);
 function win2uni($s)
 {
     $s = convert_cyr_string($s, 'w', 'i');
     for ($result = '', $i = 0; $i < strlen($s); $i++) {
         $charcode = ord($s[$i]);
         $result .= $charcode > 175 ? "&#" . (1040 + ($charcode - 176)) . ";" : $s[$i];
     }
     return $result;
 }
 $reason = '';
 if (time() - $row['last_active'] <= 300) {
     $reason = get_delay_reason(get_delay_reason_id($row['user_id']));
 }
 if ($row['sklon'] == 1) {
     //нейтральные
     $text_color_1 = "FFFF00";
     $text_color_2 = "FFFFFF";
     $color_1 = "000000";
     $color_2 = "00CC66";
 } elseif ($row['sklon'] == 2) {
     //светлые
     $text_color_1 = "FFFF00";
     $text_color_2 = "FFFFFF";
     $color_1 = "000000";
     $color_2 = "FF0000";
 } elseif ($row['sklon'] == 3) {
     //темные
Ejemplo n.º 3
0
$gp = 5;
if (function_exists("start_debug")) {
    start_debug();
}
?>
<html>
<head>
<title>Алхимическая Лаборатория</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<style type="text/css">@import url("../style/global.css");</style>
</head>
<body>
<?php 
$user_func = getFunc($user_id);
$from_house = false;
if (isset($_GET['house']) and get_delay_reason_id($user_id) == 32) {
    $from_house = true;
    $gp = 0;
}
$id_alchemist = "15,16";
$questsel = myquery("SELECT * FROM game_quest WHERE map_name=" . $char['map_name'] . " AND map_xpos=" . $char['map_xpos'] . " AND map_ypos=" . $char['map_ypos'] . " AND min_clevel<=" . $char['clevel'] . " AND max_clevel>=" . $char['clevel'] . " AND id IN ({$id_alchemist})");
if (mysql_num_rows($questsel) or $from_house) {
    if ($from_house == false) {
        echo '<span style="z-index:-100;position:absolute;left:0%;top:0%;"><img src="http://' . img_domain . '/quest/lab_left.jpg"></span>';
        echo '<span style="z-index:-100;position:absolute;right:0%;top:0%;"><img src="http://' . img_domain . '/quest/lab_right.jpg"></span>';
    }
    echo '<br><center><font size=1 face=verdana>';
    //echo 'Извините, Лаборатория временно закрыта на восстановительные работы после недавно прошедшего по Средиземью Шторма Ужаса!';
    //echo '<br><br><br><a href="../act.php" target="game">Выйти из Лаборатории</a><br>';
    //exit;
    if ($user_func == 2) {
Ejemplo n.º 4
0
function show_user($user)
{
    global $keeper, $guest, $admin;
    $user_data = mysql_fetch_array(myquery("SELECT * FROM game_users_data WHERE user_id='" . $user['user_id'] . "'"));
    $klan = myquery("SELECT * FROM game_clans WHERE clan_id='" . $user['clan_id'] . "'");
    $klan = mysql_fetch_array($klan);
    echo '<center><font face=verdana size=2 color=ff0000><b>' . $user['name'] . '</font> (' . mysql_result(myquery("SELECT name FROM game_har WHERE id=" . $user['race'] . ""), 0, 0) . ' ' . $user['clevel'] . ' уровня)</b>';
    if ($user_data['sex'] == "male") {
        echo '<br><font color=#80FFFF>(Парень)</font>';
    }
    if ($user_data['sex'] == "female") {
        echo '<br><font color=#FF00FF>(Девушка)</font>';
    }
    if ($user_data['dr_date'] > 0 or $user_data['dr_month'] > 0 or $user_data['dr_year'] > 0) {
        echo '<br>День рождения: ' . $user_data['dr_date'] . '.' . $user_data['dr_month'] . '.' . $user_data['dr_year'] . '';
    }
    echo '</center>';
    $user_date = date('d.m.Y : H:i:s', $user_data['last_visit']);
    echo '<center><b>Последний раз игрок был: <font color=ff0000>"' . $user_date . '"</font>';
    if ($user_data['rego_time'] > 0) {
        $user_date = date('d.m.Y : H:i:s', $user_data['rego_time']);
        echo '<center><b>Персонаж зарегистрирован: <font color=ff0000>"' . $user_date . '"</font>';
    }
    $vozrast_year = floor($user_data['vozrast'] / 12);
    $vozrast_mes = $user_data['vozrast'] - $vozrast_year * 12;
    $vozrast = '' . $vozrast_year . ' л. ' . $vozrast_mes . ' мес.';
    echo '<center><b>Возраст игрока: <font color=ff0000>"' . $vozrast . '"</font>';
    if ($user['vsadnik'] > 20) {
        $konn = myquery("SELECT gv.* FROM game_vsadnik gv JOIN game_users_horses guh ON guh.horse_id=gv.id WHERE guh.user_id='" . $user['user_id'] . "' limit 1");
        $kon = mysql_fetch_array($konn);
        echo '<center><br><b>Всадник! Сидит на <font color=ff0000>"' . $kon['nazv'] . '"</font>';
    }
    echo '<br>';
    echo '<br><font color="White" size=2><b><center>Реинкарнация игрока:</font> <font color=#FF0000 size=2>' . $user['reinc'] . '</center></b>';
    echo '<br>
		<br><font color="White" size=2 face=verdana>Склонность игрока: ';
    if ($user['clan_id'] == 1) {
        echo '<img src="http://' . img_domain . '/sklon/admin.gif" border="0">&nbsp;&nbsp;<span style="color:#D0D0D0;font-weight:800;">Высшая</span>';
    } elseif ($user['sklon'] == 0) {
        echo '&nbsp;&nbsp;Без склонности';
    } elseif ($user['sklon'] == 1) {
        echo '<img src="http://' . img_domain . '/sklon/neutral.gif" border="0">&nbsp;&nbsp;<span style="color:#D0D0D0;font-weight:800;">Нейтральная</span>';
    } elseif ($user['sklon'] == 2) {
        echo '<img src="http://' . img_domain . '/sklon/light.gif" border="0">&nbsp;&nbsp;<span style="color:#FFFFC0;font-weight:800;">Светлая</span>';
    } elseif ($user['sklon'] == 3) {
        echo '<img src="http://' . img_domain . '/sklon/dark.gif" border="0">&nbsp;&nbsp;<span style="color:#969696;font-weight:800;">Темная</span>';
    }
    echo '<center><table border="0" cellpadding="0" cellspacing="0">';
    if ($klan['clan_id'] != 0) {
        list($rating, $zvanie) = mysql_fetch_array(myquery("SELECT clan_rating,clan_zvanie FROM game_users_data WHERE user_id='" . $user['user_id'] . "'"));
        echo '<tr><td colspan="3" valign="top">';
        echo '<font color=#FF0000 size=2><b><center>Клан игрока: <a href="http://' . domain_name . '/view/?clan=' . $klan['clan_id'] . '">' . $klan['nazv'] . '</a></center></b></font><br>';
        if ($rating != '0') {
            echo '<center><font color=ffff00>   Рейтинг в клане - <b>' . $rating . '</b></font><br>';
        }
        if ($zvanie != '') {
            echo '<center><font color=ffff00>   Звание в клане - <b>' . $zvanie . '</b></font><br>';
        }
        echo '<br></td></tr>';
    }
    /*
    		$sel_mag = myquery("SELECT * FROM game_mag WHERE name='".$user['name']."' AND town>0");
    		while ($mag = mysql_fetch_array($sel_mag))
    		{
    			if ($mag['town']>0)
    			{
    				$sel_town = myquery("SELECT rustown FROM game_gorod WHERE town = '".$mag['town']."'");
    				list($rustown) = mysql_fetch_array($sel_town);
    				echo'<tr><td colspan="4" valign="top" align="center"><b><font color="ff00ff">Маг города</font> '.$rustown.'</b> ('.$mag['status'].')<br></td></tr>';
    			}
    		}
    		$sel_house = myquery("SELECT * FROM game_houses WHERE user_id=".$user['user_id']." LIMIT 1");
    		if ($sel_house!=false AND mysql_num_rows($sel_house)>0)
    		{
    			$house = mysql_fetch_array($sel_house);
    			if ($house['town_id']>0 AND $house['type']>0)
    			{
    				$sel_town = myquery("SELECT rustown FROM game_gorod WHERE town = '".$house['town_id']."'");
    				list($rustown) = mysql_fetch_array($sel_town);
    				if ($house['buildtime']<time())
    				{
    					echo'<tr><td colspan="4" valign="top" align="center"><b><font color="ff00ff">Дом игрока в городе</font> '.$rustown.'</b><br></td></tr>';
    				}
    				else
    				{
    					echo'<tr><td colspan="4" valign="top" align="center"><b><font color="ff00ff">Дом игрока в городе</font> '.$rustown.'</b> (строится)<br></td></tr>';
    				}
    			}
    }
    */
    if ($user_data['user_rating'] > 0) {
        echo '<tr height="25"><td colspan="4" valign="middle" align="center"><b><font color="#80FF80">Персональный рейтинг игрока</font>: ' . $user_data['user_rating'] . '</b></td></tr>';
    }
    if ($user_data['karma'] > 0) {
        echo '<tr height="25"><td colspan="4" valign="middle" align="center"><b><font color="#80FF80">КАРМА игрока</font>: ' . $user_data['karma'] . '</b></td></tr>';
    }
    if ($user_data['karma'] < 0) {
        echo '<tr height="25"><td colspan="4" bgcolor="white" valign="middle" align="center"><b><font color="#000000">КАРМА игрока: ' . $user_data['karma'] . '</font></b></td></tr>';
    }
    // Модераторская опция - подозрение на мультоводство
    if ($keeper or $admin) {
        $sel_mult = mysql_result(myquery("SELECT count(*) FROM game_activity_mult WHERE name='" . $user['name'] . "'"), 0, 0);
        if ($sel_mult > 0) {
            echo '<tr><td colspan="4" valign="top" align="center"><b><font color="ff00ff">Игрок заподозрен в мультоводстве!</b><br></td></tr>';
        }
    }
    echo '<tr><td valign="top" align=center><img src="http://' . img_domain . '/avatar/' . $user['avatar'] . '" align=center></td>
        <td align="center" valign=top>';
    echo '<table border="0" cellpadding="2" cellspacing="0">';
    if ($user['HP_MAX'] == 0) {
        $bar_percentage = 0;
    } else {
        $bar_percentage = number_format($user['HP'] / $user['HP_MAX'] * 100, 0);
    }
    if ($bar_percentage >= '100') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_green.gif" width="100" height="7" border="0">';
    } elseif ($bar_percentage <= '0') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="100" height="7" border="0">';
    } else {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="' . (100 - $bar_percentage) . '" height="7" border="0"><img src="http://' . img_domain . '/bar/bar_green.gif" width="' . $bar_percentage . '" height="7" border="0">';
    }
    echo '<tr><td>Здоровье: ' . $user['HP'] . ' / ' . $user['HP_MAX'] . '</td></tr>
		<tr><td colspan="2"><div align="right"><img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0">' . $append_string . '<img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0"><br><img
		src="http://' . img_domain . '/nav/x.gif" width="0" height="0" vspace="2" border="0"></div></td></tr>';
    if ($user['MP_MAX'] == 0) {
        $bar_percentage = 0;
    } else {
        $bar_percentage = number_format($user['MP'] / $user['MP_MAX'] * 100, 0);
    }
    if ($bar_percentage >= '100') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_orange.gif" width="100" height="7" border="0">';
    } elseif ($bar_percentage <= '0') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="100" height="7" border="0">';
    } else {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="' . (100 - $bar_percentage) . '" height="7" border="0"><img src="http://' . img_domain . '/bar/bar_orange.gif" width="' . $bar_percentage . '" height="7" border="0">';
    }
    echo '<tr><td>Мана: ' . $user['MP'] . ' / ' . $user['MP_MAX'] . '</td></tr>
		<tr><td colspan="2"><div align="right"><img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0">' . $append_string . '<img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0"><br><img src="http://' . img_domain . '/nav/x.gif" width="0" height="0" vspace="2" border="0"></div></td></tr>';
    if ($user['STM_MAX'] == 0) {
        $bar_percentage = 0;
    } else {
        $bar_percentage = number_format($user['STM'] / $user['STM_MAX'] * 100, 0);
    }
    if ($bar_percentage >= '100') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_yellow.gif" width="100" height="7" border="0">';
    } elseif ($bar_percentage <= '0') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="100" height="7" border="0">';
    } else {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="' . (100 - $bar_percentage) . '" height="7" border="0"><img src="http://' . img_domain . '/bar/bar_yellow.gif" width="' . $bar_percentage . '" height="7" border="0">';
    }
    echo '<tr><td>Энергия: ' . $user['STM'] . ' / ' . $user['STM_MAX'] . '</td></tr><tr><td colspan="2"><div align="right"><img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0">' . $append_string . '<img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0"><br><img src="http://' . img_domain . '/nav/x.gif" width="0" height="0" vspace="2" border="0"></div></td></tr>';
    if ($user['PR_MAX'] == 0) {
        $bar_percentage = 0;
    } else {
        $bar_percentage = number_format($user['PR'] / $user['PR_MAX'] * 100, 0);
    }
    if ($bar_percentage >= '100') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_red.gif" width="100" height="7" border="0">';
    } elseif ($bar_percentage <= '0') {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="100" height="7" border="0">';
    } else {
        $append_string = '<img src="http://' . img_domain . '/bar/bar_empty.gif" width="' . (100 - $bar_percentage) . '" height="7" border="0"><img src="http://' . img_domain . '/bar/bar_red.gif" width="' . $bar_percentage . '" height="7" border="0">';
    }
    echo '<tr><td>Прана: ' . $user['PR'] . ' / ' . $user['PR_MAX'] . '</td></tr><tr><td colspan="2"><div align="right"><img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0">' . $append_string . '<img src="http://' . img_domain . '/bar/bar_side.gif" width="1" height="7" border="0"><br><img src="http://' . img_domain . '/nav/x.gif" width="0" height="0" vspace="2" border="0"></div></td></tr>';
    echo '</table>';
    echo '</td><td align="left" valign="top">
		<table border="0" cellpadding="0" cellspacing="0">
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/sil.gif" alt="Сила"> Сила: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>' . $user['STR'] . '';
    if ($user['STR'] > $user['STR_MAX']) {
        echo '(+' . ($user['STR'] - $user['STR_MAX']) . ')';
    }
    echo '</td></tr>
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/int.gif" alt="Интеллект"> Интеллект: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">' . $user['NTL'] . '';
    if ($user['NTL'] > $user['NTL_MAX']) {
        echo '(+' . ($user['NTL'] - $user['NTL_MAX']) . ')';
    }
    echo '</td></tr>
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/lov.gif" alt="Ловкость"> Ловкость: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">' . $user['PIE'] . '';
    if ($user['PIE'] > $user['PIE_MAX']) {
        echo '(+' . ($user['PIE'] - $user['PIE_MAX']) . ')';
    }
    echo '</td></tr>
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/vit.gif" alt="Защита"> Защита: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">' . $user['VIT'] . '';
    if ($user['VIT'] > $user['VIT_MAX']) {
        echo '(+' . ($user['VIT'] - $user['VIT_MAX']) . ')';
    }
    echo '</td></tr>
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/dex.gif" alt="Выносливость"> Выносливость: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">' . $user['DEX'] . '';
    if ($user['DEX'] > $user['DEX_MAX']) {
        echo '(+' . ($user['DEX'] - $user['DEX_MAX']) . ')';
    }
    echo '</td></tr>
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/mud.gif" alt="Мудрость"> Мудрость: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">' . $user['SPD'] . '';
    if ($user['SPD'] > $user['SPD_MAX']) {
        echo '(+' . ($user['SPD'] - $user['SPD_MAX']) . ')';
    }
    echo '</td></tr>
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/ud.gif" alt="Удача"> Удача: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td align="right">' . $user['lucky'] . '';
    if ($user['lucky'] > $user['lucky_max']) {
        echo '(+' . ($user['lucky'] - $user['lucky_max']) . ')';
    }
    echo '</td></tr>
		</table></td></tr>
		<tr><td colspan="3" valign="top" align=center><br /><b>Общий вес</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
    $prov = mysql_result(myquery("SELECT count(*) FROM game_wm WHERE user_id=" . $user['user_id'] . " AND type=1"), 0, 0);
    if ($prov > 0) {
        echo min($user['CW'], $user['CC']);
    } else {
        echo $user['CW'];
    }
    echo ' / ' . $user['CC'] . '<br />&nbsp; </td></tr>
        <tr><td colspan="2 width="500">';
    $user_id1 = $user['user_id'];
    PrintInv($user_id1, 1);
    echo '</td>

		<td valign="top"><br />
		<table border="0" cellpadding="0" cellspacing="0">
		<tr><td colspan="2" width="81%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#ffff00 size=1><B>Специализации:</B></FONT></td></tr>';
    $sel_skill = myquery("SELECT gs.name, gus.* FROM game_users_skills gus, game_skills gs WHERE user_id=" . $user['user_id'] . " AND gus.skill_id=gs.id ORDER BY gs.sgroup DESC, gs.name");
    if (mysql_num_rows($sel_skill) > 0) {
        while ($sk = mysql_fetch_array($sel_skill)) {
            echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . $sk['name'] . ': </td><td>' . $sk['level'] . ' </td></tr>';
        }
    }
    /*		if ($user['MS_KULAK']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/kulak.gif" alt="Искусство кулачного боя"> Кулачный бой: </td><td>' . $user['MS_KULAK'] . '</td></tr>';
    		if ($user['MS_WEAPON']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/weapon.gif" alt="Эксперт воинских умений"> Эксперт воинских умений: </td><td>' . $user['MS_WEAPON'] . '</td></tr>';
    		if ($user['MS_LUK']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/luk.gif" alt="Мастер стрелкового оружия"> Мастер стрелк.оружия: </td><td>' . $user['MS_LUK'] . '</td></tr>';
    		if ($user['MS_THROW']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/throw.gif" alt="Мастер метательного оружия"> Мастер метат.оружия: </td><td>' . $user['MS_THROW'] . '</td></tr>';
    		if ($user['MS_SWORD']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/rub.gif" alt="Мастер рубящего оружия"> Мастер рубящ.оружия: </td><td>' . $user['MS_SWORD'] . '</td></tr>';
    		if ($user['MS_AXE']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/drob.gif" alt="Мастер дробящего оружия"> Мастер дроб.оружия: </td><td>' . $user['MS_AXE'] . '</td></tr>';
    		if ($user['MS_SPEAR']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/kol.gif" alt="Мастер колющего оружия"> Мастер колющ.оружия: </td><td>' . $user['MS_SPEAR'] . '</td></tr>';
    		if ($user['MS_ART']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/art.gif" alt="Эксперт артефактов"> Эксп. артефактов: </td><td>' . $user['MS_ART'] . '</td></tr>';
    		if ($user['MS_VSADNIK']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/ezda.jpg" alt="Верховая езда"> Верховая езда: </td><td>' . $user['MS_VSADNIK'] . '</td></tr>';
    		if ($user['MS_KUZN']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/kuzn.jpg" alt="Кузнец"> Кузнец: </td><td>' . $user['MS_KUZN'] . '</td></tr>';
    		if ($user['MS_PARIR']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/parir.gif" alt="Мастер парирования"> Парирование: </td><td>' . $user['MS_PARIR'] . '</td></tr>';
    		if ($user['MS_LEK']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/lekar.gif" alt="Лекарь"> Лекарь: </td><td>' . $user['MS_LEK'] . '</td></tr>';
    		if ($user['MS_VOR']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/vor.gif" alt="Вор"> Вор: </td><td>' . $user['MS_VOR'] . '</td></tr>';
    
    		echo'<tr><td colspan="2">&nbsp;</td></tr><tr><td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#ffff00 size=1><B><font face="Verdana">Навыки</font>:</B></FONT><font size="1">&nbsp;</font></td></tr>';
    
    		if ($user['skill_war']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Воин: </td><td>' . $user['skill_war'] . ' </td></tr>';
    		if ($user['skill_music']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Бард: </td><td>' . $user['skill_music'] . ' </td></tr>';
    		if ($user['skill_cook']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Волшебник: </td><td>' . $user['skill_cook'] . ' </td></tr>';
    		if ($user['skill_art']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Лучник: </td><td>' . $user['skill_art'] . ' </td></tr>';
    		if ($user['skill_explor']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Паладин: </td><td>' . $user['skill_explor'] . ' </td></tr>';
    		if ($user['skill_craft']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Варвар: </td><td>' . $user['skill_craft'] . ' </td></tr>';
    		if ($user['skill_card']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Вор: </td><td>' . $user['skill_card'] . ' </td></tr>';
    		if ($user['skill_pet']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Друид: </td><td>' . $user['skill_pet'] . ' </td></tr>';
    		if ($user['skill_uknow']!='0') echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Разбойник: </td><td>' . $user['skill_uknow'] . ' </td>';
    */
    echo '<tr><td colspan="2">&nbsp;</td></tr><tr><td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#ffff00 size=1><B><font face="Verdana">Умения</font>:</B></FONT><font size="1">&nbsp;</font></td></tr>';
    $sel_craft = myquery("SELECT * FROM game_users_crafts WHERE user_id=" . $user['user_id'] . " AND (profile=1 OR craft_index<=2)");
    if (mysql_num_rows($sel_craft) > 0) {
        while ($cr = mysql_fetch_array($sel_craft)) {
            $craft_level = CraftSpetsTimeToLevel($cr['craft_index'], $cr['times']);
            echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . get_craft_name($cr['craft_index']) . ': </td><td title="Уровень">' . $craft_level . ' </td></tr>';
        }
    }
    $guild_test = myquery("SELECT * FROM game_users_guild WHERE user_id=" . $user['user_id'] . "");
    if (mysql_num_rows($guild_test) == 1) {
        $guild = mysql_fetch_array($guild_test);
        echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Наёмник: </td><td title="Уровень">' . $guild['guild_lev'] . ' </td></tr>';
    }
    echo '<tr><td colspan=2>&nbsp;</td></tr>
		<tr><td colspan=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#ffff00 size=1><B><font face="Verdana">Достижения</font>:</B></FONT><font size="1">&nbsp;</font></td></tr>

		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/win1.gif" alt="Побед"> Побед: </td><td>' . $user['win'] . '</td></tr>';
    //<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://'.img_domain.'/har/lose1.gif" alt="Поражений"> Поражений: </td><td>' . $user['lose'] . '</td></tr>
    echo '<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/win2.gif" alt="Побед в Две Башни"> Побед в Две Башни: </td><td>' . $user['arcomage_win'] . '</td></tr>
		<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/lose2.gif" alt="Поражений в Две Башни"> Поражений в Две Башни: </td><td>' . $user['arcomage_lose'] . '</td></tr>';
    if ($user['maze_win'] > 0) {
        echo '
			<tr><td colspan=2>&nbsp;</td></tr>
			<tr style="color:#FF00FF;"><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="http://' . img_domain . '/har/win.jpg" alt="Пройдено Лабиринтов"> Пройдено Лабиринтов: </td><td style="font-weight:700;">' . $user['maze_win'] . '</td></tr>';
    }
    echo '
        <tr><td colspan=2>&nbsp;</td></tr>
        <tr><td colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://' . domain_name . '/view/?log=' . $user['name'] . '">Смотреть лог битв</a></td></tr>';
    list($last) = mysql_fetch_array(myquery("SELECT last_active FROM game_users_active WHERE user_id='" . $user['user_id'] . "'"));
    if (time() - $last <= 300) {
        echo '<tr><td colspan=2>&nbsp;</td></tr>
			<tr><td colspan=2><FONT color=#ffff00 size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B><font face="Verdana">Сейчас находится в игре:</font></B></FONT><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' . get_delay_reason(get_delay_reason_id($user['user_id'])) . '</td></tr>';
    } else {
        echo '<tr><td colspan=2>&nbsp;</td></tr>
			<tr><td colspan=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT color=#ffff00 size=1><B><font face="Verdana">Сейчас не в игре</font></B></FONT></td></tr>';
    }
    $sel = myquery("SELECT * FROM game_users_brak WHERE ((user1='" . $user["user_id"] . "' OR user2='" . $user["user_id"] . "') AND status=1)");
    if (mysql_num_rows($sel)) {
        $usr = mysql_fetch_array($sel);
        if ($user['user_id'] == $usr['user1']) {
            $usr_id = $usr['user2'];
        } else {
            $usr_id = $usr['user1'];
        }
        $sel = myquery("SELECT name FROM game_users WHERE user_id='" . $usr_id . "'");
        if (!mysql_num_rows($sel)) {
            $sel = myquery("SELECT name FROM game_users_archive WHERE user_id='" . $usr_id . "'");
        }
        list($name1) = mysql_fetch_array($sel);
        echo '<tr><td>&nbsp;</td></tr>
			<tr><td><FONT color=#FF00FF size=1 face="Tahoma"><img src="http://' . img_domain . '/wedding/wedring2.gif" width=50 height=50 align="right">Состоит в браке с <b><font size=2>' . $name1 . '</font></b><br>Брак зарегистрирован ' . $usr['datareg'] . '</FONT></td></tr>';
    }
    echo '</table></td></tr>';
    $user_id = $user['user_id'];
    $SELECT = myquery("SELECT game_medal.nazv AS nazv, game_medal.opis AS opis,game_medal.image AS image,game_medal_users.zachto AS zachto FROM game_medal_users JOIN game_medal ON game_medal.id = game_medal_users.medal_id WHERE user_id={$user_id} ORDER BY game_medal.id");
    if (mysql_num_rows($SELECT)) {
        echo '<tr><td colspan="3" valign="top"><FONT color=#ffff00 size=1><B><font face="Verdana">&nbsp;&nbsp;&nbsp;Медали игрока</font>:</B></FONT>&nbsp;&nbsp;';
        QuoteTable('open');
        while ($med = mysql_fetch_array($SELECT)) {
            ?>
				<a  onmousemove=movehint(event) onmouseover="showhint('<font color=ff0000><b><?php 
            echo '' . $med['nazv'] . '';
            ?>
</b></font>','<font color=000000><?php 
            echo '' . $med['opis'] . '<hr>' . replace_enter(htmlspecialchars($med['zachto'])) . '';
            echo '</font>';
            ?>
</font>',0,1,event)" onmouseout="showhint('','',0,0,event)">
				<img src="<?php 
            echo 'http://' . img_domain . '/medal/' . $med['image'] . '';
            ?>
"></a>
				<?php 
        }
        QuoteTable('close');
        echo '</td></tr>';
    }
    $SELECT = myquery("SELECT * FROM game_gift WHERE user_to={$user_id} AND che=1 AND time_send>=" . (time() - 15 * 24 * 60 * 60) . "");
    if (mysql_num_rows($SELECT)) {
        echo '<tr><td colspan="3" valign="top"><FONT color=#ffff00 size=1><B><font face="Verdana">&nbsp;&nbsp;&nbsp;Открытки</font>:</B></FONT><br>';
        QuoteTable('open');
        while ($card = mysql_fetch_array($SELECT)) {
            list($user_from) = mysql_fetch_array(myquery("(SELECT name FROM game_users WHERE user_id=" . $card['user_from'] . ") UNION (SELECT name FROM game_users_archive WHERE user_id=" . $card['user_from'] . ")"));
            ?>
<a  onmousemove=movehint(event) onmouseover="showhint('<font color=ff0000><b><?php 
            echo ' От ' . $user_from . '';
            ?>
</b></font>','<font color=000000><?php 
            echo '' . replace_enter($card['gift_text']) . '<br><br><hr><font size=1>Отправлена: ' . date("d.m.Y H:i", $card['time_send']) . '</font>';
            ?>
</font>',0,1,event)" onmouseout="showhint('','',0,0,event)">
			<img src="<?php 
            echo 'http://' . img_domain . '/gift/gallery/' . $card['gift_img'] . '';
            ?>
"></a>&nbsp;
			<?php 
        }
        QuoteTable('close');
        echo '</td></tr>';
    }
    echo '<tr><td colspan="3" valign="top"><FONT color=#ffff00 size=1><B><font face="Verdana">&nbsp;&nbsp;&nbsp;Личная информация</font>:</B></FONT><br>
		&nbsp;&nbsp;<b>Статус:</b> ' . $user_data['STATUS'] . '<br>
		&nbsp;&nbsp;<b>Город:</b> ' . $user_data['gorod'] . '<br>
		&nbsp;&nbsp;<b>Хобби:</b>';
    QuoteTable('open');
    if (!isset($user_data['hobbi']) or $user_data['hobbi'] == '') {
        $user_data['hobbi'] = 'Информация не заполнена';
    }
    echo ' ' . nl2br($user_data['hobbi']) . '';
    QuoteTable('close');
    echo '&nbsp;&nbsp;<b>Информация:</b>';
    QuoteTable('open');
    if (!isset($user_data['info']) or $user_data['info'] == '') {
        $user_data['info'] = 'Информация не заполнена';
    }
    echo ' ' . nl2br($user_data['info']) . '';
    QuoteTable('close');
    echo '</td></tr>';
    $sel = myquery("SELECT * FROM game_nakaz WHERE user_id='" . $user['user_id'] . "' order by date_nak asc");
    if (mysql_num_rows($sel)) {
        echo '<tr><td colspan="3" valign="top"><FONT color=#ffff00 size=1><B><font face="Verdana"><br>&nbsp;&nbsp;&nbsp;Наказания</font>:</B></FONT><br>';
        QuoteTable('open');
        echo '<table cellspacing=1 cellpadding=1>';
        while ($nak = mysql_fetch_array($sel)) {
            echo '<tr>';
            echo '<td>' . date("d.m.Y H:i:s", $nak['date_nak']) . '</td>';
            if ($nak['nakaz'] == 'prison') {
                echo '<td>Каторга на <b><font color=#ff0000>' . $nak['date_zak'] . '</font></b> оборотов мифрильного ворота.</td>';
            } else {
                if ($nak['date_zak'] == '0') {
                    echo '<td><FONT color=#ffff00 size=1><b>НАВЕЧНО !!!</b></font></td>';
                } else {
                    $bantime = '';
                    if ($nak['date_zak'] / 3600 < 1) {
                        $bantime = '' . round($nak['date_zak'] / 60, 0) . ' мин.';
                    } elseif ($nak['date_zak'] / 86400 < 1) {
                        $hour = floor($nak['date_zak'] / 3600);
                        $minute = round(($nak['date_zak'] - $hour * 3600) / 60, 0);
                        $bantime = '' . $hour . ' час. ' . $minute . ' мин.';
                    } else {
                        $day = floor($nak['date_zak'] / 86400);
                        $nakaz['date_zak'] = $nak['date_zak'] - $day * 86400;
                        $hour = floor($nak['date_zak'] / 3600);
                        $minute = round(($nak['date_zak'] - $hour * 3600) / 60, 0);
                        $bantime = '' . $day . ' дн. ' . $hour . ' час. ' . $minute . ' мин.';
                    }
                    echo '<td>на <b><font color=#ff0000>' . $bantime . '</font></b></td>';
                }
            }
            echo '<td> (' . mysqlresult(myquery("SELECT name FROM game_zakon WHERE id=" . $nak['id_zakon'] . ""), 0, 0) . ') </td>';
            if ($nak['text'] != '') {
                echo '<td>Причина: ' . $nak['text'] . '</td>';
            }
            echo '</tr>';
        }
        echo '</table>';
        QuoteTable('close');
        echo '</td></tr>';
    }
    echo '</table>';
}
Ejemplo n.º 5
0
	else
	{
		$output_string.='Игрока нет на этой гексе';
	}
}
*/
if (isset($menu)) {
    $prov = myquery("select game_users.*,game_users_func.func_id from game_users,game_users_map,game_users_func where game_users.user_id='{$menu}' and game_users.user_id=game_users_map.user_id AND game_users_map.map_xpos='" . $char['map_xpos'] . "' and game_users_map.map_ypos='" . $char['map_ypos'] . "' and game_users_map.map_name='" . $char['map_name'] . "' AND game_users.user_id=game_users_func.user_id");
    if (mysql_num_rows($prov)) {
        $up = mysql_fetch_array($prov);
        $output_string .= '<table cellpadding="0" cellspacing="5" border="0">';
        $output_string .= '<tr><td colspan=2 align="center"><b>';
        if ($up['clan_id'] != 0) {
            $output_string .= '<a href="http://' . domain_name . '/view/?clan=' . $up['clan_id'] . '" target="_blank"><img src="http://' . img_domain . '/clan/' . $up['clan_id'] . '.gif" border=0></a> ';
        }
        $output_string .= '<font face=verdana size=2 color=ff0000>' . $up['name'] . '</font> (' . mysql_result(myquery("SELECT name FROM game_har WHERE id=" . $up['race'] . ""), 0, 0) . ' ' . $up['clevel'] . ' уровня)</b><br> Последнее действие: <b>' . get_delay_reason(get_delay_reason_id($up['user_id'])) . '</b>';
        if ($up['vsadnik'] > 20) {
            $output_string .= '<br><font face=verdana size=2 color=ff0000><b>Всадник!</b></font>';
        }
        $output_string .= '<br> Возможные действия:</td></tr>';
        $output_string .= '<tr><td><a href="http://' . domain_name . '/view/?userid=' . $up["user_id"] . '" target="_blank"">Информация</a></td></tr>';
        if ($up['clan_id'] != '0') {
            $output_string .= '<tr><td><a href="http://' . domain_name . '/view/?clan=' . $up['clan_id'] . '" target="_blank"">Информация о клане</a></td></tr>';
        }
        if ($up['name'] != $char['name']) {
            $output_string .= '<tr><td><a href="?func=pm&pm=write&komu=' . $up["name"] . '">Послать сообщение</a></td></tr>';
        }
        $num = 0;
        $map = mysql_fetch_array(myquery("SELECT * FROM game_maps WHERE id = '" . $char['map_name'] . "'"));
        //if ($char['MS_LEK']!='0' and ($up['func_id']!='1')) $output_string.='<tr><td><a href="?func=main&lek='.$up['user_id'].'">Лечить (Специализация '.$char['MS_LEK'].' уровня)</a></td></tr>';
        //if ($char['MS_VOR']!='0') $output_string.='<tr><td><a href="?func=main&vor='.$up['name'].'">Воровство (Специализация '.$char['MS_VOR'].' уровня)</a></td></tr>';