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

if($rpp['12']==0){
    if(
$row['lvl']<20){print"Приходи как будешь 20 уровня!";exitt($row,$opredelenie);}
    
$q_b mysql_query("select*from `qwest_book` where `id_pers`='" $row['ID'] .
    
"' and `id_qw`='12'");
if (
mysql_num_rows($q_b) == 1) {
    
$qwest_book mysql_fetch_array($q_b);
    
    if (
$qwest_book['tek_status'] == 1) {
    print 
"<strong>Начальник Стражи:</strong> Ты выполнил мое поручение?<br>
        <strong>
$opredelenie:</strong><a href=88.php?go=do>Еще нет!</a>"
    
 
;exitt($row,$opredelenie)   
    ;}
        if (
$qwest_book['tek_status'] == 2) {
    print 
"<strong>Начальник Стражи:</strong> Ты выполнил мое поручение?<br>
        <strong>
$opredelenie:</strong><a href=88.php?go=do>Еще нет!</a>"
    
 
;exitt($row,$opredelenie)   
    ;}
    
    ;}
    
    
    
    
    
    
$q_b=mysql_query("select*from `qwest_book` where `id_pers`='".$row['ID']."' and `id_qw`='12'");
    
///////////////////////////////////////////////////////////////////////////////////////////
    
if(mysql_num_rows($q_b)==0){
    
    if(!isset(
$_GET['step'])){
        
$_GET['step']=1  ;}
        
      if(
$_GET['step']==2){
        
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']."', '12', 'Пещера Серебряного Тумана', 'Сходить в Пещеру [5S/18E] и узнать что там!', '1', '0','9'
);  "
);
$_SESSION['statusis']='Сходить в Пещеру Тумана [5S/18E] и узнать что там!!';      
        
        
        
        
header('location:88.php?go=do');exit ;
        ;}     
        
        
    
$rp=mysql_query("select * from `qw_all` where  `qw`='12' 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']==6){
         
mysql_query("update qwest_book set tek_status='4',opisan_qw='Доложить Начальнику стражи' where id_pers='".$row['ID']."'and id_qw='12'");
   
$_SESSION['statusis']='Задание обновлено! Доложить Начальнику стражи!';      
        
        
        
        
header('location:88.php?go=do');exit ;
        ;}     
        
        
    
$rp=mysql_query("select * from `qw_all` where  `qw`='12' 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=2");
$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']==3){
         
mysql_query("update qwest_book set tek_status='5',opisan_qw='Выполнено!' where id_pers='".$row['ID']."'and id_qw='12'");
   
$row['zoloto']+=2000;
 
$row['tekopit']+=4000;
            
$row['obshopit']+=4000;
            
     
mysql_query("UPDATE  
  `table1` SET `zoloto`='"
.$row['zoloto']."',`tekopit`='" mysql_real_escape_string($row["tekopit"]) .
                
"',
   `obshopit`='" 
mysql_real_escape_string($row["obshopit"]) .
                
"' 
    WHERE `name`='" 
mysql_real_escape_string($opredelenie) . "';") or die(mysql_error
                
());
   
  
$_SESSION['statusis']='Задание Выполнено!';      
    
mysql_query("UPDATE `a36667_element`.`qw_mercury_pers` SET `12` = '1' WHERE `qw_mercury_pers`.`id_pers` ='".$row['ID']."' LIMIT 1 ;") ;   
        
        
        
header('location:88.php?go=do');exit ;
        ;}     
        
        
    
$rp=mysql_query("select * from `qw_all` where  `qw`='12' 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=3");
$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
Реклама