Web-Done editing lvl tantra / Editacion de lvl en la web

Results 1 to 2 of 2
  1. #1
    Novice arhles is offline
    MemberRank
    Dec 2013 Join Date
    Moquegua, PeruLocation
    1Posts

    sad Web-Done editing lvl tantra / Editacion de lvl en la web

    english

    Someone brings the php and sql script for editing lvl? Site Web

    Spanish

    Alguien tiene los php, script y sql para la editacion de lvl en la web misma ?


  2. #2
    Enthusiast alxndr is offline
    MemberRank
    Nov 2012 Join Date
    Lima, PerúLocation
    45Posts

    Re: Web-Done editing lvl tantra / Editacion de lvl en la web

    I can help you guys, but i need to kwo what version of php are you using, sice i use v 5.5 some scripts just don't run on lower versions.

    This an example of the code that shows you the information from the TAD file:
    PHP Code:
    <?php
    function raza($raza){
    $razastr1 '';
    switch(
    $raza){
     case 
    1:
     
    $razastr1 'Naga';
     break;
     case 
    2:
     
    $razastr1 'Kinnara';
     break;
     case 
    4:
     
    $razastr1 'Asura';
     break;
     case 
    8:
     
    $razastr1 'Rakshasa';
     break;
     case 
    16:
     
    $razastr1 'Yaksa';
     break;
     case 
    32:
     
    $razastr1 'Gandarva';
     break;
     case 
    64:
     
    $razastr1 'Deva';
     break;
     case 
    128:
     
    $razastr1 'Garuda';
     break;
     default:
     
    $razastr1 'GM';
    }
    return 
    $razastr1;
    }

    function 
    dios($dios){
    $diosstr'';
    switch(
    $dios){
     case 
    1:
     
    $diosstr='Brahma'
     break;
     case 
    2:
     
    $diosstr='Vishnu'
     break;
     case 
    4:
     
    $diosstr='Shiva'
     break;
     case 
    10:
     
    $diosstr='GM';
     break;
     default:
     
    $diosstr='Vacio'
    }
    return 
    $diosstr;
    }

    $nombre_fichero "XANDER.TAD";
    $gestor fopen($nombre_fichero"rb");
    $contenido fread($gestorfilesize($nombre_fichero));
    $contrasenia substr($contenido,52,32);
    $charsep 1688;
    $char1 substr($contenido,88+$charsep*0,20);
    $char2 substr($contenido,88+$charsep*1,20);
    $char3 substr($contenido,88+$charsep*2,20);
    $raza1 base_convert(bin2hex(substr($contenido,116+$charsep*0,1)),16,10);
    $raza2 base_convert(bin2hex(substr($contenido,116+$charsep*1,1)),16,10);
    $raza3 base_convert(bin2hex(substr($contenido,116+$charsep*2,1)),16,10);

    $pd1 base_convert(bin2hex(strrev(substr($contenido,136+$charsep*0,4))),16,10);
    $pd2 base_convert(bin2hex(strrev(substr($contenido,136+$charsep*1,4))),16,10);
    $pd3 base_convert(bin2hex(strrev(substr($contenido,136+$charsep*2,4))),16,10);

    $dios1 base_convert(bin2hex(substr($contenido,144+$charsep*0,1)),16,10);
    $dios2 base_convert(bin2hex(substr($contenido,144+$charsep*1,1)),16,10);
    $dios3 base_convert(bin2hex(substr($contenido,144+$charsep*2,1)),16,10);
    $lvl1 base_convert(bin2hex(substr($contenido,145+$charsep*0,1)),16,10);
    $lvl2 base_convert(bin2hex(substr($contenido,145+$charsep*1,1)),16,10);
    $lvl3 base_convert(bin2hex(substr($contenido,145+$charsep*2,1)),16,10);
    $muscle1 base_convert(bin2hex(strrev(substr($contenido,108+$charsep*0,2))),16,10);
    $muscle2 base_convert(bin2hex(strrev(substr($contenido,108+$charsep*1,2))),16,10);
    $muscle3 base_convert(bin2hex(strrev(substr($contenido,108+$charsep*2,2))),16,10);
    $nerve1 base_convert(bin2hex(strrev(substr($contenido,110+$charsep*0,2))),16,10);
    $nerve2 base_convert(bin2hex(strrev(substr($contenido,110+$charsep*1,2))),16,10);
    $nerve3 base_convert(bin2hex(strrev(substr($contenido,110+$charsep*2,2))),16,10);
    $heart1 base_convert(bin2hex(strrev(substr($contenido,112+$charsep*0,2))),16,10);
    $heart2 base_convert(bin2hex(strrev(substr($contenido,112+$charsep*1,2))),16,10);
    $heart3 base_convert(bin2hex(strrev(substr($contenido,112+$charsep*2,2))),16,10);
    $soul1 base_convert(bin2hex(strrev(substr($contenido,114+$charsep*0,2))),16,10);
    $soul2 base_convert(bin2hex(strrev(substr($contenido,114+$charsep*1,2))),16,10);
    $soul3 base_convert(bin2hex(strrev(substr($contenido,114+$charsep*2,2))),16,10);


    echo 
    '<br>Contraseña: ' $contrasenia;
    echo 
    '<br/><br>Char 1: ' $char1;
    echo 
    '<br/><br>Char 2: ' $char2;
    echo 
    '<br/><br>Char 3: ' $char3;
    echo 
    '<br/><br>Raza 1: ' raza($raza1);
    echo 
    '<br/><br>Raza 2: ' raza($raza2);
    echo 
    '<br/><br>Raza 3: ' raza($raza3);
    echo 
    '<br/><br>PD 1: ' $pd1;
    echo 
    '<br/><br>PD 2: ' $pd2;
    echo 
    '<br/><br>PD 3: ' $pd3;
    echo 
    '<br/><br> Dios 1: ' dios($dios1);
    echo 
    '<br/><br> Dios 2: ' dios($dios2);
    echo 
    '<br/><br> Dios 3: ' dios($dios3);
    echo 
    '<br/><br> Level 1: ' $lvl1;
    echo 
    '<br/><br> Level 2: ' $lvl2;
    echo 
    '<br/><br> Level 3: ' $lvl3;
    echo 
    '<br/><br> Muscle 1: ' $muscle1;
    echo 
    '<br/><br> Nerve 1: ' $nerve1;
    echo 
    '<br/><br> Heart 1: ' $heart1;
    echo 
    '<br/><br> Soul 1: ' $soul1;
    echo 
    '<br/><br> Muscle 2: ' $muscle2;
    echo 
    '<br/><br> Nerve 2: ' $nerve2;
    echo 
    '<br/><br> Heart 2: ' $heart2;
    echo 
    '<br/><br> Soul 2: ' $soul2;
    echo 
    '<br/><br> Muscle 3: ' $muscle3;
    echo 
    '<br/><br> Nerve 3: ' $nerve3;
    echo 
    '<br/><br> Heart 3: ' $heart3;
    echo 
    '<br/><br> Soul 3: ' $soul3;
    fclose($gestor);
    ?>
    Y looks like this:



Advertisement