Полный отказ от $u->testAction() целиком.

This commit is contained in:
2024-05-15 16:42:28 +03:00
parent bc136cc030
commit 5e0dda8ed0
50 changed files with 1909 additions and 1831 deletions
+3 -3
View File
@@ -104,9 +104,9 @@ if ($u->room['file'] != 'bk') {
<small>
<HR>
<?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); ?>
<?php
if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn" value="Возврат" type="button" name="combats2"><?php }
?>
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
+96 -65
View File
@@ -1,76 +1,107 @@
<?php
if(!defined('GAME'))
{
die();
if (!defined('GAME')) {
die();
}
if($u->room['file']=='bk2')
{
?>
<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.'; } ?>
</td>
<td width="230" valign="top" style="padding-top:19px;"><?php require_once('modules/stats_loc.php'); ?></td>
<td valign="top"><div align="right">
<?php if($u->error!=''){ echo '<font color="red"><b>'.$u->error.'</b></font>'; } ?>
<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>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/300x225/club/navig3.jpg" id="img_ione" width="500" height="240" border="1"/>
<div style="position:absolute; left:162px; top:125px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif" width="16" height="18" title="Вы находитесь в '<?= $u->room['name']; ?>'" /></div>
<div style="position:absolute; left:281px; top:173px; width:122px; height:31px; z-index:90;"><img <?php thisInfRm('1.180.0.221'); ?> onclick="location='main.php?loc=1.180.0.221';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec5.gif" width="122" height="31" class="aFilter" /></div>
<div style="position:absolute; left:23px; top:116px; width:120px; height:35px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_2stair.gif" width="120" height="35" class="aFilter" /></div>
<div style="position:absolute; left:36px; top:41px; width:63px; height:40px; z-index:90;"><img <?php thisInfRm('1.180.0.XX'); ?> onclick="location='main.php?loc=1.180.0.XX';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec2.gif" width="63" height="40" class="aFilter" /></div>
<div style="position:absolute; left:24px; top:180px; width:91px; height:43px; z-index:90;"><img <?php thisInfRm('1.180.0.3'); ?> onclick="location='main.php?loc=1.180.0.3';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec1.gif" width="91" height="43" class="aFilter" /></div>
<div style="position:absolute; left:122px; top:52px; width:123px; height:39px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec7.gif" width="123" height="39" class="aFilter" /></div>
<div style="position:absolute; left:305px; top:51px; width:123px; height:30px; z-index:90;"><img <?php thisInfRm('1.180.0.224'); ?> onclick="location='main.php?loc=1.180.0.224';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec6.gif" width="123" height="30" class="aFilter" /></div>
<div style="position:absolute; left:391px; top:120px; width:89px; height:32px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec4.gif" width="89" height="32" class="aFilter" /></div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if($u->info['level']<6)
{
echo '
if ($u->room['file'] == 'bk2') {
?>
<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.';
} ?>
</td>
<td width="230" valign="top" style="padding-top:19px;"><?php require_once('modules/stats_loc.php'); ?></td>
<td valign="top">
<div align="right">
<?php if ($u->error != '') {
echo '<font color="red"><b>' . $u->error . '</b></font>';
} ?>
<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>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/300x225/club/navig3.jpg" id="img_ione"
width="500" height="240" border="1"/>
<div style="position:absolute; left:162px; top:125px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif"
width="16" height="18"
title="Вы находитесь в '<?= $u->room['name']; ?>'"/>
</div>
<div style="position:absolute; left:281px; top:173px; width:122px; height:31px; z-index:90;"><img <?php thisInfRm('1.180.0.221'); ?>
onclick="location='main.php?loc=1.180.0.221';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec5.gif" width="122" height="31" class="aFilter"/></div>
<div style="position:absolute; left:23px; top:116px; width:120px; height:35px; z-index:90;"><img onmouseover="this.className='aFilterhover';"
onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_2stair.gif"
width="120" height="35" class="aFilter"/></div>
<div style="position:absolute; left:36px; top:41px; width:63px; height:40px; z-index:90;"><img <?php thisInfRm('1.180.0.XX'); ?>
onclick="location='main.php?loc=1.180.0.XX';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec2.gif" width="63" height="40" class="aFilter"/></div>
<div style="position:absolute; left:24px; top:180px; width:91px; height:43px; z-index:90;"><img <?php thisInfRm('1.180.0.3'); ?>
onclick="location='main.php?loc=1.180.0.3';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec1.gif" width="91" height="43" class="aFilter"/></div>
<div style="position:absolute; left:122px; top:52px; width:123px; height:39px; z-index:90;"><img onmouseover="this.className='aFilterhover';"
onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec7.gif"
width="123" height="39" class="aFilter"/></div>
<div style="position:absolute; left:305px; top:51px; width:123px; height:30px; z-index:90;"><img <?php thisInfRm('1.180.0.224'); ?>
onclick="location='main.php?loc=1.180.0.224';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec6.gif" width="123" height="30" class="aFilter"/></div>
<div style="position:absolute; left:391px; top:120px; width:89px; height:32px; z-index:90;"><img onmouseover="this.className='aFilterhover';"
onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec4.gif"
width="89" height="32" class="aFilter"/></div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if ($u->info['level'] < 6) {
echo '
Вам все время кажется что за вами следят? Чудится, что случайный попутчик мечтает всадить вам топор в спину? При совершении очередной покупки в гос. магазине мучает ощущение, что вас обманули? Кажется, что симпатичная девушка напротив смотрит на вас как на пищу? Успокойтесь, это не паранойя. Это реалии Capital city. Города Тьмы.
';
}else{
echo 'Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.';
} ?>
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
} else {
echo 'Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.';
} ?>
</small>
</div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
</table>
<small>
<HR>
<?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); ?>
<INPUT onclick="location.href='main.php?clubmap=<?= $code; ?>';" class="btn" value="Карта клуба" type="button" name="combats2">
<INPUT id="forum" class="btn" onclick="window.open('<?= $c['forum']; ?>', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум" type="button" name="forum">
<INPUT class="btn" onclick="window.open('/encicl/help/top1.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка" type="button">
<INPUT class="btn" value="Объекты" type="button">
<br />
<?php if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn" value="Возврат" type="button" name="combats2"><?php } ?>
<INPUT onclick="location.href='main.php?clubmap=<?= $code; ?>';" class="btn" value="Карта клуба" type="button" name="combats2">
<INPUT id="forum" class="btn" onclick="window.open('<?= $c['forum']; ?>', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум"
type="button" name="forum">
<INPUT class="btn" onclick="window.open('/encicl/help/top1.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка" type="button">
<INPUT class="btn" value="Объекты" type="button">
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
}
?>
+23 -22
View File
@@ -1,6 +1,7 @@
<?php
use Helper\Conversion;
use Model\ActionModel;
if (!defined('GAME')) {
die();
@@ -25,7 +26,7 @@ if ($u->room['file'] == 'dungeon_enter') {
} // Собираем группу для похода
//if( $u->info['admin'] > 0 ) var_info($dungeon);
$all_dungeon = mysql_query('SELECT `city` FROM `dungeon_room` WHERE `city` IS NOT NULL AND `active`=1 ');
$all_dungeon = mysql_query('select city from dungeon_room where city is not null and active=1 ');
while ($t = mysql_fetch_array($all_dungeon)) {
$dungeon['list'][] = $t['city'];
}
@@ -39,16 +40,17 @@ if ($u->room['file'] == 'dungeon_enter') {
}
}
$dungeon_timeout = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `vars` = "psh0" AND `time` > ' . (time() - 60 * 60 * 2) . ' LIMIT 1', 1);
/** @var int $dungeonTimeout Задержка на посещение пещеры. */
$dungeonTimeout = ActionModel::getOne(["uid = {$u->info['id']}", 'vars = psh0', "time > unix_timestamp() - 7200"], 'time');
if ($u->info['admin'] > 0) {
unset($dungeon_timeout);
} // $dungeon_timeout - задержка на посещение пещеры.
if (isset($dungeon_timeout['id'])) // Кто-то передумал и не пойдет в пещеру, так-как уже там был.
{
if ($u->isAdmin()) {
$dungeonTimeout = 0;
}
if ($dungeonTimeout) { // Кто-то передумал и не пойдет в пещеру, так-как уже там был.
$dungeonGo = 0;
if (isset($_GET['start'])) {
$error = 'До следующего похода осталось еще: ' . Conversion::secondsToTimeout(60 * 60 * 2 - time() + $dungeon_timeout['time']);
$error = 'До следующего похода осталось еще: ' . Conversion::secondsToTimeout(60 * 60 * 2 - time() + $dungeonTimeout);
}
}
@@ -132,8 +134,7 @@ if ($u->room['file'] == 'dungeon_enter') {
if ($cord[0] != 0 || $cord[1] != 0) {
mysql_query(
'INSERT INTO `dungeon_items` (`dn`,`user`,`item_id`,`time`,`x`,`y`,`onlyfor`,`quest`) VALUES (
"' . $zid . '","' . $u->info['id'] . '","' . $xr2[0] . '","' . time(
) . '","' . $cord[0] . '","' . $cord[1] . '","' . $u->info['id'] . '","' . $pl['id'] . '"
"' . $zid . '","' . $u->info['id'] . '","' . $xr2[0] . '","' . time() . '","' . $cord[0] . '","' . $cord[1] . '","' . $u->info['id'] . '","' . $pl['id'] . '"
)'
);
}
@@ -614,9 +615,10 @@ if ($u->room['file'] == 'dungeon_enter') {
<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=<?= $shop['code'] ?>&rnd=<?= $code; ?>';" title="<?php thisInfRm(
$shop['code'], 1
); ?>">Рыцарский магазин</a></td>
<a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=<?= $shop['code'] ?>&rnd=<?= $code; ?>';"
title="<?php thisInfRm(
$shop['code'], 1
); ?>">Рыцарский магазин</a></td>
</tr>
<?php }
} ?>
@@ -689,9 +691,8 @@ if ($u->room['file'] == 'dungeon_enter') {
<form autocomplete="off" action='/main.php' method="post" name="F1" id="F1">
<?php
$qsee = '';
$hgo = $u->testAction(
'`uid` = "' . $u->info['id'] . '" AND `room` = "' . $u->info['room'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_' . $dungeon['city'] . '" LIMIT 1', 1
);
$questTimeout = ActionModel::getOne(["uid = {$u->info['id']}", "room = {$u->info['room']}", "time >= unix_timestamp() - 86400", "vars = psh_qt_{$dungeon['city']}"], 'time');
$qc = 0; // Quest Count
//Генерируем список текущих квестов
$sp = mysql_query('SELECT * FROM `actions` WHERE `vars` LIKE "%start_quest%" AND `vals` = "go" AND `uid` = "' . $u->info['id'] . '" LIMIT 100');
@@ -717,8 +718,8 @@ if ($u->room['file'] == 'dungeon_enter') {
}
if (isset($_GET['add_quest']) && $qc == 0) {
if (isset($hgo['id'])) {
echo '<font color="red"><b>Нельзя получать задания чаще одного раза в сутки</b></font><br>';
if ($questTimeout) {
echo '<b style="color: red;">Нельзя получать задания чаще одного раза в сутки</b><br>';
} else {
$sp = mysql_query('SELECT * FROM `quests` WHERE `line` = ' . $dungeon['id'] . '');
$dq_add = [];
@@ -775,13 +776,14 @@ if ($u->room['file'] == 'dungeon_enter') {
<?php
if ($qc > 0) {
echo 'Вы еще не справились с текущим заданием.';
} elseif (!isset($hgo['id']) && $qc == 0) {
} elseif (!$questTimeout && $qc == 0) {
?>
<br/>
<input type='button' value='Получить задание' onclick='location="main.php?rz=1&add_quest=1"'/>
<?php
} else {
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $hgo['time'] + 60 * 60 * 24) . '</b> ( Через ' . Conversion::secondsToTimeout($hgo['time'] + 60 * 60 * 24 - time()) . ' )';
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $questTimeout + 60 * 60 * 24) .
'</b> ( Через ' . Conversion::secondsToTimeout($questTimeout + 60 * 60 * 24 - time()) . ' )';
}
?>
</span>
@@ -995,7 +997,6 @@ if ($u->room['file'] == 'dungeon_enter') {
);
while ($chk_pl = mysql_fetch_array($chk_cl)) {
if (mysql_query('UPDATE `items_users` SET `delete` = "' . time() . '" WHERE `id` = "' . $chk_pl['id'] . '" LIMIT 1')) {
;
}
{
$x++;
@@ -1073,7 +1074,7 @@ if ($u->room['file'] == 'dungeon_enter') {
}
} else {
echo 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(
60 * 60 * 2 - time() + $dungeon_timeout['time']
60 * 60 * 2 - time() + $dungeonTimeout
) . '<br><small style="color:grey">Но Вы всегда можете приобрести ключ от прохода у любого &quot;копателя пещер&quot; в Торговом зале ;)</small>';
}
}
+34 -112
View File
@@ -3,6 +3,7 @@
use Core\Config;
use Core\Db;
use Helper\Conversion;
use Model\ActionModel;
use User\StatsModel;
if (!defined('GAME')) {
@@ -50,15 +51,17 @@ 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);
/** @var int $dungeonTimeout Задержка на посещение пещеры. */
$dungeonTimeout = ActionModel::getOne(["uid = {$u->info['id']}", 'vars = psh0', "time > unix_timestamp() - 7200"], 'time');
if ($u->isAdmin()) {
unset($dungeon_timeout);
} // $dungeon_timeout - задержка на посещение пещеры.
if (isset($dungeon_timeout['id'])) { // Кто-то передумал и не пойдет в пещеру, так-как уже там был.
$dungeonTimeout = 0;
}
if ($dungeonTimeout) { // Кто-то передумал и не пойдет в пещеру, так-как уже там был.
$dungeonGo = 0;
if (isset($_GET['start'])) {
$error = 'До следующего похода осталось еще: ' . Conversion::secondsToTimeout(60 * 60 * 2 - time() + $dungeon_timeout['time']);
$error = 'До следующего похода осталось еще: ' . Conversion::secondsToTimeout(60 * 60 * 2 - time() + $dungeonTimeout);
}
}
@@ -131,8 +134,7 @@ if (isset($_GET['start']) && $zv['uid'] == $u->info['id'] && $dungeonGo == 1) {
if ($cord[0] != 0 || $cord[1] != 0) {
mysql_query(
'INSERT INTO `dungeon_items` (`dn`,`user`,`item_id`,`time`,`x`,`y`,`onlyfor`,`quest`) VALUES (
"' . $zid . '","' . $u->info['id'] . '","' . $xr2[0] . '","' . time(
) . '","' . $cord[0] . '","' . $cord[1] . '","' . $u->info['id'] . '","' . $pl['id'] . '"
"' . $zid . '","' . $u->info['id'] . '","' . $xr2[0] . '","' . time() . '","' . $cord[0] . '","' . $cord[1] . '","' . $u->info['id'] . '","' . $pl['id'] . '"
)'
);
}
@@ -511,9 +513,6 @@ if ($roomSection == 1) {
<form autocomplete="off" action='/main.php' method="post" name="F1" id="F1">
<?php
$qsee = '';
$hgo = $u->testAction(
'`uid` = "' . $u->info['id'] . '" AND `room` = "' . $u->info['room'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_' . $dungeon['city'] . '" LIMIT 1', 1
);
$qc = 0; // Quest Count
$qcc = [];
//Генерируем список текущих квестов
@@ -569,20 +568,17 @@ if ($roomSection == 1) {
$dun5 = 12; //ПТП
}
//
$hgo = $u->testAction(
'`uid` = "' . $u->info['id'] . '" AND `room` = "' . $u->info['room'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_' . mysql_real_escape_string(
$qst_city
) . '" LIMIT 1', 1
);
//$qcc
$hgo = (bool)ActionModel::testCount(["uid = {$u->info['id']}", "room = {$u->info['room']}", "time >= unix_timestamp() - 86400", "vars = psh_qt_$qst_city"]);
if ($qcc[$dun5] > 0) {
echo '<font color="red"><b>У Вас уже есть задание, завершите его или отмените для получения нового.</b></font><br>';
echo '<b style="color: red;">У Вас уже есть задание, завершите его или отмените для получения нового.</b><br>';
} elseif ($qst_city != 'capitalcity' && $qst_city != 'angelscity' && $qst_city != 'suncity' && $qst_city != 'demonscity' && $qst_city != 'dreamscity' && $qst_city != 'abandonedplain' && $qst_city != 'izlom16' && $qst_city != 'sandcity' && $qst_city != 'emeraldscity' && $qst_city != 'devilscity') {
echo '<font color="red"><b>Для этой пещеры еще нет заданий</b></font><br>';
} elseif (isset($hgo['id'])) {
echo '<font color="red"><b>Нельзя получать задания чаще одного раза в сутки</b></font><br>';
echo '<b style="color: red;">Для этой пещеры еще нет заданий</b><br>';
} elseif ($hgo) {
echo '<b style="color: red;">Нельзя получать задания чаще одного раза в сутки</b><br>';
} else {
$sp = mysql_query('SELECT * FROM `quests` WHERE `line` = ' . $dun5 . '');
$sp = mysql_query('SELECT * FROM `quests` WHERE `line` = ' . $dun5);
$dq_add = [];
while ($pl = mysql_fetch_array($sp)) {
if ($u->rep['rep' . $qst_city] == 24999) {
@@ -620,101 +616,27 @@ if ($roomSection == 1) {
$qsee = 'К сожалению у вас нет ни одного задания<br/><br/>';
}
?>
<Br/>
<style>
.btnnewred {
background-color: #ca726d;
color: #f8d2d0;
border-color: #b44039;
cursor: default;
}
.btnnewred:hover {
background-color: #ca726d;
cursor: default;
}
</style>
<br>
<FIELDSET>
<LEGEND style="color: maroon; font-weight: bold;">Текущие задания:</LEGEND>
<?= $qsee ?>
<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);
$hgo3 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `room` = "' . $u->info['room'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_suncity" LIMIT 1', 1);
$hgo4 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `room` = "' . $u->info['room'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_demonscity" LIMIT 1', 1);
$hgo5 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `room` = "' . $u->info['room'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_dreamscity" LIMIT 1', 1);
$hgo6 = $u->testAction(
'`uid` = "' . $u->info['id'] . '" AND `room` = "' . $u->info['room'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_abandonedplain" LIMIT 1', 1
);
$hgo7 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `room` = "' . $u->info['room'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_izlom16" LIMIT 1', 1);
$hgo8 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `room` = "' . $u->info['room'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_sandcity" 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);
if (!isset($hgo1['id'])) { ?>
<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='Задание будет через <?= Conversion::secondsToTimeout(
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"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= Conversion::secondsToTimeout(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"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= Conversion::secondsToTimeout(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"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= Conversion::secondsToTimeout(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"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= Conversion::secondsToTimeout(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"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= Conversion::secondsToTimeout(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"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= Conversion::secondsToTimeout(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"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= Conversion::secondsToTimeout(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"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= Conversion::secondsToTimeout(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"'/>
<?php } else { ?>
<input disabled="disabled" class="btn btn-danger" type='button' value='Задание будет через <?= Conversion::secondsToTimeout(60 * 60 * 24 + $hgo10['time'] - time()) ?> (Туманные Низины)'
onclick='location="main.php?rz=1&add_quest=1&city_quest=devilscity"'/>
<?php }
$html = [];
foreach ($dunname as [$dungeonSysName, $dungeonName]) {
$dungeonTimeout = ActionModel::getOne(["uid = {$u->info['id']}", "room = {$u->info['room']}", 'time >= unix_timestamp() - 86400', "vars = psh_qt_$dungeonSysName"], 'time');
if ($dungeonTimeout) {
$formattedTimeout = Conversion::secondsToTimeout(86400 + $dungeonTimeout - time());
$html[] = <<<HTML
<button disabled class='btn btn-danger'>Задание будет через $formattedTimeout ($dungeonName)</button>
HTML;
} else {
$html[] = <<<HTML
<button class="btn btn-success" onclick="location.href='/main.php?rz=1&add_quest=1&city_quest=$dungeonSysName'">$dungeonName</button>
HTML;
}
}
echo implode(' ', $html);
?>
</span>
</FIELDSET>
@@ -1081,7 +1003,7 @@ if ($roomSection == 1) {
}
} else {
echo 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(
60 * 60 * 2 - time() + $dungeon_timeout['time']
60 * 60 * 2 - time() + $dungeonTimeout
) . '<br><small style="color:grey">Но Вы всегда можете приобрести ключ от прохода у любого &quot;копателя пещер&quot; в Торговом зале ;)</small>';
}
+51 -42
View File
@@ -1,4 +1,9 @@
<?php
use Core\Db;
use Model\ActionModel;
use User\ItemsModel;
if (!defined('GAME')) {
die();
}
@@ -45,8 +50,7 @@ if (isset($_GET['elka_shar']) && isset($_GET['shar_name'])) //Украшение
'INSERT INTO `eff_users`
(`id`,`id_eff`, `uid`, `name`, `data`, `overType`, `timeUse`, `timeAce`, `user_use`, `delete`, `v1`, `v2`, `img2`, `x`, `hod`, `bj`, `sleeptime`, `no_Ace`, `file_finish`, `tr_life_user`, `deactiveTime`, `deactiveLast`, `mark`, `bs`)
VALUES
(NULL, "477", "' . $u->info['id'] . '", "Благословение Ёлки x1", "add_hpAll=5", "110", "' . time(
) . '", "0", "", "0", "0", "0", "", "1", "-1", "0", "0", "0", "", "0", "0", "0", "0", "0")'
(NULL, "477", "' . $u->info['id'] . '", "Благословение Ёлки x1", "add_hpAll=5", "110", "' . time() . '", "0", "", "0", "0", "0", "", "1", "-1", "0", "0", "0", "", "0", "0", "0", "0", "0")'
);
if (isset($effeadd)) {
@@ -65,9 +69,11 @@ if (isset($_GET['elka_shar']) && isset($_GET['shar_name'])) //Украшение
if (isset($_GET['take_gift']) && (date('m') == 12 || (date('m') == 1 && date('d') <= 8))) {
//получаем свой новогодний подарок за текущий год addItem($id,$uid)
$smt = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `vars` = "take_gift_' . $dt . '" LIMIT 1', 1);
if (!isset($smt['id'])) {
$pid = \User\ItemsModel::addItem($pidid, $u->info['id']);
$smt = (bool)ActionModel::testCount(["uid = $u->info['id']", "vars = take_gift_$dt"]);
if ($smt) {
echo '<font color=red>Вы уже получили свой подарок ;)</font>';
} else {
$pid = ItemsModel::addItem($pidid, $u->info['id']);
if ($pid > 0) {
mysql_query('UPDATE `items_users` SET `gift` = "Администрация",`gtxt1` = "Поздравляем Вас с Новым Годом!" WHERE `id` = "' . $pid . '" AND `uid` = "' . $u->info['id'] . '" LIMIT 1');
$u->addAction(time(), 'take_gift_' . $dt . '', $u->info['city']);
@@ -75,21 +81,19 @@ if (isset($_GET['take_gift']) && (date('m') == 12 || (date('m') == 1 && date('d'
} else {
echo '<font color=red>Не удалось получить подарок...</font>';
}
} else {
echo '<font color=red>Вы уже получили свой подарок ;)</font>';
}
} elseif (isset($_GET['del'])) {
if ($u->info['admin'] > 0 || ($u->info['align'] > 1 && $u->info['align'] < 2) || ($u->info['align'] > 3 && $u->info['align'] < 4)) {
if ($u->info['admin'] == 0) {
$pInfo = '' . $u->info['align'] . '|' . $u->info['clan'] . '|' . $u->info['login'] . '|' . $u->info['level'] . '|' . $u->info['cityreg'] . '';
} else {
if ($u->isModerator()) {
if ($u->isAdmin()) {
$pInfo = '1';
} else {
$pInfo = '' . $u->info['align'] . '|' . $u->info['clan'] . '|' . $u->info['login'] . '|' . $u->info['level'] . '|' . $u->info['cityreg'];
}
mysql_query("UPDATE `elka` SET `delete`='" . $pInfo . "' WHERE `id`='" . mysql_real_escape_string($_GET['del']) . "'");
}
} elseif (isset($_GET['use_cup'])) {
$smt = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `time` > ' . (time() - 600) . ' AND `vars` = "use_cupNewYear" LIMIT 1', 1);
if (!isset($smt['id'])) {
$smt = (bool)ActionModel::testCount(["uid = $u->info['id']", 'vars = use_cupNewYear', 'time > unix_timestamp() - 600']);
if (!$smt) {
$u->addAction(time(), 'use_cupNewYear', '');
mysql_query('UPDATE `stats` SET `hpNow` = "' . $u->stats['hpAll'] . '",`mpNow` = "' . $u->stats['mpAll'] . '" WHERE `id` = "' . $u->info['id'] . '" LIMIT 1');
echo '<font color=red>Успешно использован эликсир "Полное восстановление"</font>';
@@ -101,23 +105,20 @@ if (isset($_GET['take_gift']) && (date('m') == 12 || (date('m') == 1 && date('d'
if ((date('n', time()) == 1 && date('j', time()) <= 15)) {
$dy = 0;
}
$u->info['ET'] = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `time` > ' . (time() - 600) . ' AND `vars` = "send_elka" LIMIT 1', 1);
if (isset($u->info['ET']['id'])) {
$u->info['ET'] = (bool)ActionModel::testCount(["uid = $u->info['id']", 'vars = send_elka', 'time > unix_timestamp() - 600']);
if ($u->info['ET']) {
echo '<font color=red>Оставлять надписи на стволе ёлки можно не чаще одного раза в 10 минут</font>';
} else {
$pInfo = '' . $u->info['align'] . '|' . $u->info['clan'] . '|' . $u->info['login'] . '|' . $u->info['level'] . '|' . $u->info['cityreg'] . '|' . $u->info['id'] . '';
mysql_query(
"INSERT INTO `elka` (`year`,`time`,`pers`,`text`,`city`) VALUES (" . (date('Y', time()) + $dy) . "," . time() . ",'" . $pInfo . "','" . mysql_real_escape_string(
$_POST['message']
) . "','" . $u->info['city'] . "'); "
);
$pInfo = '' . $u->info['align'] . '|' . $u->info['clan'] . '|' . $u->info['login'] . '|' . $u->info['level'] . '|' . $u->info['cityreg'] . '|' . $u->info['id'];
Db::sql("insert into elka (year, time, pers, text, city) values (year(curdate()) + ?, unix_timestamp(),?,?,'')", [$dy, $pInfo, $_POST['message']]);
$u->addAction(time(), 'send_elka', '');
}
}
}
?>
<style type="text/css">
<style>
.pH3 {
COLOR: #8f0000;
@@ -167,16 +168,28 @@ if (isset($_GET['take_gift']) && (date('m') == 12 || (date('m') == 1 && date('d'
font-size: 10px;
}
div.error {
text-align: right;
color: red;
font-weight: bold;
}
img.present {
padding: 10px;
}
img.used {
filter: alpha(opacity=35);
-moz-opacity: 0.35;
opacity: 0.35;
}
</style>
<div align="right"><?php if ($re != '') {
echo '<font color="red"><b>' . $re . '</b></font>';
} ?></div>
<div class="error"><?= $re ?? '' ?></div>
<div id="hint3" style="visibility:hidden"></div>
<TABLE width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<div align="center" class="pH3">Новогодняя елка <?php
echo $dt; ?>!
<div align="center" class="pH3">Новогодняя елка <?= $dt ?>!
</div>
<br/>
<!-- Подарки -->
@@ -189,31 +202,27 @@ if (isset($_GET['take_gift']) && (date('m') == 12 || (date('m') == 1 && date('d'
<span class="pH3"><small>Подарки:</small></span>
<div>
<?php
$smt = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `time` > ' . (time() - 600) . ' AND `vars` = "use_cupNewYear" LIMIT 1', 1);
$alreadyUsed = (bool)ActionModel::testCount(["uid = $u->info['id']", 'time > unix_timestamp() - 600', 'vars = use_cupNewYear']);
?>
<a href="?use_cup=<?= $code; ?>" <?php if (isset($smt['id'])) {
echo 'onClick="alert(\'Использовать "Чаша жизненных сил" можно не чаще одного раза в 10 минут\');return false;"';
} ?> /><img src="//img.new-combats.tech/cup2012.gif" style="padding:10px;<?php if (isset($smt['id'])) {
echo 'filter: alpha(opacity=35); -moz-opacity: 0.35; -khtml-opacity: 0.35; opacity: 0.35;';
} ?>" title="Выпить из`Чаши жизненных сил`"></a>
<a href="?use_cup=<?= $code; ?>" <?= $alreadyUsed ? 'onClick="alert(\'Использовать "Чаша жизненных сил" можно не чаще одного раза в 10 минут\');return false;"' : '' ?>>
<img src="//img.new-combats.tech/cup2012.gif" class="present <?= $alreadyUsed ? 'used' : '' ?>" title="Выпить из`Чаши жизненных сил`" alt="">
</a>
<?php
if (date('m') == 12 || (date('m') == 1 && date('d') <= 8)) {
$pd = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `time` > ' . (time() - 600) . ' AND `vars` = "take_gift' . $dt . '" LIMIT 1', 1);
$alreadyUsed = (bool)ActionModel::testCount(["uid = $u->info['id']", 'time > unix_timestamp() - 600', "vars = take_gift$dt"]);
?>
<a href="?take_gift=<?= $code; ?>" <?php if (isset($pd['id'])) {
echo 'onClick="return false;"';
} ?> /><img src="//img.new-combats.tech/i/items/<?= 'podarok' . ($dt - 1); ?>.gif" style="padding:10px;<?php if (isset($pd['id'])) {
echo 'filter: alpha(opacity=35); -moz-opacity: 0.35; -khtml-opacity: 0.35; opacity: 0.35;';
} ?>" title="Взять `Новогодний подарок 2023`"></a>
<a href="?take_gift=<?= $code; ?>" <?= $alreadyUsed ? 'onClick="return false;"' : '' ?>>
<img src="//img.new-combats.tech/i/items/<?= 'podarok' . ($dt - 1) ?>.gif" class="present <?= $alreadyUsed ? 'used' : '' ?>" title="Взять `Новогодний подарок 2023`"
alt="">
</a>
<?php } ?>
</div>
</div>
<hr>
<?php
}
//ТУТ Елка
// if($u->info['admin']>0)
// {
?>
<div style="padding-left:10px;">
<span class="pH3"><small>Наряжаем Ёлку:</small></span>
+20 -27
View File
@@ -1,6 +1,7 @@
<?php
use Helper\Conversion;
use Model\ActionModel;
if (!defined('GAME')) {
die();
@@ -8,22 +9,14 @@ if (!defined('GAME')) {
if ($u->room['file'] == 'enterbezdna') {
if (isset($_GET['rz'])) {
$rz = 1;
} else {
$rz = 0;
}
$rz = isset($_GET['rz']) ? 1 : 0;
$dun = 101;
$er = '';
$dzs = '';
$g111 = 1;
$g11 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `vars` = "psh101" AND `time` > ' . (time() - 60 * 60 * 2) . ' LIMIT 1', 1);
$dungeonTimeout = ActionModel::getOne(["uid = {$u->info['id']}", 'vars = psh101', 'time > unix_timestamp() - 7200'], 'time');
$moder = mysql_fetch_array(mysql_query('SELECT * FROM `moder` WHERE `align` = "' . $u->info['align'] . '" LIMIT 1'));
@@ -35,10 +28,10 @@ if ($u->room['file'] == 'enterbezdna') {
}
}
if (isset($g11['id'])) {
if ($dungeonTimeout) {
$g111 = 0;
if (isset($_GET['start'])) {
$re = 'До следующего похода осталось еще: ' . Conversion::secondsToTimeout(60 * 60 * 2 - time() + $g11['time']);
$re = 'До следующего похода осталось еще: ' . Conversion::secondsToTimeout(60 * 60 * 2 - time() + $dungeonTimeout);
}
}
if (isset($_GET['start']) && $zv['uid'] == $u->info['id'] && $g111 == 1) {
@@ -364,9 +357,10 @@ if ($u->room['file'] == 'enterbezdna') {
<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=1.180.0.367&rnd=<?= $code; ?>';" title="<?php thisInfRm(
'1.180.0.367', 1
); ?>">Рыцарский магазин</a></td>
<a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.367&rnd=<?= $code; ?>';"
title="<?php thisInfRm(
'1.180.0.367', 1
); ?>">Рыцарский магазин</a></td>
</tr>
</table>
</td>
@@ -428,13 +422,13 @@ if ($u->room['file'] == 'enterbezdna') {
<?php
$qsee = '';
$qx = 0;
$hgo = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_angelscity" LIMIT 1', 1);
$questTimeout = ActionModel::getOne(["uid = {$u->info['id']}", 'vars = psh_qt_angelscity', 'time > unix_timestamp() - 86400'], 'time');
if (isset($_GET['add_quest'])) {
if (isset($hgo['id'])) {
if ($questTimeout) {
echo '<font color="red"><b>Нельзя получать задания чаще одного раза в сутки</b></font><br>';
} else {
$sp = mysql_query('SELECT * FROM `quests` WHERE `line` = 101');
$sp = mysql_query('select * from quests where line = 101');
$dq_add = [];
while ($pl = mysql_fetch_array($sp)) {
if ($u->rep['repangelscity'] == 9999) {
@@ -459,7 +453,7 @@ if ($u->room['file'] == 'enterbezdna') {
if ($q->testGood($dq_add) == 1 && $dq_add > 0) {
$q->startq_dn($dq_add['id']);
echo '<font color="red"><b>Вы успешно получили новое задание &quot;' . $dq_add['name'] . '&quot;.</b></font><br>';
$hgo['id'] = 1;
$questTimeout = 1;
$u->addAction(time(), 'psh_qt_angelscity', $dq_add['id']);
} else {
if ($u->rep['repangelscity'] == 9999) {
@@ -496,15 +490,15 @@ if ($u->room['file'] == 'enterbezdna') {
<?= $qsee ?>
<span style="padding-left: 10">
<?php
if (!isset($hgo['id'])) {
if ($questTimeout) {
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $questTimeout + 60 * 60 * 24) . '</b> ( Через ' . Conversion::secondsToTimeout(
$questTimeout + 60 * 60 * 24 - time()
) . ' )';
} else {
?>
<br/>
<input type='button' value='Получить задание' onclick='location="main.php?rz=1&add_quest=1"'/>
<input type='button' value='Получить задание' onclick='location="main.php?rz=1&add_quest=1"'>
<?php
} else {
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $hgo['time'] + 60 * 60 * 24) . '</b> <font color="">( Через ' . Conversion::secondsToTimeout(
$hgo['time'] + 60 * 60 * 24 - time()
) . ' )</font>';
}
?>
</span>
@@ -703,7 +697,6 @@ if (!isset($hgo['id'])) {
);
while ($chk_pl = mysql_fetch_array($chk_cl)) {
if (mysql_query('UPDATE `items_users` SET `delete` = "' . time() . '" WHERE `id` = "' . $chk_pl['id'] . '" LIMIT 1')) {
;
}
{
$x++;
@@ -788,7 +781,7 @@ if (!isset($hgo['id'])) {
<?php
} else {
echo 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(
60 * 60 * 2 - time() + $g11['time']
60 * 60 * 2 - time() + $dungeonTimeout
) . '<br><small style="color:grey">Но Вы всегда можете приобрести ключ от прохода у любого &quot;копателя пещер&quot; в Торговом зале ;)</small>';
}
}
+14 -17
View File
@@ -1,6 +1,7 @@
<?php
use Helper\Conversion;
use Model\ActionModel;
if (!defined('GAME')) {
die();
@@ -15,13 +16,10 @@ if ($u->room['file'] == 'entercat') {
}
$dun = 3; //для новичков 2-7 лвл
$er = '';
$dzs = '';
$g111 = 1;
$g11 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `vars` = "psh1" AND `time`>' . (time() - 7200) . ' LIMIT 1', 1);
$dungeonTimeout = ActionModel::getOne(["uid = {$u->info['id']}", 'vars = psh1', 'time > unix_timestamp() - 7200'], 'time');
$moder = mysql_fetch_array(mysql_query('SELECT * FROM `moder` WHERE `align` = "' . $u->info['align'] . '" LIMIT 1'));
@@ -33,10 +31,10 @@ if ($u->room['file'] == 'entercat') {
}
}
if (isset($g11['id'])) {
if ($dungeonTimeout) {
$g111 = 0;
if (isset($_GET['start'])) {
$re = 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(7200 - time() + $g11['time']);
$re = 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(7200 - time() + $dungeonTimeout);
}
}
if (isset($_GET['start']) && $zv['uid'] == $u->info['id'] && $g111 == 1) {
@@ -345,13 +343,13 @@ if ($u->room['file'] == 'entercat') {
<?php
$qsee = '';
$qx = 0;
$hgo = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_demonscity" LIMIT 1', 1);
$questTimeout = ActionModel::getOne(["uid = {$u->info['id']}", 'vars = psh_qt_demonscity', 'time > unix_timestamp() - 86400'], 'time');
if (isset($_GET['add_quest'])) {
if (isset($hgo['id'])) {
if ($questTimeout) {
echo '<font color="red"><b>Нельзя получать задания чаще одного раза в сутки</b></font><br>';
} else {
$sp = mysql_query('SELECT * FROM `quests` WHERE `line` = 3');
$sp = mysql_query('select * from quests where line = 3');
$dq_add = [];
while ($pl = mysql_fetch_array($sp)) {
if ($u->rep['repdemonscity'] == 9999) {
@@ -376,7 +374,7 @@ if ($u->room['file'] == 'entercat') {
if ($q->testGood($dq_add) == 1) {
$q->startq_dn($dq_add['id']);
echo '<font color="red"><b>Вы успешно получили новое задание &quot;' . $dq_add['name'] . '&quot;.</b></font><br>';
$hgo['id'] = 1;
$questTimeout = 1;
$u->addAction(time(), 'psh_qt_demonscity', $dq_add['id']);
} else {
echo '<font color="red"><b>Не удалось получить задание &quot;' . $dq_add['name'] . '&quot;. Попробуйте еще...</b></font><br>';
@@ -405,15 +403,15 @@ if ($u->room['file'] == 'entercat') {
<?= $qsee ?>
<span style="padding-left: 10">
<?php
if (!isset($hgo['id'])) {
if ($questTimeout) {
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $questTimeout + 60 * 60 * 24) . '</b> <font color="grey">( Через ' . Conversion::secondsToTimeout(
$questTimeout + 60 * 60 * 24 - time()
) . ' )</font>';
} else {
?>
<br/>
<input type='button' value='Получить задание' onclick='location="main.php?rz=1&add_quest=1"'/>
<?php
} else {
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $hgo['time'] + 60 * 60 * 24) . '</b> <font color="grey">( Через ' . Conversion::secondsToTimeout(
$hgo['time'] + 60 * 60 * 24 - time()
) . ' )</font>';
}
?>
</span>
@@ -612,7 +610,6 @@ if (!isset($hgo['id'])) {
);
while ($chk_pl = mysql_fetch_array($chk_cl)) {
if (mysql_query('UPDATE `items_users` SET `delete` = "' . time() . '" WHERE `id` = "' . $chk_pl['id'] . '" LIMIT 1')) {
;
}
{
$x++;
@@ -696,7 +693,7 @@ if (!isset($hgo['id'])) {
<?php
} else {
echo 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(
7200 - time() + $g11['time']
7200 - time() + $dungeonTimeout
) . '<br><small style="color:grey">Но Вы всегда можете приобрести ключ от прохода у любого &quot;копателя пещер&quot; в Торговом зале ;)</small>';
}
}
+12 -14
View File
@@ -1,6 +1,7 @@
<?php
use Helper\Conversion;
use Model\ActionModel;
if (!defined('GAME')) {
die();
@@ -21,7 +22,7 @@ if ($u->room['file'] == 'enterdrago') {
mysql_query('SELECT `id` as room, city, `dungeon_room` as d_room, city, `shop`, `dungeon_id` as id, `dungeon_name` as name FROM `dungeon_room` WHERE `id`="' . $u->room['id'] . '" LIMIT 1')
);
//var_info($dungeon);
$all_dungeon = mysql_query('SELECT `city` FROM `dungeon_room` WHERE `city` IS NOT NULL AND `active`=1 ');
$all_dungeon = mysql_query('select city from dungeon_room where city is not null and active=1 ');
while ($t = mysql_fetch_array($all_dungeon)) {
$dungeon['list'][] = $t['city'];
}
@@ -35,13 +36,12 @@ if ($u->room['file'] == 'enterdrago') {
}
}
$dungeon_timeout = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `vars` = "psh' . $dungeon['id'] . '" AND `time` > ' . (time() - 60 * 60 * 20) . ' LIMIT 1', 1);
$dungeonTimeout = ActionModel::getOne(["uid = {$u->info['id']}", "vars = psh{$dungeon['id']}", 'time > unix_timestamp() - 72000'], 'time');
if (isset($dungeon_timeout['id'])) // Кто-то передумал и не пойдет в пещеру, так-как уже там был.
{
if ($dungeonTimeout) { // Кто-то передумал и не пойдет в пещеру, так-как уже там был.
$dungeonGo = 0;
if (isset($_GET['start'])) {
$error = 'До следующего похода осталось еще: ' . Conversion::secondsToTimeout(60 * 60 * 20 - time() + $dungeon_timeout['time']);
$error = 'До следующего похода осталось еще: ' . Conversion::secondsToTimeout(60 * 60 * 20 - time() + $dungeonTimeout);
}
}
@@ -468,8 +468,7 @@ if ($u->room['file'] == 'enterdrago') {
];
$sp = mysql_query(
'SELECT * FROM `dungeon_zv` WHERE `city` = "' . $u->info['city'] . '" AND `lvlmin` = "' . $u->info['level'] . '" AND `dun` = "' . $dungeon['id'] . '" AND `delete` = "0" AND `time` > "' . (time(
) - 60 * 60 * 2) . '"'
'SELECT * FROM `dungeon_zv` WHERE `city` = "' . $u->info['city'] . '" AND `lvlmin` = "' . $u->info['level'] . '" AND `dun` = "' . $dungeon['id'] . '" AND `delete` = "0" AND `time` > "' . (time() - 60 * 60 * 2) . '"'
);
while ($pl = mysql_fetch_array($sp)) {
@@ -640,7 +639,7 @@ if ($u->room['file'] == 'enterdrago') {
<form autocomplete="off" action='/main.php' method="post" name="F1" id="F1">
<?php
$qsee = '';
$hgo = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_' . $dungeon['city'] . '" LIMIT 1', 1);
$questTimeout = ActionModel::getOne(["uid = {$u->info['id']}", "vars = psh_qt_{$dungeon['city']}", 'time > unix_timestamp() - 86400'], 'time');
$qc = 0; // Quest Count
//Генерируем список текущих квестов
$sp = mysql_query('SELECT * FROM `actions` WHERE `vars` LIKE "%start_quest%" AND `vals` = "go" AND `uid` = "' . $u->info['id'] . '" LIMIT 100');
@@ -655,7 +654,7 @@ if ($u->room['file'] == 'enterdrago') {
}
if (isset($_GET['add_quest']) && $qc == 0) {
if (isset($hgo['id'])) {
if ($questTimeout) {
echo '<font color="red"><b>Нельзя получать задания чаще одного раза в сутки</b></font><br>';
} else {
$sp = mysql_query('SELECT * FROM `quests` WHERE `line` = ' . $dungeon['id'] . '');
@@ -713,14 +712,14 @@ if ($u->room['file'] == 'enterdrago') {
<?php
if ($qc > 0) {
echo 'Вы еще не справились с текущим заданием.';
} elseif (!isset($hgo['id']) && $qc == 0) {
} elseif (!$questTimeout && $qc == 0) {
?>
<br/>
<input type='button' value='Получить задание' onclick='location="main.php?rz=1&add_quest=1"'/>
<?php
} else {
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $hgo['time'] + 60 * 60 * 24) . '</b> ( Через ' . Conversion::secondsToTimeout(
$hgo['time'] + 60 * 60 * 24 - time()
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $questTimeout + 60 * 60 * 24) . '</b> ( Через ' . Conversion::secondsToTimeout(
$questTimeout + 60 * 60 * 24 - time()
) . ' )';
}
?>
@@ -951,7 +950,6 @@ if ($u->room['file'] == 'enterdrago') {
);
while ($chk_pl = mysql_fetch_array($chk_cl)) {
if (mysql_query('UPDATE `items_users` SET `delete` = "' . time() . '" WHERE `id` = "' . $chk_pl['id'] . '" LIMIT 1')) {
;
}
{
$x++;
@@ -1043,7 +1041,7 @@ if ($u->room['file'] == 'enterdrago') {
}
} else {
echo 'Поход в пещеры разрешен один раз в двадцать часов. Осталось еще: ' . Conversion::secondsToTimeout(
60 * 60 * 20 - time() + $dungeon_timeout['time']
60 * 60 * 20 - time() + $dungeonTimeout
) . '<br><small style="color:grey">Но Вы всегда можете приобрести ключ от прохода у любого &quot;копателя пещер&quot; в Торговом зале ;)</small>';
}
}
+14 -17
View File
@@ -1,6 +1,7 @@
<?php
use Helper\Conversion;
use Model\ActionModel;
if (!defined('GAME')) {
die();
@@ -15,14 +16,11 @@ if ($u->room['file'] == 'entergrib') {
}
$dun = 10; //для новичков 2-7 лвл
$er = '';
$dzs = '';
$g111 = 1;
//Задержка в Санд
$g11 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `vars` = "psh2" AND `time`>' . (time() - 7200) . ' LIMIT 1', 1);
$dungeonTimeout = ActionModel::getOne(["uid = {$u->info['id']}", 'vars = psh2', 'time > unix_timestamp() - 7200'], 'time');
$moder = mysql_fetch_array(mysql_query('SELECT * FROM `moder` WHERE `align` = "' . $u->info['align'] . '" LIMIT 1'));
@@ -34,10 +32,10 @@ if ($u->room['file'] == 'entergrib') {
}
}
if (isset($g11['id'])) {
if ($dungeonTimeout) {
$g111 = 0;
if (isset($_GET['start'])) {
$re = 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(7200 - time() + $g11['time']);
$re = 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(7200 - time() + $dungeonTimeout);
}
}
if (isset($_GET['start']) && $zv['uid'] == $u->info['id'] && $g111 == 1) {
@@ -332,13 +330,13 @@ if ($u->room['file'] == 'entergrib') {
<?php
$qsee = '';
$qx = 0;
$hgo = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_allcity" LIMIT 1', 1);
$questTimeout = ActionModel::getOne(["uid = {$u->info['id']}", 'vars = psh_qt_allcity', 'time > unix_timestamp() - 86400'], 'time');
if (isset($_GET['add_quest'])) {
if (isset($hgo['id'])) {
if ($questTimeout) {
echo '<font color="red"><b>Нельзя получать задания чаще одного раза в сутки</b></font><br>';
} else {
$sp = mysql_query('SELECT * FROM `quests` WHERE `line` = 4');
$sp = mysql_query('select * from quests where line = 4');
$dq_add = [];
while ($pl = mysql_fetch_array($sp)) {
$dq_add[count($dq_add)] = $pl;
@@ -349,7 +347,7 @@ if ($u->room['file'] == 'entergrib') {
if ($q->testGood($dq_add) == 1) {
$q->startq_dn($dq_add['id']);
echo '<font color="red"><b>Вы успешно получили новое задание &quot;' . $dq_add['name'] . '&quot;.</b></font><br>';
$hgo['id'] = 1;
$questTimeout = 1;
$u->addAction(time(), 'psh_qt_allcity', $dq_add['id']);
} else {
echo '<font color="red"><b>Не удалось получить задание &quot;' . $dq_add['name'] . '&quot;. Попробуйте еще...</b></font><br>';
@@ -378,15 +376,15 @@ if ($u->room['file'] == 'entergrib') {
<?= $qsee ?>
<span style="padding-left: 10">
<?php
if (!isset($hgo['id'])) {
if ($questTimeout) {
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $questTimeout + 60 * 60 * 24) . '</b> <font color="grey">( Через ' . Conversion::secondsToTimeout(
$questTimeout + 60 * 60 * 24 - time()
) . ' )</font>';
} else {
?>
<br/>
<input type='button' value='Получить задание' onclick='location="main.php?rz=1&add_quest=1"'/>
<?php
} else {
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $hgo['time'] + 60 * 60 * 24) . '</b> <font color="grey">( Через ' . Conversion::secondsToTimeout(
$hgo['time'] + 60 * 60 * 24 - time()
) . ' )</font>';
}
?>
</span>
@@ -494,7 +492,6 @@ if (!isset($hgo['id'])) {
);
while ($chk_pl = mysql_fetch_array($chk_cl)) {
if (mysql_query('UPDATE `items_users` SET `delete` = "' . time() . '" WHERE `id` = "' . $chk_pl['id'] . '" LIMIT 1')) {
;
}
{
$x++;
@@ -564,7 +561,7 @@ if (!isset($hgo['id'])) {
<?php
} else {
echo 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(
7200 - time() + $g11['time']
7200 - time() + $dungeonTimeout
) . '<br><small style="color:grey">Но Вы всегда можете приобрести ключ от прохода у любого &quot;копателя пещер&quot; в Торговом зале ;)</small>';
}
}
+5 -7
View File
@@ -1,6 +1,7 @@
<?php
use Helper\Conversion;
use Model\ActionModel;
if (!defined('GAME')) {
die();
@@ -9,13 +10,10 @@ if (!defined('GAME')) {
if ($u->room['file'] == 'enternekro') {
$dun = 11; //для новичков 2-7 лвл
$er = '';
$dzs = '';
$g111 = 1;
$g11 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `vars` = "psh1" AND `time`>' . (time() - 7200) . ' LIMIT 1', 1);
$dungeonTimeout = ActionModel::getOne(["uid = {$u->info['id']}", 'vars = psh1', 'time > unix_timestamp() - 7200'], 'time');
$moder = mysql_fetch_array(mysql_query('SELECT * FROM `moder` WHERE `align` = "' . $u->info['align'] . '" LIMIT 1'));
@@ -27,10 +25,10 @@ if ($u->room['file'] == 'enternekro') {
}
}
if (isset($g11['id'])) {
if ($dungeonTimeout) {
$g111 = 0;
if (isset($_GET['start'])) {
$re = 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(7200 - time() + $g11['time']);
$re = 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(7200 - time() + $dungeonTimeout);
}
}
if (isset($_GET['start']) && $zv['uid'] == $u->info['id'] && $g111 == 1) {
@@ -346,7 +344,7 @@ if ($u->room['file'] == 'enternekro') {
<?php
} else {
echo 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(
7200 - time() + $g11['time']
7200 - time() + $dungeonTimeout
) . '<br><small style="color:grey">Но Вы всегда можете приобрести ключ от прохода у любого &quot;копателя пещер&quot; в Торговом зале ;)</small>';
}
}
+12 -17
View File
@@ -1,6 +1,7 @@
<?php
use Helper\Conversion;
use Model\ActionModel;
if (!defined('GAME')) {
die();
@@ -15,15 +16,10 @@ if ($u->room['file'] == 'enternizin') {
}
$dun = 444;
$er = '';
$dzs = '';
$g111 = 1;
$g11 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `vars` = "psh444" AND `time` > ' . (time() - 60 * 60 * 2) . ' LIMIT 1', 1);
$dungeonTimeout = ActionModel::getOne(["uid = {$u->info['id']}", 'vars = psh444', 'time > unix_timestamp() - 7200'], 'time');
$moder = mysql_fetch_array(mysql_query('SELECT * FROM `moder` WHERE `align` = "' . $u->info['align'] . '" LIMIT 1'));
@@ -35,10 +31,10 @@ if ($u->room['file'] == 'enternizin') {
}
}
if (isset($g11['id'])) {
if ($dungeonTimeout) {
$g111 = 0;
if (isset($_GET['start'])) {
$re = 'До следующего похода осталось еще: ' . Conversion::secondsToTimeout(60 * 60 * 2 - time() + $g11['time']);
$re = 'До следующего похода осталось еще: ' . Conversion::secondsToTimeout(60 * 60 * 2 - time() + $dungeonTimeout);
}
}
if (isset($_GET['start']) && $zv['uid'] == $u->info['id'] && $g111 == 1) {
@@ -421,13 +417,13 @@ if ($u->room['file'] == 'enternizin') {
<?php
$qsee = '';
$qx = 0;
$hgo = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_angelscity" LIMIT 1', 1);
$questTimeout = ActionModel::getOne(["uid = {$u->info['id']}", 'vars = psh_qt_angelscity', 'time > unix_timestamp() - 86400'], 'time');
if (isset($_GET['add_quest'])) {
if (isset($hgo['id'])) {
if ($questTimeout) {
echo '<font color="red"><b>Нельзя получать задания чаще одного раза в сутки</b></font><br>';
} else {
$sp = mysql_query('SELECT * FROM `quests` WHERE `line` = 444');
$sp = mysql_query('select * from quests where line = 444');
$dq_add = [];
while ($pl = mysql_fetch_array($sp)) {
if ($u->rep['repangelscity'] == 9999) {
@@ -452,7 +448,7 @@ if ($u->room['file'] == 'enternizin') {
if ($q->testGood($dq_add) == 1 && $dq_add > 0) {
$q->startq_dn($dq_add['id']);
echo '<font color="red"><b>Вы успешно получили новое задание &quot;' . $dq_add['name'] . '&quot;.</b></font><br>';
$hgo['id'] = 1;
$questTimeout = 1;
$u->addAction(time(), 'psh_qt_angelscity', $dq_add['id']);
} else {
if ($u->rep['repangelscity'] == 9999) {
@@ -489,13 +485,13 @@ if ($u->room['file'] == 'enternizin') {
<?= $qsee ?>
<span style="padding-left: 10">
<?php
if (!isset($hgo['id'])) {
if ($questTimeout) {
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $questTimeout + 60 * 60 * 24) . '</b> ( Через ' . Conversion::secondsToTimeout($questTimeout + 60 * 60 * 24 - time()) . ' )';
} else {
?>
<br/>
<input type='button' value='Получить задание' onclick='location="main.php?rz=1&add_quest=1"'/>
<?php
} else {
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $hgo['time'] + 60 * 60 * 24) . '</b> ( Через ' . Conversion::secondsToTimeout($hgo['time'] + 60 * 60 * 24 - time()) . ' )';
}
?>
</span>
@@ -694,7 +690,6 @@ if (!isset($hgo['id'])) {
);
while ($chk_pl = mysql_fetch_array($chk_cl)) {
if (mysql_query('UPDATE `items_users` SET `delete` = "' . time() . '" WHERE `id` = "' . $chk_pl['id'] . '" LIMIT 1')) {
;
}
{
$x++;
@@ -776,7 +771,7 @@ if (!isset($hgo['id'])) {
}
} else {
echo 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(
60 * 60 * 2 - time() + $g11['time']
60 * 60 * 2 - time() + $dungeonTimeout
) . '<br><small style="color:grey">Но Вы всегда можете приобрести ключ от прохода у любого &quot;копателя пещер&quot; в Торговом зале ;)</small>';
}
}
+11 -17
View File
@@ -1,6 +1,7 @@
<?php
use Helper\Conversion;
use Model\ActionModel;
if (!defined('GAME')) {
die();
@@ -49,13 +50,12 @@ if ($u->info['dn'] > 0) { // Если ты пошел гулять, так ид
}
}
$dungeon_timeout = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `vars` = "psh' . $dungeon['id'] . '" AND `time` > ' . (time() - 60 * 60 * 2) . ' LIMIT 1', 1); // Проверка - последний визит?
$dungeonTimeout = ActionModel::getOne(["uid = {$u->info['id']}", "vars = psh{$dungeon['id']}", 'time > unix_timestamp() - 7200'], 'time'); // Проверка - последний визит?
if (isset($dungeon_timeout['id'])) // Кто-то передумал и не пойдет в пещеру, так-как уже там был.
{
if ($dungeonTimeout) { // Кто-то передумал и не пойдет в пещеру, так-как уже там был.
$dungeonGo = 0;
if (isset($_GET['start'])) {
$re = 'До следующего похода осталось еще: ' . Conversion::secondsToTimeout(60 * 60 * 2 - time() + $dungeon_timeout['time']);
$re = 'До следующего похода осталось еще: ' . Conversion::secondsToTimeout(60 * 60 * 2 - time() + $dungeonTimeout);
}
}
@@ -430,19 +430,14 @@ if ($roomSection == 1) {
$qsee = '';
$qx = 0;
//if($u->info['admin']==0){
$hgo = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_capitalcity" LIMIT 1', 1);
//}
$questTimeout = ActionModel::getOne(["uid = {$u->info['id']}", 'vars = psh_qt_capitalcity', 'time > unix_timestamp() - 86400'], 'time');
if (isset($_GET['add_quest'])) {
if (isset($hgo['id'])) {
if ($questTimeout) {
echo '<font color="red"><b>Нельзя получать задания чаще одного раза в сутки</b></font><br>';
} else {
//if($u->info['admin']>0){
// $sp = mysql_query('SELECT * FROM `quests` WHERE `id` = "236" && `tr_date` LIKE "%tr_dn:=:'.$dun.'%"'); // Только дашку
//} else {
$sp = mysql_query('SELECT * FROM `quests` WHERE `line` = ' . $dungeon['id'] . '');
//}
$dq_add = [];
while ($pl = mysql_fetch_array($sp)) {
@@ -505,13 +500,13 @@ if ($roomSection == 1) {
<?= $qsee ?>
<span style="padding-left: 10">
<?php
if (!isset($hgo['id'])) {
if ($questTimeout) {
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $questTimeout + 60 * 60 * 24) . '</b> ( Через ' . Conversion::secondsToTimeout($questTimeout + 60 * 60 * 24 - time()) . ' )';
} else {
?>
<br/>
<input type='button' value='Получить задание' onclick='location="main.php?rz=1&add_quest=1"'/>
<?php
} else {
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $hgo['time'] + 60 * 60 * 24) . '</b> ( Через ' . Conversion::secondsToTimeout($hgo['time'] + 60 * 60 * 24 - time()) . ' )';
}
?>
</span>
@@ -716,7 +711,6 @@ if (!isset($hgo['id'])) {
);
while ($chk_pl = mysql_fetch_array($chk_cl)) {
if (mysql_query('UPDATE `items_users` SET `delete` = "' . time() . '" WHERE `id` = "' . $chk_pl['id'] . '" LIMIT 1')) {
;
}
{
$x++;
@@ -796,7 +790,7 @@ if (!isset($hgo['id'])) {
}
} else {
echo 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(
60 * 60 * 2 - time() + $dungeon_timeout['time']
60 * 60 * 2 - time() + $dungeonTimeout
) . '<br><small style="color:grey">Но Вы всегда можете приобрести ключ от прохода у любого &quot;копателя пещер&quot; в Торговом зале ;)</small>';
}
}
+5 -7
View File
@@ -1,6 +1,7 @@
<?php
use Helper\Conversion;
use Model\ActionModel;
if (!defined('GAME')) {
die();
@@ -9,14 +10,11 @@ if (!defined('GAME')) {
if ($u->room['file'] == 'entersnow') {
$dun = 20; //для новичков 2-7 лвл
$er = '';
$dzs = '';
$g111 = 1;
$g11 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `vars` = "psh1" AND `time`>' . (time() - 7200) . ' LIMIT 1', 1);
$dungeonTimeout = ActionModel::getOne(["uid = {$u->info['id']}", 'vars = psh1', 'time > unix_timestamp() - 7200'], 'time');
$moder = mysql_fetch_array(mysql_query('SELECT * FROM `moder` WHERE `align` = "' . $u->info['align'] . '" LIMIT 1'));
@@ -28,10 +26,10 @@ if ($u->room['file'] == 'entersnow') {
}
}
if (isset($g11['id'])) {
if ($dungeonTimeout) {
$g111 = 0;
if (isset($_GET['start'])) {
$re = 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(7200 - time() + $g11['time']);
$re = 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(7200 - time() + $dungeonTimeout);
}
}
if (isset($_GET['start']) && $zv_dn['uid'] == $u->info['id'] && $g111 == 1) {
@@ -351,7 +349,7 @@ if ($u->room['file'] == 'entersnow') {
<?php
} else {
echo 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(
7200 - time() + $g11['time']
7200 - time() + $dungeonTimeout
) . '<br><small style="color:grey">Но Вы всегда можете приобрести ключ от прохода у любого &quot;копателя пещер&quot; в Торговом зале ;)</small>';
}
}
+3 -4
View File
@@ -51,14 +51,13 @@ if (!defined('GAME')) {
<small>
<HR>
<div id="ajaxButtons"<?php
$hgo = $u->testHome();
if (!isset($hgo['id'])) {
if ($u->testHome()) {
echo '<INPUT onclick="location.href=\'main.php?homeworld=' . $code . '\';" class="btn" value="Возврат" type="button" name="combats2">';
}
unset($hgo);
?>
<INPUT onclick="location.href='main.php?clubmap=<?= $code; ?>';" class="btn" value="Карта клуба" type="button" name="combats2">
<INPUT id="forum" class="btn" onclick="window.open('<?= $c['forum']; ?>', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум" type="button" name="forum">
<INPUT id="forum" class="btn" onclick="window.open('<?= $c['forum']; ?>', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум"
type="button" name="forum">
<INPUT class="btn" onclick="window.open('/encicl/help/top1.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка" type="button">
<INPUT class="btn" value="Объекты" type="button">
</div><br/>
+15 -17
View File
@@ -1,6 +1,7 @@
<?php
use Helper\Conversion;
use Model\ActionModel;
if (!defined('GAME')) {
die();
@@ -464,7 +465,7 @@ if ($u->room['file'] == 'house_belaun' && false) {
} // Собираем группу для похода
//if( $u->info['admin'] > 0 ) var_info($dungeon);
$all_dungeon = mysql_query('SELECT `city` FROM `dungeon_room` WHERE `city` IS NOT NULL AND `active`=1 ');
$all_dungeon = mysql_query('select city from dungeon_room where city is not null and active=1 ');
while ($t = mysql_fetch_array($all_dungeon)) {
$dungeon['list'][] = $t['city'];
}
@@ -478,16 +479,17 @@ if ($u->room['file'] == 'house_belaun' && false) {
}
}
$dungeon_timeout = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `vars` = "psh0" AND `time` > ' . (time() - 60 * 60 * 2) . ' LIMIT 1', 1);
$dungeonTimeout = ActionModel::getOne(["uid = {$u->info['id']}", 'vars = psh0', 'time > unix_timestamp() - 7200'], 'time');
if ($u->info['admin'] > 0) {
unset($dungeon_timeout);
} // $dungeon_timeout - задержка на посещение пещеры.
if (isset($dungeon_timeout['id'])) // Кто-то передумал и не пойдет в пещеру, так-как уже там был.
if ($u->isAdmin()) {
$dungeonTimeout = 0;
}
if ($dungeonTimeout) // Кто-то передумал и не пойдет в пещеру, так-как уже там был.
{
$dungeonGo = 0;
if (isset($_GET['start'])) {
$error = 'До следующего похода осталось еще: ' . Conversion::secondsToTimeout(60 * 60 * 2 - time() + $dungeon_timeout['time']);
$error = 'До следующего похода осталось еще: ' . Conversion::secondsToTimeout(60 * 60 * 2 - time() + $dungeonTimeout);
}
}
@@ -571,8 +573,7 @@ if ($u->room['file'] == 'house_belaun' && false) {
if ($cord[0] != 0 || $cord[1] != 0) {
mysql_query(
'INSERT INTO `dungeon_items` (`dn`,`user`,`item_id`,`time`,`x`,`y`,`onlyfor`,`quest`) VALUES (
"' . $zid . '","' . $u->info['id'] . '","' . $xr2[0] . '","' . time(
) . '","' . $cord[0] . '","' . $cord[1] . '","' . $u->info['id'] . '","' . $pl['id'] . '"
"' . $zid . '","' . $u->info['id'] . '","' . $xr2[0] . '","' . time() . '","' . $cord[0] . '","' . $cord[1] . '","' . $u->info['id'] . '","' . $pl['id'] . '"
)'
);
}
@@ -1148,9 +1149,7 @@ if ($u->room['file'] == 'house_belaun' && false) {
<form autocomplete="off" action='/main.php' method="post" name="F1" id="F1">
<?php
$qsee = '';
$hgo = $u->testAction(
'`uid` = "' . $u->info['id'] . '" AND `room` = "' . $u->info['room'] . '" AND `time` >= ' . (time() - 60 * 60 * 24) . ' AND `vars` = "psh_qt_' . $dungeon['city'] . '" LIMIT 1', 1
);
$questTimeout = ActionModel::getOne(["uid = {$u->info['id']}", "vars = psh_qt_{$dungeon['city']}", 'time > unix_timestamp() - 86400', "room = {$u->info['room']}"], 'time');
$qc = 0; // Quest Count
//Генерируем список текущих квестов
$sp = mysql_query('SELECT * FROM `actions` WHERE `vars` LIKE "%start_quest%" AND `vals` = "go" AND `uid` = "' . $u->info['id'] . '" LIMIT 100');
@@ -1176,7 +1175,7 @@ if ($u->room['file'] == 'house_belaun' && false) {
}
if (isset($_GET['add_quest']) && $qc == 0) {
if (isset($hgo['id'])) {
if ($questTimeout) {
echo '<font color="red"><b>Нельзя получать задания чаще одного раза в сутки</b></font><br>';
} else {
$sp = mysql_query('SELECT * FROM `quests` WHERE `line` = ' . $dungeon['id'] . '');
@@ -1234,13 +1233,13 @@ if ($u->room['file'] == 'house_belaun' && false) {
<?php
if ($qc > 0) {
echo 'Вы еще не справились с текущим заданием.';
} elseif (!isset($hgo['id']) && $qc == 0) {
} elseif (!$questTimeout && $qc == 0) {
?>
<br/>
<input type='button' value='Получить задание' onclick='location="main.php?rz=1&add_quest=1"'/>
<?php
} else {
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $hgo['time'] + 60 * 60 * 24) . '</b> ( Через ' . Conversion::secondsToTimeout($hgo['time'] + 60 * 60 * 24 - time()) . ' )';
echo 'Получить новое задание можно <b>' . date('d.m.Y H:i', $questTimeout + 60 * 60 * 24) . '</b> ( Через ' . Conversion::secondsToTimeout($questTimeout + 60 * 60 * 24 - time()) . ' )';
}
?>
</span>
@@ -1454,7 +1453,6 @@ if ($u->room['file'] == 'house_belaun' && false) {
);
while ($chk_pl = mysql_fetch_array($chk_cl)) {
if (mysql_query('UPDATE `items_users` SET `delete` = "' . time() . '" WHERE `id` = "' . $chk_pl['id'] . '" LIMIT 1')) {
;
}
{
$x++;
@@ -1566,7 +1564,7 @@ if ($u->room['file'] == 'house_belaun' && false) {
}
} else {
echo 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(
60 * 60 * 2 - time() + $dungeon_timeout['time']
60 * 60 * 2 - time() + $dungeonTimeout
) . '<br><small style="color:grey">Но Вы всегда можете приобрести ключ от прохода у любого &quot;копателя пещер&quot; в Торговом зале ;)</small>';
}
}
+103 -69
View File
@@ -1,81 +1,115 @@
<?php
if(!defined('GAME'))
{
die();
if (!defined('GAME')) {
die();
}
if($u->room['file']=='kinght')
{
?>
<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.'; } ?>
</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">
<?php if( $u->error != '' ) { ?>
<font color=red><b>
<?= $u->error; ?></font></b>
<?php } ?>
<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>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/300x225/club/navig3.jpg" id="img_ione" width="500" height="240" border="1"/>
if ($u->room['file'] == 'kinght') {
?>
<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.';
} ?>
</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">
<?php if ($u->error != '') { ?>
<font color=red><b>
<?= $u->error; ?></font></b>
<?php } ?>
<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>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/300x225/club/navig3.jpg" id="img_ione"
width="500" height="240" border="1"/>
<div style="position:absolute; left:118px; top:175px; width:101px; height:37px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec3.gif" width="101" height="37" class="aFilter" /></div>
<div style="position:absolute; left:279px; top:55px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif" width="16" height="18" title="Вы находитесь в '<?= $u->room['name']; ?>'" /></div>
<div style="position:absolute; left:281px; top:173px; width:122px; height:31px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec5.gif" width="122" height="31" class="aFilter" /></div>
<div style="position:absolute; left:23px; top:116px; width:120px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.220'); ?> onclick="location='main.php?loc=1.180.0.220';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_2stair.gif" width="120" height="35" class="aFilter" /></div>
<div style="position:absolute; left:36px; top:41px; width:63px; height:40px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec2.gif" width="63" height="40" class="aFilter" /></div>
<div style="position:absolute; left:24px; top:180px; width:91px; height:43px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec1.gif" width="91" height="43" class="aFilter" /></div>
<div style="position:absolute; left:122px; top:52px; width:123px; height:39px; z-index:90;"><img <?php thisInfRm('1.180.0.XX'); ?> onclick="location='main.php?loc=1.180.0.XX';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec7.gif" width="123" height="39" class="aFilter" /></div>
<div style="position:absolute; left:305px; top:51px; width:123px; height:30px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec6.gif" width="123" height="30" class="aFilter" /></div>
<div style="position:absolute; left:391px; top:120px; width:89px; height:32px; z-index:90;"><img <?php thisInfRm('1.180.0.223'); ?> onclick="location='main.php?loc=1.180.0.223';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec4.gif" width="89" height="32" class="aFilter" /></div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if($u->info['level']<6)
{
echo '
<div style="position:absolute; left:118px; top:175px; width:101px; height:37px; z-index:90;"><img onmouseover="this.className='aFilterhover';"
onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec3.gif"
width="101" height="37" class="aFilter"/></div>
<div style="position:absolute; left:279px; top:55px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif"
width="16" height="18"
title="Вы находитесь в '<?= $u->room['name']; ?>'"/>
</div>
<div style="position:absolute; left:281px; top:173px; width:122px; height:31px; z-index:90;"><img onmouseover="this.className='aFilterhover';"
onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec5.gif"
width="122" height="31" class="aFilter"/></div>
<div style="position:absolute; left:23px; top:116px; width:120px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.220'); ?>
onclick="location='main.php?loc=1.180.0.220';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_2stair.gif" width="120" height="35" class="aFilter"/></div>
<div style="position:absolute; left:36px; top:41px; width:63px; height:40px; z-index:90;"><img onmouseover="this.className='aFilterhover';"
onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec2.gif"
width="63" height="40" class="aFilter"/></div>
<div style="position:absolute; left:24px; top:180px; width:91px; height:43px; z-index:90;"><img onmouseover="this.className='aFilterhover';"
onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec1.gif"
width="91" height="43" class="aFilter"/></div>
<div style="position:absolute; left:122px; top:52px; width:123px; height:39px; z-index:90;"><img <?php thisInfRm('1.180.0.XX'); ?>
onclick="location='main.php?loc=1.180.0.XX';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec7.gif" width="123" height="39" class="aFilter"/></div>
<div style="position:absolute; left:305px; top:51px; width:123px; height:30px; z-index:90;"><img onmouseover="this.className='aFilterhover';"
onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec6.gif"
width="123" height="30" class="aFilter"/></div>
<div style="position:absolute; left:391px; top:120px; width:89px; height:32px; z-index:90;"><img <?php thisInfRm('1.180.0.223'); ?>
onclick="location='main.php?loc=1.180.0.223';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec4.gif" width="89" height="32" class="aFilter"/></div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if ($u->info['level'] < 6) {
echo '
Вам все время кажется что за вами следят? Чудится, что случайный попутчик мечтает всадить вам топор в спину? При совершении очередной покупки в гос. магазине мучает ощущение, что вас обманули? Кажется, что симпатичная девушка напротив смотрит на вас как на пищу? Успокойтесь, это не паранойя. Это реалии Capital city. Города Тьмы.
';
}else{
echo 'Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.';
} ?>
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
} else {
echo 'Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.';
} ?>
</small>
</div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
</table>
<small>
<HR>
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/news/', 'news', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Новости" type="button" name="forum">
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn btn-inverse" value="Поединки" type="button" name="combats">
<?php $hgo = $u->testHome(); if(!isset($hgo['id'])){ ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn btn-inverse" value="Возврат" type="button" name="combats2"><?php } unset($hgo); ?>
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум" type="button" name="forum">
<br />
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/news/', 'news', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Новости"
type="button" name="forum">
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn btn-inverse" value="Поединки" type="button" name="combats">
<?php if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn btn-inverse" value="Возврат" type="button" name="combats2"><?php } ?>
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум"
type="button" name="forum">
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
}
?>
+167 -152
View File
@@ -1,169 +1,184 @@
<?php
if(!defined('GAME'))
{
die();
if (!defined('GAME')) {
die();
}
if($u->room['file']=='novich')
{
$tst = mysql_fetch_array(mysql_query('SELECT * FROM `dialog_act` WHERE `uid` = "'.$u->info['id'].'" AND `var` = "noobqst1" LIMIT 1'));
if(!isset($tst['id'])) {
if(isset($_GET['noobgo']) || $c['noobgade'] == false) {
if($_GET['noobgo'] == 1 && $c['noobgade'] == true) {
//Согласился (создаем пещеру и телепортируем туда
$ins = mysql_query('INSERT INTO `dungeon_now` (`city`,`uid`,`id2`,`name`,`time_start`)
VALUES ("'.$u->info['city'].'","'.$u->info['id'].'","106","Академия Новичков","'.time().'")');
if($ins){
$zid = mysql_insert_id();
//обновляем пользователей
$su = mysql_query('SELECT `u`.`id`,`st`.`dn` FROM `stats` AS `st` LEFT JOIN `users` AS `u` ON (`st`.`id` = `u`.`id`) WHERE `st`.`id`="'.$u->info['id'].'"');
$ids = '';
$map_locs = array();
$spm2 = mysql_query('SELECT `id`,`x`,`y` FROM `dungeon_map` WHERE `id_dng` = 106');
while( $plm2 = mysql_fetch_array( $spm2 ) ) {
$map_locs[] = array($plm2['x'],$plm2['y']);
}
unset( $spm2 , $plm2 );
$pxd = 0;
while( $pu = mysql_fetch_array($su) ) {
$pxd++;
$ids .= ' `id` = "'.$pu['id'].'" OR';
}
$ids = rtrim($ids,'OR');
$snew = 0;
$upd1 = mysql_query('UPDATE `stats` SET `s`="4",`res_s`="1",`x`="0",`y`="0",`res_x`="0",`res_y`="0",`dn` = "0",`dnow` = "'.$zid.'" WHERE '.$ids.'');
if( $upd1 ){
$upd2 = mysql_query('UPDATE `users` SET `room` = "391" WHERE '.$ids.'');
//Добавляем ботов и обьекты в пещеру $zid с for_dn = $dungeon['id']
//Добавляем ботов
$vls = '';
$sp = mysql_query('SELECT * FROM `dungeon_bots` WHERE `for_dn` = 106');
while( $pl = mysql_fetch_array( $sp ) ) {
if( $pl['id_bot'] == 0 && $pl['bot_group'] !=''){
$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'].'"),';
unset($bots);
}
$vls = rtrim($vls,',');
$ins1 = mysql_query('INSERT INTO `dungeon_bots` (`dn`,`id_bot`,`colvo`,`items`,`x`,`y`,`dialog`,`atack`,`go_bot`,`noatack`) VALUES '.$vls.'');
//Добавляем обьекты
$vls = '';
$sp = mysql_query('SELECT * FROM `dungeon_obj` WHERE `for_dn` = 106');
while($pl = mysql_fetch_array($sp))
{
$vls .= '("'.$zid.'","'.$pl['name'].'","'.$pl['img'].'","'.$pl['x'].'","'.$pl['y'].'","'.$pl['action'].'","'.$pl['type'].'","'.$pl['w'].'","'.$pl['h'].'","'.$pl['s'].'","'.$pl['s2'].'","'.$pl['os1'].'","'.$pl['os2'].'","'.$pl['os3'].'","'.$pl['os4'].'","'.$pl['type2'].'","'.$pl['top'].'","'.$pl['left'].'","'.$pl['date'].'"),';
}
//
$vls = rtrim($vls,',');
if( $vls != '' ) {
$ins2 = mysql_query('INSERT INTO `dungeon_obj` (`dn`,`name`,`img`,`x`,`y`,`action`,`type`,`w`,`h`,`s`,`s2`,`os1`,`os2`,`os3`,`os4`,`type2`,`top`,`left`,`date`) VALUES '.$vls.'');
} else {
$ins2 = true;
}
if( $upd2 && $ins1 && $ins2 ){
die('<script>location="main.php?rnd='.$code.'";</script>');
} else {
$error = 'Ошибка перехода в подземелье...';
}
} else {
$error = 'Ошибка перехода в подземелье...';
}
} else {
$error = 'Ошибка перехода в подземелье...';
}
//
//header('location: main.php');
die();
}else{
//Отказался (добавляем квест, системку и пошел нах)
mysql_query('INSERT INTO `dialog_act` (
if ($u->room['file'] == 'novich') {
$tst = mysql_fetch_array(mysql_query('SELECT * FROM `dialog_act` WHERE `uid` = "' . $u->info['id'] . '" AND `var` = "noobqst1" LIMIT 1'));
if (!isset($tst['id'])) {
if (isset($_GET['noobgo']) || $c['noobgade'] == false) {
if ($_GET['noobgo'] == 1 && $c['noobgade'] == true) {
//Согласился (создаем пещеру и телепортируем туда
$ins = mysql_query('INSERT INTO `dungeon_now` (`city`,`uid`,`id2`,`name`,`time_start`)
VALUES ("' . $u->info['city'] . '","' . $u->info['id'] . '","106","Академия Новичков","' . time() . '")');
if ($ins) {
$zid = mysql_insert_id();
//обновляем пользователей
$su = mysql_query('SELECT `u`.`id`,`st`.`dn` FROM `stats` AS `st` LEFT JOIN `users` AS `u` ON (`st`.`id` = `u`.`id`) WHERE `st`.`id`="' . $u->info['id'] . '"');
$ids = '';
$map_locs = [];
$spm2 = mysql_query('select id,x,y from dungeon_map where id_dng = 106');
while ($plm2 = mysql_fetch_array($spm2)) {
$map_locs[] = [$plm2['x'], $plm2['y']];
}
unset($spm2, $plm2);
$pxd = 0;
while ($pu = mysql_fetch_array($su)) {
$pxd++;
$ids .= ' `id` = "' . $pu['id'] . '" OR';
}
$ids = rtrim($ids, 'OR');
$snew = 0;
$upd1 = mysql_query('UPDATE `stats` SET `s`="4",`res_s`="1",`x`="0",`y`="0",`res_x`="0",`res_y`="0",`dn` = "0",`dnow` = "' . $zid . '" WHERE ' . $ids . '');
if ($upd1) {
$upd2 = mysql_query('UPDATE `users` SET `room` = "391" WHERE ' . $ids . '');
//Добавляем ботов и обьекты в пещеру $zid с for_dn = $dungeon['id']
//Добавляем ботов
$vls = '';
$sp = mysql_query('select * from dungeon_bots where for_dn = 106');
while ($pl = mysql_fetch_array($sp)) {
if ($pl['id_bot'] == 0 && $pl['bot_group'] != '') {
$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'] . '"),';
unset($bots);
}
$vls = rtrim($vls, ',');
$ins1 = mysql_query('INSERT INTO `dungeon_bots` (`dn`,`id_bot`,`colvo`,`items`,`x`,`y`,`dialog`,`atack`,`go_bot`,`noatack`) VALUES ' . $vls . '');
//Добавляем обьекты
$vls = '';
$sp = mysql_query('select * from dungeon_obj where for_dn = 106');
while ($pl = mysql_fetch_array($sp)) {
$vls .= '("' . $zid . '","' . $pl['name'] . '","' . $pl['img'] . '","' . $pl['x'] . '","' . $pl['y'] . '","' . $pl['action'] . '","' . $pl['type'] . '","' . $pl['w'] . '","' . $pl['h'] . '","' . $pl['s'] . '","' . $pl['s2'] . '","' . $pl['os1'] . '","' . $pl['os2'] . '","' . $pl['os3'] . '","' . $pl['os4'] . '","' . $pl['type2'] . '","' . $pl['top'] . '","' . $pl['left'] . '","' . $pl['date'] . '"),';
}
//
$vls = rtrim($vls, ',');
if ($vls != '') {
$ins2 = mysql_query('INSERT INTO `dungeon_obj` (`dn`,`name`,`img`,`x`,`y`,`action`,`type`,`w`,`h`,`s`,`s2`,`os1`,`os2`,`os3`,`os4`,`type2`,`top`,`left`,`date`) VALUES ' . $vls . '');
} else {
$ins2 = true;
}
if ($upd2 && $ins1 && $ins2) {
die('<script>location="main.php?rnd=' . $code . '";</script>');
} else {
$error = 'Ошибка перехода в подземелье...';
}
} else {
$error = 'Ошибка перехода в подземелье...';
}
} else {
$error = 'Ошибка перехода в подземелье...';
}
//
//header('location: main.php');
die();
} else {
//Отказался (добавляем квест, системку и пошел нах)
mysql_query('INSERT INTO `dialog_act` (
`uid`,`var`,`time`
) VALUES (
"'.$u->info['id'].'","noobqst1","'.time().'"
"' . $u->info['id'] . '","noobqst1","' . time() . '"
)');
//Начало обучения
$humor = array(
0 => array(
''
),
1 => array(
''
)
);
$humor = $humor[$u->info['sex']];
//$u->info['fnq'] = 1;
//mysql_query('UPDATE `users` SET `fnq` = "'.$u->info['fnq'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
//Отправляем сообщение в чат о новичке
//mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `uid` = "'.$u->info['id'].'" AND `delete` = 0 AND `item_id` = 4703');
//mysql_query('UPDATE `users` SET `room` = 4 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
//mysql_query('UPDATE `stats` SET `hpNow` = 1000,`mpNow` = 1000,`dn` = 0 , `dnow` = 0 , `x` = 0 , `y` = 0 , `s` = 0 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
//$u->send('','','','','','В нашем мире появился новый игрок &quot;<b>' . $u->info['login'] . '</b>&quot;! '.$humor[rand(0,count($humor)-1)].'',time(),6,0,0,0,1,0);
//echo '<div><font color=red><b>Вы отказались от обучения, второй попытки больше не будет!</b></font></div>';
}
}else{
echo '<script>
//Начало обучения
$humor = [
0 => [
'',
],
1 => [
'',
],
];
$humor = $humor[$u->info['sex']];
//$u->info['fnq'] = 1;
//mysql_query('UPDATE `users` SET `fnq` = "'.$u->info['fnq'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
//Отправляем сообщение в чат о новичке
//mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `uid` = "'.$u->info['id'].'" AND `delete` = 0 AND `item_id` = 4703');
//mysql_query('UPDATE `users` SET `room` = 4 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
//mysql_query('UPDATE `stats` SET `hpNow` = 1000,`mpNow` = 1000,`dn` = 0 , `dnow` = 0 , `x` = 0 , `y` = 0 , `s` = 0 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
//$u->send('','','','','','В нашем мире появился новый игрок &quot;<b>' . $u->info['login'] . '</b>&quot;! '.$humor[rand(0,count($humor)-1)].'',time(),6,0,0,0,1,0);
//echo '<div><font color=red><b>Вы отказались от обучения, второй попытки больше не будет!</b></font></div>';
}
} else {
echo '<script>
function qstnoobsstart() {
top.win.add(\'qstnoobsstart\',\'Вы хотите пройти обучение?\',\'\',{\'a1\':\'top.frames[\\\'main\\\'].location.href=\\\'main.php?noobgo=1\\\';\',\'a2\':\'top.frames[\\\'main\\\'].location.href=\\\'main.php?noobgo=2\\\';\',\'n\':\'<center><small>Отказавшись вы не получите награду!</small></center>\'},2,1,\'width:300px;\');
}
qstnoobsstart();
</script>';
}
}
?>
<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.'; } ?>
</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 width="510" border="0" cellpadding="0" cellspacing="0">
<tr align="right" valign="top">
<td>
<?php if($re!=''){ echo '<font color="red"><b>'.$re.'</b></font>'; } ?>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div style="position:relative; cursor: pointer; width: 500px;" id="ione"><img src="//img.new-combats.tech/i/images/300x225/club/navig2.jpg" id="img_ione" width="500" height="240" border="1"/>
<div style="position:absolute; left:264px; top:106px; width:175px; height:37px; z-index:90;"><img src="//img.new-combats.tech/i/images/subimages/map_zal2.gif" width="175" height="37" id="mo_1.180.0.0" /></div>
<div style="position:absolute; left:47px; top:120px; width:135px; height:29px; z-index:90;"><img <?php thisInfRm('1.180.0.1'); ?> src="//img.new-combats.tech/i/images/subimages/map_zal3.gif" width="135" height="29" class="aFilter" id="mo_1.180.0.1" /></div>
<div style="position:absolute; left:81px; top:102px; width:88px; height:15px; z-index:90;"><img src="//img.new-combats.tech/i/images/subimages/map_zal1.gif" width="88" height="15" title="Вход через Комнату Перехода" id="mo_1.180.0.2" class="aFilter" onclick="alert('Вход через Комнату Перехода')" /></div>
<div style="position:absolute; left:349px; top:139px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/subimages/fl1.gif" width="16" height="18" title="Вы находитесь в Комнате для Новичков" /></div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
Чтобы начать играть,<b>Вам нужно прочесть подсказку ( ниже )</b>.<br />
После прочтения,ниже,воспользуйтесь кнопкой<b>"Возврат"</b><br />
<?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); ?>
<INPUT class="btn" onclick="window.open('/forum/?read=845&rnd=1', 'help', 'height=500,width=1200,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка для новичков" style="color:red;" type="button">
<br />
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
}
}
?>
<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.';
} ?>
</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 width="510" border="0" cellpadding="0" cellspacing="0">
<tr align="right" valign="top">
<td>
<?php if ($re != '') {
echo '<font color="red"><b>' . $re . '</b></font>';
} ?>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div style="position:relative; cursor: pointer; width: 500px;" id="ione"><img src="//img.new-combats.tech/i/images/300x225/club/navig2.jpg" id="img_ione"
width="500" height="240" border="1"/>
<div style="position:absolute; left:264px; top:106px; width:175px; height:37px; z-index:90;"><img
src="//img.new-combats.tech/i/images/subimages/map_zal2.gif" width="175" height="37" id="mo_1.180.0.0"/></div>
<div style="position:absolute; left:47px; top:120px; width:135px; height:29px; z-index:90;"><img <?php thisInfRm('1.180.0.1'); ?>
src="//img.new-combats.tech/i/images/subimages/map_zal3.gif" width="135" height="29" class="aFilter" id="mo_1.180.0.1"/></div>
<div style="position:absolute; left:81px; top:102px; width:88px; height:15px; z-index:90;"><img
src="//img.new-combats.tech/i/images/subimages/map_zal1.gif" width="88" height="15" title="Вход через Комнату Перехода" id="mo_1.180.0.2"
class="aFilter" onclick="alert('Вход через Комнату Перехода')"/></div>
<div style="position:absolute; left:349px; top:139px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/subimages/fl1.gif"
width="16" height="18"
title="Вы находитесь в Комнате для Новичков"/></div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
Чтобы начать играть,<b>Вам нужно прочесть подсказку ( ниже )</b>.<br/>
После прочтения,ниже,воспользуйтесь кнопкой<b>"Возврат"</b><br/>
<?php if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn" value="Возврат" type="button" name="combats2"><?php } ?>
<INPUT class="btn" onclick="window.open('/forum/?read=845&rnd=1', 'help', 'height=500,width=1200,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')"
value="Подсказка для новичков" style="color:red;" type="button">
<br/>
</small>
</div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
</table>
<small>
<HR>
<br />
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
}
?>
+6 -2
View File
@@ -1,4 +1,8 @@
<?php
use Core\Db;
use Model\ActionModel;
if (!defined('GAME')) {
die();
}
@@ -30,7 +34,7 @@ if ($u->info['admin'] > 0) {
}
#---пара проверок ;)
if (isset($objaga['id'])) {
$sleep = $u->testAction('`vars` = "sleep" AND `uid` = "' . $u->info['id'] . '" LIMIT 1', 1);
$sleep = ActionModel::get(["uid = {$u->info['id']}", 'vars = sleep']);
if ($sleep[0] > 0) {
if ($u->info['room'] != 217 && $u->info['room'] != 218 && $u->info['room'] != 219) {
mysql_query('UPDATE `users` SET `room` = 217 WHERE `id` = "' . $u->info['id'] . '" LIMIT 1');
@@ -797,7 +801,7 @@ if ($u->info['admin'] > 0) {
if ($p_count > 9) {
echo '<b><font color=red>Вы не можете создавать более десяти персонажей</font></b><br>';
} else {
\Core\Db::sql("insert into users_twink
Db::sql("insert into users_twink
(uid, twink, login, level, exp, upLevel, stats, time, ability, skills, sskills, nskills, priems, obraz, stopexp)
values (?,?,?,4,2500,22,'s1=3|s2=3|s3=3|s4=7|rinv=40|m9=5|m6=10',unix_timestamp(),34,5,4,5,
'0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0','0.gif',0)", [$u->info['id'], $p_count, $u->info['login']]);
+6 -7
View File
@@ -1,6 +1,7 @@
<?php
use Helper\Conversion;
use Model\ActionModel;
if (!defined('GAME')) {
die();
@@ -9,13 +10,11 @@ if (!defined('GAME')) {
if ($u->room['file'] == 'penter') {
$dun = 1; //для новичков 2-7 лвл
$er = '';
$dzs = '';
$g111 = 1;
$g11 = $u->testAction('`uid` = "' . $u->info['id'] . '" AND `vars` = "psh1" AND `time`>' . (time() - 7200) . ' LIMIT 1', 1);
$dungeonTimeout = ActionModel::getOne(["uid = {$u->info['id']}", 'vars = psh1', 'time > unix_timestamp() - 7200'], 'time');
$moder = mysql_fetch_array(mysql_query('SELECT * FROM `moder` WHERE `align` = "' . $u->info['align'] . '" LIMIT 1'));
@@ -28,10 +27,10 @@ if ($u->room['file'] == 'penter') {
}
}
if (isset($g11['id'])) {
if ($dungeonTimeout) {
$g111 = 0;
if (isset($_GET['start'])) {
$re = 'Поход в пещеры запрещен. Осталось еще: ' . Conversion::secondsToTimeout(7200 - time() + $g11['time']);
$re = 'Поход в пещеры запрещен. Осталось еще: ' . Conversion::secondsToTimeout(7200 - time() + $dungeonTimeout);
}
}
if (isset($_GET['start']) && $zv['uid'] == $u->info['id'] && $g111 == 1) {
@@ -379,7 +378,7 @@ if ($u->room['file'] == 'penter') {
<?php
} else {
echo 'Поход в пещеры разрешен один раз в два часа. Осталось еще: ' . Conversion::secondsToTimeout(
7200 - time() + $g11['time']
7200 - time() + $dungeonTimeout
) . '<br><small style="color:grey">Но Вы всегда можете приобрести ключ от прохода у любого &quot;копателя пещер&quot; в Торговом зале ;)</small>';
}
}
+66 -51
View File
@@ -1,60 +1,75 @@
<?php
if(!defined('GAME'))
{
die();
if (!defined('GAME')) {
die();
}
if($u->room['file']=='perehod')
{
?>
<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.'; } ?>
</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>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/300x225/club/navig2.jpg" id="img_ione" width="500" height="240" border="1"/>
<div style="position:absolute; left:264px; top:106px; width:175px; height:37px; z-index:90;"><img <?php thisInfRm('1.180.0.0'); ?> src="//img.new-combats.tech/i/images/subimages/map_zal2.gif" id="mo_1.180.0.0" width="175" height="37" /></div>
<div style="position:absolute; left:47px; top:120px; width:135px; height:29px; z-index:90;"><img src="//img.new-combats.tech/i/images/subimages/map_zal3.gif" width="135" height="29" class="aFilter" id="mo_1.180.0.1" /></div>
<div style="position:absolute; left:81px; top:102px; width:88px; height:15px; z-index:90;"><img <?php thisInfRm('1.180.0.2'); ?> src="//img.new-combats.tech/i/images/subimages/map_zal1.gif" width="88" height="15" class="aFilter" id="mo_1.180.0.2" /></div>
<div style="position:absolute; left:167px; top:107px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/subimages/fl1.gif" width="16" height="18" title="Вы находитесь в Комнате перехода" /></div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
Чтобы начать играть,<b>Вам нужно прочесть подсказку ( ниже )</b>.<br />
После прочтения,ниже,воспользуйтесь кнопкой<b>"Возврат"</b><br />
<?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); ?>
<INPUT class="btn" onclick="window.open('/forum/?read=845&rnd=1', 'help', 'height=500,width=1200,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка для новичков" style="color:red;" type="button">
<br />
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
if ($u->room['file'] == 'perehod') {
?>
<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.';
} ?>
</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>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/300x225/club/navig2.jpg" id="img_ione"
width="500" height="240" border="1"/>
<div style="position:absolute; left:264px; top:106px; width:175px; height:37px; z-index:90;"><img <?php thisInfRm('1.180.0.0'); ?>
src="//img.new-combats.tech/i/images/subimages/map_zal2.gif" id="mo_1.180.0.0" width="175" height="37"/></div>
<div style="position:absolute; left:47px; top:120px; width:135px; height:29px; z-index:90;"><img
src="//img.new-combats.tech/i/images/subimages/map_zal3.gif" width="135" height="29" class="aFilter" id="mo_1.180.0.1"/></div>
<div style="position:absolute; left:81px; top:102px; width:88px; height:15px; z-index:90;"><img <?php thisInfRm('1.180.0.2'); ?>
src="//img.new-combats.tech/i/images/subimages/map_zal1.gif" width="88" height="15" class="aFilter" id="mo_1.180.0.2"/></div>
<div style="position:absolute; left:167px; top:107px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/subimages/fl1.gif"
width="16" height="18"
title="Вы находитесь в Комнате перехода"/></div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
Чтобы начать играть,<b>Вам нужно прочесть подсказку ( ниже )</b>.<br/>
После прочтения,ниже,воспользуйтесь кнопкой<b>"Возврат"</b><br/>
<?php if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn" value="Возврат" type="button" name="combats2"><?php } ?>
<INPUT class="btn" onclick="window.open('/forum/?read=845&rnd=1', 'help', 'height=500,width=1200,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')"
value="Подсказка для новичков" style="color:red;" type="button">
<br/>
</small>
</div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
</table>
<small>
<HR>
<br />
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
}
?>
+95 -71
View File
@@ -1,82 +1,106 @@
<?php
if(!defined('GAME'))
{
die();
if (!defined('GAME')) {
die();
}
if($u->room['file']=='ric_zv')
{
?>
<link rel="stylesheet" type="text/css" href="/css/loc_bk.css">
<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.'; } ?>
</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>
<?php if( $u->error != '' ) { ?>
<font color=red><b>
<?= $u->error; ?></font></b>
<?php } ?>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/loc_bk/bg.jpg" id="img_ione" width="500" height="240" border="1"/>
<img class="zv1" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 50px; top: 169px; z-index:90;">
<img class="cp" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 190px; top: 175px; z-index:90;">
<img class="dark_zv" onClick="alert('Проход через Бойцовский Клуб');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 350px; top: 169px; z-index:90;">
<img class="neut_zv" onClick="alert('Проход через Бойцовский Клуб');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 355px; top: 105px; z-index:90;">
<img class="light_zv" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 340px; top: 40px; z-index:90;">
<img class="zn" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 190px; top: 30px; z-index:90;">
<img class="trade_zv" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 43px; top: 50px; z-index:90;">
<img class="ric_zv" onClick="alert('Вы уже находитесь в этой комнате!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 25px; top: 105px; z-index:90;">
<img class="bk" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 185px; top: 110px; z-index:90;" onClick="location='main.php?loc=1.180.0.3';">
<?php
if($u->room['id']==224) {
?><div style="position:absolute; left:25px; top:105px; width:119px; height:34px; z-index:90;"><img onClick="alert('Вы уже находитесь в этой комнате!');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/loc_bk/knight_a.png" width="119" height="34" title="Вы уже находитесь в этой комнате!" class="aFilter" /></div>
<?}?>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if($u->info['level']<6)
{
echo '
if ($u->room['file'] == 'ric_zv') {
?>
<link rel="stylesheet" type="text/css" href="/css/loc_bk.css">
<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.';
} ?>
</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>
<?php if ($u->error != '') { ?>
<font color=red><b>
<?= $u->error; ?></font></b>
<?php } ?>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/loc_bk/bg.jpg" id="img_ione" width="500"
height="240" border="1"/>
<img class="zv1" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 50px; top: 169px; z-index:90;">
<img class="cp" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 190px; top: 175px; z-index:90;">
<img class="dark_zv" onClick="alert('Проход через Бойцовский Клуб');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 350px; top: 169px; z-index:90;">
<img class="neut_zv" onClick="alert('Проход через Бойцовский Клуб');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 355px; top: 105px; z-index:90;">
<img class="light_zv" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 340px; top: 40px; z-index:90;">
<img class="zn" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 190px; top: 30px; z-index:90;">
<img class="trade_zv" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 43px; top: 50px; z-index:90;">
<img class="ric_zv" onClick="alert('Вы уже находитесь в этой комнате!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 25px; top: 105px; z-index:90;">
<img class="bk" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 185px; top: 110px; z-index:90;"
onClick="location='main.php?loc=1.180.0.3';">
<?php
if ($u->room['id'] == 224) {
?>
<div style="position:absolute; left:25px; top:105px; width:119px; height:34px; z-index:90;"><img
onClick="alert('Вы уже находитесь в этой комнате!');" onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/loc_bk/knight_a.png" width="119" height="34"
title="Вы уже находитесь в этой комнате!" class="aFilter"/></div>
<?
} ?>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if ($u->info['level'] < 6) {
echo '
Вам все время кажется что за вами следят? Чудится, что случайный попутчик мечтает всадить вам топор в спину? При совершении очередной покупки в гос. магазине мучает ощущение, что вас обманули? Кажется, что симпатичная девушка напротив смотрит на вас как на пищу? Успокойтесь, это не паранойя. Это реалии Capital city. Города Тьмы.
';
}else{
echo 'Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.';
} ?>
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
} else {
echo 'Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.';
} ?>
</small>
</div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
</table>
<small>
<HR>
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/news/', 'news', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Новости" type="button" name="forum">
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn btn-inverse" value="Поединки" type="button" name="combats">
<?php $hgo = $u->testHome(); if(!isset($hgo['id'])){ ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn btn-inverse" value="Возврат" type="button" name="combats2"><?php } unset($hgo); ?>
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум" type="button" name="forum">
<br />
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/news/', 'news', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Новости"
type="button" name="forum">
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn btn-inverse" value="Поединки" type="button" name="combats">
<?php if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn btn-inverse" value="Возврат" type="button" name="combats2"><?php } ?>
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум"
type="button" name="forum">
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
}
?>
+4 -2
View File
@@ -1,6 +1,7 @@
<?php
use Core\Db;
use Model\ActionModel;
if (!defined('GAME')) {
die();
@@ -55,7 +56,7 @@ $hostel_option = [
'partition' => [1 => 'Комната', 2 => 'Хранилище', 4 => 'Сон'],
],
];
$sleep = $u->testAction('`vars` = "sleep" AND `uid` = "' . $u->info['id'] . '" LIMIT 1', 1);
$sleep = ActionModel::get(["uid = {$u->info['id']}", 'vars = sleep']);
if (isset($sleep) and $sleep[0] == 0 and (isset($_GET['ajaxHostel']) and $_GET['ajaxHostel'] == 1 or isset($_GET['ajax']) and $_GET['ajax'] == 1)) {
$hostel = mysql_fetch_array(mysql_query("SELECT * FROM `house` WHERE `owner` = '" . mysql_real_escape_string($u->info['id']) . "';"));
@@ -170,7 +171,8 @@ function changeSleep($sleep_action)
$sleep_mod = 0;
ini_set('display_errors', 'Off');
}
$sleep = $u->testAction('`vars` = "sleep" AND `uid` = "' . $u->info['id'] . '" LIMIT 1', 1);
$sleep = ActionModel::get(["uid = {$u->info['id']}", 'vars = sleep']);
}
function changePets()
+103 -69
View File
@@ -1,81 +1,115 @@
<?php
if(!defined('GAME'))
{
die();
if (!defined('GAME')) {
die();
}
if($u->room['file']=='torg')
{
?>
<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.'; } ?>
</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">
<?php if( $u->error != '' ) { ?>
<font color=red><b>
<?= $u->error; ?></font></b>
<?php } ?>
<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>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/300x225/club/navig3.jpg" id="img_ione" width="500" height="240" border="1"/>
if ($u->room['file'] == 'torg') {
?>
<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.';
} ?>
</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">
<?php if ($u->error != '') { ?>
<font color=red><b>
<?= $u->error; ?></font></b>
<?php } ?>
<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>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/300x225/club/navig3.jpg" id="img_ione"
width="500" height="240" border="1"/>
<div style="position:absolute; left:118px; top:175px; width:101px; height:37px; z-index:90;"><img <?php thisInfRm('1.180.0.222'); ?> onclick="location='main.php?loc=1.180.0.222';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec3.gif" width="101" height="37" class="aFilter" /></div>
<div style="position:absolute; left:251px; top:181px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif" width="16" height="18" title="Вы находитесь в '<?= $u->room['name']; ?>'" /></div>
<div style="position:absolute; left:281px; top:173px; width:122px; height:31px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec5.gif" width="122" height="31" class="aFilter" /></div>
<div style="position:absolute; left:23px; top:116px; width:120px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.220'); ?> onclick="location='main.php?loc=1.180.0.220';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_2stair.gif" width="120" height="35" class="aFilter" /></div>
<div style="position:absolute; left:36px; top:41px; width:63px; height:40px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec2.gif" width="63" height="40" class="aFilter" /></div>
<div style="position:absolute; left:24px; top:180px; width:91px; height:43px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec1.gif" width="91" height="43" class="aFilter" /></div>
<div style="position:absolute; left:122px; top:52px; width:123px; height:39px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec7.gif" width="123" height="39" class="aFilter" /></div>
<div style="position:absolute; left:305px; top:51px; width:123px; height:30px; z-index:90;"><img onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec6.gif" width="123" height="30" class="aFilter" /></div>
<div style="position:absolute; left:391px; top:120px; width:89px; height:32px; z-index:90;"><img <?php thisInfRm('1.180.0.223'); ?> onclick="location='main.php?loc=1.180.0.223';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_sec4.gif" width="89" height="32" class="aFilter" /></div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if($u->info['level']<6)
{
echo '
<div style="position:absolute; left:118px; top:175px; width:101px; height:37px; z-index:90;"><img <?php thisInfRm('1.180.0.222'); ?>
onclick="location='main.php?loc=1.180.0.222';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec3.gif" width="101" height="37" class="aFilter"/></div>
<div style="position:absolute; left:251px; top:181px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif"
width="16" height="18"
title="Вы находитесь в '<?= $u->room['name']; ?>'"/>
</div>
<div style="position:absolute; left:281px; top:173px; width:122px; height:31px; z-index:90;"><img onmouseover="this.className='aFilterhover';"
onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec5.gif"
width="122" height="31" class="aFilter"/></div>
<div style="position:absolute; left:23px; top:116px; width:120px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.220'); ?>
onclick="location='main.php?loc=1.180.0.220';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_2stair.gif" width="120" height="35" class="aFilter"/></div>
<div style="position:absolute; left:36px; top:41px; width:63px; height:40px; z-index:90;"><img onmouseover="this.className='aFilterhover';"
onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec2.gif"
width="63" height="40" class="aFilter"/></div>
<div style="position:absolute; left:24px; top:180px; width:91px; height:43px; z-index:90;"><img onmouseover="this.className='aFilterhover';"
onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec1.gif"
width="91" height="43" class="aFilter"/></div>
<div style="position:absolute; left:122px; top:52px; width:123px; height:39px; z-index:90;"><img onmouseover="this.className='aFilterhover';"
onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec7.gif"
width="123" height="39" class="aFilter"/></div>
<div style="position:absolute; left:305px; top:51px; width:123px; height:30px; z-index:90;"><img onmouseover="this.className='aFilterhover';"
onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec6.gif"
width="123" height="30" class="aFilter"/></div>
<div style="position:absolute; left:391px; top:120px; width:89px; height:32px; z-index:90;"><img <?php thisInfRm('1.180.0.223'); ?>
onclick="location='main.php?loc=1.180.0.223';" onmouseover="this.className='aFilterhover';" onmouseout="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_sec4.gif" width="89" height="32" class="aFilter"/></div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if ($u->info['level'] < 6) {
echo '
Вам все время кажется что за вами следят? Чудится, что случайный попутчик мечтает всадить вам топор в спину? При совершении очередной покупки в гос. магазине мучает ощущение, что вас обманули? Кажется, что симпатичная девушка напротив смотрит на вас как на пищу? Успокойтесь, это не паранойя. Это реалии Capital city. Города Тьмы.
';
}else{
echo 'Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.';
} ?>
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
} else {
echo 'Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.';
} ?>
</small>
</div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
</table>
<small>
<HR>
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/news/', 'news', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Новости" type="button" name="forum">
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn btn-inverse" value="Поединки" type="button" name="combats">
<?php $hgo = $u->testHome(); if(!isset($hgo['id'])){ ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn btn-inverse" value="Возврат" type="button" name="combats2"><?php } unset($hgo); ?>
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум" type="button" name="forum">
<br />
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/news/', 'news', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Новости"
type="button" name="forum">
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn btn-inverse" value="Поединки" type="button" name="combats">
<?php if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn btn-inverse" value="Возврат" type="button" name="combats2"><?php } ?>
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум"
type="button" name="forum">
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
}
?>
+95 -71
View File
@@ -1,82 +1,106 @@
<?php
if(!defined('GAME'))
{
die();
if (!defined('GAME')) {
die();
}
if($u->room['file']=='trade_zv')
{
?>
<link rel="stylesheet" type="text/css" href="/css/loc_bk.css">
<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.'; } ?>
</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>
<?php if( $u->error != '' ) { ?>
<font color=red><b>
<?= $u->error; ?></font></b>
<?php } ?>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/loc_bk/bg.jpg" id="img_ione" width="500" height="240" border="1"/>
<img class="zv1" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 50px; top: 169px; z-index:90;">
<img class="cp" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 190px; top: 175px; z-index:90;">
<img class="dark_zv" onClick="alert('Проход через Бойцовский Клуб');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 350px; top: 169px; z-index:90;">
<img class="neut_zv" onClick="alert('Проход через Бойцовский Клуб');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 355px; top: 105px; z-index:90;">
<img class="light_zv" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 340px; top: 40px; z-index:90;">
<img class="zn" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 190px; top: 30px; z-index:90;">
<img class="trade_zv" onClick="alert('Вы уже находитесь в этой комнате!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 43px; top: 50px; z-index:90;">
<img class="ric_zv" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 25px; top: 105px; z-index:90;">
<img class="bk" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 185px; top: 110px; z-index:90;" onClick="location='main.php?loc=1.180.0.3';">
<?php
if($u->room['id']==221) {
?><div style="position:absolute; left:43px; top:50px; width:119px; height:34px; z-index:90;"><img onClick="alert('Вы уже находитесь в этой комнате!');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/loc_bk/trade_a.png" width="119" height="34" title="Вы уже находитесь в этой комнате!" class="aFilter" /></div>
<?}?>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if($u->info['level']<6)
{
echo '
if ($u->room['file'] == 'trade_zv') {
?>
<link rel="stylesheet" type="text/css" href="/css/loc_bk.css">
<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.';
} ?>
</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>
<?php if ($u->error != '') { ?>
<font color=red><b>
<?= $u->error; ?></font></b>
<?php } ?>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/loc_bk/bg.jpg" id="img_ione" width="500"
height="240" border="1"/>
<img class="zv1" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 50px; top: 169px; z-index:90;">
<img class="cp" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 190px; top: 175px; z-index:90;">
<img class="dark_zv" onClick="alert('Проход через Бойцовский Клуб');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 350px; top: 169px; z-index:90;">
<img class="neut_zv" onClick="alert('Проход через Бойцовский Клуб');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 355px; top: 105px; z-index:90;">
<img class="light_zv" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 340px; top: 40px; z-index:90;">
<img class="zn" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 190px; top: 30px; z-index:90;">
<img class="trade_zv" onClick="alert('Вы уже находитесь в этой комнате!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 43px; top: 50px; z-index:90;">
<img class="ric_zv" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 25px; top: 105px; z-index:90;">
<img class="bk" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 185px; top: 110px; z-index:90;"
onClick="location='main.php?loc=1.180.0.3';">
<?php
if ($u->room['id'] == 221) {
?>
<div style="position:absolute; left:43px; top:50px; width:119px; height:34px; z-index:90;"><img
onClick="alert('Вы уже находитесь в этой комнате!');" onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/loc_bk/trade_a.png" width="119" height="34"
title="Вы уже находитесь в этой комнате!" class="aFilter"/></div>
<?
} ?>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if ($u->info['level'] < 6) {
echo '
Вам все время кажется что за вами следят? Чудится, что случайный попутчик мечтает всадить вам топор в спину? При совершении очередной покупки в гос. магазине мучает ощущение, что вас обманули? Кажется, что симпатичная девушка напротив смотрит на вас как на пищу? Успокойтесь, это не паранойя. Это реалии Capital city. Города Тьмы.
';
}else{
echo 'Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.';
} ?>
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
} else {
echo 'Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.';
} ?>
</small>
</div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
</table>
<small>
<HR>
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/news/', 'news', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Новости" type="button" name="forum">
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn btn-inverse" value="Поединки" type="button" name="combats">
<?php $hgo = $u->testHome(); if(!isset($hgo['id'])){ ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn btn-inverse" value="Возврат" type="button" name="combats2"><?php } unset($hgo); ?>
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум" type="button" name="forum">
<br />
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/news/', 'news', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Новости"
type="button" name="forum">
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn btn-inverse" value="Поединки" type="button" name="combats">
<?php if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn btn-inverse" value="Возврат" type="button" name="combats2"><?php } ?>
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум"
type="button" name="forum">
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
}
?>
+88 -65
View File
@@ -1,76 +1,99 @@
<?php
if(!defined('GAME'))
{
die();
if (!defined('GAME')) {
die();
}
if($u->room['file']=='zalu')
{
?>
<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.'; } ?>
</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>
<div style="position:relative; cursor: pointer;" id="ione">
<img src="//img.new-combats.tech/i/images/300x225/club/navig1.jpg" alt="" name="img_ione" width="500" height="240" border="1" id="img_ione"/>
<div style="position:absolute; left:337px; top:117px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif" width="16" height="18" title="Вы находитесь в '<?= $u->room['name']; ?>'" /></div>
<div style="position:absolute; left:354px; top:115px; width:120px; height:35px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/map_halls.gif" width="120" height="35" /></div>
<div style="position: absolute; left: 53px; top: 47px; width: 122px; height: 31px; z-index: 90;"><img <?php thisInfRm('1.180.0.16'); ?> onClick="location='main.php?loc=1.180.0.16';" src="//img.new-combats.tech/i/images/300x225/map_klub5-1.gif" width="123" height="30" class="aFilter" /></div>
<div style="position: absolute; left: 202px; top: 167px; width: 122px; height: 31px; z-index: 90;"><img <?php thisInfRm('1.180.0.376'); ?> onClick="location='main.php?loc=1.180.0.376';" src="//img.new-combats.tech/i/images/300x225/map_zalu2.gif" width="122" height="31" class="aFilter" /></div>
<div style="position: absolute; left: 264px; top: 44px; width: 122px; height: 31px; z-index: 90;"><img <?php thisInfRm('1.180.0.375'); ?> onClick="location='main.php?loc=1.180.0.375';" src="//img.new-combats.tech/i/images/300x225/map_zalu1.gif" width="122" height="31" class="aFilter" /></div>
<div style="position:absolute; left:78px; top:24px; width:76px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/map_zalu6.gif" onclick="alert('Проход через зал паладинов');" width="76" height="18" class="aFilter" /></div>
<div style="position:absolute; left:17px; top:122px; width:79px; height:32px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/map_zalu3.gif" width="78" height="33" onclick="alert('Проход через зал паладинов');" /></div>
<div style="position:absolute; left:393px; top:170px; width:100px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.3'); ?> onClick="location='main.php?loc=1.180.0.3';" src="//img.new-combats.tech/i/images/300x225/map_zalu7.gif" width="100" height="35" class="aFilter" /></div>
<?= $goline; ?>
<div id="snow"></div>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if($u->info['level']<6)
{
echo '
if ($u->room['file'] == 'zalu') {
?>
<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.';
} ?>
</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>
<div style="position:relative; cursor: pointer;" id="ione">
<img src="//img.new-combats.tech/i/images/300x225/club/navig1.jpg" alt="" name="img_ione" width="500" height="240" border="1" id="img_ione"/>
<div style="position:absolute; left:337px; top:117px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif"
width="16" height="18"
title="Вы находитесь в '<?= $u->room['name']; ?>'"/>
</div>
<div style="position:absolute; left:354px; top:115px; width:120px; height:35px; z-index:90;"><img
src="//img.new-combats.tech/i/images/300x225/map_halls.gif" width="120" height="35"/></div>
<div style="position: absolute; left: 53px; top: 47px; width: 122px; height: 31px; z-index: 90;"><img <?php thisInfRm('1.180.0.16'); ?>
onClick="location='main.php?loc=1.180.0.16';" src="//img.new-combats.tech/i/images/300x225/map_klub5-1.gif" width="123" height="30"
class="aFilter"/></div>
<div style="position: absolute; left: 202px; top: 167px; width: 122px; height: 31px; z-index: 90;"><img <?php thisInfRm('1.180.0.376'); ?>
onClick="location='main.php?loc=1.180.0.376';" src="//img.new-combats.tech/i/images/300x225/map_zalu2.gif" width="122" height="31"
class="aFilter"/></div>
<div style="position: absolute; left: 264px; top: 44px; width: 122px; height: 31px; z-index: 90;"><img <?php thisInfRm('1.180.0.375'); ?>
onClick="location='main.php?loc=1.180.0.375';" src="//img.new-combats.tech/i/images/300x225/map_zalu1.gif" width="122" height="31"
class="aFilter"/></div>
<div style="position:absolute; left:78px; top:24px; width:76px; height:18px; z-index:90;"><img
src="//img.new-combats.tech/i/images/300x225/map_zalu6.gif" onclick="alert('Проход через зал паладинов');" width="76" height="18"
class="aFilter"/></div>
<div style="position:absolute; left:17px; top:122px; width:79px; height:32px; z-index:90;"><img
src="//img.new-combats.tech/i/images/300x225/map_zalu3.gif" width="78" height="33" onclick="alert('Проход через зал паладинов');"/></div>
<div style="position:absolute; left:393px; top:170px; width:100px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.3'); ?>
onClick="location='main.php?loc=1.180.0.3';" src="//img.new-combats.tech/i/images/300x225/map_zalu7.gif" width="100" height="35"
class="aFilter"/></div>
<?= $goline; ?>
<div id="snow"></div>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if ($u->info['level'] < 6) {
echo '
Вам все время кажется что за вами следят? Чудится, что случайный попутчик мечтает всадить вам топор в спину? При совершении очередной покупки в гос. магазине мучает ощущение, что вас обманули? Кажется, что симпатичная девушка напротив смотрит на вас как на пищу? Успокойтесь, это не паранойя. Это реалии Capital city. Города Тьмы.
';
}else{
echo 'Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.';
} ?>
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
} else {
echo 'Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.';
} ?>
</small>
</div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
</table>
<small>
<HR>
<?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); ?>
<INPUT onclick="location.href='main.php?clubmap=<?= $code; ?>';" class="btn" value="Карта клуба" type="button" name="combats2">
<INPUT id="forum" class="btn" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум" type="button" name="forum">
<INPUT class="btn" onclick="window.open('/encicl/help/top1.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка" type="button">
<INPUT class="btn" value="Объекты" type="button">
<br />
<?php if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn" value="Возврат" type="button" name="combats2"><?php } ?>
<INPUT onclick="location.href='main.php?clubmap=<?= $code; ?>';" class="btn" value="Карта клуба" type="button" name="combats2">
<INPUT id="forum" class="btn" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум"
type="button" name="forum">
<INPUT class="btn" onclick="window.open('/encicl/help/top1.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка" type="button">
<INPUT class="btn" value="Объекты" type="button">
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
}
?>
+4 -4
View File
@@ -82,10 +82,10 @@ if (!empty($re)) {
</table>
<small>
<HR>
<?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); ?>
<?php
if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn" value="Возврат" type="button"
name="combats2"><?php }
?>
<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">
<INPUT onclick="location.href='main.php?clubmap=<?= $code; ?>';" class="btn" value="Карта клуба" type="button" name="combats2">
+74 -55
View File
@@ -1,64 +1,83 @@
<?php
if(!defined('GAME'))
{
die();
if (!defined('GAME')) {
die();
}
if($u->room['file']=='zalu_pal2')
{
?>
<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.'; } ?>
</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>
<div style="position:relative; cursor: pointer;" id="ione">
<img src="//img.new-combats.tech/i/images/300x225/club/navig1.jpg" alt="" name="img_ione" width="500" height="240" border="1" id="img_ione"/>
<div style="position:absolute; left:354px; top:115px; width:120px; height:35px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/map_halls.gif" width="120" height="35" class="aFilter" /></div>
<div style="position:absolute; left:52px; top:47px; width:123px; height:32px; z-index:90;"><img <?php thisInfRm('1.180.0.16'); ?> onClick="location='main.php?loc=1.180.0.16';" src="//img.new-combats.tech/i/images/300x225/map_demon3.gif" width="123" height="32" class="aFilter" /></div>
<div style="position:absolute; left:49px; top:141px; width:16px; height:18px; z-index:91;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif" width="16" height="18" title="Вы находитесь в '<?= $u->room['name']; ?>'" /></div>
<div style="position:absolute; left:78px; top:24px; width:76px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/map_zalu6.gif" width="76" height="18" class="aFilter" /></div>
<div style="position:absolute; left:17px; top:122px; width:79px; height:32px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/map_demon4.gif" width="78" height="33" class="aFilter" /></div>
<div style="position:absolute; left:393px; top:170px; width:100px; height:35px; z-index:90;"><img onClick="alert('Проход через залы');" src="//img.new-combats.tech/i/images/300x225/map_zalu7.gif" width="100" height="35" class="aFilter" /></div>
<?= $goline; ?>
<div id="snow"></div>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
if ($u->room['file'] == 'zalu_pal2') {
?>
<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.';
} ?>
</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>
<div style="position:relative; cursor: pointer;" id="ione">
<img src="//img.new-combats.tech/i/images/300x225/club/navig1.jpg" alt="" name="img_ione" width="500" height="240" border="1" id="img_ione"/>
<div style="position:absolute; left:354px; top:115px; width:120px; height:35px; z-index:90;"><img
src="//img.new-combats.tech/i/images/300x225/map_halls.gif" width="120" height="35" class="aFilter"/></div>
<div style="position:absolute; left:52px; top:47px; width:123px; height:32px; z-index:90;"><img <?php thisInfRm('1.180.0.16'); ?>
onClick="location='main.php?loc=1.180.0.16';" src="//img.new-combats.tech/i/images/300x225/map_demon3.gif" width="123" height="32"
class="aFilter"/></div>
<div style="position:absolute; left:49px; top:141px; width:16px; height:18px; z-index:91;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif"
width="16" height="18"
title="Вы находитесь в '<?= $u->room['name']; ?>'"/>
</div>
<div style="position:absolute; left:78px; top:24px; width:76px; height:18px; z-index:90;"><img
src="//img.new-combats.tech/i/images/300x225/map_zalu6.gif" width="76" height="18" class="aFilter"/></div>
<div style="position:absolute; left:17px; top:122px; width:79px; height:32px; z-index:90;"><img
src="//img.new-combats.tech/i/images/300x225/map_demon4.gif" width="78" height="33" class="aFilter"/></div>
<div style="position:absolute; left:393px; top:170px; width:100px; height:35px; z-index:90;"><img onClick="alert('Проход через залы');"
src="//img.new-combats.tech/i/images/300x225/map_zalu7.gif"
width="100" height="35" class="aFilter"/></div>
<?= $goline; ?>
<div id="snow"></div>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.
</small>
</div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
</table>
<small>
<HR>
<?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); ?>
<INPUT onclick="location.href='main.php?clubmap=<?= $code; ?>';" class="btn" value="Карта клуба" type="button" name="combats2">
<INPUT id="forum" class="btn" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум" type="button" name="forum">
<INPUT class="btn" onclick="window.open('/encicl/help/top1.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка" type="button">
<INPUT class="btn" value="Объекты" type="button">
<br />
<?php if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn" value="Возврат" type="button" name="combats2"><?php } ?>
<INPUT onclick="location.href='main.php?clubmap=<?= $code; ?>';" class="btn" value="Карта клуба" type="button" name="combats2">
<INPUT id="forum" class="btn" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум"
type="button" name="forum">
<INPUT class="btn" onclick="window.open('/encicl/help/top1.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка" type="button">
<INPUT class="btn" value="Объекты" type="button">
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
}
?>
+84 -64
View File
@@ -1,73 +1,93 @@
<?php
if(!defined('GAME'))
{
die();
if (!defined('GAME')) {
die();
}
if($u->room['file']=='zalu_pal3')
{
?>
<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.'; } ?>
</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>
<div style="position:relative; cursor: pointer;" id="ione">
<img src="//img.new-combats.tech/i/images/300x225/club/navig1.jpg" alt="" name="img_ione" width="500" height="240" border="1" id="img_ione"/>
<div style="position: absolute; left: 245px; top: 56px; width: 16px; height: 18px; z-index: 90;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif" width="16" height="18" title="Вы находитесь в '<?= $u->room['name']; ?>'" /></div>
<div style="position:absolute; left:354px; top:115px; width:120px; height:35px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/map_halls.gif" <?php thisInfRm('1.180.0.15'); ?> onClick="location='main.php?loc=1.180.0.16';" class="aFilter" width="120" height="35" /></div>
<div style="position: absolute; left: 53px; top: 47px; width: 122px; height: 31px; z-index: 90;"><img src="//img.new-combats.tech/i/images/300x225/map_klub5-1.gif" width="123" height="30" /></div>
<div style="position: absolute; left: 202px; top: 167px; width: 122px; height: 31px; z-index: 90;"><img src="//img.new-combats.tech/i/images/300x225/map_zalu2.gif" width="122" height="31" /></div>
<div style="position: absolute; left: 264px; top: 44px; width: 122px; height: 31px; z-index: 90;"><img src="//img.new-combats.tech/i/images/300x225/map_zalu1.gif" width="122" height="31" /></div>
<div style="position:absolute; left:78px; top:24px; width:76px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/map_zalu6.gif" onclick="alert('Проход через зал паладинов');" width="76" height="18" class="aFilter" /></div>
<div style="position:absolute; left:17px; top:122px; width:79px; height:32px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/map_zalu3.gif" width="78" height="33" onclick="alert('Проход через зал паладинов');" /></div>
<div style="position:absolute; left:393px; top:170px; width:100px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.3'); ?> onClick="location='main.php?loc=1.180.0.3';" src="//img.new-combats.tech/i/images/300x225/map_zalu7.gif" width="100" height="35" class="aFilter" /></div>
<?= $goline; ?>
<div id="snow"></div>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
if ($u->room['file'] == 'zalu_pal3') {
?>
<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.';
} ?>
</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>
<div style="position:relative; cursor: pointer;" id="ione">
<img src="//img.new-combats.tech/i/images/300x225/club/navig1.jpg" alt="" name="img_ione" width="500" height="240" border="1" id="img_ione"/>
<div style="position: absolute; left: 245px; top: 56px; width: 16px; height: 18px; z-index: 90;"><img
src="//img.new-combats.tech/i/images/300x225/fl1.gif" width="16" height="18" title="Вы находитесь в '<?= $u->room['name']; ?>'"/></div>
<div style="position:absolute; left:354px; top:115px; width:120px; height:35px; z-index:90;"><img
src="//img.new-combats.tech/i/images/300x225/map_halls.gif" <?php thisInfRm('1.180.0.15'); ?> onClick="location='main.php?loc=1.180.0.16';"
class="aFilter" width="120" height="35"/></div>
<div style="position: absolute; left: 53px; top: 47px; width: 122px; height: 31px; z-index: 90;"><img
src="//img.new-combats.tech/i/images/300x225/map_klub5-1.gif" width="123" height="30"/></div>
<div style="position: absolute; left: 202px; top: 167px; width: 122px; height: 31px; z-index: 90;"><img
src="//img.new-combats.tech/i/images/300x225/map_zalu2.gif" width="122" height="31"/></div>
<div style="position: absolute; left: 264px; top: 44px; width: 122px; height: 31px; z-index: 90;"><img
src="//img.new-combats.tech/i/images/300x225/map_zalu1.gif" width="122" height="31"/></div>
<div style="position:absolute; left:78px; top:24px; width:76px; height:18px; z-index:90;"><img
src="//img.new-combats.tech/i/images/300x225/map_zalu6.gif" onclick="alert('Проход через зал паладинов');" width="76" height="18"
class="aFilter"/></div>
<div style="position:absolute; left:17px; top:122px; width:79px; height:32px; z-index:90;"><img
src="//img.new-combats.tech/i/images/300x225/map_zalu3.gif" width="78" height="33" onclick="alert('Проход через зал паладинов');"/></div>
<div style="position:absolute; left:393px; top:170px; width:100px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.3'); ?>
onClick="location='main.php?loc=1.180.0.3';" src="//img.new-combats.tech/i/images/300x225/map_zalu7.gif" width="100" height="35"
class="aFilter"/></div>
<?= $goline; ?>
<div id="snow"></div>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.
</small>
</div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
</table>
<small>
<HR>
<?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); ?>
<INPUT onclick="location.href='main.php?clubmap=<?= $code; ?>';" class="btn" value="Карта клуба" type="button" name="combats2">
<INPUT id="forum" class="btn" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум" type="button" name="forum">
<INPUT class="btn" onclick="window.open('/encicl/help/top1.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка" type="button">
<INPUT class="btn" value="Объекты" type="button">
<br />
<?php if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn" value="Возврат" type="button" name="combats2"><?php } ?>
<INPUT onclick="location.href='main.php?clubmap=<?= $code; ?>';" class="btn" value="Карта клуба" type="button" name="combats2">
<INPUT id="forum" class="btn" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум"
type="button" name="forum">
<INPUT class="btn" onclick="window.open('/encicl/help/top1.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка" type="button">
<INPUT class="btn" value="Объекты" type="button">
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top" style="padding-top:19px;">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
</table>
<?php
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top" style="padding-top:19px;">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
</table>
<?php
}
?>
+84 -64
View File
@@ -1,73 +1,93 @@
<?php
if(!defined('GAME'))
{
die();
if (!defined('GAME')) {
die();
}
if($u->room['file']=='zalu_pal4')
{
?>
<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.'; } ?>
</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>
<div style="position:relative; cursor: pointer;" id="ione">
<img src="//img.new-combats.tech/i/images/300x225/club/navig1.jpg" alt="" name="img_ione" width="500" height="240" border="1" id="img_ione"/>
<div style="position: absolute; left: 240px; top: 146px; width: 16px; height: 18px; z-index: 90;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif" width="16" height="18" title="Вы находитесь в '<?= $u->room['name']; ?>'" /></div>
<div style="position:absolute; left:354px; top:115px; width:120px; height:35px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/map_halls.gif" <?php thisInfRm('1.180.0.15'); ?> onClick="location='main.php?loc=1.180.0.16';" class="aFilter" width="120" height="35" /></div>
<div style="position: absolute; left: 53px; top: 47px; width: 122px; height: 31px; z-index: 90;"><img src="//img.new-combats.tech/i/images/300x225/map_klub5-1.gif" width="123" height="30" /></div>
<div style="position: absolute; left: 202px; top: 167px; width: 122px; height: 31px; z-index: 90;"><img src="//img.new-combats.tech/i/images/300x225/map_zalu2.gif" width="122" height="31" /></div>
<div style="position: absolute; left: 264px; top: 44px; width: 122px; height: 31px; z-index: 90;"><img src="//img.new-combats.tech/i/images/300x225/map_zalu1.gif" width="122" height="31" /></div>
<div style="position:absolute; left:78px; top:24px; width:76px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/map_zalu6.gif" onclick="alert('Проход через зал паладинов');" width="76" height="18" class="aFilter" /></div>
<div style="position:absolute; left:17px; top:122px; width:79px; height:32px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/map_zalu3.gif" width="78" height="33" onclick="alert('Проход через зал паладинов');" /></div>
<div style="position:absolute; left:393px; top:170px; width:100px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.3'); ?> onClick="location='main.php?loc=1.180.0.3';" src="//img.new-combats.tech/i/images/300x225/map_zalu7.gif" width="100" height="35" class="aFilter" /></div>
<?= $goline; ?>
<div id="snow"></div>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
if ($u->room['file'] == 'zalu_pal4') {
?>
<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.';
} ?>
</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>
<div style="position:relative; cursor: pointer;" id="ione">
<img src="//img.new-combats.tech/i/images/300x225/club/navig1.jpg" alt="" name="img_ione" width="500" height="240" border="1" id="img_ione"/>
<div style="position: absolute; left: 240px; top: 146px; width: 16px; height: 18px; z-index: 90;"><img
src="//img.new-combats.tech/i/images/300x225/fl1.gif" width="16" height="18" title="Вы находитесь в '<?= $u->room['name']; ?>'"/></div>
<div style="position:absolute; left:354px; top:115px; width:120px; height:35px; z-index:90;"><img
src="//img.new-combats.tech/i/images/300x225/map_halls.gif" <?php thisInfRm('1.180.0.15'); ?> onClick="location='main.php?loc=1.180.0.16';"
class="aFilter" width="120" height="35"/></div>
<div style="position: absolute; left: 53px; top: 47px; width: 122px; height: 31px; z-index: 90;"><img
src="//img.new-combats.tech/i/images/300x225/map_klub5-1.gif" width="123" height="30"/></div>
<div style="position: absolute; left: 202px; top: 167px; width: 122px; height: 31px; z-index: 90;"><img
src="//img.new-combats.tech/i/images/300x225/map_zalu2.gif" width="122" height="31"/></div>
<div style="position: absolute; left: 264px; top: 44px; width: 122px; height: 31px; z-index: 90;"><img
src="//img.new-combats.tech/i/images/300x225/map_zalu1.gif" width="122" height="31"/></div>
<div style="position:absolute; left:78px; top:24px; width:76px; height:18px; z-index:90;"><img
src="//img.new-combats.tech/i/images/300x225/map_zalu6.gif" onclick="alert('Проход через зал паладинов');" width="76" height="18"
class="aFilter"/></div>
<div style="position:absolute; left:17px; top:122px; width:79px; height:32px; z-index:90;"><img
src="//img.new-combats.tech/i/images/300x225/map_zalu3.gif" width="78" height="33" onclick="alert('Проход через зал паладинов');"/></div>
<div style="position:absolute; left:393px; top:170px; width:100px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.3'); ?>
onClick="location='main.php?loc=1.180.0.3';" src="//img.new-combats.tech/i/images/300x225/map_zalu7.gif" width="100" height="35"
class="aFilter"/></div>
<?= $goline; ?>
<div id="snow"></div>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
Возможно, вы ошиблись этажом - настоящие сражения проходят этажом выше.
</small>
</div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
</table>
<small>
<HR>
<?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); ?>
<INPUT onclick="location.href='main.php?clubmap=<?= $code; ?>';" class="btn" value="Карта клуба" type="button" name="combats2">
<INPUT id="forum" class="btn" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум" type="button" name="forum">
<INPUT class="btn" onclick="window.open('/encicl/help/top1.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка" type="button">
<INPUT class="btn" value="Объекты" type="button">
<br />
<?php if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn" value="Возврат" type="button" name="combats2"><?php } ?>
<INPUT onclick="location.href='main.php?clubmap=<?= $code; ?>';" class="btn" value="Карта клуба" type="button" name="combats2">
<INPUT id="forum" class="btn" onclick="window.open('/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Форум"
type="button" name="forum">
<INPUT class="btn" onclick="window.open('/encicl/help/top1.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка" type="button">
<INPUT class="btn" value="Объекты" type="button">
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top" style="padding-top:19px;">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
</table>
<?php
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
<tr>
<td valign="top">&nbsp;</td>
<td valign="top" style="padding-top:19px;">&nbsp;</td>
<td valign="top">&nbsp;</td>
</tr>
</table>
<?php
}
?>
+109 -59
View File
@@ -1,70 +1,120 @@
<?php
if(!defined('GAME'))
{
die();
if (!defined('GAME')) {
die();
}
if($u->room['file']=='zv2')
{
?>
<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.'; } ?>
</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>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/300x225/club/navig.jpg" id="img_ione" width="500" height="240" border="1"/>
<div style="position:absolute; left:395px; top:142px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif" width="16" height="18" title="Вы находитесь в '<?= $u->room['name']; ?>'" /></div>
<div style="position:absolute; left:184px; top:94px; width:120px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.3'); ?> src="//img.new-combats.tech/i/images/300x225/map_bk.gif" width="120" height="35" title="" class="aFilter" /></div>
<div style="position:absolute; left:52px; top:47px; width:123px; height:30px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_klub5-1.gif" width="123" height="30" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div style="position:absolute; left:59px; top:169px; width:123px; height:31px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_klub4.gif" width="123" height="31" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div style="position:absolute; left:312px; top:168px; width:123px; height:31px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/map_zalu1.gif" width="123" height="31" title="" /></div>
<div style="position:absolute; left:312px; top:48px; width:123px; height:30px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_zalu2.gif" width="123" height="30" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div style="position:absolute; left:216px; top:41px; width:58px; height:49px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_klub2.gif" width="58" height="49" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div style="position:absolute; left:66px; top:114px; width:56px; height:13px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_klub1.gif" width="56" height="13" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div style="position:absolute; left:196px; top:148px; width:103px; height:47px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_klub7.gif" width="103" height="47" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if($u->info['level']<6)
{
echo '
if ($u->room['file'] == 'zv2') {
?>
<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.';
} ?>
</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>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/300x225/club/navig.jpg" id="img_ione"
width="500" height="240" border="1"/>
<div style="position:absolute; left:395px; top:142px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif"
width="16" height="18"
title="Вы находитесь в '<?= $u->room['name']; ?>'"/>
</div>
<div style="position:absolute; left:184px; top:94px; width:120px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.3'); ?>
src="//img.new-combats.tech/i/images/300x225/map_bk.gif" width="120" height="35" title="" class="aFilter"/></div>
<div style="position:absolute; left:52px; top:47px; width:123px; height:30px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_klub5-1.gif"
width="123" height="30"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div style="position:absolute; left:59px; top:169px; width:123px; height:31px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_klub4.gif"
width="123" height="31"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div style="position:absolute; left:312px; top:168px; width:123px; height:31px; z-index:90;"><img
src="//img.new-combats.tech/i/images/300x225/map_zalu1.gif" width="123" height="31" title=""/></div>
<div style="position:absolute; left:312px; top:48px; width:123px; height:30px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_zalu2.gif"
width="123" height="30"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div style="position:absolute; left:216px; top:41px; width:58px; height:49px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_klub2.gif"
width="58" height="49"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div style="position:absolute; left:66px; top:114px; width:56px; height:13px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_klub1.gif"
width="56" height="13"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div style="position:absolute; left:196px; top:148px; width:103px; height:47px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_klub7.gif"
width="103" height="47"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if ($u->info['level'] < 6) {
echo '
Вам все время кажется что за вами следят? Чудится, что случайный попутчик мечтает всадить вам топор в спину? При совершении очередной покупки в гос. магазине мучает ощущение, что вас обманули? Кажется, что симпатичная девушка напротив смотрит на вас как на пищу? Успокойтесь, это не паранойя. Это реалии Capital city. Города Тьмы.
';
} ?>
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
} ?>
</small>
</div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
</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">
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn" value="Поединки" type="button" name="combats">
<?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 />
<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">
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn" value="Поединки" type="button" name="combats">
<?php if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn" value="Возврат" type="button" name="combats2"><?php } ?>
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
}
?>
+111 -63
View File
@@ -1,74 +1,122 @@
<?php
if(!defined('GAME'))
{
die();
if (!defined('GAME')) {
die();
}
if($u->room['file']=='zv3')
{
?>
<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.'; } ?>
</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( $u->error != '' ) {
$re = $u->error;
}
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/i/images/300x225/club/navig.jpg" id="img_ione" width="500" height="240" border="1"/>
<div style="position: absolute; left: 337px; top: 79px; width: 16px; height: 18px; z-index: 90;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif" width="16" height="18" title="Вы находитесь в '<?= $u->room['name']; ?>'" /></div>
<div style="position:absolute; left:184px; top:94px; width:120px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.3'); ?> src="//img.new-combats.tech/i/images/300x225/map_bk.gif" width="120" height="35" title="" class="aFilter" /></div>
<div style="position:absolute; left:52px; top:47px; width:123px; height:30px; z-index:90;"><img onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_klub5-1.gif" width="123" height="30" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div style="position:absolute; left:59px; top:169px; width:123px; height:31px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_klub4.gif" width="123" height="31" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div style="position:absolute; left:312px; top:168px; width:123px; height:31px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" src="//img.new-combats.tech/i/images/300x225/map_zalu1.gif" width="123" height="31" title="" /></div>
<div style="position:absolute; left:312px; top:48px; width:123px; height:30px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_zalu2.gif" width="123" height="30" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div style="position:absolute; left:216px; top:41px; width:58px; height:49px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_klub2.gif" width="58" height="49" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div style="position:absolute; left:66px; top:114px; width:56px; height:13px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_klub1.gif" width="56" height="13" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div style="position:absolute; left:196px; top:148px; width:103px; height:47px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_klub7.gif" width="103" height="47" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if($u->info['level']<6)
{
echo '
if ($u->room['file'] == 'zv3') {
?>
<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.';
} ?>
</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 ($u->error != '') {
$re = $u->error;
}
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/i/images/300x225/club/navig.jpg" id="img_ione"
width="500" height="240" border="1"/>
<div style="position: absolute; left: 337px; top: 79px; width: 16px; height: 18px; z-index: 90;"><img
src="//img.new-combats.tech/i/images/300x225/fl1.gif" width="16" height="18" title="Вы находитесь в '<?= $u->room['name']; ?>'"/></div>
<div style="position:absolute; left:184px; top:94px; width:120px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.3'); ?>
src="//img.new-combats.tech/i/images/300x225/map_bk.gif" width="120" height="35" title="" class="aFilter"/></div>
<div style="position:absolute; left:52px; top:47px; width:123px; height:30px; z-index:90;"><img onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_klub5-1.gif"
width="123" height="30"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div style="position:absolute; left:59px; top:169px; width:123px; height:31px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_klub4.gif"
width="123" height="31"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div style="position:absolute; left:312px; top:168px; width:123px; height:31px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
src="//img.new-combats.tech/i/images/300x225/map_zalu1.gif"
width="123" height="31" title=""/></div>
<div style="position:absolute; left:312px; top:48px; width:123px; height:30px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_zalu2.gif"
width="123" height="30"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div style="position:absolute; left:216px; top:41px; width:58px; height:49px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_klub2.gif"
width="58" height="49"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div style="position:absolute; left:66px; top:114px; width:56px; height:13px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_klub1.gif"
width="56" height="13"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div style="position:absolute; left:196px; top:148px; width:103px; height:47px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_klub7.gif"
width="103" height="47"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if ($u->info['level'] < 6) {
echo '
Вам все время кажется что за вами следят? Чудится, что случайный попутчик мечтает всадить вам топор в спину? При совершении очередной покупки в гос. магазине мучает ощущение, что вас обманули? Кажется, что симпатичная девушка напротив смотрит на вас как на пищу? Успокойтесь, это не паранойя. Это реалии Capital city. Города Тьмы.
';
} ?>
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
} ?>
</small>
</div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
</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">
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn" value="Поединки" type="button" name="combats">
<?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 />
<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">
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn" value="Поединки" type="button" name="combats">
<?php if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn" value="Возврат" type="button" name="combats2"><?php } ?>
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
}
?>
+107 -58
View File
@@ -1,69 +1,118 @@
<?php
if(!defined('GAME'))
{
die();
if (!defined('GAME')) {
die();
}
if($u->room['file']=='zv4')
{
?>
<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.'; } ?>
</td>
<td width="230" valign="top" style="padding-top:19px;"><?php require_once('modules/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>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/300x225/club/navig.jpg" id="img_ione" width="500" height="240" border="1"/>
<div style="position:absolute; left:139px; top:79px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif" width="16" height="18" title="Вы находитесь в '<?= $u->room['name']; ?>'" /></div>
<div style="position:absolute; left:184px; top:94px; width:120px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.3'); ?> src="//img.new-combats.tech/i/images/300x225/map_bk.gif" width="120" height="35" title="" class="aFilter" /></div>
<div style="position:absolute; left:52px; top:47px; width:123px; height:30px; z-index:90;"><img onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_klub5-1.gif" width="123" height="30" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div style="position:absolute; left:59px; top:169px; width:123px; height:31px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_klub4.gif" width="123" height="31" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div style="position:absolute; left:312px; top:168px; width:123px; height:31px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" src="//img.new-combats.tech/i/images/300x225/map_zalu1.gif" width="123" height="31" title="" /></div>
<div style="position:absolute; left:312px; top:48px; width:123px; height:30px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_zalu2.gif" width="123" height="30" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div style="position:absolute; left:216px; top:41px; width:58px; height:49px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_klub2.gif" width="58" height="49" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div style="position:absolute; left:66px; top:114px; width:56px; height:13px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_klub1.gif" width="56" height="13" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div style="position:absolute; left:196px; top:148px; width:103px; height:47px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/300x225/map_klub7.gif" width="103" height="47" title="Проход через Бойцовский клуб" class="aFilter" /></div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if($u->info['level']<6)
{
echo '
if ($u->room['file'] == 'zv4') {
?>
<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.';
} ?>
</td>
<td width="230" valign="top" style="padding-top:19px;"><?php require_once('modules/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>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/300x225/club/navig.jpg" id="img_ione"
width="500" height="240" border="1"/>
<div style="position:absolute; left:139px; top:79px; width:16px; height:18px; z-index:90;"><img src="//img.new-combats.tech/i/images/300x225/fl1.gif"
width="16" height="18"
title="Вы находитесь в '<?= $u->room['name']; ?>'"/>
</div>
<div style="position:absolute; left:184px; top:94px; width:120px; height:35px; z-index:90;"><img <?php thisInfRm('1.180.0.3'); ?>
src="//img.new-combats.tech/i/images/300x225/map_bk.gif" width="120" height="35" title="" class="aFilter"/></div>
<div style="position:absolute; left:52px; top:47px; width:123px; height:30px; z-index:90;"><img onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_klub5-1.gif"
width="123" height="30"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div style="position:absolute; left:59px; top:169px; width:123px; height:31px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_klub4.gif"
width="123" height="31"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div style="position:absolute; left:312px; top:168px; width:123px; height:31px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
src="//img.new-combats.tech/i/images/300x225/map_zalu1.gif"
width="123" height="31" title=""/></div>
<div style="position:absolute; left:312px; top:48px; width:123px; height:30px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_zalu2.gif"
width="123" height="30"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div style="position:absolute; left:216px; top:41px; width:58px; height:49px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_klub2.gif"
width="58" height="49"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div style="position:absolute; left:66px; top:114px; width:56px; height:13px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_klub1.gif"
width="56" height="13"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div style="position:absolute; left:196px; top:148px; width:103px; height:47px; z-index:90;"><img onClick="alert('Проход через Бойцовский клуб');"
onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';"
src="//img.new-combats.tech/i/images/300x225/map_klub7.gif"
width="103" height="47"
title="Проход через Бойцовский клуб" class="aFilter"/>
</div>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if ($u->info['level'] < 6) {
echo '
Вам все время кажется что за вами следят? Чудится, что случайный попутчик мечтает всадить вам топор в спину? При совершении очередной покупки в гос. магазине мучает ощущение, что вас обманули? Кажется, что симпатичная девушка напротив смотрит на вас как на пищу? Успокойтесь, это не паранойя. Это реалии Capital city. Города Тьмы.
';
} ?>
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
} ?>
</small>
</div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
</table>
<small>
<HR>
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn" value="Поединки" type="button" name="combats">
<?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 />
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn" value="Поединки" type="button" name="combats">
<?php if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn" value="Возврат" type="button" name="combats2"><?php } ?>
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
}
?>
+94 -71
View File
@@ -1,82 +1,105 @@
<?php
if(!defined('GAME'))
{
die();
if (!defined('GAME')) {
die();
}
if($u->room['file']=='zv_svet')
{
$u->abilsRoom('test');
?>
<link rel="stylesheet" type="text/css" href="/css/loc_bk.css">
<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.'; }
echo '<br><center>'.$u->abilsRoom('look').'</center>';
?>
</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>
<?php if( $u->error != '' ) { ?>
<font color=red><b>
<?= $u->error; ?></font></b>
<?php } ?>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/loc_bk/bg.jpg" id="img_ione" width="500" height="240" border="1"/>
<img class="zv1" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 50px; top: 169px; z-index:90;">
<img class="cp" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 190px; top: 175px; z-index:90;">
<img class="dark_zv" onClick="alert('Проход через Бойцовский Клуб');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 350px; top: 169px; z-index:90;">
<img class="neut_zv" onClick="alert('Проход через Бойцовский Клуб');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 355px; top: 105px; z-index:90;">
<img class="light_zv" onClick="alert('Вы уже находитесь в этой комнате!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 340px; top: 40px; z-index:90;">
<img class="zn" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 190px; top: 30px; z-index:90;">
<img class="trade_zv" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 43px; top: 50px; z-index:90;">
<img class="ric_zv" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 25px; top: 105px; z-index:90;">
<img class="bk" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 185px; top: 110px; z-index:90;" onClick="location='main.php?loc=1.180.0.3';">
<?php
if($u->room['id']==220) {
?><div style="position:absolute; left:340px; top:40px; width:119px; height:34px; z-index:90;"><img onClick="alert('Вы уже находитесь в этой комнате!');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/loc_bk/light_a.png" width="119" height="34" title="Вы уже находитесь в этой комнате!" class="aFilter" /></div>
<?}?>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if($u->info['level']<6)
{
echo '
if ($u->room['file'] == 'zv_svet') {
$u->abilsRoom('test');
?>
<link rel="stylesheet" type="text/css" href="/css/loc_bk.css">
<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.';
}
echo '<br><center>' . $u->abilsRoom('look') . '</center>';
?>
</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>
<?php if ($u->error != '') { ?>
<font color=red><b>
<?= $u->error; ?></font></b>
<?php } ?>
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="//img.new-combats.tech/i/images/loc_bk/bg.jpg" id="img_ione" width="500"
height="240" border="1"/>
<img class="zv1" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 50px; top: 169px; z-index:90;">
<img class="cp" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 190px; top: 175px; z-index:90;">
<img class="dark_zv" onClick="alert('Проход через Бойцовский Клуб');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 350px; top: 169px; z-index:90;">
<img class="neut_zv" onClick="alert('Проход через Бойцовский Клуб');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 355px; top: 105px; z-index:90;">
<img class="light_zv" onClick="alert('Вы уже находитесь в этой комнате!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 340px; top: 40px; z-index:90;">
<img class="zn" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 190px; top: 30px; z-index:90;">
<img class="trade_zv" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 43px; top: 50px; z-index:90;">
<img class="ric_zv" onClick="alert('Проход через Бойцовский Клуб!');" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif"
style="left: 25px; top: 105px; z-index:90;">
<img class="bk" src="//img.new-combats.tech/i/images/loc_bk/1x1.gif" style="left: 185px; top: 110px; z-index:90;"
onClick="location='main.php?loc=1.180.0.3';">
<?php
if ($u->room['id'] == 220) {
?>
<div style="position:absolute; left:340px; top:40px; width:119px; height:34px; z-index:90;"><img
onClick="alert('Вы уже находитесь в этой комнате!');" onMouseOver="this.className='aFilterhover';"
onMouseOut="this.className='aFilter';" src="//img.new-combats.tech/i/images/loc_bk/light_a.png" width="119" height="34"
title="Вы уже находитесь в этой комнате!" class="aFilter"/></div>
<?
} ?>
<div id="snow"></div>
<?= $goline; ?>
</div>
</td>
</tr>
</table>
<div style="display:none; height:0px " id="moveto"></div>
<?php
if ($u->info['level'] < 6) {
echo '
Вам все время кажется что за вами следят? Чудится, что случайный попутчик мечтает всадить вам топор в спину? При совершении очередной покупки в гос. магазине мучает ощущение, что вас обманули? Кажется, что симпатичная девушка напротив смотрит на вас как на пищу? Успокойтесь, это не паранойя. Это реалии Capital city. Города Тьмы.
';
} ?>
</small></div></td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
} ?>
</small>
</div>
</td>
<td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
</td>
</tr>
</table>
<small>
</table>
<small>
<HR>
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/news/', 'news', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Новости" type="button" name="forum">
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn btn-inverse" value="Поединки" type="button" name="combats">
<?php $hgo = $u->testHome(); if(!isset($hgo['id'])){ ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn btn-inverse" value="Возврат" type="button" name="combats2"><?php } unset($hgo); ?>
<br />
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('/news/', 'news', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Новости"
type="button" name="forum">
<INPUT onclick="location.href='main.php?zayvka=<?= $code; ?>';" class="btn btn-inverse" value="Поединки" type="button" name="combats">
<?php if ($u->testHome()) { ?><INPUT onclick="location.href='main.php?homeworld=<?= $code; ?>';" class="btn btn-inverse" value="Возврат" type="button" name="combats2"><?php } ?>
<br/>
<strong>Внимание!Смените пароль на уникальный,который не использовался ранее в подобных проектах,это обезопасит вашего персонажа от взлома.<BR>
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
<em>Администрация.</strong> </em></small> <BR>
<?= $rowonmax; ?><BR>
</div></td>
</tr>
</table>
<?php
}
?>