Most visitors online was 17251 , on 24 May 2024
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!<?php
error_reporting(E_ERROR | E_PARSE);
#Config
$host = '127.0.0.1,1433';
$user = 'nyet';
$pass = 'nyot';
$db = 'RF_WORLD';
$serial = '667'; // Character Serial
/*================================================================*/
/* Do not change! */
/*================================================================*/
class DB
{
private $host, $user, $pass, $db;
public function __construct($host, $user, $pass, $db)
{
$this->host = $host;
$this->user = $user;
$this->pass = $pass;
$this->db = $db;
$this->connect = mssql_connect($this->host, $this->user, $this->pass)
or die("There was a problem connecting to the database.");
mssql_select_db($this->db, $this->connect)
or die("There was a problem selecting the database.");
return true;
}
}
$horizon = new DB($host,$user,$pass,$db);
$i = 0;
while($i < 100)
{
mssql_query("UPDATE tbl_inven SET K$i = '-1', D$i = '0', U$i = '268435455', S$i = '0', T$i = '-1' WHERE Serial = '$serial'");
$i++;
}
echo ($i == 100) ? "Success!" : "Failed!";
#End of File