....
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