Файл: files/achieve.php
Строк: 81
<?
$battles=mysql_query("SELECT * FROM `achieve` WHERE `log`='$log' and `achievement` = 'battles' ");
$b= mysql_fetch_array($battles);
$blvl=$b['lvl'];
////////////////////////////////////////VARVAR/////////////////////////////////////////////////////////////
if($udata6>="500"){
$req = mysql_query("SELECT * FROM `achieve` WHERE `log` = '$log' and `achievement` = 'battles'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO
`achieve` SET
`log` = '$log',
`lvl` = '1',
`achievement` = 'battles'");
$udata8=$udata8+1000000;
mysql_query("UPDATE `users` SET `udata8`='$udata8' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 1,000,000 аден<br>";
}
}
if($udata6>="5000" and $blvl=="1"){
mysql_query("UPDATE `achieve` SET `lvl` = '2' WHERE `log` = '$log' and `achievement` = 'battles'");
$udata8=$udata8+10000000;
mysql_query("UPDATE `users` SET `udata8`='$udata8' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 10,000,000 аден<br>";
}
if($udata6>="15000" and $blvl=="2"){
mysql_query("UPDATE `achieve` SET `lvl` = '3' WHERE `log` = '$log' and `achievement` = 'battles'");
$udata8=$udata8+100000000;
mysql_query("UPDATE `users` SET `udata8`='$udata8' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 100,000,000 аден<br>";
}
if($udata6>="30000" and $blvl=="3"){
mysql_query("UPDATE `achieve` SET `lvl` = '4' WHERE `log` = '$log' and `achievement` = 'battles'");
$udata38=$udata38+5;
mysql_query("UPDATE `users` SET `udata38`='$udata38' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 5 Coin of Luck<br>";
}
if($udata6>="60000" and $blvl=="4"){
mysql_query("UPDATE `achieve` SET `lvl` = '5' WHERE `log` = '$log' and `achievement` = 'battles'");
$udata38=$udata38+10;
mysql_query("UPDATE `users` SET `udata38`='$udata38' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 10 Coin of Luck<br>";
}
////////////////////////////////////////////////////////////PK//////////////////////////////////////////////////
$pkk=mysql_query("SELECT * FROM `achieve` WHERE `log`='$log' and `achievement` = 'pk' ");
$p= mysql_fetch_array($pkk);
$plvl=$p['lvl'];
if($udata61>="100"){
$req = mysql_query("SELECT * FROM `achieve` WHERE `log` = '$log' and `achievement` = 'pk'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO
`achieve` SET
`log` = '$log',
`lvl` = '1',
`achievement` = 'pk'");
$udata8=$udata8+1000000;
mysql_query("UPDATE `users` SET `udata8`='$udata8' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 1,000,000 аден<br>";
}
}
if($udata61>="1000" and $plvl=="1"){
mysql_query("UPDATE `achieve` SET `lvl` = '2' WHERE `log` = '$log' and `achievement` = 'pk'");
$udata8=$udata8+10000000;
mysql_query("UPDATE `users` SET `udata8`='$udata8' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 10,000,000 аден<br>";
}
if($udata61>="2500" and $plvl=="2"){
mysql_query("UPDATE `achieve` SET `lvl` = '3' WHERE `log` = '$log' and `achievement` = 'pk'");
$udata8=$udata8+10000000;
mysql_query("UPDATE `users` SET `udata8`='$udata8' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 100,000,000 аден<br>";
}
if($udata61>="5000" and $plvl=="3"){
mysql_query("UPDATE `achieve` SET `lvl` = '4' WHERE `log` = '$log' and `achievement` = 'pk'");
$udata38=$udata38+5;
mysql_query("UPDATE `users` SET `udata38`='$udata38' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 5 Coin of Luck<br>";
}
if($udata61>="10000" and $plvl=="4"){
mysql_query("UPDATE `achieve` SET `lvl` = '5' WHERE `log` = '$log' and `achievement` = 'pk'");
$udata38=$udata38+10;
mysql_query("UPDATE `users` SET `udata38`='$udata38' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 10 Coin of Luck<br>";
}
////////////////////////////////////////////////////////////PVP///////////////////////////////////////////////////////////
$pvp=mysql_query("SELECT * FROM `achieve` WHERE `log`='$log' and `achievement` = 'pvp' ");
$v= mysql_fetch_array($pvp);
$vlvl=$v['lvl'];
if($udata85>="100"){
$req = mysql_query("SELECT * FROM `achieve` WHERE `log` = '$log' and `achievement` = 'pvp'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO
`achieve` SET
`log` = '$log',
`lvl` = '1',
`achievement` = 'pvp'");
$udata8=$udata8+1000000;
mysql_query("UPDATE `users` SET `udata8`='$udata8' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 1,000,000 аден<br>";
}
}
if($udata85>="1000" and $vlvl=="1"){
mysql_query("UPDATE `achieve` SET `lvl` = '2' WHERE `log` = '$log' and `achievement` = 'pvp'");
$udata8=$udata8+10000000;
mysql_query("UPDATE `users` SET `udata8`='$udata8' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 10,000,000 аден<br>";
}
if($udata85>="2500" and $vlvl=="2"){
mysql_query("UPDATE `achieve` SET `lvl` = '3' WHERE `log` = '$log' and `achievement` = 'pvp'");
$udata8=$udata8+100000000;
mysql_query("UPDATE `users` SET `udata8`='$udata8' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 100,000,000 аден<br>";
}
if($udata85>="5000" and $vlvl=="3"){
mysql_query("UPDATE `achieve` SET `lvl` = '4' WHERE `log` = '$log' and `achievement` = 'pvp'");
$udata38=$udata38+5;
mysql_query("UPDATE `users` SET `udata38`='$udata38' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 5 Coin of Luck<br>";
}
if($udata85>="10000" and $vlvl=="4"){
mysql_query("UPDATE `achieve` SET `lvl` = '5' WHERE `log` = '$log' and `achievement` = 'pvp'");
$udata38=$udata38+10;
mysql_query("UPDATE `users` SET `udata38`='$udata38' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 10 Coin of Luck<br>";
}
////////////////////////////////////////////////////////TREVEL////////////////////////////////////////////////////////////////////
$trevel=mysql_query("SELECT * FROM `achieve` WHERE `log`='$log' and `achievement` = 'trevel' ");
$t= mysql_fetch_array($trevel);
$tlvl=$t['lvl'];
if($udata60>="86400"){
$req = mysql_query("SELECT * FROM `achieve` WHERE `log` = '$log' and `achievement` = 'trevel'");
$res=mysql_num_rows($req);
$rs = mysql_fetch_array($req);
if($res==0){
mysql_query("INSERT INTO
`achieve` SET
`log` = '$log',
`lvl` = '1',
`achievement` = 'trevel'");
$udata8=$udata8+1000000;
mysql_query("UPDATE `users` SET `udata8`='$udata8' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 1,000,000 аден<br>";
}
}
if($udata60>="259200" and $tlvl=="1"){
mysql_query("UPDATE `achieve` SET `lvl` = '2' WHERE `log` = '$log' and `achievement` = 'trevel'");
$udata8=$udata8+10000000;
mysql_query("UPDATE `users` SET `udata8`='$udata8' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 10,000,000 аден<br>";
}
if($udata60>="604800" and $tlvl=="2"){
mysql_query("UPDATE `achieve` SET `lvl` = '3' WHERE `log` = '$log' and `achievement` = 'trevel'");
$udata8=$udata8+100000000;
mysql_query("UPDATE `users` SET `udata8`='$udata8' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 100,000,000 аден<br>";
}
if($udata60>="1814400" and $tlvl=="3"){
mysql_query("UPDATE `achieve` SET `lvl` = '4' WHERE `log` = '$log' and `achievement` = 'trevel'");
$udata38=$udata38+5;
mysql_query("UPDATE `users` SET `udata38`='$udata38' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 5 Coin of Luck<br>";
}
if($udata60>="3628800" and $tlvl=="4"){
mysql_query("UPDATE `achieve` SET `lvl` = '5' WHERE `log` = '$log' and `achievement` = 'trevel'");
$udata38=$udata38+10;
mysql_query("UPDATE `users` SET `udata38`='$udata38' WHERE `udata0`='$log'");
echo"Вы достигли нового достижение.Вознаграждение 10 Coin of Luck<br>";
}
?>