Елочка ![wink *wink* *wink*](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Скрипт выдает подарки методом Random, Это означает то что как повезет так повезет =)
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><center>
<img src='images/elka.gif' border="0" />
<input type=button onClick="location='main.php?year=1'" style='width: 150;' value="Получить Подарок" title="Чтоб получить подарок, нажмите на кнопку" class=login>
<?
if ($year=='1')
{
$podarok = rand(1,3);
if ($podarok=='1')
{
$pod = '`inv`=CONCAT("'.$pers['inv'].'","bot_nap=2=|bot_nap=2=|bot_nap=2=|bot_nap=2=|bot_nap=2=|bot_nap=2=|bot_nap=2
=|bot_nap=2=|bot_nap=2=|")';
$msg = 'Приманку для Ботов 9 шт.';
}
else if ($podarok=='2')
{
$pod = '`dmoney`='.$pers['dmoney'].'+"29"';
$msg = '29 у.е';
}
else if ($podarok=='3')
{
$pod = '`money`='.$pers['money'].'+"2009"';
$msg = '2009 LM';
}
if ($pers['podarok']=='0')
{
mysql_query ("UPDATE `users` SET ".$pod." , `podarok` = '1' WHERE `user`='".$pers["user"]."'");
echo"<font color=green>Администрация Last-World поздравляет Вас с Новым годом, желает Вам благополучия и вручает подарок![smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Вы получили в подарок: ".$msg."</font>";
}
else
{
echo"<font color=red>Вы уже получили подарок</font>";
}
}
?>
</center></div>
P.S. Для работы скрипта вам надо создать в ДБ новую запись для даного скрипта надо Поле=podarok , Тип=int , Длины/Значения=11 , По умолчанию=0
Природа!
Ну че погнали...
Вот скрипт работающей природы(Вертикаль горизонталь диагональ)
Для работы всей природы надо зделать следуйщее
Открываем "inc/goloc.php"
Шаг 1
И меняем это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$up = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y-1)."_'"));
$down = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y+1)."_'"));
$right = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y)."_'"));
$left = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y)."_'"));
if (@$up["name"]) $up = 1; else $up=0;
if (@$down["name"]) $down = 1; else $down=0;
if (@$right["name"]) $right = 1; else $right=0;
if (@$left["name"]) $left = 1; else $left=0;
if ($_GET["go_nature"]=='down' and $down==1) $y+=1;
if ($_GET["go_nature"]=='up' and $up==1) $y-=1;
if ($_GET["go_nature"]=='left' and $left==1) $x-=1;
if ($_GET["go_nature"]=='right' and $right==1) $x+=1;</div>
На это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$up = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y-1)."_'"));
$down = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y+1)."_'"));
$right = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y)."_'"));
$left = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y)."_'"));
$lup = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y-1)."_'"));
$rup = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y-1)."_'"));
$rdown = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y+1)."_'"));
$ldown = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y+1)."_'"));
if (@$up["name"]) $up = 1; else $up=0;
if (@$down["name"]) $down = 1; else $down=0;
if (@$right["name"]) $right = 1; else $right=0;
if (@$left["name"]) $left = 1; else $left=0;
if (@$lup["name"]) $lup = 1; else $lup=0;
if (@$rup["name"]) $rup = 1; else $rup=0;
if (@$rdown["name"]) $rdown = 1; else $rdown=0;
if (@$ldown["name"]) $ldown = 1; else $ldown=0;
if ($_GET["go_nature"]=='up' and $up==1) $y-=1;
if ($_GET["go_nature"]=='down' and $down==1) $y+=1;
if ($_GET["go_nature"]=='left' and $left==1) $x-=1;
if ($_GET["go_nature"]=='right' and $right==1) $x+=1;
if ($_GET["go_nature"]=='lup' and $lup==1) $x-=1;
if ($_GET["go_nature"]=='rup' and $rup==1) $x+=1;
if ($_GET["go_nature"]=='lup' and $lup==1) $y-=1;
if ($_GET["go_nature"]=='rup' and $rup==1) $y-=1;
if ($_GET["go_nature"]=='rdown' and $rdown==1) $x+=1;
if ($_GET["go_nature"]=='ldown' and $ldown==1) $x-=1;
if ($_GET["go_nature"]=='rdown' and $rdown==1) $y+=1;
if ($_GET["go_nature"]=='ldown' and $ldown==1) $y+=1;</div>
Шаг 2
Открываем "js/nature.js"
И меняем это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>function show_nature(x,y,up,down,right,left){
if (up==1) up = 'onclick = "location=\'main.php?go_nature=up\'" style=\'cursor:hand\'';
if (down==1) down = 'onclick = "location=\'main.php?go_nature=down\'" style=\'cursor:hand\'';
if (left==1) left = 'onclick = "location=\'main.php?go_nature=left\'" style=\'cursor:hand\'';
if (right==1) right = 'onclick = "location=\'main.php?go_nature=right\'" style=\'cursor:hand\'';
document.write('<table border="0" cellspacing="0" cellpadding="0" style="border-style: solid; border-width: 1px"> <tr> <td width="60" height="60"background="../images/map/'+(x-3)+'_'+(y-2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-2)+'_'+(y-2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-1)+'_'+(y-2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+0)+'_'+(y-2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+1)+'_'+(y-2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+2)+'_'+(y-2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+3)+'_'+(y-2)+'.jpg"> </td> </tr> <tr> <td width="60" height="60"background="../images/map/'+(x-3)+'_'+(y-1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-2)+'_'+(y-1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-1)+'_'+(y-1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+0)+'_'+(y-1)+'" '+up+'> </td> <td width="60" height="60"background="../images/map/'+(x+1)+'_'+(y-1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+2)+'_'+(y-1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+3)+'_'+(y-1)+'.jpg"> </td> </tr> <tr> <td width="60" height="60"background="../images/map/'+(x-3)+'_'+(y-0)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-2)+'_'+(y-0)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-1)+'_'+(y-0)+'" '+left+'> </td> <td width="60" height="60"background="../images/map/'+(x+0)+'_'+(y-0)+'" class=fader> </td> <td width="60" height="60"background="../images/map/'+(x+1)+'_'+(y-0)+'" '+right+'> </td> <td width="60" height="60"background="../images/map/'+(x+2)+'_'+(y-0)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+3)+'_'+(y-0)+'.jpg"> </td> </tr> <tr> <td width="60" height="60"background="../images/map/'+(x-3)+'_'+(y+1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-2)+'_'+(y+1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-1)+'_'+(y+1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+0)+'_'+(y+1)+'" '+down+'> </td> <td width="60" height="60"background="../images/map/'+(x+1)+'_'+(y+1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+2)+'_'+(y+1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+3)+'_'+(y+1)+'.jpg"> </td> </tr> <tr> <td width="60" height="60"background="../images/map/'+(x-3)+'_'+(y+2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-2)+'_'+(y+2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-1)+'_'+(y+2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+0)+'_'+(y+2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+1)+'_'+(y+2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+2)+'_'+(y+2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+3)+'_'+(y+2)+'.jpg"> </td> </tr></table>');</div>На это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>function show_nature(x,y,up,down,right,left,c1,c2,c3,c4,f,fc){
if (f!='') f=' style="cursor:hand" title="'+f+'" '+fc;
if (up==1) up = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=up\'" style=\'cursor:hand\'';
if (down==1) down = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=down\'" style=\'cursor:hand\'';
if (left==1) left = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=left\'" style=\'cursor:hand\'';
if (right==1) right = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=right\'" style=\'cursor:hand\'';
if (c1==1) c1 = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=lup\'" style=\'cursor:hand\'';
if (c2==1) c2 = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=rup\'" style=\'cursor:hand\'';
if (c3==1) c3 = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=rdown\'" style=\'cursor:hand\'';
if (c4==1) c4 = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=ldown\'" style=\'cursor:hand\'';
document.write('<table border="0" cellspacing="0" cellpadding="0" style="border-style: solid; border-width: 1px">
<tr> <td width="80" height="80">
</td> <td width="80" height="80">
</td><td width="80" height="80">
</td><td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> </tr> <tr> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> </tr> <tr> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80" '+f+'>
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> </tr>
<tr> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> </tr> <tr> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> <td width="80" height="80">
</td> </tr></table>');
}</div>
Обратите внимание на формат файла и размер рисунка! Поменяйте на свои если это требуеться!
Шаг 3
Открываем "inc/locations/out.php"
И меняем это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$up = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y-1)."_'"));
$down = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y+1)."_'"));
$right = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y)."_'"));
$left = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y)."_'"));
if (@$up["name"] and $t>=$pers["waiter"]) $up = 1; else $up=0;
if (@$down["name"] and $t>=$pers["waiter"]) $down = 1; else $down=0;
if (@$right["name"] and $t>=$pers["waiter"]) $right = 1; else $right=0;
if (@$left["name"] and $t>=$pers["waiter"]) $left = 1; else $left=0;</div>
и это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>show_nature(<?= $x;?>,<?=$y;?>,<?=$up;?>,<?=$down;?>,<?=$right;?>,<?=$left;?>);</div>
на это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$up = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y-1)."_'"));
$down = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y+1)."_'"));
$right = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y)."_'"));
$left = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y)."_'"));
$lup = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y-1)."_'"));
$rup = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y-1)."_'"));
$rdown = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y+1)."_'"));
$ldown = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y+1)."_'"));
if (@$up["name"] and $t>=$pers["waiter"]) $up = 1; else $up=0;
if (@$down["name"] and $t>=$pers["waiter"]) $down = 1; else $down=0;
if (@$right["name"] and $t>=$pers["waiter"]) $right = 1; else $right=0;
if (@$left["name"] and $t>=$pers["waiter"]) $left = 1; else $left=0;
if (@$lup["name"] and $t>=$pers["waiter"]) $lup = 1; else $lup=0;
if (@$rup["name"] and $t>=$pers["waiter"]) $rup = 1; else $rup=0;
if (@$rdown["name"] and $t>=$pers["waiter"]) $rdown = 1; else $rdown=0;
if (@$ldown["name"] and $t>=$pers["waiter"]) $ldown = 1; else $ldown=0;</div>
и это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>show_nature(<?= $x;?>,<?=$y;?>,<?=$up;?>,<?=$down;?>,<?=$right;?>,<?=$left;?>,<?=$lup;?>,<?=$rup;?>,<?=$rdown;?>,<?=$ldown;?>);</div>
Шаг 4
Делаем чтоб были выдны места прохадимости!
Открываем "main.css"
И в самом конце скрипта встоавляем это.
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>.go_yes {
filter:alpha(opacity=85);
-moz-opacity: 0.85;
-khtml-opacity: 0.85;
opacity: 0.85;
}</div>
На этом мой гид завершон!
P.S. На забываем о спасибо![wink *wink* *wink*](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Скрипт выдает подарки методом Random, Это означает то что как повезет так повезет =)
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><center>
<img src='images/elka.gif' border="0" />
<input type=button onClick="location='main.php?year=1'" style='width: 150;' value="Получить Подарок" title="Чтоб получить подарок, нажмите на кнопку" class=login>
<?
if ($year=='1')
{
$podarok = rand(1,3);
if ($podarok=='1')
{
$pod = '`inv`=CONCAT("'.$pers['inv'].'","bot_nap=2=|bot_nap=2=|bot_nap=2=|bot_nap=2=|bot_nap=2=|bot_nap=2=|bot_nap=2
=|bot_nap=2=|bot_nap=2=|")';
$msg = 'Приманку для Ботов 9 шт.';
}
else if ($podarok=='2')
{
$pod = '`dmoney`='.$pers['dmoney'].'+"29"';
$msg = '29 у.е';
}
else if ($podarok=='3')
{
$pod = '`money`='.$pers['money'].'+"2009"';
$msg = '2009 LM';
}
if ($pers['podarok']=='0')
{
mysql_query ("UPDATE `users` SET ".$pod." , `podarok` = '1' WHERE `user`='".$pers["user"]."'");
echo"<font color=green>Администрация Last-World поздравляет Вас с Новым годом, желает Вам благополучия и вручает подарок
Вы получили в подарок: ".$msg."</font>";
}
else
{
echo"<font color=red>Вы уже получили подарок</font>";
}
}
?>
</center></div>
P.S. Для работы скрипта вам надо создать в ДБ новую запись для даного скрипта надо Поле=podarok , Тип=int , Длины/Значения=11 , По умолчанию=0
Природа!
Ну че погнали...
Вот скрипт работающей природы(Вертикаль горизонталь диагональ)
Для работы всей природы надо зделать следуйщее
Открываем "inc/goloc.php"
Шаг 1
И меняем это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$up = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y-1)."_'"));
$down = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y+1)."_'"));
$right = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y)."_'"));
$left = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y)."_'"));
if (@$up["name"]) $up = 1; else $up=0;
if (@$down["name"]) $down = 1; else $down=0;
if (@$right["name"]) $right = 1; else $right=0;
if (@$left["name"]) $left = 1; else $left=0;
if ($_GET["go_nature"]=='down' and $down==1) $y+=1;
if ($_GET["go_nature"]=='up' and $up==1) $y-=1;
if ($_GET["go_nature"]=='left' and $left==1) $x-=1;
if ($_GET["go_nature"]=='right' and $right==1) $x+=1;</div>
На это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$up = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y-1)."_'"));
$down = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y+1)."_'"));
$right = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y)."_'"));
$left = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y)."_'"));
$lup = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y-1)."_'"));
$rup = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y-1)."_'"));
$rdown = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y+1)."_'"));
$ldown = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y+1)."_'"));
if (@$up["name"]) $up = 1; else $up=0;
if (@$down["name"]) $down = 1; else $down=0;
if (@$right["name"]) $right = 1; else $right=0;
if (@$left["name"]) $left = 1; else $left=0;
if (@$lup["name"]) $lup = 1; else $lup=0;
if (@$rup["name"]) $rup = 1; else $rup=0;
if (@$rdown["name"]) $rdown = 1; else $rdown=0;
if (@$ldown["name"]) $ldown = 1; else $ldown=0;
if ($_GET["go_nature"]=='up' and $up==1) $y-=1;
if ($_GET["go_nature"]=='down' and $down==1) $y+=1;
if ($_GET["go_nature"]=='left' and $left==1) $x-=1;
if ($_GET["go_nature"]=='right' and $right==1) $x+=1;
if ($_GET["go_nature"]=='lup' and $lup==1) $x-=1;
if ($_GET["go_nature"]=='rup' and $rup==1) $x+=1;
if ($_GET["go_nature"]=='lup' and $lup==1) $y-=1;
if ($_GET["go_nature"]=='rup' and $rup==1) $y-=1;
if ($_GET["go_nature"]=='rdown' and $rdown==1) $x+=1;
if ($_GET["go_nature"]=='ldown' and $ldown==1) $x-=1;
if ($_GET["go_nature"]=='rdown' and $rdown==1) $y+=1;
if ($_GET["go_nature"]=='ldown' and $ldown==1) $y+=1;</div>
Шаг 2
Открываем "js/nature.js"
И меняем это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>function show_nature(x,y,up,down,right,left){
if (up==1) up = 'onclick = "location=\'main.php?go_nature=up\'" style=\'cursor:hand\'';
if (down==1) down = 'onclick = "location=\'main.php?go_nature=down\'" style=\'cursor:hand\'';
if (left==1) left = 'onclick = "location=\'main.php?go_nature=left\'" style=\'cursor:hand\'';
if (right==1) right = 'onclick = "location=\'main.php?go_nature=right\'" style=\'cursor:hand\'';
document.write('<table border="0" cellspacing="0" cellpadding="0" style="border-style: solid; border-width: 1px"> <tr> <td width="60" height="60"background="../images/map/'+(x-3)+'_'+(y-2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-2)+'_'+(y-2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-1)+'_'+(y-2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+0)+'_'+(y-2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+1)+'_'+(y-2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+2)+'_'+(y-2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+3)+'_'+(y-2)+'.jpg"> </td> </tr> <tr> <td width="60" height="60"background="../images/map/'+(x-3)+'_'+(y-1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-2)+'_'+(y-1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-1)+'_'+(y-1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+0)+'_'+(y-1)+'" '+up+'> </td> <td width="60" height="60"background="../images/map/'+(x+1)+'_'+(y-1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+2)+'_'+(y-1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+3)+'_'+(y-1)+'.jpg"> </td> </tr> <tr> <td width="60" height="60"background="../images/map/'+(x-3)+'_'+(y-0)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-2)+'_'+(y-0)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-1)+'_'+(y-0)+'" '+left+'> </td> <td width="60" height="60"background="../images/map/'+(x+0)+'_'+(y-0)+'" class=fader> </td> <td width="60" height="60"background="../images/map/'+(x+1)+'_'+(y-0)+'" '+right+'> </td> <td width="60" height="60"background="../images/map/'+(x+2)+'_'+(y-0)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+3)+'_'+(y-0)+'.jpg"> </td> </tr> <tr> <td width="60" height="60"background="../images/map/'+(x-3)+'_'+(y+1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-2)+'_'+(y+1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-1)+'_'+(y+1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+0)+'_'+(y+1)+'" '+down+'> </td> <td width="60" height="60"background="../images/map/'+(x+1)+'_'+(y+1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+2)+'_'+(y+1)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+3)+'_'+(y+1)+'.jpg"> </td> </tr> <tr> <td width="60" height="60"background="../images/map/'+(x-3)+'_'+(y+2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-2)+'_'+(y+2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x-1)+'_'+(y+2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+0)+'_'+(y+2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+1)+'_'+(y+2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+2)+'_'+(y+2)+'.jpg"> </td> <td width="60" height="60"background="../images/map/'+(x+3)+'_'+(y+2)+'.jpg"> </td> </tr></table>');</div>На это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>function show_nature(x,y,up,down,right,left,c1,c2,c3,c4,f,fc){
if (f!='') f=' style="cursor:hand" title="'+f+'" '+fc;
if (up==1) up = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=up\'" style=\'cursor:hand\'';
if (down==1) down = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=down\'" style=\'cursor:hand\'';
if (left==1) left = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=left\'" style=\'cursor:hand\'';
if (right==1) right = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=right\'" style=\'cursor:hand\'';
if (c1==1) c1 = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=lup\'" style=\'cursor:hand\'';
if (c2==1) c2 = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=rup\'" style=\'cursor:hand\'';
if (c3==1) c3 = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=rdown\'" style=\'cursor:hand\'';
if (c4==1) c4 = 'class=go_yes title=Переход... onclick = "location=\'main.php?go_nature=ldown\'" style=\'cursor:hand\'';
document.write('<table border="0" cellspacing="0" cellpadding="0" style="border-style: solid; border-width: 1px">
<tr> <td width="80" height="80">
!['+(x-3)+'_'+(y-2)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x-3%29%2B%27_%27%2B%28y-2%29%2B%27.png&hash=f605ef5e71c78c7dc7ab4f78a8e3f423)
!['+(x-2)+'_'+(y-2)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x-2%29%2B%27_%27%2B%28y-2%29%2B%27.png&hash=27d738df583e8a2a7fe065012529c1b8)
!['+(x-1)+'_'+(y-2)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x-1%29%2B%27_%27%2B%28y-2%29%2B%27.png&hash=37050ec04c650d5c626ccd4e2fe7bee3)
!['+(x+0)+'_'+(y-2)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B0%29%2B%27_%27%2B%28y-2%29%2B%27.png&hash=73be55f4eb80bebbbc6adca4130f2258)
!['+(x+1)+'_'+(y-2)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B1%29%2B%27_%27%2B%28y-2%29%2B%27.png&hash=40a69b045adfac209ab75c9fa1920b58)
!['+(x+2)+'_'+(y-2)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B2%29%2B%27_%27%2B%28y-2%29%2B%27.png&hash=ef20b46a955b13a13a22e840fc3df5e3)
!['+(x+3)+'_'+(y-2)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B3%29%2B%27_%27%2B%28y-2%29%2B%27.png&hash=e9c6ac6b1b8c71a3182f2fb8c6aa0baa)
!['+(x-3)+'_'+(y-1)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x-3%29%2B%27_%27%2B%28y-1%29%2B%27.png&hash=c0e613a0bbfc0769679e8e9bca21d641)
!['+(x-2)+'_'+(y-1)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x-2%29%2B%27_%27%2B%28y-1%29%2B%27.png&hash=7508a36aaf0121ff389c1df17684cfa1)
!['+(x-1)+'_'+(y-1)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x-1%29%2B%27_%27%2B%28y-1%29%2B%27.png&hash=cc81f386876b38719b28d5bbdfd6b4fc)
!['+(x+0)+'_'+(y-1)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B0%29%2B%27_%27%2B%28y-1%29%2B%27.png&hash=56f440db4cb3aa9331dc5ec1cdf19ff7)
!['+(x+1)+'_'+(y-1)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B1%29%2B%27_%27%2B%28y-1%29%2B%27.png&hash=3254603e204792cb3469e50cc66c1d90)
!['+(x+2)+'_'+(y-1)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B2%29%2B%27_%27%2B%28y-1%29%2B%27.png&hash=0631e3636d460175653ba2367880a9f2)
!['+(x+3)+'_'+(y-1)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B3%29%2B%27_%27%2B%28y-1%29%2B%27.png&hash=f141e77308952d02acca5cc5acc4c847)
!['+(x-3)+'_'+(y-0)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x-3%29%2B%27_%27%2B%28y-0%29%2B%27.png&hash=967dd8b30c57b6f9a36eb0eb4ee29854)
!['+(x-2)+'_'+(y-0)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x-2%29%2B%27_%27%2B%28y-0%29%2B%27.png&hash=b69938aa7c44d091c36565408dfe53a0)
!['+(x-1)+'_'+(y-0)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x-1%29%2B%27_%27%2B%28y-0%29%2B%27.png&hash=df9bc94048e497d289341b76aa57fa79)
!['+(x+0)+'_'+(y-0)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B0%29%2B%27_%27%2B%28y-0%29%2B%27.png&hash=ee0f9d4ec8389842339e33fca7f69fea)
!['+(x+1)+'_'+(y-0)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B1%29%2B%27_%27%2B%28y-0%29%2B%27.png&hash=f2d6b024a29a6f7f725d468abd193f93)
!['+(x+2)+'_'+(y-0)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B2%29%2B%27_%27%2B%28y-0%29%2B%27.png&hash=43643549ba19b9981bc71b90690341cf)
!['+(x+3)+'_'+(y-0)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B3%29%2B%27_%27%2B%28y-0%29%2B%27.png&hash=75be1f79db7d492d382c72ab75d39694)
<tr> <td width="80" height="80">
!['+(x-3)+'_'+(y+1)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x-3%29%2B%27_%27%2B%28y%2B1%29%2B%27.png&hash=318b9ec6e5185fd0592ce6dae917e377)
!['+(x-2)+'_'+(y+1)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x-2%29%2B%27_%27%2B%28y%2B1%29%2B%27.png&hash=fe56d54b53676af04eaf640930cbdfbf)
!['+(x-1)+'_'+(y+1)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x-1%29%2B%27_%27%2B%28y%2B1%29%2B%27.png&hash=4032fac59f6d6f2f3348383dd8d284dd)
!['+(x+0)+'_'+(y+1)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B0%29%2B%27_%27%2B%28y%2B1%29%2B%27.png&hash=e12e71320f7cb9c20baa7cf37a8f04cb)
!['+(x+1)+'_'+(y+1)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B1%29%2B%27_%27%2B%28y%2B1%29%2B%27.png&hash=f4fabb395fdbd2b8eaa116ffab76e578)
!['+(x+2)+'_'+(y+1)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B2%29%2B%27_%27%2B%28y%2B1%29%2B%27.png&hash=8444eafed10535e2887b8111456192b3)
!['+(x+3)+'_'+(y+1)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B3%29%2B%27_%27%2B%28y%2B1%29%2B%27.png&hash=69f9c489f71a7e7cd60c4ce03c83a9d3)
!['+(x-3)+'_'+(y+2)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x-3%29%2B%27_%27%2B%28y%2B2%29%2B%27.png&hash=d71009254dcfb1ce0aa653dd0317719c)
!['+(x-2)+'_'+(y+2)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x-2%29%2B%27_%27%2B%28y%2B2%29%2B%27.png&hash=3310e80493692334c2465709de4171ca)
!['+(x-1)+'_'+(y+2)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x-1%29%2B%27_%27%2B%28y%2B2%29%2B%27.png&hash=cb97ead8334e9aa399a9eeb17f5e4a7e)
!['+(x+0)+'_'+(y+2)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B0%29%2B%27_%27%2B%28y%2B2%29%2B%27.png&hash=311211d53e96b636a36a88e275ecc4fa)
!['+(x+1)+'_'+(y+2)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B1%29%2B%27_%27%2B%28y%2B2%29%2B%27.png&hash=0b5efc1151f65da9cab622e5b905a2b7)
!['+(x+2)+'_'+(y+2)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B2%29%2B%27_%27%2B%28y%2B2%29%2B%27.png&hash=2058b6bfd703018e444c6671f9cdd55a)
!['+(x+3)+'_'+(y+2)+'.png](/forum/proxy.php?image=http%3A%2F%2Fimages%2Fmap%2F%27%2B%28x%2B3%29%2B%27_%27%2B%28y%2B2%29%2B%27.png&hash=569966e4c14208aeea82c38b9abee123)
}</div>
Обратите внимание на формат файла и размер рисунка! Поменяйте на свои если это требуеться!
Шаг 3
Открываем "inc/locations/out.php"
И меняем это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$up = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y-1)."_'"));
$down = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y+1)."_'"));
$right = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y)."_'"));
$left = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y)."_'"));
if (@$up["name"] and $t>=$pers["waiter"]) $up = 1; else $up=0;
if (@$down["name"] and $t>=$pers["waiter"]) $down = 1; else $down=0;
if (@$right["name"] and $t>=$pers["waiter"]) $right = 1; else $right=0;
if (@$left["name"] and $t>=$pers["waiter"]) $left = 1; else $left=0;</div>
и это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>show_nature(<?= $x;?>,<?=$y;?>,<?=$up;?>,<?=$down;?>,<?=$right;?>,<?=$left;?>);</div>
на это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>$up = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y-1)."_'"));
$down = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".$x."_".($y+1)."_'"));
$right = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y)."_'"));
$left = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y)."_'"));
$lup = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y-1)."_'"));
$rup = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y-1)."_'"));
$rdown = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x+1)."_".($y+1)."_'"));
$ldown = mysql_fetch_array (mysql_query("SELECT name FROM locations WHERE id='p_".($x-1)."_".($y+1)."_'"));
if (@$up["name"] and $t>=$pers["waiter"]) $up = 1; else $up=0;
if (@$down["name"] and $t>=$pers["waiter"]) $down = 1; else $down=0;
if (@$right["name"] and $t>=$pers["waiter"]) $right = 1; else $right=0;
if (@$left["name"] and $t>=$pers["waiter"]) $left = 1; else $left=0;
if (@$lup["name"] and $t>=$pers["waiter"]) $lup = 1; else $lup=0;
if (@$rup["name"] and $t>=$pers["waiter"]) $rup = 1; else $rup=0;
if (@$rdown["name"] and $t>=$pers["waiter"]) $rdown = 1; else $rdown=0;
if (@$ldown["name"] and $t>=$pers["waiter"]) $ldown = 1; else $ldown=0;</div>
и это
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>show_nature(<?= $x;?>,<?=$y;?>,<?=$up;?>,<?=$down;?>,<?=$right;?>,<?=$left;?>,<?=$lup;?>,<?=$rup;?>,<?=$rdown;?>,<?=$ldown;?>);</div>
Шаг 4
Делаем чтоб были выдны места прохадимости!
Открываем "main.css"
И в самом конце скрипта встоавляем это.
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>.go_yes {
filter:alpha(opacity=85);
-moz-opacity: 0.85;
-khtml-opacity: 0.85;
opacity: 0.85;
}</div>
На этом мой гид завершон!
P.S. На забываем о спасибо