I had alot of problems with this, but I ended up figuring it out.
The first thing you wanna do is edit the config.php file located at 'app/config.php'.
First thing,on the line 26, put your database password:
Code:
return new mysqli('localhost', 'root', 'PASSWORD HERE', 'rotmgprod');
Then at the very end of the file, it says:
Code:
exit;
please remove this line.
Next up is the Database, we have to add something here.
Go to your database and just use this sql code:
Code:
CREATE TABLE `rotmgprod`.`realmeye_descriptions` ( `accId` INT NOT NULL , `line1` VARCHAR(50) NOT NULL , `line2` VARCHAR(50) NOT NULL , `line3` VARCHAR(50) NOT NULL ) ENGINE = InnoDB;
After that we have to edit the file 'player.php' located in the main directory.
On line 13, after the text:
Code:
$pdo = new PDO('mysql:host=127.0.0.1;dbname=rotmgprod;', 'root');
Just add:
Code:
, 'PASSWORD HERE'
so it looks like this:
Code:
$pdo = new PDO('mysql:host=127.0.0.1;dbname=rotmgprod;', 'root', 'PASSWORD HERE');
I will add to this tutorial once I add the character stuff (since it's not added yet) Until then, good luck.
I am somewhat done with the player.php. I need to add the actual showing of the character and Equipment.
The server slot isnt really that right aswell, I will add a server function for that, making sure I write the last seen server onto a new database, we'll see how it goes.