Файл: okr_kv.php
Строк: 154
<?
//////
if($udata['kv']==8 and $bt['mob']==1)
{
mysql_query("UPDATE `users` SET `kv`='9' WHERE `id`='".$udata['id']."'");
}
/////
if($udata['kv']==30 and $bt['mob']==2 and $udata['kv_s']==0 and $udata['kv_s_n']==0)
{
$r=rand(1,2);
if($r==1)
{
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> <font color=#00ff99>Вы получили квестовый предмет:</font> Кошелек'
");
mysql_query("UPDATE `users` SET `kv_s_n`='1' WHERE `id`='".$udata['id']."'");
}
}
if($udata['kv']==30 and $bt['mob']==3 and $udata['kv_s']==1)
{
$kol=$udata['kv_s_n']+1;
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> Статус: <font color=#ffffff>".$kol." из 5</font>'
");
mysql_query("UPDATE `users` SET `kv_s_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
if($udata['kv']==30 and $bt['mob']==4 and $udata['kv_s']==3 and $udata['kv_s_n']==0)
{
$r=rand(1,2);
if($r==1)
{
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> <font color=#00ff99>Вы получили квестовый предмет:</font> Редкая Книга'
");
$kol=$udata['kv_s_n']+1;
mysql_query("UPDATE `users` SET `kv_s_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
}
if($udata['kv']==30 and $bt['mob']==5 and $udata['kv_s']==4 and $udata['kv_s_n']==0)
{
$r=rand(1,2);
if($r==1)
{
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> <font color=#00ff99>Вы получили квестовый предмет:</font> Признание Библиотекаря'
");
$kol=$udata['kv_s_n']+1;
mysql_query("UPDATE `users` SET `kv_s_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
}
if($udata['kv']==30 and $bt['mob']==4 and $udata['kv_s']==5)
{
$kol=$udata['kv_s_n']+1;
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> Статус: <font color=#ffffff>".$kol." из 10</font>'
");
mysql_query("UPDATE `users` SET `kv_s_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
if($udata['kv']==30 and $bt['mob']==6 and $udata['kv_s']==6)
{
$kol=$udata['kv_s_n']+1;
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> Статус: <font color=#ffffff>".$kol." из 20</font>'
");
mysql_query("UPDATE `users` SET `kv_s_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
if($udata['kv']==30 and $bt['mob']==7 and $udata['kv_s']==10)
{
$kol=$udata['kv_s_n']+1;
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> Статус: <font color=#ffffff>".$kol." из 10</font>'
");
mysql_query("UPDATE `users` SET `kv_s_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
if($udata['kv']==30 and $bt['mob']==8 and $udata['kv_s']==13)
{
$kol=$udata['kv_s_n']+1;
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> Статус: <font color=#ffffff>".$kol." из 20</font>'
");
mysql_query("UPDATE `users` SET `kv_s_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
if($udata['kv']==30 and $bt['mob']==9 and $udata['kv_s']==15)
{
$kol=$udata['kv_s_n']+1;
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> Статус: <font color=#ffffff>".$kol." из 1</font>'
");
mysql_query("UPDATE `users` SET `kv_s_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
if($udata['kv']==30 and $bt['mob']==10 and $udata['kv_s']==16)
{
$kol=$udata['kv_s_n']+1;
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> Статус: <font color=#ffffff>".$kol." из 3</font>'
");
mysql_query("UPDATE `users` SET `kv_s_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
if($udata['kv']==30 and $bt['mob']==11 and $udata['kv_s']==20)
{
$kol=$udata['kv_s_n']+1;
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> Статус: <font color=#ffffff>".$kol." из 20</font>'
");
mysql_query("UPDATE `users` SET `kv_s_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
if($udata['kv']==30 and $bt['mob']==12 and $udata['kv_s']==21)
{
$kol=$udata['kv_s_n']+1;
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> Статус: <font color=#ffffff>".$kol." из 20</font>'
");
mysql_query("UPDATE `users` SET `kv_s_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
if($udata['kv']==30 and $bt['mob']==13 and $udata['kv_s']==23)
{
$kol=$udata['kv_s_n']+1;
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> Статус: <font color=#ffffff>".$kol." из 1</font>'
");
mysql_query("UPDATE `users` SET `kv_s_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
if($udata['kv']==30 and $bt['mob']==1 and $udata['kv_d']==1)
{
$kol=$udata['kv_d_n']+1;
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> Статус: <font color=#ffffff>".$kol." из 10</font>'
");
mysql_query("UPDATE `users` SET `kv_d_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
if($udata['kv']==30 and $bt['mob']==3 and $udata['kv_d']==2)
{
$kol=$udata['kv_d_n']+1;
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> Статус: <font color=#ffffff>".$kol." из 5</font>'
");
mysql_query("UPDATE `users` SET `kv_d_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
if($udata['kv']==30 and $bt['mob']==14 and $udata['kv_d']==3)
{
$kol=$udata['kv_d_n']+1;
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> Статус: <font color=#ffffff>".$kol." из 5</font>'
");
mysql_query("UPDATE `users` SET `kv_d_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
if($udata['kv']==30 and $bt['mob']==6 and $udata['kv_d']==5)
{
$kol=$udata['kv_d_n']+1;
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> Статус: <font color=#ffffff>".$kol." из 20</font>'
");
mysql_query("UPDATE `users` SET `kv_d_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
if($udata['kv']==30 and $bt['mob']==15 and $udata['kv_d']==8)
{
$kol=$udata['kv_d_n']+1;
mysql_query("INSERT INTO `log_okrest` SET
`id`='',
`usr`='".$udata['id']."',
`text`='<img src=img/main/e9.png> Статус: <font color=#ffffff>".$kol." из 10</font>'
");
mysql_query("UPDATE `users` SET `kv_d_n`='".$kol."' WHERE `id`='".$udata['id']."'");
}
?>