Файл: playtox.tk/bott.php
Строк: 173
<?
define('PROTECTOR', 1);
$textl='Сражения';
@include('files/db.php');
@include('files/auth.php');
@include('files/func.php');
@include('files/core.php');
include('files/head.php');
@include('files/zag.php');
echo" <div class='menuList'>";
switch($_GET[mod]){
default:
echo" <a href='?mod=start'> Создать бота</a>";
break;
case 'start';
$rand_s=rand(1,2);
$rand_p=rand(1,2);
$rand_t=rand(1,2);
$rand_m=rand(1,5);
if($rand_s=="1"){$storona="black";} else {$storona="white";}
if($rand_p=="1"){$pol="m";} else {$pol="w";}
if($rand_t=="1"){$type="wizard";} else {$type="fighert";}
$lvl=rand(1,10);
$sila=rand(15,40);
$prot=rand(15,40);
$lovk=rand(15,40);
$hp=rand(15,40);
$g_nam1=rand(1,18);
$g_nam2=rand(1,18);
$g_nam3=rand(1,18);
$g_nam4=rand(1,18);
$g_nam5=rand(1,18);
$g_nam6=rand(1,18);
if($rand_m=="1"){$mesto="inventar";}
if($rand_m=="2"){$mesto="shop";}
if($rand_m=="3"){$mesto="okrestnosti";}
if($rand_m=="4"){$mesto="msg";}
if($rand_m=="5"){$mesto="okrestnosti";}
if($g_nam1=="1"){$l1="q";}
if($g_nam1=="2"){$l1="a";}
if($g_nam1=="3"){$l1="w";}
if($g_nam1=="4"){$l1="e";}
if($g_nam1=="5"){$l1="r";}
if($g_nam1=="6"){$l1="t";}
if($g_nam1=="7"){$l1="s";}
if($g_nam1=="8"){$l1="d";}
if($g_nam1=="9"){$l1="f";}
if($g_nam1=="10"){$l1="g";}
if($g_nam1=="11"){$l1="v";}
if($g_nam1=="12"){$l1="c";}
if($g_nam1=="13"){$l1="z";}
if($g_nam1=="14"){$l1="m";}
if($g_nam1=="15"){$l1="k";}
if($g_nam1=="16"){$l1="o";}
if($g_nam1=="17"){$l1="L";}
if($g_nam1=="18"){$l1="h";}
if($g_nam2=="1"){$l2="q";}
if($g_nam2=="2"){$l2="a";}
if($g_nam2=="3"){$l2="w";}
if($g_nam2=="4"){$l2="e";}
if($g_nam2=="5"){$l2="r";}
if($g_nam2=="6"){$l2="t";}
if($g_nam2=="7"){$l2="s";}
if($g_nam2=="8"){$l2="d";}
if($g_nam2=="9"){$l2="f";}
if($g_nam2=="10"){$l2="g";}
if($g_nam2=="11"){$l2="v";}
if($g_nam2=="12"){$l2="c";}
if($g_nam2=="13"){$l2="z";}
if($g_nam2=="14"){$l2="m";}
if($g_nam2=="15"){$l2="k";}
if($g_nam2=="16"){$l2="o";}
if($g_nam2=="17"){$l2="L";}
if($g_nam2=="18"){$l2="h";}
if($g_nam3=="1"){$l3="q";}
if($g_nam3=="2"){$l3="a";}
if($g_nam3=="3"){$l3="w";}
if($g_nam3=="4"){$l3="e";}
if($g_nam3=="5"){$l3="r";}
if($g_nam3=="6"){$l3="t";}
if($g_nam3=="7"){$l3="s";}
if($g_nam3=="8"){$l3="d";}
if($g_nam3=="9"){$l3="f";}
if($g_nam3=="10"){$l3="g";}
if($g_nam3=="11"){$l3="v";}
if($g_nam3=="12"){$l3="c";}
if($g_nam3=="13"){$l3="z";}
if($g_nam3=="14"){$l3="m";}
if($g_nam3=="15"){$l3="k";}
if($g_nam3=="16"){$l3="o";}
if($g_nam3=="17"){$l3="L";}
if($g_nam3=="18"){$l3="h";}
if($g_nam4=="1"){$l4="q";}
if($g_nam4=="2"){$l4="a";}
if($g_nam4=="3"){$l4="w";}
if($g_nam4=="4"){$l4="e";}
if($g_nam4=="5"){$l4="r";}
if($g_nam4=="6"){$l4="t";}
if($g_nam4=="7"){$l4="s";}
if($g_nam4=="8"){$l4="d";}
if($g_nam4=="9"){$l4="f";}
if($g_nam4=="10"){$l4="g";}
if($g_nam4=="11"){$l4="v";}
if($g_nam4=="12"){$l4="c";}
if($g_nam4=="13"){$l4="z";}
if($g_nam4=="14"){$l4="m";}
if($g_nam4=="15"){$l4="k";}
if($g_nam4=="16"){$l4="o";}
if($g_nam4=="17"){$l4="L";}
if($g_nam4=="18"){$l4="h";}
if($g_nam5=="1"){$l5="q";}
if($g_nam5=="2"){$l5="a";}
if($g_nam5=="3"){$l5="w";}
if($g_nam5=="4"){$l5="e";}
if($g_nam5=="5"){$l5="r";}
if($g_nam5=="6"){$l5="t";}
if($g_nam5=="7"){$l5="s";}
if($g_nam5=="8"){$l5="d";}
if($g_nam5=="9"){$l5="f";}
if($g_nam5=="10"){$l5="g";}
if($g_nam5=="11"){$l5="v";}
if($g_nam5=="12"){$l5="c";}
if($g_nam5=="13"){$l5="z";}
if($g_nam5=="14"){$l5="m";}
if($g_nam5=="15"){$l5="k";}
if($g_nam5=="16"){$l5="o";}
if($g_nam5=="17"){$l5="L";}
if($g_nam5=="18"){$l5="h";}
if($g_nam6=="1"){$l6="q";}
if($g_nam6=="2"){$l6="a";}
if($g_nam6=="3"){$l6="w";}
if($g_nam6=="4"){$l6="e";}
if($g_nam6=="5"){$l6="r";}
if($g_nam6=="6"){$l6="t";}
if($g_nam6=="7"){$l6="s";}
if($g_nam6=="8"){$l6="d";}
if($g_nam6=="9"){$l6="f";}
if($g_nam6=="10"){$l6="g";}
if($g_nam6=="11"){$l6="v";}
if($g_nam6=="12"){$l6="c";}
if($g_nam6=="13"){$l6="z";}
if($g_nam6=="14"){$l6="m";}
if($g_nam6=="15"){$l6="k";}
if($g_nam6=="16"){$l6="o";}
if($g_nam6=="17"){$l6="L";}
if($g_nam6=="18"){$l6="h";}
$dater=date("d F, Y", time());
$time=date("H:i:s", time());
$dater = str_replace("January","января",$dater);
$dater = str_replace("February","февраля",$dater);
$dater = str_replace("March","марта",$dater);
$dater = str_replace("April","апреля",$dater);
$dater = str_replace("May","мая",$dater);
$dater = str_replace("June","июня",$dater);
$dater = str_replace("July","июля",$dater);
$dater = str_replace("August","августа",$dater);
$dater = str_replace("September","сентября",$dater);
$dater = str_replace("October","октября",$dater);
$dater = str_replace("November","ноября",$dater);
$dater = str_replace("December","декабря",$dater);
$name="$l1$l2$l3$l4$l5$l6";
mysql_query("INSERT INTO
`users` SET
`usr` = '$name',
`pass` = 'bot_bot',
`email` = 'Нет',
`ip` = '',
`pol` = '$pol',
`storona` = '$storona',
`lvl` = '$lvl',
`money` = '100',
`skill` = '3',
`hp` = '$hp',
`hpall` = '$hp',
`mp` = '$hp',
`mpall` = '$hp',
`exp` = '200',
`almaz` = '1',
`sila` = '$sila',
`lovk` = '$lovk',
`prot` = '$pro',
`krit` = '12',
`ukrit` = '18',
`klas` = '$type',
`city` = 'fornost',
`ref` = '$_GET[ref]',
`lvisit` = '$dater $time'");
mysql_query("INSERT INTO `online` SET
`usr`='$name',
`laikas`='1412446454',
`lvl`='$lvl'");
mysql_query("INSERT INTO `mesto` SET
`usr`='$name',
`place`='$mesto'");
echo" $name </br>
$storona</br>
$lvl</br>
$type</br>
$pol</br>";
break;
}
@include('files/down.php');
?>