Вход Регистрация
Файл: qwest/qw/30_qwest.dat.php
Строк: 68
<?

if ($rpp['14'] == 0) {
    if (
$row['lvl'] < 30) {
        print 
"Приходи как будешь 30 уровня!";
        
exitt($row$opredelenie);
    }
    
$q_b mysql_query("select*from `qwest_book` where `id_pers`='" $row['ID'] .
        
"' and `id_qw`='14'");
    if (
mysql_num_rows($q_b) == 1) {
        
$qwest_book mysql_fetch_array($q_b);


        ;
    }


    
$q_b mysql_query("select*from `qwest_book` where `id_pers`='" $row['ID'] .
        
"' and `id_qw`='14'");
    
///////////////////////////////////////////////////////////////////////////////////////////
    
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'] .
                
"', '14', 'Пещера Волчий Зуб', 'Сходить в пещеру [65 S/41W] и забрать у банды Злыдня Рыжего все награбленное!', '1', '0','10'
);  "
);
            
$_SESSION['statusis'] = 'Сходить в пещеру [65 S/41W] и забрать у банды Злыдня Рыжего все награбленное!';


            
header('location:88.php?go=do');
            exit;
            ;
        }


        
$rp mysql_query("select * from `qw_all` where  `qw`='14' 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=qwestt&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'] == 2) {
          
/*mysql_query("UPDATE   `table1` SET `polog` = 'fight',`idmob`='13002',`atakamob`='100',`zashitamob`='100',`lvlmob`='30'
,`opitmob`='20000',`hpmob`='5000',`namemob`='Зладень Рыжый' WHERE `name`='" .
        mysql_real_escape_string($opredelenie) . "' LIMIT 1 ;");
                header('location:88.php?go=fight');
                exit;*/
                
;
            }


            
$rp mysql_query("select * from `qw_all` where  `qw`='14' 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=qwestt&step=" . ($_GET['step'] +
                
1) . ">" $rpp['text_pers'] . "</a>";
            
exitt($row$opredelenie);


        }


 if (
$qwest_book['tek_status'] == 4) {
            if (!isset(
$_GET['step'])) {


                
$_GET['step'] = 1;
            }

            if (
$_GET['step'] == 2) {
          
mysql_query("UPDATE   `table1` SET `polog` = 'fight',`idmob`='13002',`atakamob`='100',`zashitamob`='100',`lvlmob`='30'
,`opitmob`='20000',`hpmob`='5000',`namemob`='Зладень Рыжый' WHERE `name`='" 
.
        
mysql_real_escape_string($opredelenie) . "' LIMIT 1 ;");
                
header('location:88.php?go=fight');
                exit;
                ;
            }


            
$rp mysql_query("select * from `qw_all` where  `qw`='14' 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=qwestt&step=" . ($_GET['step'] +
                
1) . ">" $rpp['text_pers'] . "</a>";
            
exitt($row$opredelenie);


        }




        ;
    }
    ;
}

?>
Онлайн: 0
Реклама