Tudo iXat

Participe do fórum, é rápido e fácil

Tudo iXat
Tudo iXat
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Ir para baixo
avatar
Milk
Administrador
Administrador
Mensagens : 567
Respeito : 35
Data de inscrição : 13/05/2013

[HOT] Bot Para o pack do x4t Empty [HOT] Bot Para o pack do x4t

Qua Jan 07, 2015 10:35 am
Reputação da mensagem: 50% (2 votos)
Fala galera !

Outros bot nao vai funcionar no packd o x4t porque  é diferente a autenticação

entao ta ae um bot brasico mais funcionando !


Código:
<?php
set_time_limit(0); // Tempo maximo de execucao
error_reporting(0); // Nao mostrar erros

class zBot
{
    /* Sample config */
    public $ixatlink = "http://ixatbr.com/"; // Link do iXat
    public $usuario = ""; // Usuario BOT
    public $senha = ""; // Senha admin123
    public $sala = "Lobby"; // Sala [Nome]
    /* Lembre-se que a conta do BOT precisa ter everypower! */
    public $nome = "Xanaina"; // Nome do BOT
    public $hat = "tv"; // Hat do BOT
    public $hatcolor = "r"; // Hat color
    public $glow = "000001"; // Glow do BOT
    public $namecolor = "r"; // namecolor do BOT
    public $status = "ixat br"; // Status do BOT
    public $statusglow = "000001#r"; // Statusglow do BOT
    public $statuscolor = "000001#r"; // Statuscolor do BOT
    public $avatar = "(BOT#))"; // Avatar do BOT
    public $home = ""; // Homepage[casinha] do BOT
    public $maxKicks = 4; //Number of kicks before ban
    public $admins = Array(1, 12000178, 7); // IDs com acesso exemplo Array(42,100,96218942); etc...
    public $semacesso = "You dont allowed use commands!"; // Mensagem sem acesso..
    public $autoWelcome = "Bem vindo ao IXATBR (REDFACE#C)!"; // Mensagem de welcome para os usuarios
    public $automember = True; // True = ativado, False = desativado
    public $autoguest = False; // True = ativado, False = desativado
    public $censor = array("anal", "viado", "****", "piroka", "****", "fucker=", "benga", "fuuck", "cu", "vai toma no cu", "vai toma no toba", "tnc", "filho da ****", "viado", "n00b", "cuzao", "fag", "f4g", "pepeka", "****", "ppk", "ppka", "asholes", "AssMonkey", "Assface", "assh0le", "assh0lez", "asshole", "assholes", "assholz", "asswipe", "azzhole", "bassterds", "bastard", "bastards", "bastardz", "basterds", "basterdz", "Biatch", "bitch", "bitches", "BlowJob", "boffing", "butthole", "buttwipe", "c0ck", "c0cks", "c0k", "Carpet Muncher", "cawk", "cawks", "Clit", "cnts", "cntz", "cock", "cockhead", "cock-head", "cocks", "CockSucker", "cock-sucker", "cum", "cunt", "cunts", "cuntz", "dick", "dild0", "dild0s", "dildo", "dildos", "dilld0", "dilld0s", "dominatricks", "dominatrics", "dominatrix", "dyke", "enema", "f u c k", "f u c k e r", "fag", "fag1t", "faget", "fagg1t", "faggit", "faggot", "fagit", "fags", "fagz", "faig", "faigs", "fart", "flipping the bird", "Fukkin", "g00k", "gaygirl", "gays", "gayz", "God-damned", "h00r", "h0ar", "h0re", "hells", "hoar", "hoor", "hoore", "jackoff", "jerk-off", "jisim", "jiss", "jizm", "jizz", "knob", "knobs", "knobz", "kunt", "kunts", "kuntz", "Lesbian", "Lezzian", "Lipshits", "Lipshitz", "masochist", "masokist", "massterbait", "masstrbait", "masstrbate", "masterbaiter", "masterbate", "masterbates", "n1gr", "nastt", "nigga", "nigger;", "nigur;", "niiger;", "niigr;", "orafis", "orgasim;", "orgasm", "orgasum", "oriface", "orifice", "orifiss", "packi", "packie", "packy", "paki", "pakie", "paky", "pecker", "peeenus", "peeenusss", "peenus", "peinus", "pen1s", "penas", "****", "****-breath", "penus", "penuus", "Phuc", "Phuck", "Phuk", "Phuker", "Phukker", "polac", "polack", "polak", "Poonani", "pr1c", "pr1ck", "pr1k", "pusse", "pussee", "pussy", "puuke", "puuker", "queer", "queers", "queerz", "qweers", "qweerz", "qweir", "recktum", "rectum", "scank", "schlong", "screwing", "semen", "****", "Sh!t", "sh1t", "sh1ter", "sh1ts", "sh1tter", "sh1tz", "shit", "shits", "shitter", "Shitty", "Shity", "shitz", "Shyt", "Shyte", "Shytty", "Shyty", "skanck", "skank", "skankee", "skankey", "skanks", "Skanky", "slut", "sluts", "Slutty", "slutz", "son-of-a-bitch", "tit", "turd", "va1jina", "vag1na", "vagiina", "vagina", "vaj1na", "vajina", "vullva", "vulva", "w0p", "wh00r", "wh0re", "whore", "xrated", "xxx", "b!+ch", "bitch", "blowjob", "clit", "arschloch", "shit", "ass", "asshole", "b!tch", "b17ch", "b1tch", "bastard", "bi+ch", "boiolas", "***", "c0ck", "cawk", "chink", "cipa", "clits", "cock", "cum", "cunt", "dildo", "dirsa", "ejakulate", "fatass", "fcuk", "fuk", "fux0r", "hoer", "hore", "jism", "kawk", "l3itch", "l3i+ch", "lesbian", "masturbate", "masterbat", "masterbat3", "s.o.b.", "mofo", "nigga", "nigger", "nutsack", "phuck", "pimpis", "pusse", "pussy", "scrotum", "sh!t", "shemale", "shi+", "sh!+", "slut", "smut", "teets", "tits", "boobs", "b00bs", "teez", "testical", "testicle", "titt", "w00se", "jackoff", "wank", "whoar", "whore", "dyke", "shit", "@$$", "amcik", "andskota", "arse", "assrammer", "ayir", "bi7ch", "bitch", "bollock", "breasts", "butt-pirate", "cabron", "cazzo", "chraa", "chuj", "Cock", "cunt", "d4mn", "daygo", "dego", "dick", "dike", "dupa", "dziwka", "ejackulate", "Ekrem", "Ekto", "enculer", "faen", "fag", "fanculo", "fanny", "feces", "feg", "Felcher", "ficken", "fitt", "Flikker", "foreskin", "Fotze", "Fu(", "fuk", "futkretzn", "gay", "gook", "guiena", "h0r", "helvete", "hoer", "honkey", "Huevon", "hui", "injun", "jizz", "kanker", "kike", "klootzak", "kraut", "knulle", "kuk", "kuksuger", "Kurac", "kurwa", "kusi", "kyrpa", "lesbo", "mamhoon", "masturbat", "merd", "mibun", "monkleigh", "mouliewop", "muie", "mulkku", "muschi", "nepesaurio", "nigger", "orospu", "paska", "perse", "picka", "pierdol", "pillu", "pimmel", "piss", "pizda", "poontsee", "porn", "p0rn", "pr0n", "preteen", "pule", "****", "puto", "qahbeh", "queef", "rautenberg", "schaffer", "scheiss", "schlampe", "schmuck", "screw", "sh!t", "sharmuta", "sharmute", "shipal", "shiz", "skribz", "skurwysyn", "sphencter", "spic", "spierdalaj", "splooge", "suka", "b00b", "testicle", "titt", "twat", "vittu", "wank", "wichser", "wop", "yed", "zabourah");

