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

View File

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

View File

@ -1,91 +1,74 @@
<?php <?php
if(!defined('GAME'))
{
die();
}
$tattack = '';
if($u->room['file']=='ab/izlom16') use Core\Config;
{
if(date("H")>=6 && date("H")<22) { if (!defined('GAME')) {
$now = 'day'; die();
} else { $now = 'night'; } }
if($u->info['level'] >= 4)
{ /** @var User $u */
if(date("H")>=6 && date("H")<22) /** @var string $code */
{ /** @var string $goline */
$tattack = '<span onMouseMove="this.runtimeStyle.color = \'white\';" onMouseOut="this.runtimeStyle.color = this.parentElement.style.color;" onclick="">Нападение доступно с 22 до 6 ч.</span>'; /** @var string $rowonmax */
} else {
if(isset($_POST['attack'])) if ($u->room['file'] != 'izlom16') {
{ return;
$magic->magicCentralAttack(); }
}
$tattack = '<span onMouseMove="this.runtimeStyle.color = \'white\';" onMouseOut="this.runtimeStyle.color = this.parentElement.style.color;" onclick="findlogin(\'Напасть\',\'attack\',\'\',\'\');">Напасть</span>'; 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> <tr>
<td width="250" valign="top"> <td style="width: 250px; vertical-align: 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);
</td> if ($usee) {
<td width="230" valign="top" style="padding-top:19px;"><?php require_once('modules_data/stats_loc.php'); ?></td> echo $usee[0];
<td valign="top"><div align="right"> } else {
<table border="0" cellpadding="0" cellspacing="0"> echo 'information is lost.';
<tr align="right" valign="top"> } ?>
<td> </td>
<?php if($re!=''){ echo '<font color="red"><b>'.$re.'</b></font>'; } ?> <td style="padding-top:19px; width: 230px; vertical-align: top;">
<table width="500" border="0" cellspacing="0" cellpadding="0"> <?php require_once('modules_data/stats_loc.php'); ?>
<tr> </td>
<td> <td style="vertical-align: top;">
<div style="position:relative; cursor: pointer;" id="ione"> <?= $re ?>
<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 style="text-align: right;">
<div id="buttons_on_image" style="cursor:pointer; font-weight:bold; color:#D8D8D8; font-size:10px;">&nbsp; <div style="position:relative; cursor: pointer;" id="ione">
<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; <img src="<?= Config::img() ?>/i/images/300x225/ap_bg_iz_npc100500.jpg" alt="" id="img_ione" style="border: 1px solid black;">
</div> <script>
<script language="javascript" type="text/javascript">
<!-- <!--
if(document.getElementById('ione')) if (document.getElementById('ione')) {
{
document.getElementById('ione').appendChild(document.getElementById('buttons_on_image')); document.getElementById('ione').appendChild(document.getElementById('buttons_on_image'));
document.getElementById('buttons_on_image').style.position = 'absolute'; document.getElementById('buttons_on_image').style.position = 'absolute';
document.getElementById('buttons_on_image').style.bottom = '8px'; document.getElementById('buttons_on_image').style.bottom = '8px';
document.getElementById('buttons_on_image').style.right = '23px'; document.getElementById('buttons_on_image').style.right = '23px';
}else{ } else {
document.getElementById('buttons_on_image').style.display = 'none'; document.getElementById('buttons_on_image').style.display = 'none';
} }
--> -->
</script> </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: relative; left: -10px; top: -90px; z-index: 94;">
<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> <img <?php thisInfRm('1.180.0.321'); ?> src="<?= Config::img() ?>/i/images/300x225/ab_iz_exit.gif" class="aFilter" alt="">
<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>
<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: -58px; top: -252px; z-index: 94;">
<div id="snow"></div> <img <?php thisInfRm('1.180.0.269'); ?> src="<?= Config::img() ?>/i/images/300x225/ab_iz_gate.gif" class="aFilter" alt="">
<?= $goline; ?> </div>
</div> <div style="position: relative; left: -400px; top: -220px; z-index: 94;">
</td> <img <?php thisInfRm('3.180.0.??'); ?> src="<?= Config::img() ?>/i/images/300x225/ab_iz_shop.gif" class="aFilter" alt="">
</tr> </div>
</table> <div style="position: relative; left: -250px; top: -440px; z-index: 94;">
<div style="display:none; height:0px " id="moveto"></div> <img onclick="location.href='main.php?talk=4'" src="<?= Config::img() ?>/i/images/300x225/ab_iz_npc.gif" class="aFilter" title="Диалог с Шейла" alt="">
</td> </div>
<td> <div id="snow"></div>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>--> <?= $goline; ?>
</td> </div>
</tr> <div style="display:none; height:0;" id="moveto"></div>
</table> </div>
<small> </td>
<HR> </tr>
<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> </table>
<?php
}
?>