Hello Peoples i gona show you how to configure some things that you need to do.
1* Go to ur htdocs/ipn and open ipn.php and it should look like this
Than you dont have to do anything else in htdocs
Than go to our server folder and open config.lua
And Edit your ip in this line
and than go down in config.lua
And edit this lines
And now you go to your database on the website http://localhost/phpmyadmin/
And if u neeed help with anything else write in thread and i put it up!
Rep++ me if u like what iam doing
1* Go to ur htdocs/ipn and open ipn.php and it should look like this
Code:
<?
$mysql_host = 'localhost'; //Leave at localhost
$mysql_user = 'root'; //Database username
$mysql_pass = 'password'; //Database password
$mysql_db = 'name'; //Database name
$custom = stripslashes(ucwords(strtolower(trim($_REQUEST['custom']))));
$receiver_email = $_REQUEST['receiver_email'];
$payment_status = $_REQUEST['payment_status'];
// connect db
$db = mysql_connect($mysql_host, $mysql_user, $mysql_pass);
mysql_select_db($mysql_db, $db);
if ($payment_status == "Completed" & $receiver_email == "[email protected]") {
$query = "SELECT premium_points FROM accounts WHERE accounts.name = '$custom'";
$result = mysql_query($query);
$prem = mysql_fetch_array($result);
$points = $prem['premium_points'] + 30;
// $points = mysql_query($prem)
$qry2 = "UPDATE accounts SET premium_points = '$points' WHERE accounts.name = '$custom'";
$result2 = mysql_query($qry2);
}
else
{
echo("Error.");
}
?>
Than you dont have to do anything else in htdocs
Than go to our server folder and open config.lua
And Edit your ip in this line
Code:
ip = "127.0.0.1"
and than go down in config.lua
And edit this lines
Code:
sqlType = "mysql" <<< if u want sqlite or mysql
sqlHost = "localhost" << leave at localhost
sqlPort = 3306 <<<sql port
sqlUser = "root" <<database username
sqlPass = "password" <<< database password
sqlDatabase = "Name" <<< Database Name
sqlFile = "forgottenserver.s3db"
sqlKeepAlive = 0
mysqlReadTimeout = 10
mysqlWriteTImeout = 10
passwordType = "plain" <<< leave it as plain
And now you go to your database on the website http://localhost/phpmyadmin/
And Change Position on account manager to posx 32369 posy 32241 posz 7 town id 5
And if u neeed help with anything else write in thread and i put it up!
Rep++ me if u like what iam doing
Last edited: