The config file
This file is everything you need to create and edit your dynamics.
It has all the settings in it, you only need to change these to make it work.
All of the other files will use the settings from the config file.
The settings are commented in php so it should be quite easy to get around in this file.
I'll start at the top:
Code:
// General settings (true || false)
$showcharacterdata = true; // Show character data
$showforumonlinestatus = true; // Show forum online status
These 2 settings determine the type of your dynamic signature.
Here you can enable and/or disable the game character data dynamics and the forum online status dynamics.
Setting them to
true will enable them, setting them to
false will disable them.
Next are the user settings.
These will determine which user the dynamics will come from.
Code:
// User settings
$character = "JudoB"; // Character name
$forumuserid = "55"; // Forum user id
$forumusername = "Judobreaker"; // Forum username
The character name is the users
in game character name.
The other 2 settings are
forum settings.
You can find the user ID by going to the users profile and checking the link.
For example, when I go to my own profile this will be the link:
Code:
http://forum.twilightmuonline.com/member.php?u=55
My ID is 55.
At the moment the script needs the username too because else I could not find the online status, this might change in following updates as I have the feeling it is not really needed when I code it right.
Then come the image settings:
Code:
// Image settings
$imagename = "sample_sig.jpg"; // Image name
$offlineimagename = false; // Offline image name ("Image name" || false)
These are the image names you use for the signature images you placed in the
images map.
If you are not using an image for the forum offline status set it to
false.
If you are set it to the image name (make sure to add the " at the front and end of the name).
Then the font settings:
Code:
// Font settings
$font_name = "Serious-2.ttf"; // Font name
$font_size = 6; // Font size
The font name is the name of the font file you placed in the
fonts map.
The font size defines the size of your text.
Next, the color settings:
Code:
//Color settings (1 - 255)
$color_level = array( "red" => 1, "green" => 1, "blue" => 1 ); // Level
$color_resets = array( "red" => 1, "green" => 1, "blue" => 1 ); // Resets
$color_elite = array( "red" => 1, "green" => 1, "blue" => 1 ); // Elite resets
$color_strength = array( "red" => 1, "green" => 1, "blue" => 1 ); // Strength
$color_agility = array( "red" => 1, "green" => 1, "blue" => 1 ); // Agility
$color_vitality = array( "red" => 1, "green" => 1, "blue" => 1 ); // Vitality
$color_energy = array( "red" => 1, "green" => 1, "blue" => 1 ); // Energy
$color_command = array( "red" => 1, "green" => 1, "blue" => 1 ); // Command
$color_guild = array( "red" => 1, "green" => 1, "blue" => 1 ); // Guild name
$color_game_online = array( "red" => 1, "green" => 1, "blue" => 1 ); // Game online status - online
$color_game_offline = array( "red" => 1, "green" => 1, "blue" => 1 ); // Game online status - offline
$color_forum_online = array( "red" => 1, "green" => 1, "blue" => 1 ); // Forum online status - online
$color_forum_offline = array( "red" => 1, "green" => 1, "blue" => 1 ); // Forum online status - offline
These settings define the text color for each of the stats.
Changing the numbers like this will change the color:
Code:
$color_level = array( "red" => 255, "green" => 164, "blue" => 71 ); // Level
Make sure the numbers are in the 1-255 range or else the script wil crash.
Then we come the text positions:
Code:
// Text positions
$positions_level = array( "left" => 230, "top" => 17 ); // Level
$positions_resets = array( "left" => 230, "top" => 37 ); // Resets
$positions_elite = array( "left" => 230, "top" => 57 ); // Elite resets
$positions_strength = array( "left" => 90, "top" => 17 ); // Strength
$positions_agility = array( "left" => 90, "top" => 37 ); // Agility
$positions_vitality = array( "left" => 90, "top" => 57 ); // Vitality
$positions_energy = array( "left" => 90, "top" => 77 ); // Energy
$positions_command = array( "left" => 90, "top" => 97 ); // Command
$positions_guild = array( "left" => 230, "top" => 77 ); // Guild name
$positions_game_onlinestatus = array( "left" => 355, "top" => 17 ); // Game online status
$positions_forum_onlinestatus = array( "left" => 355, "top" => 37 ); // Forum online status
Each of these positions consists of a left and a top position.
This is the amount of pixels from the left or top of the image.
For example, if I want to set the level at 36 pixels from the left and 10 pixels from the top I would get the following line:
Code:
$positions_level = array( "left" => 36, "top" => 10 ); // Level
It takes a little practice to get it right, it's mostly trial-and-error.
You'll get faster after you do it a few times though. ^^
Lastly we have the constants:
Code:
// Constants (Do not edit!)
define( "WEBSITE_CHARACTER_LINK", "http://www.twilightmuonline.com/index.php?page=search&chara=" );
define( "FORUM_USER_LINK", "http://forum.twilightmuonline.com/member.php?u=" );
Do not edit these... EVER!!!
These links are always the same, no matter what.
If these links appear to be incorrect then the website has changed and the script will not work anyway.
In that case it simply means it will be fixed in the next update.