• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Very 2 Usefull Request

Exmerus

New Member
Joined
Jan 14, 2008
Messages
306
Reaction score
3
I need an script that SEND all characters to temple (while they are offline) Also one that send ALL items of houses to characters depot:D i need it when i update map ect.. if someone can do it.. or maybe this is XML but if u can do it here please:D thx
 
PHP:
<?

//Connection settings
$connection[1] = "localhost"; //Ip
$connection[2] = "root"; //Username
$connection[3] = "password"; //Password
$connection[4] = "ot"; //Database

$x = 100;
$y = 100;
$z = 100;

mysql_connect($connection[1], $connection[2], $connection[3]) or die(mysql_error());
mysql_select_db($connection[4]) or die(mysql_error());


mysql_query("UPDATE `players` SET `posx`='$x'") or die(mysql_error());
mysql_query("UPDATE `players` SET `posy`='$y'") or die(mysql_error());
mysql_query("UPDATE `players` SET `posz`='$z'") or die(mysql_error());
?>
 
Back
Top