Файл: l2ps_v5/files/okrquest.php
Строк: 162
<?php
##########################################
## Автор: Bopo6eu aka 7up # ## Сайт: http://l2pirates.ru # ## ICQ : 44-67-47-41 # ## Версия Лицензионная #
## Данная версия скрипта является ПЛАТНОЙ, #
## вы НЕ ИМЕЕТЕ ПРАВА распрострянять данный #
## скрипт или какие-либо части его кода... #
#########################################
include_once("files/ini.php");
//////qvest1/////
if($udata37=="Dragon Valley" and $mob0=="Thunder Wyrm"){
$chast=rand(1,800);
if($chast>"18"){
$req = mysql_query("SELECT * FROM `item` WHERE `uda7` = '$log' and `uda4` = 'Волчьи Шкуры'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO `item` VALUES ('', '0', '500', 'vesh' , '1' , 'Волчьи Шкуры' , 'Волчьи Шкуры.gif' , '' , '".$log."' )") or die(mysql_error());
}else{
$nk=$rs[uda3]+1;
mysql_query("UPDATE `item` SET `uda3` = '$nk' WHERE `uda7` = '$log' and `uda4` = 'Волчьи Шкуры'");
}
echo"Выпала: <i>Волчьи Шкуры</i><br>";
}
}
////qvest2///
if($udata37=="Maille Lizardman Barracks" and $mob0=="Maille Lizardman Shaman"){
$chast=rand(1,300);
if($chast>"48"){
$req = mysql_query("SELECT * FROM `item` WHERE `uda7` = '$log' and `uda4` = 'Лекарство'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO `item` VALUES ('', '0', '500', 'vesh' , '1' , 'Лекарство' , 'Лекарство.gif' , '' , '".$log."' )") or die(mysql_error());
}else{
$nk=$rs[uda3]+1;
mysql_query("UPDATE `item` SET `uda3` = '$nk' WHERE `uda7` = '$log' and `uda4` = 'Лекарство'");
}
echo"Выпала: <i>Лекарство</i><br>";
}
}
///квест3////
if($udata37=="Dion Hills" and $mob0=="Dion Grizzly"){
$chast=rand(1,300);
if($chast>"48"){
$req = mysql_query("SELECT * FROM `item` WHERE `uda7` = '$log' and `uda4` = 'Кости монстра'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO `item` VALUES ('', '0', '500', 'vesh' , '1' , 'Кости монстра' , 'Кости монстра.gif' , '' , '".$log."' )") or die(mysql_error());
}else{
$nk=$rs[uda3]+1;
mysql_query("UPDATE `item` SET `uda3` = '$nk' WHERE `uda7` = '$log' and `uda4` = 'Кости монстра'");
}
echo"Выпала: <i>Кости монстра</i><br>";
}
}
///квест///
if($udata37=="Execution Grounds" and $mob0=="моб"){
$chast=rand(1,300);
if($chast>"98"){
$req = mysql_query("SELECT * FROM `item` WHERE `uda7` = '$log' and `uda4` = 'рес'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO `item` VALUES ('', '0', '500', 'vesh' , '1' , 'рес' , 'рес.gif' , '' , '".$log."' )") or die(mysql_error());
}else{
$nk=$rs[uda3]+1;
mysql_query("UPDATE `item` SET `uda3` = '$nk' WHERE `uda7` = '$log' and `uda4` = 'рес'");
}
echo"Выпала: <i>рес</i><br>";
}
}
///квест5///
if($udata37=="окра" and $mob0=="моб"){
$chast=rand(1,300);
if($chast>"98"){
$req = mysql_query("SELECT * FROM `item` WHERE `uda7` = '$log' and `uda4` = 'рес'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO `item` VALUES ('', '0', '500', 'vesh' , '1' , 'рес' , 'рес.gif' , '' , '".$log."' )") or die(mysql_error());
}else{
$nk=$rs[uda3]+1;
mysql_query("UPDATE `item` SET `uda3` = '$nk' WHERE `uda7` = '$log' and `uda4` = 'рес'");
}
echo"Выпала: <i>рес</i><br>";
}
}
///квест6///
if($udata37=="окра" and $mob0=="моб"){
$chast=rand(1,300);
if($chast>"98"){
$req = mysql_query("SELECT * FROM `item` WHERE `uda7` = '$log' and `uda4` = 'рес'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO `item` VALUES ('', '0', '500', 'vesh' , '1' , 'рес' , 'рес.gif' , '' , '".$log."' )") or die(mysql_error());
}else{
$nk=$rs[uda3]+1;
mysql_query("UPDATE `item` SET `uda3` = '$nk' WHERE `uda7` = '$log' and `uda4` = 'рес'");
}
echo"Выпала: <i>рес</i><br>";
}
}
///квест7//
if($udata37=="окра" and $mob0=="моб"){
$chast=rand(1,300);
if($chast>"98"){
$req = mysql_query("SELECT * FROM `item` WHERE `uda7` = '$log' and `uda4` = 'рес'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO `item` VALUES ('', '0', '500', 'vesh' , '1' , 'рес' , 'рес.gif' , '' , '".$log."' )") or die(mysql_error());
}else{
$nk=$rs[uda3]+1;
mysql_query("UPDATE `item` SET `uda3` = '$nk' WHERE `uda7` = '$log' and `uda4` = 'рес'");
}
echo"Выпала: <i>рес</i><br>";
}
}
///квест8///
if($udata37=="окра" and $mob0=="моб"){
$chast=rand(1,300);
if($chast>"98"){
$req = mysql_query("SELECT * FROM `item` WHERE `uda7` = '$log' and `uda4` = 'рес'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO `item` VALUES ('', '0', '500', 'vesh' , '1' , 'рес' , 'рес.gif' , '' , '".$log."' )") or die(mysql_error());
}else{
$nk=$rs[uda3]+1;
mysql_query("UPDATE `item` SET `uda3` = '$nk' WHERE `uda7` = '$log' and `uda4` = 'рес'");
}
echo"Выпала: <i>рес</i><br>";
}
}
///квест9///
if($udata37=="окра" and $mob0=="моб"){
$chast=rand(1,300);
if($chast>"98"){
$req = mysql_query("SELECT * FROM `item` WHERE `uda7` = '$log' and `uda4` = 'рес'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO `item` VALUES ('', '0', '500', 'vesh' , '1' , 'рес' , 'рес.gif' , '' , '".$log."' )") or die(mysql_error());
}else{
$nk=$rs[uda3]+1;
mysql_query("UPDATE `item` SET `uda3` = '$nk' WHERE `uda7` = '$log' and `uda4` = 'рес'");
}
echo"Выпала: <i>рес</i><br>";
}
}
///10///
if($udata37=="окра" and $mob0=="моб"){
$chast=rand(1,300);
if($chast>"98"){
$req = mysql_query("SELECT * FROM `item` WHERE `uda7` = '$log' and `uda4` = 'рес'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO `item` VALUES ('', '0', '500', 'vesh' , '1' , 'рес' , 'рес.gif' , '' , '".$log."' )") or die(mysql_error());
}else{
$nk=$rs[uda3]+1;
mysql_query("UPDATE `item` SET `uda3` = '$nk' WHERE `uda7` = '$log' and `uda4` = 'рес'");
}
echo"Выпала: <i>рес</i><br>";
}
}
///квест11///
if($udata37=="окра" and $mob0=="моб"){
$chast=rand(1,300);
if($chast>"98"){
$req = mysql_query("SELECT * FROM `item` WHERE `uda7` = '$log' and `uda4` = 'рес'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO `item` VALUES ('', '0', '500', 'vesh' , '1' , 'рес' , 'рес.gif' , '' , '".$log."' )") or die(mysql_error());
}else{
$nk=$rs[uda3]+1;
mysql_query("UPDATE `item` SET `uda3` = '$nk' WHERE `uda7` = '$log' and `uda4` = 'рес'");
}
echo"Выпала: <i>рес</i><br>";
}
}
/////////////////////////////////Частицы////////////////////////////////
if($udata37=="Ketra Orc Outpost" or $udata37=="Varka Silenos Outpost" or $udata37=="Imperial Tomb" and $mob0=="Grazing Buffalo" or $mob0=="Ketra Orc Lieutenant" or $mob0=="Ketra Orc Warrior" or $mob0=="Follower of Hestia" or $mob0=="Scout of Hekaton" or $mob0=="Grazing Kookaburra" or $mob0=="Ketra Orc Raider" or $mob0=="Fighter of Hestia" or $mob0=="Ketra`s War Hound" or $mob0=="Ketra Orc Footman" or $mob0=="Ketra Orc Shaman" or $mob0=="Varka`s Head Magus" or $mob0=="Grazing Nepenthes" or $mob0=="Varka Silenos Priest" or $mob0=="Imperial Healer" or $mob0=="Varka Silenos Warrior" or $mob0=="Varka Silenos Recruit" or $mob0=="Varka Silenos Footman" or $mob0=="Imperial Mosaic" or $mob0=="Imperial Commander" or $mob0=="Halisha`s Foreman" or $mob0=="Knight of Empire" or $mob0=="Ghost of a Gatekeeper" or $mob0=="Imperial Tomb" or $mob0=="Carrion Scarab" or $mob0=="Shrine Guard" or $mob0=="Vassal Ghost" or $mob0=="Imperial Commander"){
//$chast=rand(1,800);
//if($chast>"98"){Imperial Tomb
$time=date("H:i");
if($time>="22:00" && $time<="07:00"){
$rand=rand(1,200);
}else{
$rand=rand(1,300);
}
$udacha="1";
if($rand==$udacha){
$req = mysql_query("SELECT * FROM `item` WHERE `uda7` = '$log' and `uda4` = 'Частица измерения'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO `item` VALUES ('', '0', '500', 'vesh' , '1' , 'Частица измерения' , 'Частица измерения.gif' , '' , '".$log."' )") or die(mysql_error());
}else{
$nk=$rs[uda3]+1;
mysql_query("UPDATE `item` SET `uda3` = '$nk' WHERE `uda7` = '$log' and `uda4` = 'Частица измерения'");
}
echo"Выпала: <img src='l2pic/res/Частица измерения.gif' alt='pic'/><i> Частица измерения</i><br>";
}
}
/////////////////////////////////Медали////////////////////////////////
$chast=rand(1,100);
if($chast>"98"){
$req = mysql_query("SELECT * FROM `olimpiada` WHERE `usr` = '$log' ");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO
`olimpiada` SET
`usr` = '$log',
`kol` = '1'");
}else{
$nk=$rs[kol]+1;
mysql_query("UPDATE `olimpiada` SET `kol` = '$nk' WHERE `usr` = '$log' ");
}
echo"Выпала: <img src='l2pic/res/olympiad.png' alt='pic'/> <i> Olimpiad Medal</i><br>";
}
//////////////////////////////////7 печатий///////////////////////////////////////
if($udata37=="Catacomb of the Heretic" or $udata37=="Catacombs of the Apostate" or $udata37=="Catacomb of the Branded" and $mob0=="Mandragora Sprout" or $mob0=="Timak Orc Archer" or $mob0=="Timak Orc" or $mob0=="Strain" or $mob0=="Mandragora Sapling" or $mob0=="Neer Ghoul Berserker" or $mob0=="Timak Orc Archer" or $mob0=="Mandragora Blossom" or $mob0=="Barrow Overlord" or $mob0=="Catacomb Gargoyle" or $mob0=="Lith Commander" or $mob0=="Ice Tarantula"){
$chast=rand(1,100);
if($chast>"98"){
$req = mysql_query("SELECT * FROM `7pe4` WHERE `usr` = '$log' ");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO
`7pe4` SET
`usr` = '$log',
`kol` = '1'");
}else{
$nk=$rs[kol]+1;
mysql_query("UPDATE `7pe4` SET `kol` = '$nk' WHERE `usr` = '$log' ");
}
echo"Выпала: <img src='l2pic/res/Gemstone.gif' alt='pic'/> <i> Gemstone</i><br>";
}
}
//////пираты/////
$time=date("H:i");
if($time>="22:00" && $time<="07:00"){
$rand=rand(1,300);
}else{
$rand=rand(1,500);
}
$udacha="1";
if($rand==$udacha){
$udata68=$udata68+1;
mysql_query("UPDATE `users` SET `udata68`='$udata68' WHERE `udata0`='$log'");
$date=date("d.m.y");
$time=date("H:i");
mysql_query("INSERT INTO `zametki` VALUES ('', 'Вам выпало 1 l2ps ', 'ПИРАТ', '".$time."/".$date."', '".$log."')");
}
if($rand==$udacha){
echo "Из монстра выпал <img src='favicon.ico' alt='pic'/> <u> 1 l2ps</u></br>";}
$time=date("H:i");
if($time>="22:00" && $time<="07:00"){
$rand=rand(1,500);
}else{
$rand=rand(1,1000);
}
$udacha="1";
if($rand==$udacha){
$udata38=$udata38+1;
mysql_query("UPDATE `users` SET `udata38`='$udata38' WHERE `udata0`='$log'");
$date=date("d.m.y");
$time=date("H:i");
mysql_query("INSERT INTO `zametki` VALUES ('', 'Вам выпало 1 Coin of Luck ', 'ПИРАТ', '".$time."/".$date."', '".$log."')");
}
if($rand==$udacha){
echo "Из монстра выпал <img src='l2pic/money/coin.png' alt='pic'/> <u> 1 Coin of Luck</u></br>";}
?>