 /* Extra */
    public $usuarios;
    public $logado;
    public $socket;
    public $chatID;
    public $botID;
    public $porta;
    public $ip;
    public $k;
    
    /* Funcao de conectar com o ixat */
    public function conectar()
    {
        $this->pegarInfos();
        $this->socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
        $test         = socket_connect($this->socket, $this->ip, $this->porta);
        echo "--> Conectando em {$this->ip}:{$this->porta}...\n";
        If (!$test) {
            die("<-- Falha ao conectar!\n");
        } //!$test
    }
    
    /* Funcao de desconetar [usado para debug] */
    public function desconectar()
    {
        If (isset($this->socket) && $this->socket == True)
            socket_close($this->socket);
        $this->socket = False;
    }
    
    /* Funcao de pegar informacoes sobre o usuario bot... */
    function pegarInfos()
    {
        $curl = curl_init($this->ixatlink . "/mobile?" . time());
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, True);
        curl_setopt($curl, CURLOPT_POST, True);
        curl_setopt($curl, CURLOPT_POSTFIELDS, "username={$this->usuario}&password={$this->senha}&room={$this->sala}");
        $url          = curl_exec($curl);
        $parte1       = explode("\"id\":\"", $url);
        $id           = explode("\"", $parte1[1]);
        $this->botID  = $id[0];
        $parte2       = explode("\"k\":\"", $url);
        $k            = explode("\"", $parte2[1]);
        $this->k      = $k[0];
        $parte3       = explode("'<y r=\"", $url);
        $salaID       = explode("\"", $parte3[1]);
        $this->chatID = $salaID[0];
        $parte4       = explode("WebSocket('ws://", $url);
        $ip           = explode(":", $parte4[1]);
        $this->ip     = $ip[0];
        $parte5       = explode($this->ip . ":", $url);
        $porta        = explode("/", $parte5[1]);
        $this->porta  = $porta[0];
        If (empty($url)) {
            die("<-- Falha na conexao, ou o site pode estar offlne!!\n");
        } //empty( $url )
        If (empty($this->botID)) {
            die("<-- O chat nao existe, ou os dados estao incorretos!\n");
        } //empty( $this->botID )
    }
    
    /* Passar codigo XML para pegar B1 e B2 */
    public function passarXML($xml, $retornar = null)
    {
        $conteudo = @simplexml_load_string(trim($xml));
        Foreach ($conteudo->Attributes() as $i => $u)
            $retornar[$i] = (string) ((string) $u);
        return $retornar;
    }
    
    /* Enviar packets obvio ._. */
    public function enviar($packet)
    {
        If ($packet[strlen($packet) - 1] != chr(0))
            $packet .= chr(0);
        echo "[BOT]-> {$packet}\n";
        return socket_write($this->socket, $packet, strlen($packet));
    }
    
    /* Entrar no ixat grupo */
    public function entrar()
    {
        $this->conectar();
        $this->enviar("<y r=\"{$this->chatID}\" />");
        $x  = $this->passarXML(socket_read($this->socket, 1243));
        $b1 = floor(2 << ($x["yi"] % 30)) % $x["yc"] + $x["yi"];
        $b2 = floor(pow(2, $x["ys"] % 32));
        $j2 = "cb=\"0\" ";
        $j2 .= "auth1=\"{$b1}\" ";
        $j2 .= "auth2=\"{$b2}\" ";
        $j2 .= "y=\"{$x[ 'yi' ]}\" ";
        $j2 .= "k=\"{$this->k}\" ";
        $j2 .= "k3=\"0\" ";
        $j2 .= "d1=\"1425793043\" ";
        $j2 .= "p=\"0\" ";
        $j2 .= "c=\"{$this->chatID}\" ";
        $j2 .= "f=\"0\" ";
        $j2 .= "u=\"{$this->botID}\" ";
        $j2 .= "m6=\"131072\" ";
        $j2 .= "d0=\"0\" ";
        $j2 .= "d2=\"0\" ";
        $j2 .= "d4=\"2147483645\" ";
        $j2 .= "d5=\"2147483647\" ";
        $j2 .= "d6=\"2147483647\" ";
        $j2 .= "d7=\"2147483647\" ";
        $j2 .= "d8=\"2147483647\" ";
        $j2 .= "d9=\"2147483647\" ";
        $j2 .= "d10=\"2147483647\" ";
        $j2 .= "d11=\"2147483647\" ";
        $j2 .= "d12=\"2147483647\" ";
        $j2 .= "d13=\"2147483647\" ";
        $j2 .= "d14=\"8175\" ";
        $j2 .= "N=\"{$this->usuario}\" ";
        $j2 .= "n=\"{$this->nome}(hat#{$this->hat}#{$this->hatcolor})(glow#{$this->glow}#{$this->namecolor})##{$this->status}#{$this->statusglow}#{$this->statuscolor}\" ";
        $j2 .= "a=\"{$this->avatar}\" ";
        $j2 .= "h=\"{$this->home}\" ";
        $j2 .= "v=\"0\"";
        $j2 = "<j2 {$j2} />";
        $this->enviar($j2);
    }
    
    /* Carregar packets */
    public function carregar($verIfi = True, $teste_var = True)
    {
        $x = "";
        try {
            $x = rtrim(socket_read($this->socket, 2048));
            $x = str_replace("", "", $x);
        }
        catch (Exception $e) {
            return "DESLIGADO";
        }
        If (!$x)
            return "DESLIGADO";
        If ($x[strlen($x) - 1] != ">")
            $x .= $this->carregar(True);
        If ($verIfi)
            $this->packets($x, $teste_var);
        return $x;
    }
    
    /* Mostrar packets e etc... */
    public function packets($packet, $teste = True, $teste2 = False)
    {
        If (substr_count($packet, ">") > 1) {
            $packet = explode("/>", $packet);
            $teste2 = True;
        } //substr_count( $packet, ">" ) > 1
        Foreach ((Array) $packet as $p) {
            If ($teste2)
                $p .= "/>";
            $p = trim($p);
            If (strlen($p) < 5)
                return;
            echo "[IXAT]-> {$p}\n";
            $tipo = trim(strtolower(substr($p, 1, strpos($p . " ", " "))));
            $p    = trim(str_replace("<" . $tipo, "", str_replace("/>", "", $p)));
            $p    = str_replace("\"", "", str_replace("\" ", "&", str_replace("&", "__38", $p)));
            parse_str($p, $this->packet[$tipo]);
            Foreach ($this->packet[$tipo] as $x => $v)
                $this->packet[$tipo][$x] = str_replace("__38", "&", str_replace("pl_", "+", $v));
            If ($teste)
                $this->tipos($tipo, $this->packet[$tipo]);
        } //(Array) $packet as $p
    }
    
    
    
    /* Algums tipos de packets e comandos podem ser adicionado aqui! */
    public function tipos($tipo, $packet)
    {
        switch ($tipo) {
            /* Packets */
            case 'u':
                $u                                       = $this->fetchUser($packet['u']);
                $this->users[$packet['u']]['cb']         = @$packet['cb'];
                $this->users[$packet['u']]['s']          = @$packet['s'];
                $this->users[$packet['u']]['f']          = (isset($packet['f'])) ? (int) $packet['f'] : 0;
                $this->users[$packet['u']]['id']         = $packet['u'];
                $this->users[$packet['u']]['days']         = $packet['days'];
                $this->users[$packet['u']]['xats']         = $packet['xats'];
                $this->users[$packet['u']]['d0']         = (isset($packet['d0'])) ? (int) $packet['d0'] : 0;
                $this->users[$packet['u']]['d2']         = (isset($packet['d2'])) ? @$packet['d2'] : 0;
                $this->users[$packet['u']]['q']          = (isset($packet['q'])) ? (int) $packet['q'] : 0;
                $this->users[$packet['u']]['registered'] = ((key_exists('N', $packet)) ? $packet['N'] : 'Unregistered');
                //$this->users[$packet['u']]['name'] = (substr(@$packet['n'],0,1)=="$") ? substr(@$packet['n'],0,1) : $packet['n'];
                $this->users[$packet['u']]['name']       = @$packet['n'];
                $this->users[$packet['u']]['avatar']     = (isset($packet['a'])) ? @$packet['a'] : 'No Avatar';
                $this->users[$packet['u']]['home']       = (isset($packet['h'])) ? @$packet['h'] : 'No Homepage';
                $this->users[$packet['u']]['v']          = (@$packet['v']) ? @$packet['v'] : 0;
                $this->users[$packet['u']]['bride']      = (isset($packet['d2'])) ? @$packet['d2'] : 0;
                $this->users[$packet['u']]['rel']        = (@$packet['d0'] & 1) ? 1 : 2; //Relationship Type: 1=BFF 2=Married #note that if they not in a relationship it will show there Married this can be fixed by detecting if they have a bride [D2]
                $this->users[$packet['u']]['sub']        = (isset($packet['p0'])) ? 1 : 0;
                if ($this->autoWelcome != '' && !isset($packet['s']))
                    $this->sendPM($packet['u'], $this->autoWelcome);
                
                if ($packet['rank'] == 5) {
                    if ($this->automember) {
                        $this->member($packet['u']);
                    }
                }
                if ($packet['rank'] == 3) {
                    if ($this->autoguest) {
                        $this->guest($packet['u']);
                    }
                }
                break;
            
            case "z":
                $this->enviarMSG("Sem Clique (d#flame)", "PC", $packet["u"]);
                break;
            case 'i':
                $ci             = explode(';=', $packet['b']);
                $this->chatInfo = array(
                    'background' => $ci[0],
                    'tabbedChat' => $ci[1],
                    'tabbedChatID' => $ci[2],
                    'language' => $ci[3],
                    'radio' => str_replace('http://', '', $ci[4]),
                    'buttons' => $ci[5]
                );
                print_r($this->chatInfo);
                break;
            case "m": // Mensagem
            case "p":
                If (isset($packet["i"]) && $packet["i"] > 0)
                    break;
                
                $msg = $mensagem = explode(" ", $packet["t"]);
                unset($msg[0]);
                $msg = implode(" ", $msg);
                If (isset($mensagem[0]) && $mensagem[0][0] != "!")
                    break;
                
                $user    = $this->usuarios[$packet["u"]];
                $usuario = ($user["N"]) ? $user["N"] : $user["u"];
                
                switch (substr($mensagem[0], 1)) {
                    /* Comandos para todos */
                    case "say":
                        // !say [msg]
                        $user    = $this->users[$packet["u"]];
                        $usuario = ($user["registered"]) ? $user["registered"] : $user["u"];
                        $this->enviarMSG('[' . $usuario . '] ' . $msg);
                        break;
    
                    case "cmd":
                        // !info
                        $this->enviarMSG("!online , !say , !price , !love , !choose , !perg , !info , !att", "PM", $packet["u"]);
                        break;
                    
                    case 'online':
                        $this->enviarMSG($users . '' . 'Existem ' . count($this->users) . ' Usuarios Online.');
                        break;
                    
                    case "choose":
                        // !choose [coisa] [coisa2]
                        $mensagem = explode(' ou ', strtolower($msg));
                        if (!isset($mensagem[0]) || empty($mensagem[1]) || count(array_keys($mensagem)) == 1)
                            return $this->enviarMSG('E preciso duas escolha (D)', "PM", $packet['u']);
                        $mensagem = array_values($mensagem);
                        $rand     = $mensagem[array_rand($mensagem)];
                        $this->enviarMSG('Eu prefiro ' . $rand, "PM", $packet['u']);
                        break;
                    
                    case "perg":
                    case "8ball":
                        // !perg/!8ball [pergunta]
                        $respostas = array(
                            'Talvez sim',
                            'Sim.',
                            'Nao.',
                            'Minhas fontes informou que nao.',
                            'Ah, sim e sim',
                            'Na verdade nao sei',
                            'Outlook nao presta \'-\'',
                            'Eu acho que nao',
                            'Muito bom',
                            'Definiu-se que sim.',
                            '**** Minha Piroca',
                            'Gay',
                            'Pesquisa no Google otário',
                            'Não sei',
                            'Vai Pro Facebook Otário',
                            'Vai bate uma siririca (Flip)',
                            'Sai do Redtube punheitero (d)'
                        );
                        $resposta  = $respostas[array_rand($respostas)];
                        $mensagens = array();
                        foreach ($mensagens as $k => $valor) {
                            $valor2 = strtoupper($valor);
                            array_push($mensagens, $valor2);
                        } //$mensagens as $k => $valor
                        $this->enviarMSG('' . $resposta);
                        break;
                    
                    case 'love':
                        // !lovetest [alguma coisa] [alguma coisa2]
                        //$gerar = rand(0, 100);
                       //$this->enviarMSG($mensagem[1] . ' + ' . $mensagem[2] . ' = ' . $gerar . '%');
   $this->kick('Sem Abusa de Mim (D))', $packet['u']);
                        break;
                    
                    /* Comandos para admin */
                    case "restart":
                        // !restart
                        If (!in_Array($packet["u"], $this->admins)) {
                            return $this->enviarMSG($this->semacesso, "PM", $packet["u"]);
                        } //!in_Array( $packet[ "u" ], $this->admins )
                        $this->enviarMSG("[Servidor]: Estou sendo reiniciado (backoff)");
                        $this->reiniciar();
                        $this->entrar();
                        break;
                    
                    case 'dx':
                        $days = intval($message[1]);
                        if ($days < 1)
                            return $this->sendPM($packet['u'], 'days must be 1 or more');
                        
                        $tradeValue = 13;
                        $xats       = floor($days * $tradeValue);
                        $this->enviarMSG($days . ' days equals ' . $xats . ' xats');
                        break;
                    
                    case 'xclear':
                        If (!in_Array($packet["u"], $this->admins)) {
                            return $this->enviarMSG($this->semacesso, "PM", $packet["u"]);
                        } //!in_Array( $packet[ "u" ], $this->admins )
                        return $this->enviarMSG('Desculpe, mas você não tem permissão para isso!');;
                        $this->clear = $mensagem[1];
                    case 'msg':
                    case 'chat':
                    case 'messages':
                    case 'message':
                        $this->clearMsg(true, 25);
                        $this->socket->connect();
                        $this->network->join();
                        break;
                        
                } //substr( $mensagem[ 0 ], 1 )
        } //$tipo
    }
    
    /* Fim dos Commands Bot */
    
    /* Reiniciar o servidor */
    public function reiniciar()
    {
        $this->conectar();
        $this->entrar();
    }
    
    public function fetchUser($id)
    {
        $id = $this->parseU($id);
        if (isset($this->users[$id]))
            return $this->users[$id];
        else
            return false;
    }
    function kick($message, $id, $log = true)
    {
        if ($log) {
            if (!empty($this->users[$id]['kicks']))
                $this->users[$id]['kicks']++;
            else
                $this->users[$id]['kicks'] = 1;
        }
        if ($this->users[$id]['kicks'] > $this->maxKicks) {
            $this->ban($message, $id, 3600);
            $this->users[$id]['kicks'] = 0;
            return;
        }
        $this->enviar('<c p="' . $message . " " . $this->users[$id]['kicks'] . '/' . $this->maxKicks . '" u="' . $id . '" t="/k" />');
    }
    function ban($message, $id, $time)
    {
        $this->enviar('<c p="' . ereg_replace('[^A-Za-z0-9.! ]', '', $message) . '" u="' . $id . '" t="/g' . $time . '" />');
    }
    public function sendPM($id = 0, $packet = '')
    {
        $id = $this->parseU($id);
        $this->enviar('<p u="' . $id . '" t="' . $packet . '" d="' . $id . '" />');
    }
    
    public function parseU($id)
    {
        if (strpos($id, "_") > -1)
            $e = explode("_", $id);
        $u = (strpos($id, "_") > -1) ? $e[0] : $id;
        return $u;
    }
    
    function member($id, $time = null)
    {
        if (!$time)
            $time = 0;
        $id = $this->parseU($id);
        $this->sendC($id, '/e', $time);
    }
    function guest($id, $time = null)
    {
        if (!$time)
            $time = 0;
        $id = $this->parseU($id);
        $this->sendC($id, '/r', $time);
    }
    
    public function sendC($id = 0, $com = '') //Shit always comes in handy after awhile.
    {
        $this->enviar('<c u="' . $id . '" t="' . $com . '" />');
    }
    public function censor($message)
    {
        $badwords = $this->censor;
        $message  = @preg_replace('#\((.+)\)#U', '', strtolower(' ' . $message . ' '));
        foreach ($badwords as $bad) {
            $bad = trim($bad);
            if (strpos($message . ' ', $bad . ' ') !== false) {
                if (strlen($bad) >= 2) {
                    return true;
                }
            }
            
        }
        
    }
    
    
    /* Enviar MSG, definido com tipo e ID */
    function enviarMSG($mensagem, $tipo = "MSG", $id = 0)
    {
        If (!$mensagem) {
            return False;
        } //!$mensagem
        switch ($tipo) {
            case "MSG": // Sample
                $this->enviar("<m t=\"{$mensagem}\" u=\"{$this->botID}\" />");
                break;
            
            case "PM": // PM
                $this->enviar("<p u=\"{$id}\" t=\"{$mensagem}\" d=\"{$id}\" />");
                break;
            
            case "PC": // Privado
                $this->enviar("<z d=\"{$id}\" u=\"{$this->botID}\" t=\"{$mensagem}\" />");
                break;
        } //$tipo
    }
    
}

