|
";
echo" ".$VaultInfo['text']." ";
echo"
| | |
";
if ($VaultInfo['left_id']) echo"";
else echo"";
echo" | | ";
if ($VaultInfo['right_id']) echo"";
else echo"";
echo" |
| | |
";
echo" ";
echo"";
if ($user['boloto_time'] > $now) {
echo"Переходим в ".$VaultRoom[$user[boloto_room]]."";
}
echo"";
echo" |
";
echo"
Местность ";
//-------------ВЫБЕРАЕМ РЕСУРСЫ ГРУППЫ---------/
$bol_res=mysql_fetch_array(mysql_query("select * from `vault_res` where `id`='".mysql_real_escape_string($user['boloto_groups'])."'"));
$key=mysql_query("select `name` from `inventory` where `owner`='".mysql_real_escape_string($user['id'])."' AND `type`='33' AND `name`='Болотный ключ'");
$key_kol = mysql_num_rows($key);
$kod=mysql_query("select `name` from `inventory` where `owner`='".mysql_real_escape_string($user['id'])."' AND `type`='33' AND `name`='Код от тайника'");
$kod_kol = mysql_num_rows($kod);
/*---- Module ----*/
////////////////
if($user['room'] == 2027){
echo"Алтарная! Здесь возможно произвести обмен!";
?>
}
else{
///ВЫВОДИМ НА РАНДОМЕ ПРОСТЫХ МОБОВ
if($user['room'] != 2006 && $user['room'] != 2057 && $user['room'] != 2020 && $user['room'] != 2022 && $user['room'] != 2033 && $user['room'] != 2034){
echo"Мобы:";
$mob_rend = rand(1,5);
if($mob_rend == 1 || $mob_rend == 3){echo"А вот и: ";
if($mob_rend == 1){$mob_id = 1217; $mob_type=2001;}
elseif($mob_rend == 3){$mob_id = 1218; $mob_type=2002;}
$bot_list = mysql_query("SELECT * FROM `users` WHERE `bot`='1' AND `id`='".mysql_real_escape_string($mob_id)."' AND `bot_type`='".mysql_real_escape_string($mob_type)."'");
while ($bot_nick=mysql_fetch_assoc($bot_list))
{
$in_attack = 'onclick=\'if (confirm("Нападаем?")) window.location="boloto.php?level=train&atakbot=1&bot_login='.$bot_nick['login'].'&bot_type='.$bot_nick['bot_type'].'"\' style=\'CURSOR: Hand\' alt=\'Нападение\'';
echo '
'.$bot_nick['login'].' ['.$bot_nick['level'].']
';
}
}
else{echo"Все попрятались...";}
}
///////////////////////
//ЕСЛИ МЫ В ЛОКЕ С БОССОМ ВЫВОДИМ ЕГО!
else{
echo"БОСС:";
if($user['room'] == 2006){$boss = "boss1";}
elseif($user['room'] == 2033){$boss = "boss2";}
elseif($user['room'] == 2057){$boss = "boss3";}
elseif($user['room'] == 2020){$boss = "boss4";}
elseif($user['room'] == 2022){$boss = "boss5";}
elseif($user['room'] == 2034){$boss = "boss6";}
if($bol_res[$boss] == 1){
$bot_list = mysql_query("SELECT * FROM `users` WHERE `bot`='1' AND `room`='".mysql_real_escape_string($user['room'])."' AND (`bot_type`='2003' OR `bot_type`='2004' OR `bot_type`='2005' OR `bot_type`='2006' OR `bot_type`='2007' OR `bot_type`='2008')");
while ($bot_nick=mysql_fetch_assoc($bot_list))
{
$in_attack = 'onclick=\'if (confirm("Нападаем?")) window.location="boloto.php?level=train&atakbot1=1&bot_login='.$bot_nick['login'].'&bot_type='.$bot_nick['bot_type'].'"\' style=\'CURSOR: Hand\' alt=\'Нападение\'';
echo '
'.$bot_nick['login'].' ['.$bot_nick['level'].']
';
}
}else{echo"БОСС убит...";}
}
//////////////////
//ВЫВОДИМ ТАЙНИКИ И СУНДУКИ!
echo" |
|