Излом Хаоса доступен через телепорт. #54.

This commit is contained in:
Ivor Barhansky 2023-07-31 18:01:52 +03:00
parent a412d334ae
commit fff3de0a98
3 changed files with 251 additions and 309 deletions

View File

@ -1,65 +1,78 @@
<?php
if(!defined('GAME'))
{
if (!defined('GAME')) {
die();
}
if($u->room['file']=='cp4') {
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
if ($u->room['file'] == 'cp4') {
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="250" valign="top">
<?php $usee = $u->getInfoPers($u->info['id'],0); if($usee!=false){ echo $usee[0]; }else{ echo 'information is lost.'; } ?>
<?php $usee = $u->getInfoPers($u->info['id'], 0);
if ($usee != false) {
echo $usee[0];
} else {
echo 'information is lost.';
} ?>
</td>
<td width="230" valign="top" style="padding-top:19px;"><?php require_once('modules_data/stats_loc.php'); ?></td>
<td valign="top"><div align="right">
<td valign="top">
<div align="right">
<table border="0" cellpadding="0" cellspacing="0">
<tr align="right" valign="top">
<td>
<?php
if( $u->error != '' ) {
if( $re != '' ) {
if ($u->error != '') {
if ($re != '') {
$re .= '<br>';
}
$re .= $u->error;
}
if($re!=''){ echo '<font color="red"><b>'.$re.'</b></font>'; } ?>
if ($re != '') {
echo '<font color="red"><b>' . $re . '</b></font>';
} ?>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/loca/leg_loc/big_park/bg_park_day.png" id="img_ione" width="500" height="268" border="1"/>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/loca/leg_loc/big_park/bg_park_day.png" id="img_ione"
width="500" height="268" border="1"/>
<!--Надписи локаций под картинками-->
<a bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /></a>
<a bgcolor="#D3D3D3" nowrap="nowrap"><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=3.180.0.421&rnd=<?= $code; ?>';" title="<?php thisInfRm('3.180.0.421',1); ?>">Домик Бабушки</a>
<a bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /></a>
<a bgcolor="#D3D3D3" nowrap="nowrap"><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.415&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.415',1); ?>">Храм Поклона</a>
<a bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /></a>
<a bgcolor="#D3D3D3" nowrap="nowrap"><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.9&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.9',1); ?>">Центральная площадь</a>
<a bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /></a>
<a bgcolor="#D3D3D3" nowrap="nowrap"><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=3.180.0.353&rnd=<?= $code; ?>';" title="<?php thisInfRm('3.180.0.353',1); ?>">Излом Хаоса</a>
<a bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7"/></a>
<a bgcolor="#D3D3D3" nowrap="nowrap"><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=3.180.0.421&rnd=<?= $code; ?>';"
title="<?php thisInfRm('3.180.0.421', 1); ?>">Домик Бабушки</a>
<a bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7"/></a>
<a bgcolor="#D3D3D3" nowrap="nowrap"><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.415&rnd=<?= $code; ?>';"
title="<?php thisInfRm('1.180.0.415', 1); ?>">Храм Поклона</a>
<a bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7"/></a>
<a bgcolor="#D3D3D3" nowrap="nowrap"><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.9&rnd=<?= $code; ?>';"
title="<?php thisInfRm('1.180.0.9', 1); ?>">Центральная площадь</a>
<a bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7"/></a>
<!--END-->
<div style="position: absolute; left: 4px; right: 0px; z-index: 1500; top: 5px;">
<div id="frvrks" style="position:relative;"></div>
</div>
<div style="position: absolute; left: 367px; top: 140px; width: 78px; height: 44px; z-index: 90;">
<img <?php thisInfRm('3.180.0.421'); ?> src="//img.new-combats.tech/loca/cp11/znah_png.png" width="78" height="44" title="" class="aFilter" />
<img <?php thisInfRm('3.180.0.421'); ?> src="//img.new-combats.tech/loca/cp11/znah_png.png" width="78" height="44" title=""
class="aFilter"/>
</div>
<div style="position: absolute; left: 236px; top: 96px; width: 84px; height: 58px; z-index: 90;">
<img <?php thisInfRm('1.180.0.415'); ?> src="//img.new-combats.tech/loca/leg_loc/big_park/hram.png" width="84" height="116" title="" class="aFilter" />
<img <?php thisInfRm('1.180.0.415'); ?> src="//img.new-combats.tech/loca/leg_loc/big_park/hram.png" width="84" height="116" title=""
class="aFilter"/>
</div>
<div style="position: absolute; left: 35px; top: 60px; width: 175px; height: 157px; z-index: 90;">
<img <?php thisInfRm('1.180.0.423'); ?> src="//img.new-combats.tech/loca/leg_loc/big_park/ruine.png" width="175" height="157px" title="" class="aFilter" />
<img <?php thisInfRm('1.180.0.423'); ?> src="//img.new-combats.tech/loca/leg_loc/big_park/ruine.png" width="175" height="157px" title=""
class="aFilter"/>
</div>
<div style="position: absolute; left: 25px; top: 196px; width: 20px; height: 41px; z-index: 92;">
<img <?php thisInfRm('3.180.0.353'); ?> src="//img.new-combats.tech/loca/cp11/arr_left.png" width="29" height="41" title="" class="aFilter" />
</div>
<div style="position: absolute; left: 453px; top: 195px; width: 29px; height: 41px; z-index: 92;"><img <?php thisInfRm('1.180.0.9'); ?> src="//img.new-combats.tech/loca/cp11/arr_right.png" width="29" height="41" title="" class="aFilter" /></div>
<div style="position: absolute; left: 453px; top: 195px; width: 29px; height: 41px; z-index: 92;"><img <?php thisInfRm('1.180.0.9'); ?>
src="//img.new-combats.tech/loca/cp11/arr_right.png" width="29" height="41" title="" class="aFilter"/></div>
<div id="snow"></div>
<?= $goline; ?>
<div id="buttons_on_image" style="cursor:pointer; position:absolute; bottom:22px; right:25px; font-weight:bold; color:#D8D8D8; font-size:10px;">
<div id="buttons_on_image"
style="cursor:pointer; position:absolute; bottom:22px; right:25px; font-weight:bold; color:#D8D8D8; font-size:10px;">
<?php
if( date('H') >= 22 || date('H') < 6 ) {
if (date('H') >= 22 || date('H') < 6) {
echo '<a style="color:#D8D8D8" style="cursor:pointer" onclick="top.useMagic(\'Нападение на персонажа\',\'night_atack\',\'pal_button8.gif\',1,\'main.php?nightatack=1\');">Напасть</a> &nbsp; ';
}
?>
@ -69,7 +82,8 @@ if($u->room['file']=='cp4') {
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<div align="right" style="padding: 3px;"></div></td>
<div align="right" style="padding: 3px;"></div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
@ -77,16 +91,18 @@ if($u->room['file']=='cp4') {
</table>
<small>
<HR>
<INPUT class="btn" onclick="window.open('/forum?read=912&rnd=1', 'help', 'height=500,width=1024,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка для новичков" style="color:red;" type="button">
<INPUT class="btn" onclick="window.open('/forum?read=912&rnd=1', 'help', 'height=500,width=1024,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')"
value="Подсказка для новичков" style="color:red;" type="button">
<br>
<strong>Внимание!Рекомендуем включить функцию второго пароля во вкладке "Безопасность", это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</div>
</td>
</tr>
</table>
<?php
</table>
<?php
}
?>

View File

@ -1,5 +1,6 @@
<?php
use Core\Config;
use User\StatsModel;
if (!defined('GAME')) {
@ -55,7 +56,9 @@ if ($u->info['dn'] > 0) {
$dungeon_timeout = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `vars` = "psh0" AND `time` > ' . (time() - 60 * 60 * 2) . ' LIMIT 1', 1);
if ($u->info['admin'] > 0) unset($dungeon_timeout); // $dungeon_timeout - задержка на посещение пещеры.
if ($u->isAdmin()) {
unset($dungeon_timeout);
} // $dungeon_timeout - задержка на посещение пещеры.
if (isset($dungeon_timeout['id'])) // Кто-то передумал и не пойдет в пещеру, так-как уже там был.
{
$dungeonGo = 0;
@ -166,10 +169,13 @@ if (isset($_GET['start']) && $zv['uid'] == $u->info['id'] && $dungeonGo == 1) {
$bots = explode(',', $pl['bot_group']);
$pl['id_bot'] = (int)$bots[rand(0, count($bots) - 1)];
}
if ($pl['id_bot'] > 0) $vls .= '("' . $zid . '","' . $pl['id_bot'] . '","' . $pl['colvo'] . '","' . $pl['items'] . '","' . $pl['x'] . '","' . $pl['y'] . '","' . $pl['dialog'] . '","' . $pl['items'] . '","' . $pl['go_bot'] . '","' . $pl['noatack'] . '"),';
if ($pl['id_bot'] > 0) {
$vls .= '("' . $zid . '","' . $pl['id_bot'] . '","' . $pl['colvo'] . '","' . $pl['items'] . '","' . $pl['x'] . '","' . $pl['y'] . '","' . $pl['dialog'] . '","' . $pl['items'] . '","' . $pl['go_bot'] . '","' . $pl['noatack'] . '"),';
}
unset($bots);
}
$vls = rtrim($vls, ',');
var_dump($vls);
$ins1 = mysql_query('INSERT INTO `dungeon_bots` (`dn`,`id_bot`,`colvo`,`items`,`x`,`y`,`dialog`,`atack`,`go_bot`,`noatack`) VALUES ' . $vls . '');
//Добавляем обьекты
$vls = '';
@ -300,13 +306,14 @@ if (isset($_GET['start']) && $zv['uid'] == $u->info['id'] && $dungeonGo == 1) {
if ($upd2 && $ins1 && $ins2) {
die('<script>location="main.php?rnd=' . $code . '";</script>');
} else {
$error = 'Ошибка перехода в подземелье...';
var_dump($upd2, $ins1, $ins2);
$error = 'Ошибка перехода в подземелье... a1';
}
} else {
$error = 'Ошибка перехода в подземелье...';
$error = 'Ошибка перехода в подземелье... a2';
}
} else {
$error = 'Ошибка перехода в подземелье...';
$error = 'Ошибка перехода в подземелье... a3';
}
}
} elseif (isset($_POST['go'], $_POST['goid']) && $dungeonGo == 1) {
@ -522,42 +529,24 @@ while ($pl = mysql_fetch_array($sp)) {
}
$dungeonGroupList .= '</div>';
}
$paths = [];
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<?php if ($roomSection == 0) { ?>
<td>
<div style="padding-left:0px;" align="center">
<?php if ($roomSection == 0): ?>
<h3>Вход в подземелье</h3>
</div>
</td>
<?php
} ?>
<td width="200">
<div align="right">
<table cellspacing="0" cellpadding="0">
<tr>
<td width="100%">&nbsp;</td>
<td>
<?php if ($roomSection == 0) { ?>
<table border="0" cellpadding="0" cellspacing="0">
<tr align="right" valign="top">
<td><!-- -->
<?= $goLis; ?>
<!-- -->
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap="nowrap">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEDEDE">
<tr>
<td bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7"/></td>
<td bgcolor="#D3D3D3" nowrap="nowrap">
<a href="#" id="greyText" class="menutop"
onclick="location='main.php?loc=<?php if ($u->info['city'] == 'abandonedplain') {
echo '3.180.0.267';
} elseif ($u->info['city'] == 'fallenearth') {
echo '6.180.0.102';
} elseif ($u->info['room'] == 188) {
<?php elseif ($roomSection == 1): ?>
<h3>Рыцарский Магазин</h3>
<?php endif; ?>
<?php if ($roomSection == 0): ?>
<div style="text-align: right;">
<button onclick="location.href='/main.php?loc=1.180.0.353'">
<img src="<?= Config::img() ?>/i/city/fo11.gif" alt="">
Излом Хаоса
</button>
<button onclick="location.href='/main.php?loc=<?php
if ($u->info['room'] == 188) {
echo '1.180.0.4';
} elseif ($u->info['room'] == 393) {
echo '1.180.0.2';
@ -573,34 +562,9 @@ while ($pl = mysql_fetch_array($sp)) {
echo '1.180.0.9';
} else {
echo '1.180.0.321';
} ?>&rnd=<?= $code; ?>';" title="<?php
if ($u->info['city'] == 'fallenearth') {
thisInfRm('6.180.0.102', 1);
} elseif ($u->info['city'] == 'abandonedplain') {
thisInfRm('3.180.0.267', 1);
} elseif ($u->info['room'] == 188) {
thisInfRm('1.180.0.4', 1);
} elseif ($u->info['room'] == 393) {
thisInfRm('1.180.0.2', 1);
} elseif ($u->info['room'] == 372) {
thisInfRm('1.180.0.323', 1);
} elseif ($u->info['room'] == 395) {
thisInfRm('2.180.0.231', 1);
} elseif ($u->info['room'] == 397) {
thisInfRm('2.180.0.229', 1);
} elseif ($u->info['room'] == 242) {
thisInfRm('2.180.0.236', 1);
} elseif ($u->info['room'] == 321) {
thisInfRm('1.180.0.9', 1);
} else {
thisInfRm('1.180.0.321', 1);
}
?>"><?php
if ($u->info['city'] == 'fallenearth') {
echo "Темный Портал";
} elseif ($u->info['city'] == 'abandonedplain') {
echo "Центральная площадь";
} elseif ($u->info['room'] == 188) {
} ?>&rnd=<?= $code; ?>'">
<?php
if ($u->info['room'] == 188) {
echo "Зал воинов";
} elseif ($u->info['room'] == 393) {
echo "Зал воинов 2";
@ -617,43 +581,22 @@ while ($pl = mysql_fetch_array($sp)) {
} else {
echo "Магический Портал";
}
?></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?php } ?>
</td>
</tr>
</table>
?>
</button>
<button onclick="location.href='/main.php?rz=1'">Рыцарский магазин</button>
<button onclick="location.href='/main.php'">Обновить</button>
</div>
</td>
</tr>
</table>
<?php if ($roomSection == 1) { ?>
<td>
<div style="padding-left:0px;" align="center">
<h3>Рыцарский Магазин</h3>
<?php else: ?>
<div style="text-align: right;">
<button onclick="location.href='/main.php?rz=1'">Обновить</button>
<button onclick="location.href='/main.php'">Вернуться</button>
</div>
</td>
<div align="right">
<INPUT TYPE=button value="Обновить" class="btn" style="width: 100px" onclick="location='main.php?rz=1'">&nbsp;
<TD style="width: 25%; vertical-align: top; text-align: left; "><INPUT class="btn" type='button' value='Вернуться' style='width: 100px' onclick='location="/main.php"'></TD>
</div>
<?php } else { ?>
<div align="right">
<INPUT TYPE=button value="Рыцарский Магазин" class="btn btn-success" style="width: 150px" onclick="location='main.php?rz=1'">&nbsp;&nbsp;&nbsp;
<TD style="width: 25%; vertical-align: top; text-align: left; ">
<INPUT class="btn" type='button' value='Обновить' style='width: 100px' onclick='location="/main.php"'>
</TD>
</div>
<?php } ?>
<?php endif; ?>
<?php
if ($error != '') echo '<font color="red"><b>' . $error . '</b></font><br>';
if (!empty($error)) {
echo '<b style="color: red;">' . $error . '</b>br>';
}
//отображаем
if ($dungeonGroupList == '') {
@ -805,7 +748,7 @@ if ($roomSection == 1) {
<FIELDSET>
<LEGEND style="color: maroon; font-weight: bold;">Текущие задания:</LEGEND>
<?= $qsee ?>
<span style="padding-left: 10px;">
<span style="padding-left: 10px;"><strong>Получить задание:</strong><br>
<?php
$hgo1 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `room` = "' . $u->info['room'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_capitalcity" LIMIT 1', 1);
$hgo2 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `room` = "' . $u->info['room'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_angelscity" LIMIT 1', 1);
@ -818,63 +761,63 @@ if ($roomSection == 1) {
$hgo9 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `room` = "' . $u->info['room'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_emeraldscity" LIMIT 1', 1);
$hgo10 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `room` = "' . $u->info['room'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_devilscity" LIMIT 1', 1);
//
if (!isset($hgo1['id'])) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Пещера Тысячи Проклятий)' onclick='location="main.php?rz=1&add_quest=1&city_quest=capitalcity"'/>
<button class="btn btn-success" onclick="location.href='/main.php?rz=1&add_quest=1&city_quest=capitalcity'">Пещера Тысячи Проклятий</button>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= $u->timeOut(60 * 60 * 24 + $hgo1['time'] - time()) ?> (Пещера Тысячи Проклятий)'
onclick='location="main.php?rz=1&add_quest=1&city_quest=capitalcity"'/>
<?php }
if (!isset($hgo2['id'])) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Бездна)' onclick='location="main.php?rz=1&add_quest=1&city_quest=angelscity"'/>
<input class="btn btn-success" type='button' value='Бездна' onclick='location="main.php?rz=1&add_quest=1&city_quest=angelscity"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= $u->timeOut(60 * 60 * 24 + $hgo2['time'] - time()) ?> (Бездна)'
onclick='location="main.php?rz=1&add_quest=1&city_quest=angelscity"'/>
<?php }
if (!isset($hgo3['id'])) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Грибница)' onclick='location="main.php?rz=1&add_quest=1&city_quest=suncity"'/>
<input class="btn btn-success" type='button' value='Грибница' onclick='location="main.php?rz=1&add_quest=1&city_quest=suncity"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= $u->timeOut(60 * 60 * 24 + $hgo3['time'] - time()) ?> (Грибница)'
onclick='location="main.php?rz=1&add_quest=1&city_quest=suncity"'/>
<?php }
if (!isset($hgo4['id'])) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Катакомбы)' onclick='location="main.php?rz=1&add_quest=1&city_quest=demonscity"'/>
<input class="btn btn-success" type='button' value='Катакомбы' onclick='location="main.php?rz=1&add_quest=1&city_quest=demonscity"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= $u->timeOut(60 * 60 * 24 + $hgo4['time'] - time()) ?> (Катакомбы)'
onclick='location="main.php?rz=1&add_quest=1&city_quest=demonscity"'/>
<?php }
if (!isset($hgo5['id'])) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Водосток)' onclick='location="main.php?rz=1&add_quest=1&city_quest=dreamscity"'/><br>
<input class="btn btn-success" type='button' value='Водосток' onclick='location="main.php?rz=1&add_quest=1&city_quest=dreamscity"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= $u->timeOut(60 * 60 * 24 + $hgo5['time'] - time()) ?> (Водосток)'
onclick='location="main.php?rz=1&add_quest=1&city_quest=dreamscity"'/>
<?php }
if (!isset($hgo6['id'])) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Гора Легиона)' onclick='location="main.php?rz=1&add_quest=1&city_quest=abandonedplain"'/>
<input class="btn btn-success" type='button' value='Гора Легиона' onclick='location="main.php?rz=1&add_quest=1&city_quest=abandonedplain"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= $u->timeOut(60 * 60 * 24 + $hgo6['time'] - time()) ?> (Гора Легиона)'
onclick='location="main.php?rz=1&add_quest=1&city_quest=abandonedplain"'/>
<?php }
if (!isset($hgo7['id'])) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Излом Хаоса)' onclick='location="main.php?rz=1&add_quest=1&city_quest=izlom16"'/>
<input class="btn btn-success" type='button' value='Излом Хаоса' onclick='location="main.php?rz=1&add_quest=1&city_quest=izlom16"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= $u->timeOut(60 * 60 * 24 + $hgo7['time'] - time()) ?> (Излом Хаоса)'
onclick='location="main.php?rz=1&add_quest=1&city_quest=izlom16"'/>
<?php }
if (!isset($hgo8['id'])) { ?>
<input class="btn btn-success" type='button' value=олучить задание (Пещеры Мглы)' onclick='location="main.php?rz=1&add_quest=1&city_quest=sandcity"'/>
<input class="btn btn-success" type='button' value=ещеры Мглы' onclick='location="main.php?rz=1&add_quest=1&city_quest=sandcity"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= $u->timeOut(60 * 60 * 24 + $hgo8['time'] - time()) ?> (Пещера Мглы)'
onclick='location="main.php?rz=1&add_quest=1&city_quest=sandcity"'/>
<?php }
if (!isset($hgo9['id'])) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Потерянный Вход)' onclick='location="main.php?rz=1&add_quest=1&city_quest=emeraldscity"'/>
<input class="btn btn-success" type='button' value='Потерянный Вход' onclick='location="main.php?rz=1&add_quest=1&city_quest=emeraldscity"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= $u->timeOut(60 * 60 * 24 + $hgo9['time'] - time()) ?> (Потерянный Вход)'
onclick='location="main.php?rz=1&add_quest=1&city_quest=emeraldscity"'/>
<?php }
if (!isset($hgo10['id'])) { ?>
<input class="btn btn-success" type='button' value='Получить задание (Туманные Низины)' onclick='location="main.php?rz=1&add_quest=1&city_quest=devilscity"'/>
<input class="btn btn-success" type='button' value='Туманные Низины' onclick='location="main.php?rz=1&add_quest=1&city_quest=devilscity"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= $u->timeOut(60 * 60 * 24 + $hgo10['time'] - time()) ?> (Туманные Низины)'
onclick='location="main.php?rz=1&add_quest=1&city_quest=devilscity"'/>

View File

@ -1,91 +1,74 @@
<?php
if(!defined('GAME'))
{
use Core\Config;
if (!defined('GAME')) {
die();
}
$tattack = '';
if($u->room['file']=='ab/izlom16')
{
if(date("H")>=6 && date("H")<22) {
$now = 'day';
} else { $now = 'night'; }
if($u->info['level'] >= 4)
{
if(date("H")>=6 && date("H")<22)
{
$tattack = '<span onMouseMove="this.runtimeStyle.color = \'white\';" onMouseOut="this.runtimeStyle.color = this.parentElement.style.color;" onclick="">Нападение доступно с 22 до 6 ч.</span>';
} else {
if(isset($_POST['attack']))
{
$magic->magicCentralAttack();
}
$tattack = '<span onMouseMove="this.runtimeStyle.color = \'white\';" onMouseOut="this.runtimeStyle.color = this.parentElement.style.color;" onclick="findlogin(\'Напасть\',\'attack\',\'\',\'\');">Напасть</span>';
}
}
/** @var User $u */
/** @var string $code */
/** @var string $goline */
/** @var string $rowonmax */
if ($u->room['file'] != 'izlom16') {
return;
}
if (!empty($re)) {
$re = '<b style="color: red">' . $re . '</b>';
}
$now = date("H") >= 6 && date("H") < 22 ? 'day' : 'night';
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<table style="border: 0; width: 100%;" cellspacing="0" cellpadding="0">
<tr>
<td width="250" valign="top">
<?php $usee = $u->getInfoPers($u->info['id'],0); if($usee!=false){ echo $usee[0]; }else{ echo 'information is lost.'; } ?>
<td style="width: 250px; vertical-align: top;">
<?php $usee = $u->getInfoPers($u->info['id'], 0);
if ($usee) {
echo $usee[0];
} else {
echo 'information is lost.';
} ?>
</td>
<td width="230" valign="top" style="padding-top:19px;"><?php require_once('modules_data/stats_loc.php'); ?></td>
<td valign="top"><div align="right">
<table border="0" cellpadding="0" cellspacing="0">
<tr align="right" valign="top">
<td>
<?php if($re!=''){ echo '<font color="red"><b>'.$re.'</b></font>'; } ?>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<td style="padding-top:19px; width: 230px; vertical-align: top;">
<?php require_once('modules_data/stats_loc.php'); ?>
</td>
<td style="vertical-align: top;">
<?= $re ?>
<div style="text-align: right;">
<div style="position:relative; cursor: pointer;" id="ione">
<img src="//img.new-combats.tech/i/images/300x225/ap_bg_iz_npc100500.jpg" alt="" name="img_ione" width="500" height="268" border="1" id="img_ione"/>
<div id="buttons_on_image" style="cursor:pointer; font-weight:bold; color:#D8D8D8; font-size:10px;">&nbsp;
<span onMouseMove="this.runtimeStyle.color = 'white';" onMouseOut="this.runtimeStyle.color = this.parentElement.style.color;" onclick="window.open('/forum', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')">Форум</span> &nbsp;
</div>
<script language="javascript" type="text/javascript">
<img src="<?= Config::img() ?>/i/images/300x225/ap_bg_iz_npc100500.jpg" alt="" id="img_ione" style="border: 1px solid black;">
<script>
<!--
if(document.getElementById('ione'))
{
if (document.getElementById('ione')) {
document.getElementById('ione').appendChild(document.getElementById('buttons_on_image'));
document.getElementById('buttons_on_image').style.position = 'absolute';
document.getElementById('buttons_on_image').style.bottom = '8px';
document.getElementById('buttons_on_image').style.right = '23px';
}else{
} else {
document.getElementById('buttons_on_image').style.display = 'none';
}
-->
</script>
<div style="position: absolute; left: 430px; top: 196px; width: 48px; height: 33px; z-index: 94;"><img <?php thisInfRm('1.180.0.323'); ?> src="//img.new-combats.tech/i/images/300x225/ab_iz_exit.gif" width="48" height="33" class="aFilter" /></div>
<div style="position: absolute; left: 278px; top: 53px; width: 167px; height: 94px; z-index: 94;"><img <?php thisInfRm('3.180.0.269'); ?> src="//img.new-combats.tech/i/images/300x225/ab_iz_gate.gif" width="167" height="94" class="aFilter" /></div>
<div style="position: absolute; left: 22px; top: 161px; width: 75px; height: 68px; z-index: 94;"><img <?php thisInfRm('3.180.0.??'); ?> src="//img.new-combats.tech/i/images/300x225/ab_iz_shop.gif" width="75" height="68" class="aFilter" /></div>
<div style="position: absolute; left: 112px; top: 13px; width: 75px; height: 68px; z-index: 94;"><img onclick="location.href='main.php?talk=4'" src="//img.new-combats.tech/i/images/300x225/ab_iz_npc.gif" width="110" height="177" class="aFilter" title="Диалог с Шейла" /></div>
<div style="position: relative; left: -10px; top: -90px; z-index: 94;">
<img <?php thisInfRm('1.180.0.321'); ?> src="<?= Config::img() ?>/i/images/300x225/ab_iz_exit.gif" class="aFilter" alt="">
</div>
<div style="position: relative; left: -58px; top: -252px; z-index: 94;">
<img <?php thisInfRm('1.180.0.269'); ?> src="<?= Config::img() ?>/i/images/300x225/ab_iz_gate.gif" class="aFilter" alt="">
</div>
<div style="position: relative; left: -400px; top: -220px; z-index: 94;">
<img <?php thisInfRm('3.180.0.??'); ?> src="<?= Config::img() ?>/i/images/300x225/ab_iz_shop.gif" class="aFilter" alt="">
</div>
<div style="position: relative; left: -250px; top: -440px; z-index: 94;">
<img onclick="location.href='main.php?talk=4'" src="<?= Config::img() ?>/i/images/300x225/ab_iz_npc.gif" class="aFilter" title="Диалог с Шейла" alt="">
</div>
<div id="snow"></div>
<?= $goline; ?>
</div>
<div style="display:none; height:0;" id="moveto"></div>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
<HR>
<INPUT class="btn" onclick="window.open('/forum/', 'help', 'height=500,width=1024,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка" style="color:red;" type="button">
<?php $hgo = $u->testHome(); if(!isset($hgo['id'])){ ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn" value="Возврат" type="button" name="combats2"><?php } unset($hgo); ?>
<br />
<strong>Внимание!</strong> Никогда и никому не говорите пароль от своего персонажа. Не вводите пароль на других сайтах, типа "новый город", "лотерея", "там, где все дают на халяву". Пароль не нужен ни паладинам, ни кланам, ни администрации, <U>только взломщикам</U> для кражи вашего героя.<BR>
<em>Администрация.</em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
}
?>