$bot = new zBot(); // Estanciar a class

while (1) {
    try {
        If ($bot->carregar() == "DESLIGADO") {
            $bot->desconectar();
            $bot->entrar();
        } //$bot->carregar() == "DESLIGADO"
    }
    catch (Exception $e) {
        die($e);
    }
} //1

?>

Creditos :
SkyFlare : Criou o bot
Milk: Atualizou para o x4t
iZerang Mudou algumas function
Smoke
Smoke
Membro
Membro
Mensagens : 67
Respeito : -40
Data de inscrição : 17/05/2013
Idade : 26

[HOT] Bot Para o pack do x4t Empty Re: [HOT] Bot Para o pack do x4t

Qua Jan 07, 2015 1:00 pm
Reputação da mensagem: 40% (5 votos)
vlw pelo post tava precisando Wink
avatar
Milk
Administrador
Administrador
Mensagens : 567
Respeito : 35
Data de inscrição : 13/05/2013

[HOT] Bot Para o pack do x4t Empty Re: [HOT] Bot Para o pack do x4t

Qua Jan 07, 2015 1:46 pm
Smoke escreveu:vlw pelo post tava precisando Wink
De nada estamos ae pra isso !
Key
Key
Administrador
Administrador
Ajudante
Mensagens : 143
Respeito : 47
Data de inscrição : 06/01/2015

