location.href='main.php?act=none'"; exit; } /////// //Вход на 2ой этаж if($repa["n$loc2"]=='et2' and $vector==$repa["v$loc2"]){ $s.='
'; } //Вход на 1ый этаж if($repa["n$loc2"]=='et1' and $vector==$repa["v$loc2"]){ $s.='
'; } if($repa["n$loc2"]=='20' and $vector==$repa["v$loc2"]){ $s.='
Бывший скад мартына.
'; } if($repa["n$loc3"]=='20' and $vector==$repa["v$loc3"]){ $s.='
Бывший скад мартына.
'; } if($repa["n$loc4"]=='20' and $vector==$repa["v$loc4"]){ $s.='
Бывший скад мартына.
'; } if($repa["n$loc2"]=='el' and $vector==$repa["v$loc2"]){ $s.='
Зелье
'; } if($repa["n$loc3"]=='el' and $vector==$repa["v$loc3"]){ $s.='
Зелье
'; } if(($repa["n$mesto"]=='11.1' or $repa["n$mesto"]=='11.0') and $vector==$repa["v$mesto"]){ $s.='
Водосток
'; } if(($repa["n$loc2"]=='11.1' or $repa["n$loc2"]=='11.0') and $vector==$repa["v$loc2"]){ $s.='
Водосток
'; } if(($repa["n$loc3"]=='11.1' or $repa["n$loc3"]=='11.0') and $vector==$repa["v$loc3"]){ $s.='
Водосток
'; } if(($repa["n$loc4"]=='11.1' or $repa["n$loc4"]=='11.0') and $vector==$repa["v$loc4"]){ $s.='
Водосток
'; } ///////////// if(($repa["n$loc2"]=='12.1' or $repa["n$loc2"]=='12.0') and $vector==$repa["v$loc2"]){ $s.='
Водосток
'; } if(($repa["n$loc3"]=='12.1' or $repa["n$loc3"]=='12.0') and $vector==$repa["v$loc3"]){ $s.='
Водосток
'; } if(($repa["n$loc4"]=='12.1' or $repa["n$loc4"]=='12.0') and $vector==$repa["v$loc4"]){ $s.='
Водосток
'; } ////////////////klju4i///////////////////////// if($repa["n$mesto"]=='key1' or $repa["n$loc2"]=='key1' or $repa["n$loc3"]=='key1' or $repa["n$loc4"]=='key1'){$nomers='1';} if($repa["n$mesto"]=='key2' or $repa["n$loc2"]=='key2' or $repa["n$loc3"]=='key2' or $repa["n$loc4"]=='key2'){$nomers='2';} if($repa["n$mesto"]=='key3' or $repa["n$loc2"]=='key3' or $repa["n$loc3"]=='key3' or $repa["n$loc4"]=='key3'){$nomers='3';} if($repa["n$mesto"]=='key4' or $repa["n$loc2"]=='key4' or $repa["n$loc3"]=='key4' or $repa["n$loc4"]=='key4'){$nomers='4';} if($repa["n$mesto"]=='key5' or $repa["n$loc2"]=='key5' or $repa["n$loc3"]=='key5' or $repa["n$loc4"]=='key5'){$nomers='5';} if($repa["n$mesto"]=='key6' or $repa["n$loc2"]=='key6' or $repa["n$loc3"]=='key6' or $repa["n$loc4"]=='key6'){$nomers='6';} if($repa["n$mesto"]=='key7' or $repa["n$loc2"]=='key7' or $repa["n$loc3"]=='key7' or $repa["n$loc4"]=='key7'){$nomers='7';} if($repa["n$mesto"]=='key8' or $repa["n$loc2"]=='key8' or $repa["n$loc3"]=='key8' or $repa["n$loc4"]=='key8'){$nomers='8';} if($repa["n$mesto"]=='key9' or $repa["n$loc2"]=='key9' or $repa["n$loc3"]=='key9' or $repa["n$loc4"]=='key9'){$nomers='9';} if($repa["n$mesto"]=='key10' or $repa["n$loc2"]=='key10' or $repa["n$loc3"]=='key10' or $repa["n$loc4"]=='key10'){$nomers='10';} if(($repa["n$mesto"]=='key1' or $repa["n$mesto"]=='key2' or $repa["n$mesto"]=='key3' or $repa["n$mesto"]=='key4' or $repa["n$mesto"]=='key5' or $repa["n$mesto"]=='key6' or $repa["n$mesto"]=='key7' or $repa["n$mesto"]=='key8' or $repa["n$mesto"]=='key9' or $repa["n$mesto"]=='key10') and $vector==$repa["v$mesto"]){ $s.='
Ключ №'.$nomers.'
'; } if(($repa["n$loc2"]=='key1' or $repa["n$loc2"]=='key2' or $repa["n$loc2"]=='key3' or $repa["n$loc2"]=='key4' or $repa["n$loc2"]=='key5' or $repa["n$loc2"]=='key6' or $repa["n$loc2"]=='key7' or $repa["n$loc2"]=='key8' or $repa["n$loc2"]=='key9' or $repa["n$loc2"]=='key10') and $vector==$repa["v$loc2"]){ $s.='
Ключ №'.$nomers.'
'; } if($step2['fwd'] and ($repa["n$loc3"]=='key1' or $repa["n$loc3"]=='key2' or $repa["n$loc3"]=='key3' or $repa["n$loc3"]=='key4' or $repa["n$loc3"]=='key5' or $repa["n$loc3"]=='key6' or $repa["n$loc3"]=='key7' or $repa["n$loc3"]=='key8' or $repa["n$loc3"]=='key9' or $repa["n$loc3"]=='key10') and $vector==$repa["v$loc3"]){ $s.='
Ключ №'.$nomers.'
'; } if($step3['fwd'] and ($repa["n$loc4"]=='key1' or $repa["n$loc4"]=='key2' or $repa["n$loc4"]=='key3' or $repa["n$loc4"]=='key4' or $repa["n$loc4"]=='key5' or $repa["n$loc4"]=='key6' or $repa["n$loc4"]=='key7' or $repa["n$loc4"]=='key8' or $repa["n$loc4"]=='key9' or $repa["n$loc4"]=='key10') and $vector==$repa["v$loc4"]){ $s.='
Ключ №'.$nomers.'
'; } if($step3['fwd'] and ($repa["n$loc4"]=='13.1' or $repa["n$loc4"]=='13.0')){ $s.='
Сундук
'; } if($step3['fwd'] and ($repa["n$loc4"]=='14.1' or $repa["n$loc4"]=='14.0')){ $s.='
Сундук
'; } //////////////////////3///////////////////////// if($step3['fwd'] and $rt["n$loc4"]!='') { if($k_b=='1'){ $s.='
'; } if($k_b=='2'){ $s.='
'; $s.='
'; } if($k_b=='3'){ $s.='
'; $s.='
'; $s.='
'; } } $rogs=mysql_query("SELECT login,location FROM `labirint` WHERE `glava`='$glava'"); $i=0; while($mores=mysql_fetch_array($rogs)){ $i++; $nus=mysql_num_rows($rogs); if($vector == 0){$lac = $location+30;} if($vector == 90){$lac = $location+3;} if($vector == 180){$lac = $location-30;} if($vector == 270){$lac = $location-3;} if($step3['fwd'] and $lac==$mores['location'] and $nus>=2) { if($nus==2){ $l = '170'; } if($nus==3){ if($i==1){$l = '140';} if($i==2){$l = '170';} if($i==3){$l = '200';} } if($nus==4){ if($i==1){$l = '140';} if($i==2){$l = '160';} if($i==3){$l = '180';} if($i==4){$l = '200';} } $s.='
'; } } if($step3['fwd'] and $repa["n$loc4"]>='1' and $repa["n$loc4"]<='10'){ $s.='
Решетка(нужен ключ №'.$repa[
'; } ///////////////////////////////////////////// if($step2['fwd'] and ($repa["n$loc3"]=='13.1' or $repa["n$loc3"]=='13.0')){ $s.='
Сундук
'; } if($step2['fwd'] and ($repa["n$loc3"]=='14.1' or $repa["n$loc3"]=='14.0')){ $s.='
Сундук
'; } /////////////////////2/////////////////////// if($step2['fwd'] and $rt["n$loc3"]!='') { if($k_b3=='1'){ $s.='
'; } if($k_b3=='2'){ $s.='
'; $s.='
'; } if($k_b3=='3'){ $s.='
'; $s.='
'; $s.='
'; } } $rogs=mysql_query("SELECT login,location FROM `labirint` WHERE `glava`='$glava'"); $i=0; while($mores=mysql_fetch_array($rogs)){ $i++; $nus=mysql_num_rows($rogs); if($vector == 0){$lac = $location+20;} if($vector == 90){$lac = $location+2;} if($vector == 180){$lac = $location-20;} if($vector == 270){$lac = $location-2;} if($step2['fwd'] and $lac==$mores['location'] and $nus>=2) { if($nus==2){ $l = '160'; } if($nus==3){ if($i==1){$l = '130';} if($i==2){$l = '160';} if($i==3){$l = '190';} } if($nus==4){ if($i==1){$l = '120';} if($i==2){$l = '150';} if($i==3){$l = '180';} if($i==4){$l = '210';} } $s.='
'; } } if($step2['fwd'] and $repa["n$loc3"]>='1' and $repa["n$loc3"]<='10'){ $s.='
Решетка(нужен ключ №'.$repa[
'; $s.='
Решетка(нужен ключ №'.$repa[
'; } /////////////////////////////////////////// if($step1['fwd'] and ($repa["n$loc2"]=='13.1' or $repa["n$loc2"]=='13.0')){ $s.='
Сундук
'; } if($step1['fwd'] and ($repa["n$loc2"]=='14.1' or $repa["n$loc2"]=='14.0')){ $s.='
Сундук
'; } /////////////////////1///////////////////// if($step1['fwd'] and $rt["n$loc2"]!='') { if($k_b2=='1'){ if($rt["n$loc2"]=='8'){ $s.='
'; }else{$s.='
';} } if($k_b2=='2'){ $s.='
'; $s.='
'; } if($k_b2=='3'){ $s.='
'; $s.='
'; $s.='
'; } } $rogs=mysql_query("SELECT login,location FROM `labirint` WHERE `glava`='$glava'"); $i=0; while($mores=mysql_fetch_array($rogs)){ $i++; $nus=mysql_num_rows($rogs); if($vector == 0){$lac = $location+10;} if($vector == 90){$lac = $location+1;} if($vector == 180){$lac = $location-10;} if($vector == 270){$lac = $location-1;} if($step1['fwd'] and $lac==$mores['location'] and $nus>=2) { if($nus==2){ $l = '150'; } if($nus==3){ if($i==1){$l = '90';} if($i==2){$l = '150';} if($i==3){$l = '180';} } if($nus==4){ if($i==1){$l = '100';} if($i==2){$l = '140';} if($i==3){$l = '180';} if($i==4){$l = '210';} } $s.='
'; } } //////////////////////////////////////// if($step1['fwd'] and $repa["n$loc2"]>='1' and $repa["n$loc2"]<='10'){ $s.='
Решетка(нужен ключ №'.$repa[
'; $s.='
Решетка(нужен ключ №'.$repa[
'; } $mesto = $location; if($location == '01'){$mesto = '1';} if($location == '02'){$mesto = '2';} if($location == '03'){$mesto = '3';} if($location == '04'){$mesto = '4';} if($location == '05'){$mesto = '5';} if($location == '06'){$mesto = '6';} if($location == '07'){$mesto = '7';} if($location == '08'){$mesto = '8';} if($location == '09'){$mesto = '9';} //////////////0-ja//////////////// if($step1['fwd'] and $repa["n$mesto"]>='1' and $repa["n$mesto"]<='10'){ $s.='
Решетка(нужен ключ №'.$repa[
'; } } ?>