Файл: qwest/qw_1.dat.php
Строк: 300
<?
echo'<div class="spiski"><div class="zagolovok"></div><div class="line"></div><ul>';
if($row['lvl']>=175){
$rj=mysql_query("select*from super_q where name='$opredelenie'");
if(mysql_num_rows($rj)<=0){
mysql_query("INSERT INTO `a36667_element`.`super_q` (`id` ,
`name` ,
`1` ,
`2` ,
`3` ,
`4`
)
VALUES (NULL , '$opredelenie', '0', '0', '0', '0'
);")
;
header("location:88.php?go=qwestt") ;
;}
;}
if ($row['tema'] !== 4) {
if($row['lvl']<150){
if($row['polog']=='gorod'){
print"<img src=media/starik.jpg><br>";
;}else{
if($row['polog1']==300){ print"<img src=media/gnom.jpeg><br>";}else{
if($row['polog1']==305){ print"<img src=media/dem_night.jpeg><br>";}else{
if($row['polog1']==1000){ print"<img src=media/dem_night.jpeg><br>";}else{
print"<img src=images/strag.jpeg><br>";};};};};}
;}
$de=mysql_query("select *from super_q where name='$opredelenie'");
$statys_qw=mysql_fetch_array($de);
if(($statys_qw['1']==10)&&($row['gorodnum']!=9)){
if(isset($_GET['qwesh'])){
if($row['gorodnum']==7){
print "<strong>Староста:</strong> Слухи расползлись слишком быстро... Эх, не удивительно. Здесь дюжина зараженных и еще четыре мутанта в темнице. Хочешь посмотреть? <br>
<a href=88.php?go=do>Я спешу!</a>";}
if($row['gorodnum']==8){
print "<strong>Староста:</strong> Откуда ты знаешь?.. Семеро больных и трое уже мутировали. Только никому ни слова, слышишь?<br>
<a href=88.php?go=do>Ладно</a>";}
if($row['gorodnum']==5){
print "<strong>Староста:</strong> Слухи расползлись слишком быстро... Эх, не удивительно. Здесь дюжина зараженных и еще четыре мутанта в темнице. Хочешь посмотреть? <br>
<a href=88.php?go=do>Я спешу!</a>";}
if($row['gorodnum']==3){
print "<strong>Староста:</strong> Слухи расползлись слишком быстро... Эх, не удивительно. Здесь дюжина зараженных и еще четыре мутанта в темнице. Хочешь посмотреть? <br>
<a href=88.php?go=do>Я спешу!</a>";}
if($row['gorodnum']==4){
print "<strong>Староста:</strong> Слухи расползлись слишком быстро... Эх, не удивительно. Здесь дюжина зараженных и еще четыре мутанта в темнице. Хочешь посмотреть? <br>
<a href=88.php?go=do>Я спешу!</a>";}
if($row['gorodnum']==6){
print "<strong>Староста:</strong>: А-а? Ну, наконец-то, кто-то решил разобраться с этим. Двадцать три заражено и дюжина мутировали. Поторопись <br>
<a href=88.php?go=do>Ладно!</a>";}
exitt($row,$opredelenie); }
print "<strong>$opredelenie</strong>:<a href=88.php?go=qwestt&qwesh>[Сколько заболевших?]</a>" ;
exitt($row,$opredelenie);}
if(($statys_qw['1']==109)&&($row['gorodnum']!=9)){
if(isset($_GET['qwesh'])){
if($row['gorodnum']==3){
print "<strong>Староста:</strong> -Кто? А кто это такой?<br>
<a href=88.php?go=do>Ладно</a>";}
if($row['gorodnum']==4){
print "<strong>Староста:</strong> Здесь мышь не проскочит, а ты о каком-то там инквизиторе... <br>
<a href=88.php?go=do>Я спешу!</a>";}
if($row['gorodnum']==5){
print "<strong>Староста:</strong>:Понятия не имею, о ком ты <br>
<a href=88.php?go=do>Ладно!</a>";}
if($row['gorodnum']==6){
print "<strong>Староста:</strong>:-Ой, не морочь мне голову! <br>
<a href=88.php?go=do>Ладно!</a>";}
if($row['gorodnum']==8){
print "<strong>Староста:</strong> -Кто? А кто это такой?<br>
<a href=88.php?go=do>Ладно</a>";}
if($row['gorodnum']==1){
print "<strong>Староста:</strong> Здесь мышь не проскочит, а ты о каком-то там инквизиторе... <br>
<a href=88.php?go=do>Я спешу!</a>";}
if($row['gorodnum']==2){
print "<strong>Староста:</strong>:Понятия не имею, о ком ты <br>
<a href=88.php?go=do>Ладно!</a>";}
if($row['gorodnum']==7){
print "<strong>Староста:</strong>:-Ой, не морочь мне голову! <br>
<a href=88.php?go=do>Ладно!</a>";}
exitt($row,$opredelenie); }
print "<strong>$opredelenie</strong>:<a href=88.php?go=qwestt&qwesh>[Инквизитор не пробегал?]</a>" ;
exitt($row,$opredelenie);}
if($row['lvl']>=175){
include"./qwest/super.dat.php";
;}
$rp=mysql_query("select * from `qw_mercury_pers` where `id_pers`='".$row['ID']."'");
if(mysql_num_rows($rp)==0){
mysql_query("INSERT INTO `qw_mercury_pers` (
`id` ,`id_pers` ,`0` ,`1` ,`2` ,`12` ,`13` ,`14` ,`15` ,`16` ,`kolvo`
)VALUES (NULL , '".$row['ID']."', '', '', '', '', '', '', '', '',''
);")or die(mysql_error());}
////////////////////////////////////////////////////////////////////////////////////
$rp=mysql_query("select * from `qw_mercury_pers` where `id_pers`='".$row['ID']."'");
$rpp=mysql_fetch_array($rp);
if(($rpp['13']==0)&&(($rpp['12']==1))){
print "<strong>Начальник стражи:</strong>У алхимика, в лаболатории есть для тебя задание<br>
<strong>$opredelenie:</strong><a href=88.php?go=do>Отлично</a>"
;exitt($row,$opredelenie) ;
;}
if(($rpp['13']==1)&&(($rpp['14']==0))){
include"./qwest/qw/30_qwest.dat.php";
;}
if($rpp['2']==3){
include"./qwest/qw/20_qwest.dat.php";
;}
if(($rpp['0']>=9)&&($rpp['1']<=12)){
include"./qwest/qw_2.dat.php";
exit;
;};
if($rpp['1']>=13){
include"./qwest/qw_3.dat.php";
exit;
;};
//1 часть $rpp=0
//первый квест
if($rpp['0']==0){
if(!isset($_GET['step'])){
$_GET['step']=1;
;}
if($_GET['step']==9){
mysql_query("update`qw_mercury_pers` set `0`='1' where `id_pers`='".$row['ID']."' ");
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']."', '1', 'Первая битва', 'Убить 5 монстров и вернуться к Начальнику стражи.', '1', '0','5'
); ");
$_SESSION['statusis']='Убить 5 монстров и вернуться к Начальнику стражи!';
header('location:88.php?go=do');exit ;
;}
$rp=mysql_query("select * from `qw_mercury` where `id`='".mysql_real_escape_string($_GET['step'])."'
and `qw`='0' and `step`='0' 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) ;}
if($rpp['0']==1){print "<strong>Начальник Стражи:</strong> Ты еще не убил 5 монстров!";;exitt($row,$opredelenie) ;}
//////////////////////////////////////////////////////////////////////////////////////////
if($rpp['0']==2){
if(!isset($_GET['step'])){
$_GET['step']=1;
;}
if($_GET['step']==3){
mysql_query("INSERT INTO `rukzak` (`idrukzak`, `name` , `tip` , `nazvanie`,`try`,`time`,`sozdatel`,`lvl`,`chit`,`table`,`rus_tip`,`rus_par` )
VALUES ('','" . mysql_real_escape_string($opredelenie) . "', 'ataka100', 'Меч Новобранца','100','".time()."','" .
mysql_real_escape_string($opredelenie) . "','" . mysql_real_escape_string($row['lvl']) .
"','or','ataka','Оружие',' к атаке'
)") or die(mysql_error()) ;
mysql_query("update`qw_mercury_pers` set `0`='3' where `id_pers`='".$row['ID']."' ");
mysql_query("update qwest_book set `tek_status`='3',`opisan_qw`='Выполнено!',`status`='1' where id_pers='".$row['ID']."' and id_qw='1'");
header('location:88.php?go=do');exit ;
;}
$rp=mysql_query("select * from `qw_mercury` where `id`='".mysql_real_escape_string($_GET['step'])."' and `qw`='1'and `step`='0'
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) ;}
///////////////////////////////
if($rpp['0']==3){
if($row['lvl']<3){print "<strong>Начальник Стражи:</strong> Приходи когда достигнешь 3 уровня<br>";exitt($row,$opredelenie);
;}
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']."', '2', 'Помошь кузнецу', 'Пойти на шахту, что на [1 S/1W] и добыть 3 единиц руды, после чего отдать сие капитану.', '1', '0','3'
); ");
$_SESSION['statusis']='Добыть 3 единицы рудной породы!';
mysql_query("update`qw_mercury_pers` set `0`='4' where `id_pers`='".$row['ID']."' ");
header('location:88.php?go=do');exit ;
;}
$rp=mysql_query("select * from `qw_mercury` where `id`='".mysql_real_escape_string($_GET['step'])."' and `qw`='2' and `step`='0'
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) ;}
//////////////////////////////////////////////////////////////////////
if($rpp['0']==4){
if(!isset($_GET['step'])){
$_GET['step']=1;
;}
if($_GET['step']==3){ header('location:88.php?go=do');exit ;;}
if($_GET['step']==2){
$ruk=mysql_query("select *from rukzak where name='$opredelenie' and chit='ruda' and odeto='0'");
$rukk=mysql_num_rows($ruk);
if($rukk<3){$_GET['step']=2;}else{
mysql_query("delete from rukzak where name='$opredelenie' and chit='ruda' and odeto='0' limit 3");
///////////////////////////////////////////////////////////////////////
mysql_query("update qwest_book set `tek_status`='2',`opisan_qw`='Выполнено!',`status`='1' where id_pers='".$row['ID']."' and id_qw='2'");
mysql_query("update`qw_mercury_pers` set `0`='5' where `id_pers`='".$row['ID']."' ");
header('location:88.php?go=qwestt');exit ;}
;}
$rp=mysql_query("select * from `qw_mercury` where `id`='".mysql_real_escape_string($_GET['step'])."' and `qw`='3'and `step`='0'
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) ;}
//////////////////////////////////////////////////////////////////////
if($rpp['0']==5){
if(!isset($_GET['step'])){
$_GET['step']=1;
;}
if($_GET['step']==2){
mysql_query("INSERT INTO `rukzak` (`idrukzak`, `name` , `tip` , `nazvanie`,`try`,`time`,`sozdatel`,`lvl`,`chit`,`table`,`rus_tip`,`rus_par` )
VALUES ('','" . mysql_real_escape_string($opredelenie) . "', 'dos100', 'Доспех Новобранца','100','".time()."','" .
mysql_real_escape_string($opredelenie) . "','" . mysql_real_escape_string($row['lvl']) .
"','dos','zashita','Доспех',' к защите'
)") or die(mysql_error()) ;
mysql_query("update`qw_mercury_pers` set `0`='6' where `id_pers`='".$row['ID']."' ");
header('location:88.php?go=do');exit ;
;}
$rp=mysql_query("select * from `qw_mercury` where `id`='".mysql_real_escape_string($_GET['step'])."' and `qw`='4'and `step`='0'
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) ;}
//////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////
if($rpp['0']==6){
if($row['lvl']<5){print "<strong>Начальник Стражи:</strong> Приходи когда достигнешь 5 уровня<br>";exitt($row,$opredelenie);}
if(!isset($_GET['step'])){
$_GET['step']=1;
;}
if($_GET['step']==5){
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']."', '3', 'Старатель', 'Принести капитану стражи 200 золота, неважно как они будут добыты.', '1', '0','200'
); ");
$_SESSION['statusis']='Принести капитану стражи 200 золота!';
mysql_query("update`qw_mercury_pers` set `0`='7' where `id_pers`='".$row['ID']."' ");
header('location:88.php?go=do');exit ;
;}
$rp=mysql_query("select * from `qw_mercury` where `id`='".mysql_real_escape_string($_GET['step'])."' and `qw`='5'and `step`='0'
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) ;}
//////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
if($rpp['0']==7){
if(!isset($_GET['step'])){
$_GET['step']=1;
;}
if($_GET['step']==3){ header('location:88.php?go=do');exit ;;}
if($_GET['step']==2){
if($row['zoloto']<200) {$_GET['step']=2;}else{
$row['zoloto']-=200;
mysql_query("update table1 set zoloto='".$row['zoloto']."' where name='$opredelenie'");
mysql_query("update qwest_book set `tek_status`='2',`opisan_qw`='Выполнено!',`status`='1' where id_pers='".$row['ID']."' and id_qw='3'");
$hpm = 50 ;
$nameel = "Эль Жизни($hpm)" ;
$W=0; while($W<3){ $el = mt_rand(10000, 9999999) ;
mysql_query("INSERT INTO `tmp` ( `name`,`hp` , `mp` , `tp`,`apt`,`tip`, `cena` )
VALUES (
'" . mysql_real_escape_string($opredelenie) . "', '" . mysql_real_escape_string
($hpm) . "', '0', '0', '$nameel','" . mysql_real_escape_string($el) .
"','0'
)") or die(mysql_error()) ;
$elnaz = "Эль($hpm,0,0)" ;
mysql_query("INSERT INTO `rukzak` (`idrukzak`, `name` , `tip` , `nazvanie`,`try`,`time`,`sozdatel`,`lvl`,`chit` )
VALUES ('','" . mysql_real_escape_string($opredelenie) . "', '" .
mysql_real_escape_string($el) . "', '" . mysql_real_escape_string($nameel) .
"','','" . time() . "','" . mysql_real_escape_string($opredelenie) . "','','el'
)") or die(mysql_error()) ;$W++;}
mysql_query("update`qw_mercury_pers` set `0`='9' where `id_pers`='".$row['ID']."' ");
print"Награда:<br> 300 опыта, и 5 зелий жизни. . ";exitt($row,$opredelenie) ;
;}
;}
$rp=mysql_query("select * from `qw_mercury` where `id`='".mysql_real_escape_string($_GET['step'])."' and `qw`='6'and `step`='0'
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) ;}
//////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////
exitt($row,$opredelenie);
?>