Файл: public_html/dungeon10.php
Строк: 449
<?php
include './system/common.php';
include './system/functions.php';
include './system/user.php';
$title = 'Окрестности города';
//задержка на удар
$boss = mysql_query('SELECT * FROM `boss` WHERE `user` = "'.$user['id'].'"');
$boss = mysql_fetch_array($boss);
$timex = mysql_query('SELECT * FROM `users` WHERE `id` = "'.$user['id'].'"');
$timex = mysql_fetch_array($timex);
$_GET['action']=isset($_GET['action'])?htmlspecialchars($_GET['action']):NULL;
if($_GET['action']!='fight'){include('./system/h.php');}
if (isset($_SESSION['err'])) {?>
<div class="error center"><img src="/images/icon/error.png"><?=$_SESSION['err']?></div>
<?$_SESSION['err'] = NULL;}
if (isset($_SESSION['ok'])) {?><div class="ok center"><img src="/images/icon/ok.png"><?=$_SESSION['ok']?></div><?
$_SESSION['ok'] = NULL;}
$camp=mysql_fetch_assoc(mysql_query("SELECT * FROM `campaign` WHERE `id_user`='".$user['id']."' LIMIT 1"));
if(!$camp){
mysql_query("INSERT INTO `campaign` SET `id_user`='".$user['id']."'");
header('Location: /dungeon10');
exit();
}
$camp_boss=mysql_fetch_assoc(mysql_query("SELECT * FROM `campaign_boss` WHERE `id`='".$camp['boss']."' LIMIT 1"));
if($camp['time']<=time() AND $camp['status']=='2' AND $camp['user_hp']!='0' AND $camp['boss_hp']!=0){
mysql_query("UPDATE `campaign` SET `status`='3', `udar`='999999999' WHERE `id_user`='".$user['id']."' LIMIT 1");
mysql_query("UPDATE `users` SET `exp`=`exp`+'".(0)."' WHERE `id`='".$user['id']."' LIMIT 1");
header('Location: /dungeon10');
exit();
}
if(($_GET['action']!='' AND $_GET['action']!='sent') AND ($camp['status']=='0' OR $camp['status']=='4')){
header('Location: /dungeon10');
exit();
}
if($_GET['action']!='find' AND $camp['status']=='1'){
header('Location: /dungeon10/find');
exit();}
if($_GET['action']!='lose' AND $camp['status']=='3'){
header('Location: /dungeon10/lose');
exit();}
if($_GET['action']!='fight' AND $camp['status']=='2' AND $_GET['action']!='exit'){
header('Location: /dungeon10/fight');
exit();}
switch($_GET['action']){
default:
if(isset($_GET['go'])){
$boss_id=mt_rand(100,103);
if($user['level'] == 1) {
$boss_hp=rand(300,500);}
if($user['level'] == 2) {
$boss_hp=rand(300,500);}
if($user['level'] == 3) {
$boss_hp=rand(300,500);}
if($user['level'] == 4) {
$boss_hp=rand(300,500);}
if($user['level'] == 5) {
$boss_hp=rand(300,500);}
if($user['level'] == 6) {
$boss_hp=rand(300,500);}
if($user['level'] == 7) {
$boss_hp=rand(300,500);}
if($user['level'] == 8) {
$boss_hp=rand(300,500);}
if($user['level'] == 9) {
$boss_hp=rand(300,500);}
if($user['level'] == 10) {
$boss_hp=rand(400,600);}
if($user['level'] > 10) {
$boss_hp=rand(500,700);}
mysql_query("UPDATE `campaign` SET `kol`=`kol`-'0', `status`='1', `boss`='".$boss_id."', `boss_stat`='1',
`boss_hp` = '".$boss_hp."', `level` = '".$camp_boss['level']."',
`user_hp`='".($user['vit'])."' WHERE `id_user`='".$user['id']."' LIMIT 1");
mysql_query("INSERT INTO `boss` SET `user` = '".$user['id']."', `time`='".time()."'");
mysql_query("UPDATE `campaign` SET `udar`='999999999' WHERE `id_user`='".$user['id']."' LIMIT 1");
header('Location: /dungeon10');
exit();
}?>
<div class="delta"></div>
<img style="width: 100%;" src="/images/town/hunter1.png">
<div class="header-title"><span style="color: rgb(228, 208, 105);">Окрестности города</div>
<div class=" backfon-3 backten-y"><center><br>
<center>
<a href='/dungeon10/go/' class='button-green backgreen ib'>Пройтись по окрестностям города</a><br>
<a href='/' class='button-red backgreen ib'>Bернуться в город</a>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<?
break;
case 'find':
if(isset($_GET['fight'])){
mysql_query("UPDATE `campaign` SET `status`='2', `stone_stat`='0', `grass_stat`='0', `time`='".(time()+1200)."' WHERE `id_user`='".$user['id']."' LIMIT 1");
mysql_query("DELETE FROM `campaign_log` WHERE `id_user`='".$user['id']."'");
header('Location: /dungeon10');
exit();
}
?>
<div class="header-title">Окрестности города</div>
<a href='/dungeon10/find/fight'>
<img src='/images/town/hunter1.png' alt='*' width='100%'>
</a>
<div class="header-title">На вас напал: <?=$camp_boss['name']?>
</div>
<div class=" backfon-3 backten-y"><div class="blocks-l textgrey p5 w95pc fzzz pr"><div class="blocks-l-l w64" style="">
<div style="background: url(/images/mob/<?=$camp_boss['id']?>.png); background-size: cover" class=" br6 h54 w54 tac vam "></div></div><div class="blocks-l-t "><div class=" qwest-heder mt-1 "></div><div class="mt3 textorange-2">
<span style="color: rgb(228, 208, 105);"></div>
<div class="mt3 textorange-2">
<span style="color: rgb(228, 208, 105);">
<?=$camp_boss['name']?><br>
Здоровье: <?=$camp['boss_hp']?><br>
Защита: <?=$camp_boss['def']?>
</div></div>
</div>
<div class="delta"></div>
<br>
<center>
<a class='button-51 backgreen ib ' href='/dungeon10/find/fight'>Начать бой</a>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<?break;
case 'fight':
// победа
if(isset($_GET['win']) && $camp['boss_stat']==4){
//опыт
$xpboss = rand(40,60);
//кристаллы
$crrand = rand(1,10);
if($crrand == 1) {
$crboss = rand(100,150);}
if($crrand == 2) {
$crboss = rand(100,150);}
if($crrand == 3) {
$crboss = rand(100,150);}
if($crrand == 4) {
$crboss = 0;}
if($crrand == 5) {
$crboss = 0;}
if($crrand == 6) {
$crboss = 0;}
if($crrand == 7) {
$crboss = 0;}
if($crrand == 8) {
$crboss = 0;}
if($crrand == 9) {
$crboss = 0;}
if($crrand == 10) {
$crboss = 0;}
//рубины
$rubinrand = rand(1,10);
if($rubinrand == 1) {
$rubinboss = 1;}
if($rubinrand == 2) {
$rubinboss = 1;}
if($rubinrand == 3) {
$rubinboss = 0;}
if($rubinrand == 4) {
$rubinboss = 0;}
if($rubinrand == 5) {
$rubinboss = 0;}
if($rubinrand == 6) {
$rubinboss = 0;}
if($rubinrand == 7) {
$rubinboss = 0;}
if($rubinrand == 8) {
$rubinboss = 0;}
if($rubinrand == 9) {
$rubinboss = 0;}
if($rubinrand == 10) {
$rubinboss = 0;}
//фишки
$c3nrand = rand(1,10);
if($c3nrand == 1) {
$c3boss = 1;}
if($c3nrand == 2) {
$c3boss = 1;}
if($c3nrand == 3) {
$c3boss = 0;}
if($c3nrand == 4) {
$c3boss = 0;}
if($c3nrand == 5) {
$c3boss = 0;}
if($c3nrand == 6) {
$c3boss = 0;}
if($c3nrand == 7) {
$c3boss = 0;}
if($c3nrand == 8) {
$c3boss = 0;}
if($c3nrand == 9) {
$c3boss = 0;}
if($c3nrand == 10) {
$c3boss = 0;}
mysql_query("UPDATE `campaign` SET `status`='3', `udar`='999999999' WHERE `id_user`='".$user['id']."' LIMIT 1");
mysql_query("UPDATE `users` SET `mobs` = `mobs` + '1' WHERE `id`='".$user['id']."' LIMIT 1");
mysql_query("UPDATE `users` SET `exp` = `exp` + '".$xpboss."' WHERE `id`='".$user['id']."' LIMIT 1");
mysql_query("UPDATE `users` SET `g` = `g` + '".$crboss."' WHERE `id`='".$user['id']."' LIMIT 1");
mysql_query("UPDATE `users` SET `rubin` = `rubin` + '".$rubinboss."' WHERE `id`='".$user['id']."' LIMIT 1");
mysql_query("UPDATE `users` SET `c3` = `c3` + '".$c3boss."' WHERE `id`='".$user['id']."' LIMIT 1");
mysql_query("INSERT INTO `journal` SET `from`='".$user['id']."',
`text`='За бой в Окрестностях города вы получили:
<br>".$xpboss."<img src="/images/new/exp.png"> ".$crboss."<img src="/images/icon/crystal_blue.png"> ".$rubinboss."<img src="/images/rubin.png"> ".$c3boss."<img src="/images/news/3.png">',
`read`='0',
`tip`= '1',
`time`='".time()."'");
//выполнение квеста
//Охотник
$q = mysql_query ('select * from `user_q` WHERE (`user`="' . $user['id'] . '") AND (`complete`="0")');
if (mysql_num_rows ($q) != 0) {
while ($user_q = mysql_fetch_array ($q)) {
$q_ = mysql_query ('SELECT * FROM `quest` WHERE (`id`="' . $user_q['q'] . '")');
$quest = mysql_fetch_array ($q_);
if ($user_q['c']<$quest['c']) {
if ($quest['place']=='5') {
if ($quest['type']=='0') {
mysql_query ('UPDATE `user_q` SET `c`=`c`+1 WHERE (`user`="' . $user['id'] . '") AND (`q`="' . $quest['id'] . '")');
}}}}}
mysql_query("UPDATE `campaign` SET `status`='0' WHERE `id_user`='".$user['id']."' LIMIT 1");
header('Location: /location/');
exit();}
//поражение
if(isset($_GET['lose'])){
mysql_query("UPDATE `campaign` SET `status`='3', `udar`='999999999' WHERE `id_user`='".$user['id']."' LIMIT 1");
mysql_query("UPDATE `users` SET `exp`=`exp`+'".($camp_boss['exp'] / 5)."' WHERE `id`='".$user['id']."' LIMIT 1");
header('Location: /dungeon10');
exit();}
if(isset($_GET['attack'])){
if(time() - $boss['time'] < 1) {
$log='Вы промахнулись';
mysql_query("INSERT INTO `campaign_log` SET `id_user`='".$user['id']."', `text`='".$log."'");
header('Location: /dungeon10');
exit();}
if($a_1){
$user_udar=round(rand($user['str']*0.9,$user['str'])*(1+$a_1_bonus/100));
$skill = '<br>Вы применили <img src="/images/campaign/'.$user['ability_1_quality'].'.png"> <font color="'.quality_color($user['ability_1_quality']).'">Ярость титана</font>';
}elseif($a_3){
$user_udar=round(rand($user['str']*0.9,$user['str'])*(1+$a_3_bonus/100));
$skill = ' <font color="'.quality_color($user['ability_3_quality']).'">Крит</font><br>Вы применили <img src="/images/campaign/'.$user['ability_3_quality'].'.png"> <font color="'.quality_color($user['ability_3_quality']).'">Вихрь критов</font>';
}else{
$minattack = $user['str'] / 6;
$maxattack = $user['str'] / 4;
$user_udar=ceil(round(rand($minattack,$maxattack)));
$skill = FALSE;
}
if(time() - $boss['time'] >= 0) {
mysql_query('UPDATE `boss` SET `time` = "'.(time() + 1).'" WHERE `user` = "'.$user['id'].'"');}
// лог
mysql_query("UPDATE `campaign` SET `boss_hp`=`boss_hp`-'".$user_udar."', `udar`=`udar`-'1' WHERE `id_user`='".$user['id']."' LIMIT 1");
$camp=mysql_fetch_assoc(mysql_query("SELECT * FROM `campaign` WHERE `id_user`='".$user['id']."' LIMIT 1"));
if($camp['boss_hp']<=0){
mysql_query("UPDATE `campaign` SET `boss_hp`='0', `boss_stat`='4' WHERE `id_user`='".$user['id']."' LIMIT 1");
$log='Вы нанесли '.$user_udar.' урона '.$camp_boss['name'].'.';
$kill_boss_log='Вы убили '.$camp_boss['name'].'';
mysql_query("INSERT INTO `campaign_log` SET `id_user`='".$user['id']."', `text`='".$log."'");
mysql_query("INSERT INTO `campaign_log` SET `id_user`='".$user['id']."', `text`='".$kill_boss_log."'");
}else{
if($camp['udar']>0){
//урон моба
$boss_min = 4;
$boss_max = 12;
$boss_udar=rand($boss_min,$boss_max);
$log=''.$camp_boss['name'].' получил(а) от вас '.$user_udar.' едениц урона.';
mysql_query("INSERT INTO `campaign_log` SET `id_user`='".$user['id']."', `text`='".$log."'");
}else{
mysql_query("UPDATE `campaign` SET `status`='3', `udar`='999999999' WHERE `id_user`='".$user['id']."' LIMIT 1");
mysql_query("UPDATE `users` SET `exp`=`exp`+'".(0)."' WHERE `id`='".$user['id']."' LIMIT 1");
}}
mysql_query("UPDATE `campaign` SET `user_hp`=`user_hp`-'".$boss_udar."' WHERE `id_user`='".$user['id']."' LIMIT 1");
$camp=mysql_fetch_assoc(mysql_query("SELECT * FROM `campaign` WHERE `id_user`='".$user['id']."' LIMIT 1"));
if($camp['boss_stat']!=4){
if($camp['user_hp']<=0){
mysql_query("UPDATE `campaign` SET `user_hp`='0' WHERE `id_user`='".$user['id']."' LIMIT 1");
$boss_log='Получен удар от '.$camp_boss['name'].' на '.$boss_udar.'</span>'.$skill.'';
$kill_user_boss_log=''.$camp_boss['name'].' нанес(ла) последний удар.';
mysql_query("INSERT INTO `campaign_log` SET `id_user`='".$user['id']."', `text`='".$boss_log."'");
mysql_query("INSERT INTO `campaign_log` SET `id_user`='".$user['id']."', `text`='".$kill_user_boss_log."'");
}else{
$boss_log='<span style="color: rgb(255, 0, 0);">'.$camp_boss['name'].' укусил(а) вас на '.$boss_udar.' едениц</span>';
mysql_query("INSERT INTO `campaign_log` SET `id_user`='".$user['id']."', `text`='".$boss_log."'");
mysql_query("INSERT INTO `users` SET `hp`=' ".$user['id']."', `text`='".$boss_log."'");}}
header('Location: /dungeon10');exit();}
if($camp['boss_hp']=='0' OR $camp['user_hp']=='0'){
include('./system/h.php');
}else{
?>
<!DOCTYPE html>
<html>
<head>
<title><?=$title?></title>
<link rel='shortcut icon' href='/favicon.ico'/>
<meta name="viewport" content="width=device-width; minimum-scale=1; maximum-scale=1">
<link rel='stylesheet' href='/style.css'/>
</head>
<body>
<?
$hp = $camp['user_hp'];
$hp_progress = round(100/($user['vit']/$camp['user_hp']));
if($hp_progress > 100) {
$hp_progress = 100;
}
?>
<div class="header-title">
<table style="width: 100%; text-align: left; margin-left: auto; margin-right: auto;">
<tbody>
<tr>
<td style="text-align: left; vertical-align: middle;"><img src='/images/xx/4.png'> <?=$camp['user_hp']?></td>
<td style="text-align: center; vertical-align: middle;">
<center><img style="width: 20px; height: 20px;" src="/images/rang/<?=$user['rang']?>.jpg"><?=$user['login']?>, <?if($user['r'] == 0) {?>Cветлый <?}?><?if($user['r'] == 1) {?>Темный <?}?><?if($user['class'] == 1) {?>Друид, <?}?><?if($user['class'] == 0) {?>Паладин, <?}?><?=$user['level']?>ур.
<?
$mail = mysql_result(mysql_query('SELECT COUNT(*) FROM `mail` WHERE `to` = "'.$user['id'].'" AND `read` = "0"'),0);
if($mail > 0) {
?>
<a href='/mail/'><img style="width: 17px; height: 12px;" src='/images/mail/1.png' alt='*'/></a>
<?
}
?>
</center>
</td>
<td style="text-align: right; vertical-align: middle;"><?=$user['mp']?> <img style="width: 20px; height: 20px;" src='/images/icon/4.png'></td>
</tr>
</tbody>
</table>
</div>
<div class=" backfon-3 backten-y">
<div class="foot-info-exp">
<div class="foot-info-exp-fill" style="width:<?=$hp_progress?>%"></div>
</div>
<div style="text-align: center;"><span style="color: rgb(153, 153, 153);">
Здоровье: <?=n_f($camp['user_hp'])?>/<?=n_f($user['vit'])?>
</span></div>
</div>
</div>
<div class="header-title">Окрестности города</div>
<div class=" backfon-3 backten-y"><div class="blocks-l textgrey p5 w95pc fzzz pr"><div class="blocks-l-l w64" style="">
<div style="background: url(/images/mob/<?=$camp_boss['id']?>.png); background-size: cover" class=" br6 h54 w54 tac vam "></div></div><div class="blocks-l-t "><div class=" qwest-heder mt-1 "></div><div class="mt3 textorange-2">
<span style="color: rgb(228, 208, 105);"></div>
<div class="mt3 textorange-2">
<span style="color: rgb(228, 208, 105);">
<?=$camp_boss['name']?><br>
Здоровье: <?=$camp['boss_hp']?><br>
Защита: <?=$camp_boss['def']?>
</div></div>
</div>
<div class="header-title"> </div>
<div class=" backfon-3 backten-y"><center>
<?}?>
<div class=" backfon-3 backten-y">
<?//победа
if($camp['boss_stat']==4){?>
<div class="header-title">Победа!</div>
<img style="width: 100%;" src="/images/hunter_win.png">
<div class="header-title">Зверь был повержен!</div>
<center>
<br><a class='button-green backgreen ib ' href='/dungeon10/fight/win'>Покинуть поле боя</a><br><br>
<?
}else // поражение
if($camp['user_hp']=='0'){
?>
<div class="header-title">Поражение</div>
<img style="width: 100%;" src="/images/hunter_lose.png">
<div class="header-title">Bы были повержены в бою</div>
<center>
<br><a class='button-red backgreen ib ' href='/dungeon10/fight/lose'>Bернуться в окрестности</a>
<br><a class='button-green backgreen ib ' href='?heel_me'>Излечить раны и вернуться в бой <img src='/images/rubin.png'>2</a>
<br><br>
<?
if (isset($_GET['heel_me']) && $user['rubin']>=2){
mysql_query("UPDATE `users` SET `rubin`=`rubin`-'2' WHERE `id`='".$user['id']."'");
mysql_query("UPDATE `campaign` SET `user_hp` = '".$user['vit']."' WHERE `id_user`='".$user['id']."' LIMIT 1");
header('Location: /dungeon10/fight');
}?>
<?
}else{
?>
<a class='button-51 backgreen ib ' href='/dungeon10/fight/attack'>Ударить зверя</a>
<?if(time() - $boss['time'] == -1) {?><center>До следующего удара: 1 секунда</center><?}?>
</div>
<div class="header-title">Зелья</div>
<table style="width: 100%; text-align: left; margin-left: auto; margin-right: auto;" border="0" cellpadding="0" cellspacing="0"><tbody><tr>
<td style="width: 25%; text-align: center;">
<a class="i-amu">
<img src="/images/elic1.gif" height="45" width="45">
<span class="amu-num"><?=$user[elic1]?></span>
<?if($user['elic1'] <= 0) {?><br><a class='button-51 backgreen ib '>Использовать</a></td><?}?>
<?if($user['elic1'] >= 1) {?><br><a class='button-green backgreen ib ' href='?elic1'>Использовать</a></td><?}?>
<td style="width: 25%; text-align: center;">
<a class="i-amu">
<img src="/images/elic2.gif" height="45" width="45">
<span class="amu-num"><?=$user[elic2]?></span>
<?if($user['elic2'] <= 0) {?><br><a class='button-51 backgreen ib '>Использовать</a></td><?}?>
<?if($user['elic2'] > 0) {?><br><a class='button-green backgreen ib ' href='?elic2'>Использовать</a></td><?}?>
<td style="width: 25%; text-align: center;">
<a class="i-amu">
<img src="/images/elic3.gif" height="45" width="45">
<span class="amu-num"><?=$user[elic3]?></span>
<br><a class='button-51 backgreen ib '>Использовать</a></td>
<td style="width: 25%; text-align: center;">
<a class="i-amu">
<img src="/images/elic4.gif" height="45" width="45">
<span class="amu-num"><?=$user[elic4]?></span>
<br><a class='button-51 backgreen ib '>Использовать</a></td>
</tr></tbody></table><br>
<div class="delta"></div>
<?if($camp['user_hp'] < $user['vit']) {?>
<?$hp3 = ($user['vit'] / 2) + $camp['user_hp'];
if (isset($_GET['elic1']) && $user['elic1']>=1 && $camp['user_hp'] < $user['vit']){
mysql_query("UPDATE `campaign` SET `user_hp` = `user_hp` + '".$hp3."' WHERE `id_user`='".$user['id']."' LIMIT 1");
mysql_query("UPDATE `users` SET `g`=`g`+'1' WHERE `id`='".$user['id']."'");
mysql_query("UPDATE `users` SET `elic1`=`elic1`-'1' WHERE `id`='".$user['id']."'");
header('Location: /dungeon10/fight');}?>
<?}?>
<?$hp3 = $user['vit'];
if (isset($_GET['elic2']) && $user['elic2']>=1 && $camp['user_hp'] < $user['vit']){
mysql_query("UPDATE `campaign` SET `user_hp` = '".$hp3."' WHERE `id_user`='".$user['id']."' LIMIT 1");
mysql_query("UPDATE `users` SET `g`=`g`+'1' WHERE `id`='".$user['id']."'");
mysql_query("UPDATE `users` SET `elic1`=`elic1`-'2' WHERE `id`='".$user['id']."'");
header('Location: /dungeon10/fight');}?>
<?}?>
<div class="header-title">История битвы</div>
<?$data_log_open=mysql_fetch_assoc(mysql_query("SELECT * FROM `campaign_log` WHERE `id_user`='".$user['id']."' LIMIT 1"));
if($data_log_open){?>
<?}
$data_log=mysql_query("SELECT `text` FROM `campaign_log` WHERE `id_user`='".$user['id']."' ORDER BY(`id`) DESC LIMIT 40");
while($camp_log=mysql_fetch_assoc($data_log)){
?>
<?=$camp_log['text']?><div class="delta"></div>
<?}?>
<? if($camp['boss_hp']=='0' OR $camp['user_hp']=='0'){?>
<?include('../system/f.php');
}else{?>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<?
}
break;
case 'exit':
if(isset($_GET['exit'])){
header('Location: /');
exit();
}
?><div class='main'>
<div class='block_zero center'>
Ваш персонаж сейчас находится в бою, хотите туда вернуться?
<div class='mb5'></div>
<div class='center'>
<a class='btn' href='/dungeon'>
<span class='end'>
<span class='label'>
<span class='dgreen'>
<img src='/images/icon/2hit.png' alt='*'>
Вернуться в бой!
</span>
</span>
</span>
</a>
<div class='mb10'>
</div>
<a class='grey' href='/dungeon10/exit/exit'>
выйти из боя
</a>
</div>
</div>
</div><?
break;
case 'lose':
if(isset($_GET['end'])){
mysql_query("UPDATE `campaign` SET `status`='0' WHERE `id_user`='".$user['id']."' LIMIT 1");
header('Location: /dungeon10/');
exit();
}
?>
<div class="header-title">Окрестности города</div>
<?if($camp['boss_hp']=='0'){?>
<img style="width: 100%;" src="/images/hunter_win.png">
<div class="header-title">Победа</div>
<?}else{?>
<img style="width: 100%;" src="/images/hunter_lose.png">
<div class="header-title">Поражение</div>
<?}?>
<div class=" backfon-3 backten-y">
<?// если босс мертв
if($camp['boss_hp']=='0'){?>
<?//если вы мертвы
}else{?>
<?}?>
<br>
<center><span style="color: rgb(228, 208, 105);">
Дикий зверь растерзал вас.
</span></center>
<br>
<center><a class='button-51 backgreen ib ' href='/dungeon10/lose/end'>Bернуться в окрестности города</a></center>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<div class=" backfon-3 backten-y">
<?
break;
}
if($_GET['action']!='fight'){
?>
<?}?>
<div class=" backfon-3 backten-y">
<br><br><br><br><br><br><br><br><br>