[HOT] Bot Para o pack do x4t Empty Re: [HOT] Bot Para o pack do x4t

Qua Jan 07, 2015 1:47 pm
Reputação da mensagem: 25% (8 votos)
Vlw Milk.
Vetillo
Vetillo
Membro
Membro
Mensagens : 16
Respeito : 0
Data de inscrição : 07/01/2015

[HOT] Bot Para o pack do x4t Empty Re: [HOT] Bot Para o pack do x4t

Qua Jan 07, 2015 2:53 pm
Olá,
Eu tenho um erro neste bot,
Quando eu ligá-lo ay um erro, o eror é que quando eu chegar em casa tela CMD e, em seguida, começar a namorar letras sem parar, deixa muitas vezes rapidissimamente as informações do usuário, como nome, senha, etc.

Alguma solucion ?

Saluods
EveerLaasT
EveerLaasT
Membro
Membro
Mensagens : 1
Respeito : 0
Data de inscrição : 02/03/2015

[HOT] Bot Para o pack do x4t Empty Re: [HOT] Bot Para o pack do x4t

Ter Mar 03, 2015 8:00 pm
Milk escreveu:
Fala galera !

Outros bot nao vai funcionar no packd o x4t porque  é diferente a autenticação

entao ta ae um bot brasico mais funcionando !


