Configuration
First of all we have to edit the 'config.php' file. - Open this file with your favorite editor.
We need to set up the connection to the server. To do this, change the following lines:
// HOST
// Host IP (If the MYSQL server and Web server are hosted from the same box then this should be set as localhost or 127.0.0.1)
$dbhost = 'localhost';
$dbusername = 'root'; // Your MYSQL username ()
$dbpasswd = ''; // Your MYSQL Password
$database_name = 'sherodb'; // Your Database name
$maxxp = "151200"; // Set the max amount of xp on your server
$levels = "20"; // Set the amount of levels you have on your server
$allow_dl = "1"; // Allow users to download the heroes - 1 = Yes | 0 = No
$servername = "SuperHero Server"; // Set the server name
$serverip = "localhost"; // Set server IP
$max = "20"; // How many players to show per page
$template = "blue"; // What template to use (Default: Blue, Red, Green)
## NUMLEVELS - The total Number of levels to award players
## XPLEVELS - How much XP does it take to earn each level (0..NUMLEVELS)
## XPGIVEN - How much XP is given when a Level(N) player is killed (0..NUMLEVELS)
## LTXPLEVELS - Same as XPLEVELS but for Long-Term mode (sh_savexp 1)
## LTXPGIVEN - Same as XPGIVEN but for Long-Term mode (sh_savexp 1)
NUMLEVELS 10
XPLEVELS 0 100 300 600 1000 1500 2100 2800 3600 4500 5500
XPGIVEN 60 80 100 120 140 160 180 200 220 240 260
LTXPLEVELS 0 100 200 400 800 1600 3200 6400 12800 25600 51200
LTXPGIVEN 6 8 10 12 14 16 20 24 28 32 40
If You get no errors above this text, you have installed the tables correct.
And you should now delete the 'install' folder.
If you have any problems, go to www.SH-mod.tk
If you get errors, you have to check the 'config.php' file, and the information you wrote in the 'install/index.php' file again to verify that you have used the correct informations.
See the Configuration section.
-------------------------------------------------------------------------------------
Add Heroes
Now you are ready to add heroes.
Notice that the default heroes are already added, if the system is successfully.
-------------------------------------------------------------------------------------