:s Needed Citychance Php Script

Website Scripts for your Helbreath Server.
Post Reply
Dshaked
<3 bd long time
Posts: 747
Joined: Tue Oct 11, 2005 6:40 pm

Post by Dshaked »

needed citychange php script,what dont cost nothing , and statschance.
plz help me
Old Helbreath Nemesis Player<br><img src='http://img232.imageshack.us/img232/9784/dshakedqc5.jpg' border='0' alt='user posted image' /><br><img src='http://img232.imageshack.us/img232/6475 ... barqj0.jpg' border='0' alt='user posted image' /><br><a href='index.php?showtopic=7107&hl=' target='_blank'>MainServer Hexing Tutorial</a><br><a href='index.php?showtopic=7663&hl=x-mas' target='_blank'>My Files</a>
James!
Member
Posts: 134
Joined: Sat Jan 01, 2005 12:09 am

Post by James! »

Code: Select all

<?
$dir = 'C:\\DreaMServer'; if(!$_POST){ echo ' 
  <p> Cuenta: 
    <input type=text name=acc>
    <br>
    <br>
    Contraseña: 
    <input type=password name=pass>
    <br>
    <br>
    Jugador: 
    <input type=text name=char>
    <br>
    <br>
    Ciudad a Cambiar El Char ( Ejemplo : Si Sos Aresden Elegi Elvine ) :
    <select name="city" size="1">
    <option>aresden</option>
    <option>elvine</option></br></select>
<br>
<br>
<input type=submit name=submit Value="Cambiar De Ciudad!">
<br><br>
    <a href="mailto:braian_james@hotmail.com">Script by: JameS! - Script En Estado BETA</a>
    
    <br><br><a href="http://www.dreamforums.com.ar>Dream Forums</a></p>
</form>
';
}
else{
        $acc = @$_POST['acc'];
        $pass = @$_POST['pass'];
        $char = @$_POST['char'];
        $city = $_POST['city'];
                
        if(!@$acc | !@$pass | !@$char)
        die('Por Favor Llena Todos los campos');
  $a_ord = ord($acc);
  $c_ord = ord($char);
  $path = ($dir==''?'':$dir.'\\').'Account\\AscII'.$a_ord.'\\'.$acc.'.txt';
  $char_path = ($dir==''?'':$dir.'\\').'Character\\AscII'.$c_ord.'\\'.$char.'.txt';
      if(!file_exists($path))
        die('La Cuenta <b>'.$acc.'</b> No Existe');
        elseif(!file_exists($char_path))
        die('El Personaje <b>'.$char.'</b> No Existe');
    $fl = substr($acc, 0, 1);
  $ascii = ord($fl);
  $filename = $dir . '\\Account\\ASCII' . $ascii . '\\' . $acc . '.txt';
  $lines = file($filename);
  $a=0;
  foreach($lines as $a){
    $a = trim($a);
  }
  $file = file($path);
        for($a=0; $a<count($file); $a++)
        {
                if(preg_match('/^account-password = '.$pass.'$/', trim($file[$a])))
                $pass_check = true;
                if(preg_match('/^account-character  = '.$char.'$/', trim($file[$a])))
                $char_check = true;
        }

        if(!@$pass_check)
        die('Password Incorrecto');
        elseif(!@$char_check)
        die('El Personaje No existe En Esta Cuenta');
  else{
    $fl = substr($acc, '0', '1');
    $casc = ord($char);
    $coord1 = '-1';
    $coord2 = '-1';
    $fchar = $dir . '\\Character\\ASCII' . $casc . '\\' . $char . '.txt';
    $lines = file($fchar);
    $a=0;
    foreach($lines as $b){
      if(substr_count($b, 'character-location') > 0){ $sline = $a; }
      $a++;
}
    $lines[$sline] = 'character-location = '.$city.'
';

$lines = chop(implode('', $lines));
$fo = fopen($fchar, 'w+');
fwrite($fo, $lines);
    if ($lines)
 {
    echo 'Jugador Cambiado De Ciudad Satisfactoriamente;) , By JameS!';
}
}
}
?>
:ph34r:
<img src='http://img.photobucket.com/albums/v482/ ... ingFan.jpg' border='0' alt='user posted image' /><br><a href='http://www.hbdreams.com.ar' target='_blank'><b>- Helbreath Dream Team -</a></b><br><a href='http://www.dreamforums.com.ar/top50' target='_blank'><b>- Dream Top 50 Owner Admin -</a></b><br>- <b>Contacto Por Mail</b> : <a href='mailto:james@dreamforums.com.ar'>james@dreamforums.com.ar</a>
Post Reply