Código:
<?php
set_time_limit(0); // Tempo maximo de execucao
error_reporting(0); // Nao mostrar erros

class zBot
{
    /* Sample config */
    public $ixatlink = "http://ixatbr.com/"; // Link do iXat
    public $usuario = ""; // Usuario BOT
    public $senha = ""; // Senha admin123
    public $sala = "Lobby"; // Sala [Nome]
    /* Lembre-se que a conta do BOT precisa ter everypower! */
    public $nome = "Xanaina"; // Nome do BOT
    public $hat = "tv"; // Hat do BOT
    public $hatcolor = "r"; // Hat color
    public $glow = "000001"; // Glow do BOT
    public $namecolor = "r"; // namecolor do BOT
    public $status = "ixat br"; // Status do BOT
    public $statusglow = "000001#r"; // Statusglow do BOT
    public $statuscolor = "000001#r"; // Statuscolor do BOT
    public $avatar = "(BOT#))"; // Avatar do BOT
    public $home = ""; // Homepage[casinha] do BOT
    public $maxKicks = 4; //Number of kicks before ban
    public $admins = Array(1, 12000178, 7); // IDs com acesso exemplo Array(42,100,96218942); etc...
    public $semacesso = "You dont allowed use commands!"; // Mensagem sem acesso..
    public $autoWelcome = "Bem vindo ao IXATBR (REDFACE#C)!"; // Mensagem de welcome para os usuarios
    public $automember = True; // True = ativado, False = desativado
    public $autoguest = False; // True = ativado, False = desativado
    public $censor = array("anal", "viado", "****", "piroka", "****", "fucker=", "benga", "fuuck", "cu", "vai toma no cu", "vai toma no toba", "tnc", "filho da ****", "viado", "n00b", "cuzao", "fag", "f4g", "pepeka", "****", "ppk", "ppka", "asholes", "AssMonkey", "Assface", "assh0le", "assh0lez", "asshole", "assholes", "assholz", "asswipe", "azzhole", "bassterds", "bastard", "bastards", "bastardz", "basterds", "basterdz", "Biatch", "bitch", "bitches", "BlowJob", "boffing", "butthole", "buttwipe", "c0ck", "c0cks", "c0k", "Carpet Muncher", "cawk", "cawks", "Clit", "cnts", "cntz", "cock", "cockhead", "cock-head", "cocks", "CockSucker", "cock-sucker", "cum", "cunt", "cunts", "cuntz", "dick", "dild0", "dild0s", "dildo", "dildos", "dilld0", "dilld0s", "dominatricks", "dominatrics", "dominatrix", "dyke", "enema", "f u c k", "f u c k e r", "fag", "fag1t", "faget", "fagg1t", "faggit", "faggot", "fagit", "fags", "fagz", "faig", "faigs", "fart", "flipping the bird", "Fukkin", "g00k", "gaygirl", "gays", "gayz", "God-damned", "h00r", "h0ar", "h0re", "hells", "hoar", "hoor", "hoore", "jackoff", "jerk-off", "jisim", "jiss", "jizm", "jizz", "knob", "knobs", "knobz", "kunt", "kunts", "kuntz", "Lesbian", "Lezzian", "Lipshits", "Lipshitz", "masochist", "masokist", "massterbait", "masstrbait", "masstrbate", "masterbaiter", "masterbate", "masterbates", "n1gr", "nastt", "nigga", "nigger;", "nigur;", "niiger;", "niigr;", "orafis", "orgasim;", "orgasm", "orgasum", "oriface", "orifice", "orifiss", "packi", "packie", "packy", "paki", "pakie", "paky", "pecker", "peeenus", "peeenusss", "peenus", "peinus", "pen1s", "penas", "****", "****-breath", "penus", "penuus", "Phuc", "Phuck", "Phuk", "Phuker", "Phukker", "polac", "polack", "polak", "Poonani", "pr1c", "pr1ck", "pr1k", "pusse", "pussee", "pussy", "puuke", "puuker", "queer", "queers", "queerz", "qweers", "qweerz", "qweir", "recktum", "rectum", "scank", "schlong", "screwing", "semen", "****", "Sh!t", "sh1t", "sh1ter", "sh1ts", "sh1tter", "sh1tz", "shit", "shits", "shitter", "Shitty", "Shity", "shitz", "Shyt", "Shyte", "Shytty", "Shyty", "skanck", "skank", "skankee", "skankey", "skanks", "Skanky", "slut", "sluts", "Slutty", "slutz", "son-of-a-bitch", "tit", "turd", "va1jina", "vag1na", "vagiina", "vagina", "vaj1na", "vajina", "vullva", "vulva", "w0p", "wh00r", "wh0re", "whore", "xrated", "xxx", "b!+ch", "bitch", "blowjob", "clit", "arschloch", "shit", "ass", "asshole", "b!tch", "b17ch", "b1tch", "bastard", "bi+ch", "boiolas", "***", "c0ck", "cawk", "chink", "cipa", "clits", "cock", "cum", "cunt", "dildo", "dirsa", "ejakulate", "fatass", "fcuk", "fuk", "fux0r", "hoer", "hore", "jism", "kawk", "l3itch", "l3i+ch", "lesbian", "masturbate", "masterbat", "masterbat3", "s.o.b.", "mofo", "nigga", "nigger", "nutsack", "phuck", "pimpis", "pusse", "pussy", "scrotum", "sh!t", "shemale", "shi+", "sh!+", "slut", "smut", "teets", "tits", "boobs", "b00bs", "teez", "testical", "testicle", "titt", "w00se", "jackoff", "wank", "whoar", "whore", "dyke", "shit", "@$$", "amcik", "andskota", "arse", "assrammer", "ayir", "bi7ch", "bitch", "bollock", "breasts", "butt-pirate", "cabron", "cazzo", "chraa", "chuj", "Cock", "cunt", "d4mn", "daygo", "dego", "dick", "dike", "dupa", "dziwka", "ejackulate", "Ekrem", "Ekto", "enculer", "faen", "fag", "fanculo", "fanny", "feces", "feg", "Felcher", "ficken", "fitt", "Flikker", "foreskin", "Fotze", "Fu(", "fuk", "futkretzn", "gay", "gook", "guiena", "h0r", "helvete", "hoer", "honkey", "Huevon", "hui", "injun", "jizz", "kanker", "kike", "klootzak", "kraut", "knulle", "kuk", "kuksuger", "Kurac", "kurwa", "kusi", "kyrpa", "lesbo", "mamhoon", "masturbat", "merd", "mibun", "monkleigh", "mouliewop", "muie", "mulkku", "muschi", "nepesaurio", "nigger", "orospu", "paska", "perse", "picka", "pierdol", "pillu", "pimmel", "piss", "pizda", "poontsee", "porn", "p0rn", "pr0n", "preteen", "pule", "****", "puto", "qahbeh", "queef", "rautenberg", "schaffer", "scheiss", "schlampe", "schmuck", "screw", "sh!t", "sharmuta", "sharmute", "shipal", "shiz", "skribz", "skurwysyn", "sphencter", "spic", "spierdalaj", "splooge", "suka", "b00b", "testicle", "titt", "twat", "vittu", "wank", "wichser", "wop", "yed", "zabourah");

