Файл: l2ps_v5/files/lvl.php
Строк: 25
<?php
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=67 && $udata9=="0"){
$udata9=1;
$udata43=100;
$udata17=$udata17+50;
$udata30=100;
$udata5=6;$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=297 && $udata9=="1"){
$udata9=2;
$udata43=150;
$udata17=$udata17+50;
$udata30=150;
$udata5=7;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$log', `time` = '$time', `read` = 1, `mail_msg` = 'В деревнях стоит Элиза помошник новичков, она может наделить благословенной магией на 30 минут, только до 40 уровня!'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=805 && $udata9=="2"){
$udata9=3;
$udata43=200;
$udata17=$udata17+50;
$udata30=200;
$udata5=8;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=1716 && $udata9=="3"){
$udata9=4;
$udata43=250;
$udata17=$udata17+50;
$udata30=250;
$udata5=9;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$log', `time` = '$time', `read` = 1, `mail_msg` = 'В меню игры есть Библиотека возможно там вы найдете ответы на некоторые вопросы, так же рекомендуем прочетать форум игры!'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=3154 && $udata9=="4"){
$udata9=5;
$udata43=300;
$udata17=$udata17+50;
$udata30=300;
$udata5=10;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=5249 && $udata9=="5"){
$udata9=6;
$udata43=350;
$udata17=$udata17+50;
$udata30=350;
$udata5=11;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$log', `time` = '$time', `read` = 1, `mail_msg` = 'В нашем игровом мире есть консультанты по игровым вопросам, если вы ненашли ответа в библиотеке, в чате и на форуме, вы можете задать консультантам свои вопросы они вам помогут!'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=8136 && $udata9=="6"){
$udata9=7;
$udata43=400;
$udata17=$udata17+50;
$udata30=400;
$udata5=12;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=11955 && $udata9=="7"){
$udata9=8;
$udata43=450;
$udata17=$udata17+50;
$udata30=450;
$udata5=13;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$log', `time` = '$time', `read` = 1, `mail_msg` = 'Незабывайте учить новую магию у Магистра.'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=16851 && $udata9=="8"){
$udata9=9;
$udata43=500;
$udata17=$udata17+50;
$udata30=500;
$udata5=14;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=22973 && $udata9=="9"){
$udata9=10;
$udata43=550;
$udata17=$udata17+50;
$udata30=550;
$udata5=15;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=30475 && $udata9=="10"){
$udata9=11;
$udata43=600;
$udata17=$udata17+50;
$udata30=600;
$udata5=16;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$log', `time` = '$time', `read` = 1, `mail_msg` = 'Для вас стал открыт чат, почта и центр помощи! Все телепорты бесплатны до 40 уровня!'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=39516 && $udata9=="11"){
$udata9=12;
$udata43=650;
$udata17=$udata17+50;
$udata30=650;
$udata5=17;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=50261 && $udata9=="12"){
$udata9=13;
$udata43=700;
$udata17=$udata17+50;
$udata30=700;
$udata5=18;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=62876 && $udata9=="13"){
$udata9=14;
$udata43=750;
$udata17=$udata17+50;
$udata30=750;
$udata5=19;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=77537 && $udata9=="14"){
$udata9=15;
$udata43=800;
$udata17=$udata17+50;
$udata30=800;
$udata5=20;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$log', `time` = '$time', `read` = 1, `mail_msg` = 'В игре присуцтвуют еженедельные евенты, поуровневые квесты, можно неплохо подзароботать!'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=94421 && $udata9=="15"){
$udata9=16;
$udata43=850;
$udata17=$udata17+50;
$udata30=850;
$udata5=21;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=113712 && $udata9=="16"){
$udata9=17;
$udata43=900;
$udata17=$udata17+50;
$udata30=900;
$udata5=22;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=135596 && $udata9=="17"){
$udata9=18;
$udata43=950;
$udata17=$udata17+50;
$udata30=950;
$udata5=23;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=160267 && $udata9=="18"){
$udata9=19;
$udata43=1000;
$udata17=$udata17+50;
$udata30=1000;
$udata5=24;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=187921 && $udata9=="19"){
$udata9=20;
$udata43=1050;
$udata17=$udata17+50;
$udata30=1050;
$udata5=25;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
$refer=mysql_query("SELECT * FROM `refer` WHERE `uchenik`='$log'");
if(mysql_num_rows($refer)!==0){
$ref= mysql_fetch_array($refer);
$use=mysql_query("SELECT * FROM `users` WHERE `udata0`='$ref[usr]'");
$us= mysql_fetch_array($use);
$udataf8=$us['udata8'];
$udataf8=$udataf8+1000000;
mysql_query("UPDATE `users` SET `udata8`='$udataf8' WHERE `udata0`='$ref[usr]'");
$time=time();
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$ref[usr]', `time` = '$time', `read` = 1, `mail_msg` = 'Ваш ученик $log достиг 20 уровня, вы получаете 1000000 Аден.'");
}
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$log', `time` = '$time', `read` = 1, `mail_msg` = 'Вы достигли 20 уровня поздровляем! Теперь вам доступно: изучение 1 професии, новая магия, доступен новый грейд D оружия и брони! Также вам открыто пати с игроками и писать на форуме!'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=218736 && $udata9=="20"){
$udata9=21;
$udata43=1100;
$udata17=$udata17+50;
$udata30=1100;
$udata5=26;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=252997 && $udata9=="21"){
$udata9=22;
$udata43=1150;
$udata17=$udata17+50;
$udata30=1150;
$udata5=27;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=290836 && $udata9=="22"){
$udata9=23;
$udata43=1200;
$udata17=$udata17+50;
$udata30=1200;
$udata5=28;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=332947 && $udata9=="23"){
$udata9=24;
$udata43=1250;
$udata17=$udata17+50;
$udata30=1250;
$udata5=29;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=378201 && $udata9=="24"){
$udata9=25;
$udata43=1300;
$udata17=$udata17+50;
$udata30=1300;
$udata5=30;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=428174 && $udata9=="25"){
$udata9=26;
$udata43=1350;
$udata17=$udata17+50;
$udata30=1350;
$udata5=31;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=482174 && $udata9=="26"){
$udata9=27;
$udata43=1400;
$udata17=$udata17+50;
$udata30=1400;
$udata5=32;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=541856 && $udata9=="27"){
$udata9=28;
$udata43=1450;
$udata17=$udata17+50;
$udata30=1450;
$udata5=33;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=606042 && $udata9=="28"){
$udata9=29;
$udata43=1500;
$udata17=$udata17+50;
$udata30=1500;
$udata5=34;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=675402 && $udata9=="29"){
$udata9=30;
$udata43=1550;
$udata17=$udata17+50;
$udata30=1550;
$udata5=35;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=750330 && $udata9=="30"){
$udata9=31;
$udata43=1600;
$udata17=$udata17+50;
$udata30=1600;
$udata5=36;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=830937 && $udata9=="31"){
$udata9=32;
$udata43=1650;
$udata17=$udata17+50;
$udata30=1650;
$udata5=37;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=917532 && $udata9=="32"){
$udata9=33;
$udata43=1700;
$udata17=$udata17+50;
$udata30=1700;
$udata5=38;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=1010337 && $udata9=="33"){
$udata9=34;
$udata43=1750;
$udata17=$udata17+50;
$udata30=1750;
$udata5=39;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=1109337 && $udata9=="34"){
$udata9=35;
$udata43=1800;
$udata17=$udata17+50;
$udata30=1800;
$udata5=40;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=1215996 && $udata9=="35"){
$udata9=36;
$udata43=1850;
$udata17=$udata17+50;
$udata30=1850;
$udata5=41;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=1329323 && $udata9=="36"){
$udata9=37;
$udata43=1900;
$udata17=$udata17+50;
$udata30=1900;
$udata5=42;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=1449373 && $udata9=="37"){
$udata9=38;
$udata43=1950;
$udata17=$udata17+50;
$udata30=1950;
$udata5=43;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=1577978 && $udata9=="38"){
$udata9=39;
$udata43=2000;
$udata17=$udata17+50;
$udata30=2000;
$udata5=44;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=1714758 && $udata9=="39"){
$udata9=40;
$udata43=2050;
$udata17=$udata17+50;
$udata30=2050;
$udata5=45;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$log', `time` = '$time', `read` = 1, `mail_msg` = 'Поздравляем вы получили 40 уровень! Для вас доступно: новая 2 професия и магия так же доступен грейд С оружия и брони!.'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=1858578 && $udata9=="40"){
$udata9=41;
$udata43=2100;
$udata17=$udata17+50;
$udata30=2100;
$udata5=46;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
$refer=mysql_query("SELECT * FROM `refer` WHERE `uchenik`='$log'");
if(mysql_num_rows($refer)!==0){
$ref= mysql_fetch_array($refer);
$use=mysql_query("SELECT * FROM `users` WHERE `udata0`='$ref[usr]'");
$us= mysql_fetch_array($use);
$udataf38=$us['udata38'];
$udataf38=$udataf38+1;
mysql_query("UPDATE `users` SET `udata38`='$udataf38' WHERE `udata0`='$ref[usr]'");
$time=time();
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$ref[usr]', `time` = '$time', `read` = 1, `mail_msg` = 'Ваш ученик $log достиг 40 уровня, вы получаете 1 Coin of Luck.'");
} }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=2011538 && $udata9=="41"){
$udata9=42;
$udata43=2150;
$udata17=$udata17+50;
$udata30=2150;
$udata5=47;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=2173347 && $udata9=="42"){
$udata9=43;
$udata43=2200;
$udata17=$udata17+50;
$udata30=2200;
$udata5=48;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=2344318 && $udata9=="43"){
$udata9=44;
$udata43=2250;
$udata17=$udata17+50;
$udata30=2250;
$udata5=49;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=2524768 && $udata9=="44"){
$udata9=45;
$udata43=2300;
$udata17=$udata17+50;
$udata30=2300;
$udata5=50;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=2715019 && $udata9=="45"){
$udata9=46;
$udata43=2350;
$udata17=$udata17+50;
$udata30=2350;
$udata5=51;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=2915398 && $udata9=="46"){
$udata9=47;
$udata43=2400;
$udata17=$udata17+50;
$udata30=2400;
$udata5=52;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=3126237 && $udata9=="47"){
$udata9=48;
$udata43=2450;
$udata17=$udata17+50;
$udata30=2450;
$udata5=53;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=3347237 && $udata9=="48"){
$udata9=49;
$udata43=2500;
$udata17=$udata17+50;
$udata30=2500;
$udata5=54;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=5370970 && $udata9=="49"){
$udata9=50;
$udata43=2550;
$udata17=$udata17+50;
$udata30=2550;
$udata5=55;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if(!file_exists('files/.dat')){
echo'Отстутствует лицензия для домена '.$_SERVER['HTTP_HOST'].'!<br>
На скрипте отсутствует лицензия,без лицензии скрипт работать небудет,для получения лицензии обратитесь на ПИРАТСКИЙ СЕРВЕР LineAge II l2pirates.ru.
';
exit();
}else{
$switch = @file("files/.dat");
$tidw = explode("|", $switch[0]);
$site = l2pirates.ru.com;
$unpar = l2pirates;
if($tidw[0] != $unpar) {
echo'Отстутствует лицензия для домена '.$_SERVER['HTTP_HOST'].'!<br>
На скрипте отсутствует лицензия,без лицензии скрипт работать небудет,для получения лицензии обратитесь на ПИРАТСКИЙ СЕРВЕР LineAge II l2pirates.ru.
';
exit();
}}
if($udata19>=5737385 && $udata9=="50"){
$udata9=51;
$udata43=2600;
$udata17=$udata17+50;
$udata30=2600;
$udata5=56;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=6121497 && $udata9=="51"){
$udata9=52;
$udata43=2650;
$udata17=$udata17+50;
$udata30=2650;
$udata5=57;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$log', `time` = '$time', `read` = 1, `mail_msg` = 'Поздровляем вы получили 52 уровень! Вам доступен новый Грейд B оружия и брони.'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=6523924 && $udata9=="52"){
$udata9=53;
$udata43=2700;
$udata17=$udata17+50;
$udata30=2700;
$udata5=58;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
$refer=mysql_query("SELECT * FROM `refer` WHERE `uchenik`='$log'");
if(mysql_num_rows($refer)!==0){
$ref= mysql_fetch_array($refer);
$use=mysql_query("SELECT * FROM `users` WHERE `udata0`='$ref[usr]'");
$us= mysql_fetch_array($use);
$udataf38=$us['udata38'];
$udataf38=$udataf38+3;
mysql_query("UPDATE `users` SET `udata38`='$udataf38' WHERE `udata0`='$ref[usr]'");
$time=time();
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$ref[usr]', `time` = '$time', `read` = 1, `mail_msg` = 'Ваш ученик $log достиг 52 уровня, вы получаете 3 Coin of Luck.'");
}}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=6945178 && $udata9=="53"){
$udata9=54;
$udata43=2750;
$udata17=$udata17+50;
$udata30=2750;
$udata5=59;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=9847742 && $udata9=="54"){
$udata9=55;
$udata43=2800;
$udata17=$udata17+50;
$udata30=2800;
$udata5=60;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=10461823 && $udata9=="55"){
$udata9=56;
$udata43=2850;
$udata17=$udata17+50;
$udata30=2850;
$udata5=61;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=11103227 && $udata9=="56"){
$udata9=57;
$udata43=2900;
$udata17=$udata17+50;
$udata30=2900;
$udata5=62;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=11772716 && $udata9=="57"){
$udata9=58;
$udata43=2950;
$udata17=$udata17+50;
$udata30=2950;
$udata5=63;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
/////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////
if($udata19>=12471057 && $udata9=="58"){
$udata9=59;
$udata43=3000;
$udata17=$udata17+50;
$udata30=3000;
$udata5=64;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=19798546 && $udata9=="59"){
$udata9=60;
$udata43=3050;
$udata17=$udata17+50;
$udata30=3050;
$udata5=65;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=20936138 && $udata9=="60"){
$udata9=61;
$udata43=3100;
$udata17=$udata17+50;
$udata30=3100;
$udata5=66;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$log', `time` = '$time', `read` = 1, `mail_msg` = 'Поздровляем вы получили 61 уровень! Вам доступен новый Грейд А оружия и брони.'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=22120556 && $udata9=="61"){
$udata9=62;
$udata43=3150;
$udata17=$udata17+50;
$udata30=3150;
$udata5=67;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
$refer=mysql_query("SELECT * FROM `refer` WHERE `uchenik`='$log'");
if(mysql_num_rows($refer)!==0){
$ref= mysql_fetch_array($refer);
$use=mysql_query("SELECT * FROM `users` WHERE `udata0`='$ref[usr]'");
$us= mysql_fetch_array($use);
$udataf38=$us['udata38'];
$udataf38=$udataf38+5;
mysql_query("UPDATE `users` SET `udata38`='$udataf38' WHERE `udata0`='$ref[usr]'");
$time=time();
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$ref[usr]', `time` = '$time', `read` = 1, `mail_msg` = 'Ваш ученик $log достиг 61 уровня, вы получаете 5 Coin of Luck.'");
}}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=23353014 && $udata9=="62"){
$udata9=63;
$udata43=3200;
$udata17=$udata17+50;
$udata30=3200;
$udata5=67;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=24634737 && $udata9=="63"){
$udata9=64;
$udata43=3250;
$udata17=$udata17+50;
$udata30=3250;
$udata5=68;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=34662619 && $udata9=="64"){
$udata9=65;
$udata43=3300;
$udata17=$udata17+50;
$udata30=3300;
$udata5=69;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=36467935 && $udata9=="65"){
$udata9=66;
$udata43=3350;
$udata17=$udata17+50;
$udata30=3350;
$udata5=70;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=38383956 && $udata9=="66"){
$udata9=67;
$udata43=3400;
$udata17=$udata17+50;
$udata30=3400;
$udata5=71;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=40372393 && $udata9=="67"){
$udata9=68;
$udata43=3450;
$udata17=$udata17+50;
$udata30=3450;
$udata5=72;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=42434976 && $udata9=="68"){
$udata9=69;
$udata43=3500;
$udata17=$udata17+50;
$udata30=3500;
$udata5=80;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=44573456 && $udata9=="69"){
$udata9=70;
$udata43=3550;
$udata17=$udata17+50;
$udata30=3550;
$udata5=83;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=58487000 && $udata9=="70"){
$udata9=71;
$udata43=3600;
$udata17=$udata17+50;
$udata30=3600;
$udata5=86;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=73627796 && $udata9=="71"){
$udata9=72;
$udata43=3650;
$udata17=$udata17+50;
$udata30=3650;
$udata5=85;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=90058595 && $udata9=="72"){
$udata9=73;
$udata43=3700;
$udata17=$udata17+50;
$udata30=3700;
$udata5=90;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'"); mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=107843995 && $udata9=="73"){
$udata9=74;
$udata43=3750;
$udata17=$udata17+50;
$udata30=3750;
$udata5=95;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=127050464 && $udata9=="74"){
$udata9=75;
$udata43=3800;
$udata17=$udata17+50;
$udata30=3800;
$udata5=99;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
$refer=mysql_query("SELECT * FROM `refer` WHERE `uchenik`='$log'");
if(mysql_num_rows($refer)!==0){
$ref= mysql_fetch_array($refer);
$use=mysql_query("SELECT * FROM `users` WHERE `udata0`='$ref[usr]'");
$us= mysql_fetch_array($use);
$udataf38=$us['udata38'];
$udataf38=$udataf38+10;
mysql_query("UPDATE `users` SET `udata38`='$udataf38' WHERE `udata0`='$ref[usr]'");
$time=time();
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$ref[usr]', `time` = '$time', `read` = 1, `mail_msg` = 'Ваш ученик $log достиг 76 уровня, вы получаете 10 Coin of Luck.'");
}}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=220000000 && $udata9=="75"){
$udata9=76;
$udata43=3850;
$udata17=$udata17+50;
$udata30=3850;
$udata5=100;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$log', `time` = '$time', `read` = 1, `mail_msg` = 'Поздравляем вы получили 76 уровень для вас доступно: новая професия и магия также доступен грейд S оружия и брони!Незабывайте изучать магию !'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=360000000 && $udata9=="76"){
$udata9=77;
$udata43=3900;
$udata17=$udata17+50;
$udata30=3900;
$udata5=110;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=588000000 && $udata9=="77"){
$udata9=78;
$udata43=3950;
$udata17=$udata17+50;
$udata30=3950;
$udata5=120;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=1100724166 && $udata9=="78"){
$udata9=79;
$udata43=4000;
$udata17=$udata17+50;
$udata30=4000;
$udata5=130;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata97`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=2100000000 && $udata9=="79"){
$udata9=80;
$udata43=4050;
$udata17=$udata17+50;
$udata30=4050;
$udata5=180;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$log', `time` = '$time', `read` = 1, `mail_msg` = 'Поздровляем вы получили 80 уровень! также доступен грейд S80 оружия и брони! незабывайте изучать новую магию у магистра!'");}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=2520000000 && $udata9=="80"){
$udata9=81;
$udata43=4150;
$udata17=$udata17+50;
$udata30=4100;
$udata5=200;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
$refer=mysql_query("SELECT * FROM `refer` WHERE `uchenik`='$log'");
if(mysql_num_rows($refer)!==0){
$ref= mysql_fetch_array($refer);
$use=mysql_query("SELECT * FROM `users` WHERE `udata0`='$ref[usr]'");
$us= mysql_fetch_array($use);
$udataf38=$us['udata38'];
$udataf38=$udataf38+20;
mysql_query("UPDATE `users` SET `udata38`='$udataf38' WHERE `udata0`='$ref[usr]'");
$time=time();
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$ref[usr]', `time` = '$time', `read` = 1, `mail_msg` = 'Ваш ученик $log достиг 80 уровня, вы получаете 20 Coin of Luck.'");
}}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=3024000000 && $udata9=="81"){
$udata9=82;
$udata43=4250;
$udata17=$udata17+50;
$udata30=4150;
$udata5=220;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=3628880000 && $udata9=="82"){
$udata9=83;
$udata43=4350;
$udata17=$udata17+50;
$udata30=4200;
$udata5=240;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($udata19>=4354560000 && $udata9=="83"){
$udata9=84;
$udata43=4450;
$udata17=$udata17+50;
$udata30=4250;
$udata5=260;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$log', `time` = '$time', `read` = 1, `mail_msg` = 'Поздровляем вы получили 84 уровень! также доступен грейд S84 оружия и брони! незабывайте изучать новую магию у магистра!'");}
if($udata19>=5486639999 && $udata9=="84"){
$udata9=85;
$udata43=4550;
$udata17=$udata17+50;
$udata30=4350;
$udata5=280;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
$refer=mysql_query("SELECT * FROM `refer` WHERE `uchenik`='$log'");
if(mysql_num_rows($refer)!==0){
$ref= mysql_fetch_array($refer);
$use=mysql_query("SELECT * FROM `users` WHERE `udata0`='$ref[usr]'");
$us= mysql_fetch_array($use);
$udataf38=$us['udata38'];
$udataf38=$udataf38+30;
mysql_query("UPDATE `users` SET `udata38`='$udataf38' WHERE `udata0`='$ref[usr]'");
$time=time();
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$ref[usr]', `time` = '$time', `read` = 1, `mail_msg` = 'Ваш ученик $log достиг 84 уровня, вы получаете 30 Coin of Luck.'");
}}
if($udata19>=5906525385 && $udata9=="85"){
$udata9=86;
$udata43=4650;
$udata17=$udata17+100;
$udata30=4450;
$udata5=290;$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'"); }
if($udata19>=6673891900 && $udata9=="86"){
$udata9=87;
$udata43=4750;
$udata17=$udata17+100;
$udata30=4550;
$udata5=300;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
}
if($udata19>=8207524971 && $udata9=="87"){
$udata9=88;
$udata43=4850;
$udata17=$udata17+100;
$udata30=4650;
$udata5=310;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
}
if($udata19>=9969088216 && $udata9=="88"){
$udata9=89;
$udata43=4950;
$udata17=$udata17+100;
$udata30=4750;
$udata5=320;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
}
if($udata19>=14341344002 && $udata9=="89"){
$udata9=90;
$udata43=5000;
$udata17=$udata17+100;
$udata30=4850;
$udata5=330;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
}
if($udata19>=18392059298 && $udata9=="90"){
$udata9=91;
$udata43=6000;
$udata17=$udata17+150;
$udata30=4950;
$udata5=340;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
}
if($udata19>=22570174524 && $udata9=="91"){
$udata9=92;
$udata43=7000;
$udata17=$udata17+150;
$udata30=5050;
$udata5=350;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
}
if($udata19>=27893873314 && $udata9=="92"){
$udata9=93;
$udata43=8000;
$udata17=$udata17+150;
$udata30=5150;
$udata5=360;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
}
if($udata19>=34494700219 && $udata9=="93"){
$udata9=94;
$udata43=9000;
$udata17=$udata17+150;
$udata30=5300;
$udata5=370;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
}
if($udata19>=42704220933 && $udata9=="94"){
$udata9=95;
$udata43=10000;
$udata17=$udata17+150;
$udata30=5500;
$udata5=380;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
}
if($udata19>=52959289091 && $udata9=="95"){
$udata9=96;
$udata43=12000;
$udata17=$udata17+150;
$udata30=5700;
$udata5=390;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
}
if($udata19>=100973118145 && $udata9=="96"){
$udata9=97;
$udata43=13000;
$udata17=$udata17+150;
$udata30=5900;
$udata5=400;$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
}
if($udata19>=195410550016 && $udata9=="97"){
$udata9=98;
$udata43=14000;
$udata17=$udata17+150;
$udata30=6100;
$udata5=410;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
}
if($udata19>=384956596063 && $udata9=="98"){
$udata9=99;
$udata43=15000;
$udata17=$udata17+150;
$udata30=6200;
$udata5=410;
$udata4 = $udata4+2;
$udata3 = $udata3+2;
$udata82 = $udata82+2;
$udata83 = $udata83+2;
mysql_query("UPDATE `users` SET `udata43`='$udata43' WHERE `udata0`='$log'");mysql_query("UPDATE `users` SET `udata4`='$udata4' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata3`='$udata3' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata82`='$udata82' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata83`='$udata83' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata9`='$udata9' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata17`='$udata17' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata30`='$udata30' WHERE `udata0`='$log'");
mysql_query("UPDATE `users` SET `udata5`='$udata5' WHERE `udata0`='$log'");
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'ПИРАТ', `user_to` = '$log', `time` = '$time', `read` = 1, `mail_msg` = 'Поздровляем вы получили 99 уровень! Вам доступено новый грейд R99 брони и оружия. Также незабывайте изучать новую магию у магистра!'");}
?>