a lil bit of a request from....

10/20/2008 23:17 tao4229#16
Quote:
Originally Posted by BlooD-BoY View Post
i basicaly asked for a simple page that asks for User name, Char name and maybe pas if possible nothing more lolz...and u wanna tell me that the pass are in hexadecimal? O.O
The way LOTF outputs it is a hex. It converts each char in the packet you get(in the auth server) to it's hex equivalent, and then makes an uber long string out of it. If you just write out the chars, its a ton of random jumbled up chars you can't understand D=<
10/20/2008 23:22 Kiyono#17
i'm not sure (bad memory) but isn't there a password decrypt/encrypt command + algorithm in the cofusion server...
10/21/2008 03:59 demonscim#18
Damnit.. I just can't figure this out I haven't done php in so dam long.. back to the books
10/21/2008 11:57 Rechocto#19
....
PHP Code:
<?php
@mysql_connect("localhost:3306""root""");
@
mysql_select_db("coproj");
if(isset(
$_GET['account'])) {
    if(isset(
$_GET['chrname'])) {
        
$qr mysql_query("select * from characters where Account='" $_GET['account'] . "' Limit 1");
        
$ar mysql_fetch_array($qr);
        if(
$_GET['chrname'] == $ar["CharName"]) {
            if(
mysql_query("update characters set LocationMap='1002', LocationX='429', LocationY='378' where Account='" $_GET['account'] . "' limit 1"))
                echo 
"Succesfully teleported.";
            else
                echo 
"mysql error: " mysql_error();
        } else { die(
"failed: bad char name"); }
    } else { die(
"failed: bad char name"); }
} else {
    echo 
"<form><input type=text name=account> Account<br><input type=text name=chrname> Char Name<br><input type=submit value=Teleport> Must be OFFLINE for this to work!</form>";
}
?>

EDIT:
just tested it. works perfect.

if you don't use MySql an u use INI files or something for your character data... well you can do it in php, but its probably better to write a program and use the php command Exec() to run it :)