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

This commit is contained in:
2023-07-31 18:01:52 +03:00
parent a412d334ae
commit fff3de0a98
3 changed files with 251 additions and 309 deletions
+88 -145
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,138 +529,74 @@ 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">
<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) {
echo '1.180.0.4';
} elseif ($u->info['room'] == 393) {
echo '1.180.0.2';
} elseif ($u->info['room'] == 372) {
echo '1.180.0.323';
} elseif ($u->info['room'] == 395) {
echo '2.180.0.231';
} elseif ($u->info['room'] == 397) {
echo '2.180.0.229';
} elseif ($u->info['room'] == 242) {
echo '2.180.0.236';
} elseif ($u->info['room'] == 321) {
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) {
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>
<?php if ($roomSection == 0): ?>
<h3>Вход в подземелье</h3>
<?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';
} elseif ($u->info['room'] == 372) {
echo '1.180.0.323';
} elseif ($u->info['room'] == 395) {
echo '2.180.0.231';
} elseif ($u->info['room'] == 397) {
echo '2.180.0.229';
} elseif ($u->info['room'] == 242) {
echo '2.180.0.236';
} elseif ($u->info['room'] == 321) {
echo '1.180.0.9';
} else {
echo '1.180.0.321';
} ?>&rnd=<?= $code; ?>'">
<?php
if ($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 "Магический Портал";
}
?>
</button>
<button onclick="location.href='/main.php?rz=1'">Рыцарский магазин</button>
<button onclick="location.href='/main.php'">Обновить</button>
</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>
<?php else: ?>
<div style="text-align: right;">
<button onclick="location.href='/main.php?rz=1'">Обновить</button>
<button onclick="location.href='/main.php'">Вернуться</button>
</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"'/>