Файл: qwest/qw/25_qwest.dat.php
Строк: 72
<?
if($rpp['13']==0){
if($row['lvl']<25){print"Приходи как будешь 25 уровня!";exitt($row,$opredelenie);}
$q_b = mysql_query("select*from `qwest_book` where `id_pers`='" . $row['ID'] .
"' and `id_qw`='13'");
if (mysql_num_rows($q_b) == 1) {
$qwest_book = mysql_fetch_array($q_b);
if ($qwest_book['tek_status'] == 2) {
if(isset($_GET['step'])){
$rul=mysql_query("select*from rukzak where name='$opredelenie' and odeto='0' and chit='trava' and tip='17hpall'");
if(mysql_num_rows($rul)<10){ print "<strong>Алхимик:</strong> У тебя нехватает цветков<br>
<strong>$opredelenie:</strong><a href=88.php?go=do>Я ошибся!</a>";
;exitt($row,$opredelenie) ;} else{
mysql_query("delete from rukzak where name='$opredelenie' and odeto='0' and chit='trava' and tip='17hpall' limit 10");
mysql_query("update qwest_book set `tek_status`='3' where id_pers='".$row['ID']."' and id_qw='13'");
header('location:88.php?go=allab&plavit=7')
;}
;}
print "<strong>Алхимик:</strong> Ты выполнил мое поручение?<br>
<strong>$opredelenie:</strong><a href=88.php?go=allab&plavit=7&step=1>Да</a>";
;exitt($row,$opredelenie)
;}
;}
$q_b=mysql_query("select*from `qwest_book` where `id_pers`='".$row['ID']."' and `id_qw`='13'");
///////////////////////////////////////////////////////////////////////////////////////////
if(mysql_num_rows($q_b)==0){
if(!isset($_GET['step'])){
$_GET['step']=1 ;}
if($_GET['step']==3){
mysql_query("
INSERT INTO `a36667_element`.`qwest_book` (`id` ,
`id_pers` ,
`id_qw` ,
`name_qw` ,
`opisan_qw` ,
`tek_status` ,
`status`,`qw_kolvo`
)
VALUES (NULL , '".$row['ID']."', '13', 'Грот Безумства', 'Сходить в пещеру [4S/30W] и собрать 10 растений для алхимика!', '1', '0','10'
); ");
$_SESSION['statusis']='Сходить в пещеру [4S/30W] и собрать 10 растений!';
header('location:88.php?go=do');exit ;
;}
$rp=mysql_query("select * from `qw_all` where `qw`='13' and `step`='".$_GET['step']."' and `s`='".$row['sever']."' and `w`='".$row['wostok']."' and `polog1`='".$row['polog1']."'
and `polog`='".$row['polog']."'and `gorodnum`='".$row['gorodnum']."'");
$rpp=mysql_fetch_array($rp);
print "<strong>Алхимик:</strong> ".$rpp['text']."<br>
<strong>$opredelenie:</strong><a href=88.php?go=allab&plavit=7&step=".($_GET['step']+1).">".$rpp['text_pers']."</a>"
;exitt($row,$opredelenie) ;}else{
$qwest_book=mysql_fetch_array($q_b);
if($qwest_book['tek_status']==3){
if(!isset($_GET['step'])){
$_GET['step']=1 ;}
if($_GET['step']==3){
mysql_query("update qwest_book set tek_status='4',opisan_qw='Выполнено!',status='1' where id_pers='".$row['ID']."'and id_qw='13'");
$_SESSION['statusis']='Задание выполнено!';
mysql_query("update `qw_mercury_pers` set `13`='1' where `id_pers`='".$row['ID']."'");
header('location:88.php?go=do');exit ;
;}
$rp=mysql_query("select * from `qw_all` where `qw`='13' and `step`='".$_GET['step']."' and `s`='".$row['sever']."' and `w`='".$row['wostok']."' and `polog1`='".$row['polog1']."'
and `polog`='".$row['polog']."'and `gorodnum`='".$row['gorodnum']."' and id=1");
$rpp=mysql_fetch_array($rp);
print "<strong>Алхимик:</strong> ".$rpp['text']."<br>
<strong>$opredelenie:</strong><a href=88.php?go=allab&plavit=7&step=".($_GET['step']+1).">".$rpp['text_pers']."</a>"
;exitt($row,$opredelenie) ;
}
;}
;}
?>