Файл: data/smert_1.dat.php
Строк: 74
<?
print '<div class="spiski"><div class="zagolovok">Квест</div><div class="line"></div><ul>';
if (!isset($_GET['step'])) {
print "<div class="chat_conteiner">Вы видите тяжело раненного человека...<br>
<li> <a href=88.php?go=do&step=1>Уйти</a> </li><li> <a href=88.php?go=do&step=2>Подойти поближе!</a></li></div>
";
} else {
///////////////////////
if ($_GET['step'] == 1) {
mysql_query("update table1 set polog1='0' where name='$opredelenie'");
header('location:88.php?go=do');
exit;
;
} //////////////
if ($_GET['step'] == 2) {
print " <div class="chat_conteiner"><font color=blue><strong>'я умираю'</strong></font>-хрипит незнакомец-<strong><font color=blue>'помоги мне, путник...'</font></strong>
<li> <a href=88.php?go=do&step=1>Уйти</a> </li><li><a href=88.php?go=do&step=4>Кастовать Исцеление !</a></li></div>"
;}
if ($_GET['step'] == 4) {
if(!isset($_SESSION['tip'])){
$r=rand(0,12);}else{$r=$_SESSION['tip'];;}
if ($r == 0)
{
$name1 = 'Алхимик' ;
$table = 'alhimia' ;
}
if ($r == 1)
{
$name1 = 'Травник' ;
$table = 'travnik' ;
}
if ($r == 2)
{
$name1 = 'Охотник' ;
$table = 'ohotnik' ;
}
if ($r == 3)
{
$name1 = 'Потрошитель' ;
$table = 'potroshital' ;
}
if ($r == 4)
{
$name1 = 'Артфизик' ;
$table = 'artfizik' ;
}
if ($r == 5)
{
$name1 = 'Старатель' ;
$table = 'staratel' ;
}
if ($r == 6)
{
$name1 = 'Шахтер' ;
$table = 'rudokop' ;
}
if ($r == 7)
{
$name1 = 'Оружейник' ;
$table = 'orugejnik' ;
}
if ($r == 8)
{
$name1 = 'Ювелир' ;
$table = 'enchayz' ;
}
if ($r == 9)
{
$name1 = 'Гном' ;
$table = 'digger' ;
}
if ($r == 10)
{
$name1 = 'Скорняк' ;
$table = 'skornjak' ;
}
if ($r == 11)
{
$name1 = 'Дрессировщик' ;
$table = 'ykroshenie' ;
}
if ($r == 12)
{
$name1 = 'Кузнец' ;
$table = 'kuznec' ;
}
if(isset($_GET['x'])){
$r=$_GET['x']; if ($r == 0)
{
$name1 = 'Алхимик' ;
$table = 'alhimia' ;
}
if ($r == 1)
{
$name1 = 'Травник' ;
$table = 'travnik' ;
}
if ($r == 2)
{
$name1 = 'Охотник' ;
$table = 'ohotnik' ;
}
if ($r == 3)
{
$name1 = 'Потрошитель' ;
$table = 'potroshital' ;
}
if ($r == 4)
{
$name1 = 'Артфизик' ;
$table = 'artfizik' ;
}
if ($r == 5)
{
$name1 = 'Старатель' ;
$table = 'staratel' ;
}
if ($r == 6)
{
$name1 = 'Шахтер' ;
$table = 'rudokop' ;
}
if ($r == 7)
{
$name1 = 'Оружейник' ;
$table = 'orugejnik' ;
}
if ($r == 8)
{
$name1 = 'Ювелир' ;
$table = 'enchayz' ;
}
if ($r == 9)
{
$name1 = 'Гном' ;
$table = 'digger' ;
}
if ($r == 10)
{
$name1 = 'Скорняк' ;
$table = 'skornjak' ;
}
if ($r == 11)
{
$name1 = 'Дрессировщик' ;
$table = 'ykroshenie' ;
}
if ($r == 12)
{
$name1 = 'Кузнец' ;
$table = 'kuznec' ;
}
$row[$table]++;
mysql_query("update table1 set `".$table."`='".$row[$table]."' where name='$opredelenie' limit 1");
mysql_query("update table1 set polog1='0' where name='$opredelenie'");
unset ($_SESSION['tip']);
header('location:88.php?go=do');
exit;
;}
$_SESSION['tip']=$r;
print " '<div class="chat_conteiner"><font color=blue>спасибо, добрый человек! Мне уже гораздо лучше! Я-$name1, в благодарность позволь немного обучить тебя моей профессии.'</font>";
print"<li><a href=88.php?go=do&step=4&x=$r>спасибо</a></li></div>";
;}
}
?>