refactor
This commit is contained in:
@@ -323,14 +323,14 @@ if ($u->room['file'] == 'dungeon') {
|
||||
$u->info['s'] = 3(назад)
|
||||
$u->info['s'] = 4(право)
|
||||
*/
|
||||
stor =<?echo $u->info['s'];?>;
|
||||
stor =<?= $u->info['s'];?>;
|
||||
bott = 0;
|
||||
if (stor == 1) {
|
||||
<?php
|
||||
$bottem = mysql_fetch_assoc(mysql_query('SELECT `id2` FROM `dungeon_bots` WHERE `dn` = "' . $u->info['dnow'] . '" AND `delete` = "0" AND `x` = "' . ($u->info['x']) . '" AND `y` = "' . ($u->info['y'] + 1) . '" LIMIT 1'));
|
||||
if (isset($bottem['id2']))
|
||||
{
|
||||
?> bott = <?echo $bottem['id2'];?>;<?php
|
||||
?> bott = <?= $bottem['id2'];?>;<?php
|
||||
}
|
||||
?>
|
||||
} else if (stor == 2) {
|
||||
@@ -338,7 +338,7 @@ if ($u->room['file'] == 'dungeon') {
|
||||
$bottem = mysql_fetch_assoc(mysql_query('SELECT `id2` FROM `dungeon_bots` WHERE `dn` = "' . $u->info['dnow'] . '" AND `delete` = "0" AND `x` = "' . ($u->info['x'] - 1) . '" AND `y` = "' . ($u->info['y']) . '" LIMIT 1'));
|
||||
if (isset($bottem['id2']))
|
||||
{
|
||||
?> bott = <?echo $bottem['id2'];?>;<?php
|
||||
?> bott = <?= $bottem['id2'];?>;<?php
|
||||
}
|
||||
?>
|
||||
} else if (stor == 3) {
|
||||
@@ -346,7 +346,7 @@ if ($u->room['file'] == 'dungeon') {
|
||||
$bottem = mysql_fetch_assoc(mysql_query('SELECT `id2` FROM `dungeon_bots` WHERE `dn` = "' . $u->info['dnow'] . '" AND `delete` = "0" AND `x` = "' . ($u->info['x']) . '" AND `y` = "' . ($u->info['y'] - 1) . '" LIMIT 1'));
|
||||
if (isset($bottem['id2']))
|
||||
{
|
||||
?> bott = <?echo $bottem['id2'];?>;<?php
|
||||
?> bott = <?= $bottem['id2'];?>;<?php
|
||||
}
|
||||
?>
|
||||
} else if (stor == 4) {
|
||||
@@ -354,7 +354,7 @@ if ($u->room['file'] == 'dungeon') {
|
||||
$bottem = mysql_fetch_assoc(mysql_query('SELECT `id2` FROM `dungeon_bots` WHERE `dn` = "' . $u->info['dnow'] . '" AND `delete` = "0" AND `x` = "' . ($u->info['x'] + 1) . '" AND `y` = "' . ($u->info['y']) . '" LIMIT 1'));
|
||||
if (isset($bottem['id2']))
|
||||
{
|
||||
?> bott = <?echo $bottem['id2'];?>;<?php
|
||||
?> bott = <?= $bottem['id2'];?>;<?php
|
||||
}
|
||||
?>
|
||||
}
|
||||
@@ -366,9 +366,9 @@ if ($u->room['file'] == 'dungeon') {
|
||||
itemtake = 0;
|
||||
<?php $sp = mysql_fetch_assoc(mysql_query('SELECT `ish`.* FROM `dungeon_items` AS `ish` WHERE `ish`.`dn` = "' . $u->info['dnow'] . '" AND `ish`.`take` = "0" AND `ish`.`delete` = "0" AND ( `ish`.`onlyfor` = "0" OR `ish`.`onlyfor` = "' . $u->info['id'] . '" ) AND `ish`.`x` = "' . $u->info['x'] . '" AND `ish`.`y` = "' . $u->info['y'] . '" LIMIT 1'));
|
||||
if (isset($sp['id']))
|
||||
{?>
|
||||
itemtake = <?echo $sp['id'];?>;
|
||||
<?}?>
|
||||
{ ?>
|
||||
itemtake = <?= $sp['id'];?>;
|
||||
<?php }?>
|
||||
if (itemtake != 0) {
|
||||
takeItem(itemtake);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user