Вход Регистрация
Файл: craft.php
Строк: 1895
ІІІ<?
include_once("mysql.php");
include_once(
"include/antixak.php");
include 
'include/sesi.php';
include_once(
"include/header.php");
include 
'include/ini.php';
if (isset(
$user)) {
include_once(
"include/udata.php");
switch(
$go) {

default:

if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
echo
"<small><u>Крафт Вещей</u></small><br/><small><a href="craft.php?$sd&go=craft">Продолжить</a></small><br/>";
break;
case 
'craft':
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
echo
"<small>Выберить грейд для крафта</small><br/>";
echo
"<small><a href="craft.php?$sd&go=faq">FAQ</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=d">Greid D</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=c">Greid C</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=b">Greid B</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=a">Greid A</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=s">Greid S</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=soski">Скрафтить SoulShot</a></small><br/>";
break;
case 
'd':
if(
$udata[9]<"20"){echo"<small>Што б крафтить ети вещи нужно иметь 20 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);


if(
$data[4]=="Recipe D"){
echo
"<small>Што б скрафтить нужно иметь 5000000 аден. За set 25000000 аден</small><br/>";
echo
"<small><a href="craft.php?log=$log&pas=$pas&go=dgloves">Скрафтить перчатки</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=dshield">Скрафтить щит</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=dboot">Скрафтить сапоги</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=dhelm">Скрафтить шлем</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=dweapon">Скрафтить оружие</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=drobe">Скрафтить доспехи</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=setd">Скрафтить set</a></small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe D</u></small><br/>"; include"include/down.php"; exit;
break;

case 
'dgloves':
if(
$udata[9]<"20"){echo"<small>Што б крафтить ети вещи нужно иметь 20 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"5000000"){echo"<small>У вас недостаточно денег!<br/></small>";include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Gloves D"){
$text2="400:||:1500:||:ryki:||:D:||:Gloves of Draft:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-5000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:';

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Gloves of Draft<br/>Защита сапог - 400</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Gloves D</u></small><br/>"; include"include/down.php"; exit;
break;

case 
'dshield':
if(
$udata[9]<"20"){echo"<small>Што б крафтить ети вещи нужно иметь 20 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"5000000"){echo"<small>У вас недостаточно денег!<br/></small>";include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Shield D"){
$text2="400:||:1500:||:4it:||:D:||:Shield of Draft:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-5000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:';

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Shield of Draft<br/>Защита сапог - 400</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Shield D</u></small><br/>"; include"include/down.php"; exit;
break;



case 
'dboot':
if(
$udata[9]<"20"){echo"<small>Што б крафтить ети вещи нужно иметь 20 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"5000000"){echo"<small>У вас недостаточно денег!<br/></small>";include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Boot D"){
$text2="400:||:1500:||:nogi:||:D:||:Boot of Draft:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-5000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:';

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Boot of Draft<br/>Защита сапог - 400</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Boot D</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'dhelm':
if(
$udata[9]<"20"){echo"<small>Што б крафтить ети вещи нужно иметь 20 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"5000000"){echo"<small>У вас недостаточно денег!</small><br/>";include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Helm D"){
$text2="400:||:1500:||:golova:||:D:||:Helm of Draft:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-5000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Helm of Draft<br/>Защита шлема - 400</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Helm D</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'dweapon':
if(
$udata[9]<"20"){echo"<small>Што б крафтить ети вещи нужно иметь 20 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"5000000"){echo"<small>У вас недостаточно денег!</small><br/>";include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Weapon D"){
$text2="600:||:1500:||:weapon:||:D:||:Weapon of Draft:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-5000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Weapon of Draft<br/>Атака оружия - 600</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Weapon D</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'drobe':
if(
$udata[9]<"20"){echo"<small>Што б крафтить ети вещи нужно иметь 20 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"5000000"){echo"<small>У вас недостаточно денег!</small><br/>";include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Robe D"){
$text2="400:||:1500:||:body:||:D:||:Robe of Draft:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-5000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Robe of Draft<br/>Защита доспех - 400</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Robe D</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'c':
if(
$udata[9]<"40"){echo"<small>Што б крафтить ети вещи нужно иметь 40 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);



if(
$data[4]=="Recipe C"){
echo
"<small>Што б скрафтить нужно иметь 25000000 аден. За set 125000000 аден</small><br/>";
echo
"<small><a href="craft.php?$sd&go=cgloves">Скрафтить перчатки</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=cshield">Скрафтить щит</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=cboot">Скрафтить сапоги</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=chelm">Скрафтить шлем</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=cweapon">Скрафтить оружие</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=crobe">Скрафтить доспехи</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=setc">Скрафтить set</a></small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe С</u></small><br/>"; include"include/down.php"; exit;
break;

case 
'cgloves':
if(
$udata[9]<"40"){echo"<small>Што б крафтить ети вещи нужно иметь 40 уровень"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"25000000"){echo"<small>У вас недостаточно денег!</small><br/>";include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Gloves C"){
$text2="800:||:1500:||:ryki:||:C:||:Gloves of Imperial:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-25000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Gloves of Imperial<br/>Защита сапог - 800</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Gloves С</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'cshield':
if(
$udata[9]<"40"){echo"<small>Што б крафтить ети вещи нужно иметь 40 уровень"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"25000000"){echo"<small>У вас недостаточно денег!</small><br/>";include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Shield C"){
$text2="800:||:1500:||:4it:||:C:||:Shield of Imperial:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-25000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Shield of Imperial<br/>Защита сапог - 800</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Shield С</u></small><br/>"; include"include/down.php"; exit;
break;

case 
'cboot':
if(
$udata[9]<"40"){echo"<small>Што б крафтить ети вещи нужно иметь 40 уровень"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"25000000"){echo"<small>У вас недостаточно денег!</small><br/>";include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Boot C"){
$text2="800:||:1500:||:nogi:||:C:||:Boot of Imperial:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-25000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Boot of Imperial<br/>Защита сапог - 800</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Boot С</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'chelm':
if(
$udata[9]<"40"){echo"<small>Што б крафтить ети вещи нужно иметь 40 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"25000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Helm C"){
$text2="800:||:1500:||:golova:||:C:||:Helm of Imperial:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-25000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Helm of Imperial<br/>Защита шлема - 800</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Helm С</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'cweapon':
if(
$udata[9]<"40"){echo"<small>Што б крафтить ети вещи нужно иметь 40 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"25000000"){echo"<small>У вас недостаточно денег!</small><br/>" ;include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){
$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Weapon C"){
$text2="1000:||:1500:||:weapon:||:C:||:Weapon of Imperial:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-25000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Weapon of Imperial<br/>Атака оружия - 1000</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Weapon С</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'crobe':
if(
$udata[9]<"40"){echo"<small>Што б крафтить ети вещи нужно иметь 40 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"25000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Robe C"){
$text2="800:||:1500:||:body:||:C:||:Robe of Imperial:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-25000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Weapon of Imperial<br/>Защита доспех - 800</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Robe С</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'b':
if(
$udata[9]<"52"){echo"<small>Што б крафтить ети вещи нужно иметь 52 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);



if(
$data[4]=="Recipe B"){
echo
"<small>Што б скрафтить нужно иметь 50000000 аден. За set 250000000 аден</small><br/>";
echo
"<small><a href="craft.php?$sd&go=bgloves">Скрафтить перчатки</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=bshield">Скрафтить щит</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=bboot">Скрафтить сапоги</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=bhelm">Скрафтить шлем</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=bweapon">Скрафтить оружие</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=brobe">Скрафтить доспехи</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=setb">Скрафтить set</a></small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe B</u></small><br/>"; include"include/down.php"; exit;
break;

case 
'bgloves':
if(
$udata[9]<"52"){echo"<small>Што б крафтить ети вещи нужно иметь 52 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"50000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Gloves B"){
$text2="1600:||:1500:||:ryki:||:B:||:Gloves of King:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-50000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Gloves of King<br/>Защита сапог - 1600</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Gloves B</u></small><br/>"; include"include/down.php"; exit;
break;


case 
'bshield':
if(
$udata[9]<"52"){echo"<small>Што б крафтить ети вещи нужно иметь 52 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"50000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Shield B"){
$text2="1600:||:1500:||:4it:||:B:||:Shield of King:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-50000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Shield of King<br/>Защита сапог - 1600</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Shield B</u></small><br/>"; include"include/down.php"; exit;
break;

case 
'bboot':
if(
$udata[9]<"52"){echo"<small>Што б крафтить ети вещи нужно иметь 52 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"50000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Boot B"){
$text2="1600:||:1500:||:nogi:||:B:||:Boot of King:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-50000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Boot of King<br/>Защита сапог - 1600</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Boot B</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'bhelm':
if(
$udata[9]<"52"){echo"<small>Што б крафтить ети вещи нужно иметь 52 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"50000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Helm B"){
$text2="1600:||:1500:||:golova:||:B:||:Helm of King:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-50000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Helm of King<br/>Защита шлема - 1600</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Helm B</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'bweapon':
if(
$udata[9]<"52"){echo"<small>Што б крафтить ети вещи нужно иметь 52 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"50000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Weapon B"){
$text2="1800:||:1500:||:weapon:||:B:||:Weapon of King:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-50000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Weapon of King<br/>Атака оружия - 1800</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Weapon B</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'brobe':
if(
$udata[9]<"52"){echo"<small>Што б крафтить ети вещи нужно иметь 52 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"50000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Robe B"){
$text2="1600:||:1500:||:body:||:B:||:Robe of King:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-50000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Robe of King<br/>Защита доспех - 1600</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Robe B</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'a':
if(
$udata[9]<"62"){echo"<small>Што б крафтить ети вещи нужно иметь 62 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);



if(
$data[4]=="Recipe A"){
echo
"<small>Што б скрафтить нужно иметь 100000000 аден. За set 500000000 аден</small><br/>";
echo
"<small><a href="craft.php?$sd&go=agloves">Скрафтить перчатки</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=ashield">Скрафтить щит</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=aboot">Скрафтить сапоги</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=ahelm">Скрафтить шлем</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=aweapon">Скрафтить оружие</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=arobe">Скрафтить доспехи</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=seta">Скрафтить set</a></small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe A</u></small><br/>"; include"include/down.php"; exit;
break;

case 
'agloves':
if(
$udata[9]<"62"){echo"<small>Што б крафтить ети вещи нужно иметь 62 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"100000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Gloves A"){
$text2="3200:||:1500:||:ryki:||:A:||:Gloves of Lord:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-100000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Gloves of Lord<br/>Защита сапог - 3200</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Gloves A</u></small><br/>"; include"include/down.php"; exit;
break;


case 
'ashield':
if(
$udata[9]<"62"){echo"<small>Што б крафтить ети вещи нужно иметь 62 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"100000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Shield A"){
$text2="3200:||:1500:||:4it:||:A:||:Shield of Lord:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-100000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Shield of Lord<br/>Защита сапог - 3200</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Shield A</u></small><br/>"; include"include/down.php"; exit;
break;


case 
'aboot':
if(
$udata[9]<"62"){echo"<small>Што б крафтить ети вещи нужно иметь 62 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"100000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Boot A"){
$text2="3200:||:1500:||:nogi:||:A:||:Boot of Lord:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-100000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Boot of Lord<br/>Защита сапог - 3200</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Boot A</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'ahelm':
if(
$udata[9]<"62"){echo"<small>Што б крафтить ети вещи нужно иметь 62 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"100000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Helm A"){
$text2="3200:||:1500:||:golova:||:A:||:Helm of Lord:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-100000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Helm of Lord<br/>Защита шлема - 3200</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Helm A</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'aweapon':
if(
$udata[9]<"62"){echo"<small>Што б крафтить ети вещи нужно иметь 62 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"100000000"){echo"<small>У вас недостаточно денег!</small><br/>";include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Weapon A"){
$text2="3400:||:1500:||:weapon:||:A:||:Weapon of Lord:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-100000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Weapon of Lord<br/>Атака оружия - 3400</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Weapon A</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'arobe':
if(
$udata[9]<"62"){echo"<small>Што б крафтить ети вещи нужно иметь 62 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"100000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Robe A"){
$text2="3200:||:1500:||:body:||:A:||:Robe of Lord:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-100000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Robe of Lord<br/>Защита доспех - 3200</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Robe A</u></small><br/>"; include"include/down.php"; exit;
break;
case 
's':
if(
$udata[9]<"76"){echo"<small>Што б крафтить ети вещи нужно иметь 76 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);



if(
$data[4]=="Recipe S"){
echo
"<small>Што б скрафтить нужно иметь 200000000 аден. За set 1000000000 аден</small><br/>";
echo
"<small><a href="craft.php?$sd&go=sgloves">Скрафтить перчатки</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=sshield">Скрафтить щит</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=sboot">Скрафтить сапоги</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=shelm">Скрафтить шлем</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=sweapon">Скрафтить оружие</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=srobe">Скрафтить доспехи</a></small><br/>";
echo
"<small><a href="craft.php?$sd&go=sets">Скрафтить set</a></small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe S</u></small><br/>"; include"include/down.php"; exit;
break;

case 
'sgloves':
if(
$udata[9]<"76"){echo"<small>Што б крафтить ети вещи нужно иметь 76 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"200000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Gloves S"){
$text2="6400:||:1500:||:ryki:||:S:||:Gloves of Vesper Noble:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-200000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Gloves of Vesper Noble<br/>Защита сапог - 6400</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Gloves S</u></small><br/>"; include"include/down.php"; exit;
break;


case 
'sshield':
if(
$udata[9]<"76"){echo"<small>Што б крафтить ети вещи нужно иметь 76 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"200000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Shield S"){
$text2="6400:||:1500:||:4it:||:S:||:Shield of Vesper Noble:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-200000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Shield of Vesper Noble<br/>Защита сапог - 6400</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Shield S</u></small><br/>"; include"include/down.php"; exit;
break;

case 
'sboot':
if(
$udata[9]<"76"){echo"<small>Што б крафтить ети вещи нужно иметь 76 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"200000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Boot S"){
$text2="6400:||:1500:||:nogi:||:S:||:Boot of Vesper Noble:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-200000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Boot of Vesper Noble<br/>Защита сапог - 6400</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Boot S</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'shelm':
if(
$udata[9]<"76"){echo"<small>Што б крафтить ети вещи нужно иметь 76 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"200000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Helm S"){
$text2="6400:||:1500:||:golova:||:S:||:Helm of Vesper Noble:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-200000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Helm of Vesper Noble<br/>Защита шлема - 6400</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Helm S</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'sweapon':
if(
$udata[9]<"76"){echo"<small>Што б крафтить ети вещи нужно иметь 76 уровень"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"200000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Weapon S"){
$text2="6600:||:1500:||:weapon:||:S:||:Weapon of Vesper Noble:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-200000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Weapon of Vesper Noble<br/>Атака оружия - 6600</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Weapon S</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'srobe':
if(
$udata[9]<"76"){echo"<small>Што б крафтить ети вещи нужно иметь 76 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"200000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Robe S"){
$text2="6400:||:1500:||:body:||:S:||:Robe of Vesper Noble:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-200000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили Robe of Vesper Noble<br/>Защита доспех - 6400</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Robe S</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'faq':
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
echo
"<small>Статистика крафта<br/>
D - 20 lvl<br/>
C - 40 lvl<br/>
B - 52 lvl<br/>
A - 62 lvl<br/>
S - 76 lvl<br/>
Какие рецепты нужно што б скрафтить<br/>
D - Recipe D, Recipe Boot D, Recipe Helm D, Recipe Weapon D, Recipe Robe D, Recipe Gloves D, Recipe Shield D, Recipe Set D, Recipe SoulShot D.<br/>
C - Recipe C, Recipe Boot C, Recipe Helm C, Recipe Weapon C, Recipe Robe C, Recipe Gloves C, Recipe Shield C, Recipe Set C.<br/>
B - Recipe B, Recipe Boot B, Recipe Helm B, Recipe Weapon B, Recipe Robe B, Recipe Gloves B, Recipe Shield B, Recipe Set B.<br/>
A - Recipe A, Recipe Boot A, Recipe Helm A, Recipe Weapon A, Recipe Robe A, Recipe Gloves A, Recipe Shield A, Recipe Set A.<br/>
S - Recipe S, Recipe Boot S, Recipe Helm S, Recipe Weapon S, Recipe Robe S.</small><br/>"
;
break;
case 
'setd':
if(
$udata[9]<"20"){echo"<small>Што б крафтить ети вещи нужно иметь 20 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"25000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Set D"){
$text2="400:||:1500:||:nogi:||:D:||:Boot of Draft:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="400:||:1500:||:ryki:||:D:||:Gloves of Draft:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="400:||:1500:||:4it:||:D:||:Shield of Draft:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="400:||:1500:||:golova:||:D:||:Helm of Draft:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="600:||:1500:||:weapon:||:D:||:Weapon of Draft:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$text2="400:||:1500:||:body:||:D:||:Robe of Draft:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-25000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили set D</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Set D</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'setc':
if(
$udata[9]<"40"){echo"<small>Што б крафтить ети вещи нужно иметь 40 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"125000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Set C"){
$text2="800:||:1500:||:nogi:||:С:||:Boot of Imperial:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="800:||:1500:||:golova:||:С:||:Helm of Imperial:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="800:||:1500:||:ryki:||:С:||:Gloves of Imperial:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="800:||:1500:||:4it:||:С:||:Shield of Imperial:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="1000:||:1500:||:weapon:||:С:||:Weapon of Imperial:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="800:||:1500:||:body:||:С:||:Robe of Imperial:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-125000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили set C</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Set C</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'setb':
if(
$udata[9]<"52"){echo"<small>Што б крафтить ети вещи нужно иметь 52 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("iclude/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"250000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/bas123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Set B"){
$text2="1600:||:1500:||:body:||:B:||:Robe of King:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="1600:||:1500:||:nogi:||:B:||:Boot of King:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="1600:||:1500:||:golova:||:B:||:Helm of King:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="1600:||:1500:||:ryki:||:B:||:Gloves of King:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="1600:||:1500:||:4it:||:B:||:Shield of King:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="1800:||:1500:||:weapon:||:B:||:Weapon of King:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-250000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили set B</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Set B</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'seta':
if(
$udata[9]<"62"){echo"<small>Што б крафтить ети вещи нужно иметь 62 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"500000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Set A"){
$text2="3200:||:1500:||:body:||:A:||:Robe of Lord:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="3200:||:1500:||:nogi:||:A:||:Boot of Lord:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="3200:||:1500:||:golova:||:A:||:Helm of Lord:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="3200:||:1500:||:ryki:||:A:||:Gloves of Lord:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="3200:||:1500:||:4it:||:A:||:Shield of Lord:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="3400:||:1500:||:weapon:||:A:||:Weapon of Lord:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$udata[8]=round($udata[8]-500000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили set A</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Set A</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'sets':
if(
$udata[9]<"76"){echo"<small>Што б крафтить ети вещи нужно иметь 76 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[8]<"1000000000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe Set S"){
$text2="6400:||:1500:||:body:||:S:||:Robe of Vesper Noble:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="6400:||:1500:||:nogi:||:S:||:Boot of Vesper Noble:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="6400:||:1500:||:ryki:||:S:||:Gloves of Vesper Noble:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="6400:||:1500:||:4it:||:S:||:Shield of Vesper Noble:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="6400:||:1500:||:golova:||:S:||:Helm of Vesper Noble:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$text2="6600:||:1500:||:weapon:||:S:||:Weapon of Vesper Noble:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
$udata[8]=round($udata[8]-1000000000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили set S</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe Set A</u></small><br/>"; include"include/down.php"; exit;
break;
case 
'soski':
if(
$udata[9]<"40"){echo"<small>Што б крафтить SoulShot нужно иметь 40 уровень<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="kamael"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="ork"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="elf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="darkelf"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}
if(
$udata[26]=="human"){echo"Вы не Гном<br/>"; include_once("include/down.php"); exit;}


$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="SoulShot"){echo"<small>У Вас уже есть пакет. Используйте ево и тогда сможете скрафтить</small>"; include_once"include/down.php"; exit; }}

if(
$udata[8]<"500000"){echo"<small>У вас недостаточно денег!</small><br/>"; include_once"include/down.php"; exit; }
$file = @file("MySql/base123/item/$log.dat");
$total count($file);

for (
$i 0$i $total$i++){

$file = @file("MySql/base123/item/$log.dat");
$file array_reverse($file);
$data explode(":||:",$file[$i]);
if(
$data[4]=="Recipe SoulShot"){



$text2="2:||:50:||:vesh2:||:1000:||:SoulShot:||:";

$fp=fopen("MySql/base123/item/$log.dat","a+");
flock($fp,LOCK_EX);
fputs($fp,"$text2rn");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);

$udata[8]=round($udata[8]-500000);
$text=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:'
;

$fp=fopen("MySql/base123/reg/$log.dat","a+");
flock($fp,LOCK_EX);
ftruncate($fp,0);
fputs($fp,"$text");
fflush($fp);
flock($fp,LOCK_UN);
fclose($fp);
echo
"<small>Вы успешно скрафтили SoulShots 1000 штук</small><br/>";
include_once
"include/down.php";
exit;
}}
echo
"<small>У Вас нету <u>Recipe SoulShot</u></small><br/>"; include"include/down.php"; exit;
break;
}}else{echo
"<small>Пароль или логин неверен!</small>";}
include_once
"include/down.php";
?>
Онлайн: 2
Реклама