 /* Extra */
    public $usuarios;
    public $logado;
    public $socket;
    public $chatID;
    public $botID;
    public $porta;
    public $ip;
    public $k;
    
    /* Funcao de conectar com o ixat */
    public function conectar()
    {
        $this->pegarInfos();
        $this->socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
        $test         = socket_connect($this->socket, $this->ip, $this->porta);
        echo "--> Conectando em {$this->ip}:{$this->porta}...\n";
        If (!$test) {
            die("<-- Falha ao conectar!\n");
        } //!$test
    }
    
    /* Funcao de desconetar [usado para debug] */
    public function desconectar()
    {
        If (isset($this->socket) && $this->socket == True)
            socket_close($this->socket);
        $this->socket = False;
    }
    
    /* Funcao de pegar informacoes sobre o usuario bot... */
    function pegarInfos()
    {
        $curl = curl_init($this->ixatlink . "/mobile?" . time());
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, True);
        curl_setopt($curl, CURLOPT_POST, True);
        curl_setopt($curl, CURLOPT_POSTFIELDS, "username={$this->usuario}&password={$this->senha}&room={$this->sala}");
        $url          = curl_exec($curl);
        $parte1       = explode("\"id\":\"", $url);
        $id           = explode("\"", $parte1[1]);
        $this->botID  = $id[0];
        $parte2       = explode("\"k\":\"", $url);
        $k            = explode("\"", $parte2[1]);
        $this->k      = $k[0];
        $parte3       = explode("'<y r=\"", $url);
        $salaID       = explode("\"", $parte3[1]);
        $this->chatID = $salaID[0];
        $parte4       = explode("WebSocket('ws://", $url);
        $ip           = explode(":", $parte4[1]);
        $this->ip     = $ip[0];
        $parte5       = explode($this->ip . ":", $url);
        $porta        = explode("/", $parte5[1]);
        $this->porta  = $porta[0];
        If (empty($url)) {
            die("<-- Falha na conexao, ou o site pode estar offlne!!\n");
        } //empty( $url )
        If (empty($this->botID)) {
            die("<-- O chat nao existe, ou os dados estao incorretos!\n");
        } //empty( $this->botID )
    }
    
    /* Passar codigo XML para pegar B1 e B2 */
    public function passarXML($xml, $retornar = null)
    {
        $conteudo = @simplexml_load_string(trim($xml));
        Foreach ($conteudo->Attributes() as $i => $u)
            $retornar[$i] = (string) ((string) $u);
        return $retornar;
    }
    
    /* Enviar packets obvio ._. */
    public function enviar($packet)
    {
        If ($packet[strlen($packet) - 1] != chr(0))
            $packet .= chr(0);
        echo "[BOT]-> {$packet}\n";
        return socket_write($this->socket, $packet, strlen($packet));
    }
    
    /* Entrar no ixat grupo */
    public function entrar()
    {
        $this->conectar();
        $this->enviar("<y r=\"{$this->chatID}\" />");
        $x  = $this->passarXML(socket_read($this->socket, 1243));
        $b1 = floor(2 << ($x["yi"] % 30)) % $x["yc"] + $x["yi"];
        $b2 = floor(pow(2, $x["ys"] % 32));
        $j2 = "cb=\"0\" ";
        $j2 .= "auth1=\"{$b1}\" ";
        $j2 .= "auth2=\"{$b2}\" ";
        $j2 .= "y=\"{$x[ 'yi' ]}\" ";
        $j2 .= "k=\"{$this->k}\" ";
        $j2 .= "k3=\"0\" ";
        $j2 .= "d1=\"1425793043\" ";
        $j2 .= "p=\"0\" ";
        $j2 .= "c=\"{$this->chatID}\" ";
        $j2 .= "f=\"0\" ";
        $j2 .= "u=\"{$this->botID}\" ";
        $j2 .= "m6=\"131072\" ";
        $j2 .= "d0=\"0\" ";
        $j2 .= "d2=\"0\" ";
        $j2 .= "d4=\"2147483645\" ";
        $j2 .= "d5=\"2147483647\" ";
        $j2 .= "d6=\"2147483647\" ";
        $j2 .= "d7=\"2147483647\" ";
        $j2 .= "d8=\"2147483647\" ";
        $j2 .= "d9=\"2147483647\" ";
        $j2 .= "d10=\"2147483647\" ";
        $j2 .= "d11=\"2147483647\" ";
        $j2 .= "d12=\"2147483647\" ";
        $j2 .= "d13=\"2147483647\" ";
        $j2 .= "d14=\"8175\" ";
        $j2 .= "N=\"{$this->usuario}\" ";
        $j2 .= "n=\"{$this->nome}(hat#{$this->hat}#{$this->hatcolor})(glow#{$this->glow}#{$this->namecolor})##{$this->status}#{$this->statusglow}#{$this->statuscolor}\" ";
        $j2 .= "a=\"{$this->avatar}\" ";
        $j2 .= "h=\"{$this->home}\" ";
        $j2 .= "v=\"0\"";
        $j2 = "<j2 {$j2} />";
        $this->enviar($j2);
    }
    
    /* Carregar packets */
    public function carregar($verIfi = True, $teste_var = True)
    {
        $x = "";
        try {
            $x = rtrim(socket_read($this->socket, 2048));
            $x = str_replace("", "", $x);
        }
        catch (Exception $e) {
            return "DESLIGADO";
        }
        If (!$x)
            return "DESLIGADO";
        If ($x[strlen($x) - 1] != ">")
            $x .= $this->carregar(True);
        If ($verIfi)
            $this->packets($x, $teste_var);
        return $x;
    }
    
    /* Mostrar packets e etc... */
    public function packets($packet, $teste = True, $teste2 = False)
    {
        If (substr_count($packet, ">") > 1) {
            $packet = explode("/>", $packet);
            $teste2 = True;
        } //substr_count( $packet, ">" ) > 1
        Foreach ((Array) $packet as $p) {
            If ($teste2)
                $p .= "/>";
            $p = trim($p);
            If (strlen($p) < 5)
                return;
            echo "[IXAT]-> {$p}\n";
            $tipo = trim(strtolower(substr($p, 1, strpos($p . " ", " "))));
            $p    = trim(str_replace("<" . $tipo, "", str_replace("/>", "", $p)));
            $p    = str_replace("\"", "", str_replace("\" ", "&", str_replace("&", "__38", $p)));
            parse_str($p, $this->packet[$tipo]);
            Foreach ($this->packet[$tipo] as $x => $v)
                $this->packet[$tipo][$x] = str_replace("__38", "&", str_replace("pl_", "+", $v));
            If ($teste)
                $this->tipos($tipo, $this->packet[$tipo]);
        } //(Array) $packet as $p
    }
    
    
    
    /* Algums tipos de packets e comandos podem ser adicionado aqui! */
    public function tipos($tipo, $packet)
    {
        switch ($tipo) {
            /* Packets */
            case 'u':
                $u                                       = $this->fetchUser($packet['u']);
                $this->users[$packet['u']]['cb']         = @$packet['cb'];
                $this->users[$packet['u']]['s']          = @$packet['s'];
                $this->users[$packet['u']]['f']          = (isset($packet['f'])) ? (int) $packet['f'] : 0;
                $this->users[$packet['u']]['id']         = $packet['u'];
                $this->users[$packet['u']]['days']         = $packet['days'];
                $this->users[$packet['u']]['xats']         = $packet['xats'];
                $this->users[$packet['u']]['d0']         = (isset($packet['d0'])) ? (int) $packet['d0'] : 0;
                $this->users[$packet['u']]['d2']         = (isset($packet['d2'])) ? @$packet['d2'] : 0;
                $this->users[$packet['u']]['q']          = (isset($packet['q'])) ? (int) $packet['q'] : 0;
                $this->users[$packet['u']]['registered'] = ((key_exists('N', $packet)) ? $packet['N'] : 'Unregistered');
                //$this->users[$packet['u']]['name'] = (substr(@$packet['n'],0,1)=="$") ? substr(@$packet['n'],0,1) : $packet['n'];
                $this->users[$packet['u']]['name']       = @$packet['n'];
                $this->users[$packet['u']]['avatar']     = (isset($packet['a'])) ? @$packet['a'] : 'No Avatar';
                $this->users[$packet['u']]['home']       = (isset($packet['h'])) ? @$packet['h'] : 'No Homepage';
                $this->users[$packet['u']]['v']          = (@$packet['v']) ? @$packet['v'] : 0;
                $this->users[$packet['u']]['bride']      = (isset($packet['d2'])) ? @$packet['d2'] : 0;
                $this->users[$packet['u']]['rel']        = (@$packet['d0'] & 1) ? 1 : 2; //Relationship Type: 1=BFF 2=Married #note that if they not in a relationship it will show there Married this can be fixed by detecting if they have a bride [D2]
                $this->users[$packet['u']]['sub']        = (isset($packet['p0'])) ? 1 : 0;
                if ($this->autoWelcome != '' && !isset($packet['s']))
                    $this->sendPM($packet['u'], $this->autoWelcome);
                
                if ($packet['rank'] == 5) {
                    if ($this->automember) {
                        $this->member($packet['u']);
                    }
                }
                if ($packet['rank'] == 3) {
                    if ($this->autoguest) {
                        $this->guest($packet['u']);
                    }
                }
                break;
            
            case "z":
                $this->enviarMSG("Sem Clique (d#flame)", "PC", $packet["u"]);
                break;
            case 'i':
                $ci             = explode(';=', $packet['b']);
                $this->chatInfo = array(
                    'background' => $ci[0],
                    'tabbedChat' => $ci[1],
                    'tabbedChatID' => $ci[2],
                    'language' => $ci[3],
                    'radio' => str_replace('http://', '', $ci[4]),
                    'buttons' => $ci[5]
                );
                print_r($this->chatInfo);
                break;
            case "m": // Mensagem
            case "p":
                If (isset($packet["i"]) && $packet["i"] > 0)
                    break;
                
                $msg = $mensagem = explode(" ", $packet["t"]);
                unset($msg[0]);
                $msg = implode(" ", $msg);
                If (isset($mensagem[0]) && $mensagem[0][0] != "!")
                    break;
                
                $user    = $this->usuarios[$packet["u"]];
                $usuario = ($user["N"]) ? $user["N"] : $user["u"];
                
                switch (substr($mensagem[0], 1)) {
                    /* Comandos para todos */
                    case "say":
                        // !say [msg]
                        $user    = $this->users[$packet["u"]];
                        $usuario = ($user["registered"]) ? $user["registered"] : $user["u"];
                        $this->enviarMSG('[' . $usuario . '] ' . $msg);
                        break;
    
                    case "cmd":
                        // !info
                        $this->enviarMSG("!online , !say , !price , !love , !choose , !perg , !info , !att", "PM", $packet["u"]);
                        break;
                    
                    case 'online':
                        $this->enviarMSG($users . '' . 'Existem ' . count($this->users) . ' Usuarios Online.');
                        break;
                    
                    case "choose":
                        // !choose [coisa] [coisa2]
                        $mensagem = explode(' ou ', strtolower($msg));
                        if (!isset($mensagem[0]) || empty($mensagem[1]) || count(array_keys($mensagem)) == 1)
                            return $this->enviarMSG('E preciso duas escolha (D)', "PM", $packet['u']);
                        $mensagem = array_values($mensagem);
                        $rand     = $mensagem[array_rand($mensagem)];
                        $this->enviarMSG('Eu prefiro ' . $rand, "PM", $packet['u']);
                        break;
                    
                    case "perg":
                    case "8ball":
                        // !perg/!8ball [pergunta]
                        $respostas = array(
                            'Talvez sim',
                            'Sim.',
                            'Nao.',
                            'Minhas fontes informou que nao.',
                            'Ah, sim e sim',
                            'Na verdade nao sei',
                            'Outlook nao presta \'-\'',
                            'Eu acho que nao',
                            'Muito bom',
                            'Definiu-se que sim.',
                            '**** Minha Piroca',
                            'Gay',
                            'Pesquisa no Google otário',
                            'Não sei',
                            'Vai Pro Facebook Otário',
                            'Vai bate uma siririca (Flip)',
                            'Sai do Redtube punheitero (d)'
                        );
                        $resposta  = $respostas[array_rand($respostas)];
                        $mensagens = array();
                        foreach ($mensagens as $k => $valor) {
                            $valor2 = strtoupper($valor);
                            array_push($mensagens, $valor2);
                        } //$mensagens as $k => $valor
                        $this->enviarMSG('' . $resposta);
                        break;
                    
                    case 'love':
                        // !lovetest [alguma coisa] [alguma coisa2]
                        //$gerar = rand(0, 100);
                       //$this->enviarMSG($mensagem[1] . ' + ' . $mensagem[2] . ' = ' . $gerar . '%');
   $this->kick('Sem Abusa de Mim (D))', $packet['u']);
                        break;
                    
                    /* Comandos para admin */
                    case "restart":
                        // !restart
                        If (!in_Array($packet["u"], $this->admins)) {
                            return $this->enviarMSG($this->semacesso, "PM", $packet["u"]);
                        } //!in_Array( $packet[ "u" ], $this->admins )
                        $this->enviarMSG("[Servidor]: Estou sendo reiniciado (backoff)");
                        $this->reiniciar();
                        $this->entrar();
                        break;
                    
                    case 'dx':
                        $days = intval($message[1]);
                        if ($days < 1)
                            return $this->sendPM($packet['u'], 'days must be 1 or more');
                        
                        $tradeValue = 13;
                        $xats       = floor($days * $tradeValue);
                        $this->enviarMSG($days . ' days equals ' . $xats . ' xats');
                        break;
                    
                    case 'xclear':
                        If (!in_Array($packet["u"], $this->admins)) {
                            return $this->enviarMSG($this->semacesso, "PM", $packet["u"]);
                        } //!in_Array( $packet[ "u" ], $this->admins )
                        return $this->enviarMSG('Desculpe, mas você não tem permissão para isso!');;
                        $this->clear = $mensagem[1];
                    case 'msg':
                    case 'chat':
                    case 'messages':
                    case 'message':
                        $this->clearMsg(true, 25);
                        $this->socket->connect();
                        $this->network->join();
                        break;
                        
                } //substr( $mensagem[ 0 ], 1 )
        } //$tipo
    }
    
    /* Fim dos Commands Bot */
    
    /* Reiniciar o servidor */
    public function reiniciar()
    {
        $this->conectar();
        $this->entrar();
    }
    
    public function fetchUser($id)
    {
        $id = $this->parseU($id);
        if (isset($this->users[$id]))
            return $this->users[$id];
        else
            return false;
    }
    function kick($message, $id, $log = true)
    {
        if ($log) {
            if (!empty($this->users[$id]['kicks']))
                $this->users[$id]['kicks']++;
            else
                $this->users[$id]['kicks'] = 1;
        }
        if ($this->users[$id]['kicks'] > $this->maxKicks) {
            $this->ban($message, $id, 3600);
            $this->users[$id]['kicks'] = 0;
            return;
        }
        $this->enviar('<c p="' . $message . " " . $this->users[$id]['kicks'] . '/' . $this->maxKicks . '" u="' . $id . '" t="/k" />');
    }
    function ban($message, $id, $time)
    {
        $this->enviar('<c p="' . ereg_replace('[^A-Za-z0-9.! ]', '', $message) . '" u="' . $id . '" t="/g' . $time . '" />');
    }
    public function sendPM($id = 0, $packet = '')
    {
        $id = $this->parseU($id);
        $this->enviar('<p u="' . $id . '" t="' . $packet . '" d="' . $id . '" />');
    }
    
    public function parseU($id)
    {
        if (strpos($id, "_") > -1)
            $e = explode("_", $id);
        $u = (strpos($id, "_") > -1) ? $e[0] : $id;
        return $u;
    }
    
    function member($id, $time = null)
    {
        if (!$time)
            $time = 0;
        $id = $this->parseU($id);
        $this->sendC($id, '/e', $time);
    }
    function guest($id, $time = null)
    {
        if (!$time)
            $time = 0;
        $id = $this->parseU($id);
        $this->sendC($id, '/r', $time);
    }
    
    public function sendC($id = 0, $com = '') //Shit always comes in handy after awhile.
    {
        $this->enviar('<c u="' . $id . '" t="' . $com . '" />');
    }
    public function censor($message)
    {
        $badwords = $this->censor;
        $message  = @preg_replace('#\((.+)\)#U', '', strtolower(' ' . $message . ' '));
        foreach ($badwords as $bad) {
            $bad = trim($bad);
            if (strpos($message . ' ', $bad . ' ') !== false) {
                if (strlen($bad) >= 2) {
                    return true;
                }
            }
            
        }
        
    }
    
    
    /* Enviar MSG, definido com tipo e ID */
    function enviarMSG($mensagem, $tipo = "MSG", $id = 0)
    {
        If (!$mensagem) {
            return False;
        } //!$mensagem
        switch ($tipo) {
            case "MSG": // Sample
                $this->enviar("<m t=\"{$mensagem}\" u=\"{$this->botID}\" />");
                break;
            
            case "PM": // PM
                $this->enviar("<p u=\"{$id}\" t=\"{$mensagem}\" d=\"{$id}\" />");
                break;
            
            case "PC": // Privado
                $this->enviar("<z d=\"{$id}\" u=\"{$this->botID}\" t=\"{$mensagem}\" />");
                break;
        } //$tipo
    }
    
}

$bot = new zBot(); // Estanciar a class

while (1) {
    try {
        If ($bot->carregar() == "DESLIGADO") {
            $bot->desconectar();
            $bot->entrar();
        } //$bot->carregar() == "DESLIGADO"
    }
    catch (Exception $e) {
        die($e);
    }
} //1

?>

Creditos :
SkyFlare : Criou o bot
Milk: Atualizou para o x4t
iZerang Mudou algumas function
oq q eu fasso com esse codigo?
Under
Under
Membro
Membro
Mensagens : 26
Respeito : -1
Data de inscrição : 08/08/2014
Idade : 27

[HOT] Bot Para o pack do x4t Empty Re: [HOT] Bot Para o pack do x4t

Qua Mar 04, 2015 6:13 pm
Shocked
Conteúdo patrocinado

[HOT] Bot Para o pack do x4t Empty Re: [HOT] Bot Para o pack do x4t

Ir para o topo
Permissões neste sub-fórum
Não podes responder a tópicos