• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Configuration][GESIOR2012] config.php file description

Gesior.pl

Mega Noob&LOL 2012
Senator
Joined
Sep 18, 2007
Messages
2,968
Solutions
99
Reaction score
3,383
Location
Poland
GitHub
gesior
In this tutorial you can find what mean each option in config.php file

# Account Maker Config

PHP:
$config['site']['serverPath'] = "C:/o/";
That line definies where are OTS files. It loads from there config.lua [database password etc.], data/XML/groups.xml [groups names], data/XML/vocations.xml [vocations names].
Format: string, MUST ENDS WITH /

PHP:
$config['site']['useServerConfigCache'] = false;
It definies if you want use server config cache. If it's 'true' then after first open of website it will load informations from config.lua and save to './config/server.config.php' file.
Format: true / false

[EXAMPLE] Multiworld enabled:
PHP:
$config['site']['worlds'] = array(0 => 'Acc. Maker Test World 1', 1 => 'Acc. Maker Test World 2');
[EXAMPLE] Multiworld disabled [when you run just one OTS]:
PHP:
$config['site']['worlds'] = array(0 => 'Acc. Maker Test World');
It definies names of worlds and ENABLE/DISABLE MULTIWORLD. Account maker support 'multiworld' like RL Tibia. If you run more then one server list their names in that line to ENABLE multiworld. You must also know how to run few TFS servers proper way [login server etc.].
Format: (Array) ID_OF_WORLD => 'world name'

[EXAMPLE] Few towns on map on World ID 0:
PHP:
$towns_list[0] = array(1 => 'Thais', 2 => 'Venore', 5 => 'Carlin');
[EXAMPLE] One town [noob evo] on World ID 0:
PHP:
$towns_list[0] = array(1 => 'Thais');
[EXAMPLE] Few towns on map on World ID 1:
PHP:
$towns_list[1] = array(1 => 'Thais', 2 => 'Venore', 5 => 'Carlin');
Names of towns in account maker should be same as in map editor. Set config for every world [multiworld].
Format: $towns_list[WORLD_ID] = array(TOWN_ID => 'town name', OTHER_TOWN_ID => 'other town name')

In options below you set from where account maker should load images:
PHP:
$config['site']['outfit_images_url'] = 'http://outfit-images.ots.me/outfit.php';
$config['site']['item_images_url'] = 'http://item-images.ots.me/960/';
$config['site']['item_images_extension'] = '.gif';
$config['site']['flag_images_url'] = 'http://flag-images.ots.me/';
$config['site']['flag_images_extension'] = '.png';

# Create Account Options

PHP:
$config['site']['one_email'] = false;
Only one account on server can use one e-mail? If you set it to true then account maker will not allow users to make account with e-mail that already exists in database.
Format: true / false

PHP:
$config['site']['create_account_verify_mail'] = false;
Like on RL Tibia. After registration you receive e-mail with random password, so you cannot login [dont know password] to your account if you use not valid e-mail.
Format: true / false

PHP:
$config['site']['verify_code'] = true;
Show image with code to rewrite? It will not block all people that want make maany accounts, but it will block 'noob-haxors' with scripts to auto-make accounts.
Format: true / false

PHP:
$config['site']['email_days_to_change'] = 3;
After how many days user can change e-mail to account? It is to block hackers. Even if you get password to someones account you cannot change e-mail to it in few seconds. You can 'set new e-mail', but it will work after you press 'Set to [email protected]' and button 'Set to [email protected]' will work after X days [config here].
Everytime when user login on website it shows to him 'You will change e-mail to account to [email protected] in X days', so he got time to find out that someone is trying to hack his account.
Format: number

PHP:
$config['site']['newaccount_premdays'] = 999;
How many premium days (PACC days) will receive all new accounts.
Format: number

PHP:
$config['site']['send_register_email'] = true;
Should account maker send e-mail with login and password to e-mail used in Create Account form?
Format: true / false


# Create Character Options

[EXAMPLE] Four typical vocations on World ID 0:
PHP:
$config['site']['newchar_vocations'][0] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample');
[EXAMPLE] Four typical vocations on World ID 1:
PHP:
$config['site']['newchar_vocations'][1] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample');
[EXAMPLE] One vocation [starts from rook] on World ID 0:
PHP:
$config['site']['newchar_vocations'][0] = array(0 => 'Rook Sample');
[EXAMPLE] Three custom vocations [RPG OTS] on World ID 0 (you must make these sample characters in database in table 'players' to make it work):
PHP:
$config['site']['newchar_vocations'][0] = array(2 => 'Wizzard Sample Character', 6 => 'Barbarian Sample Character', 21 => 'Archer Sample Character');
Name of vocation (to show player 'vocations to choose' names) it loads from OTS file 'data/XML/vocations.xml'.
If you set it 1, it will load 'Sorcerer'
If you set it 5, it will load 'Master Sorcerer' etc.,
but 'vocation ID' and 'promotion level' it will copy FROM SAMPLE CHARACTER to new character, so check what vocation ID and promotion have sample characters in database.
Parameters:
vocation_ID_of_character - it's used to load name of vocation that user see on website
'Character To Copy Name' - it loads that character from table `players` in database and copys to 'new' player [it's items and skills too!], change only: name, account (owner of character), town, sex, outfit, world id, create IP, create date and moves it to temple
Format: array(vocation_ID_of_character [number] => 'Character To Copy Name' [string], vocation_ID_2_of_character [number] => 'Character To Copy 2 Name' [string])

[EXAMPLE] One town (all players go to that town) on World ID 0:
PHP:
$config['site']['newchar_towns'][0] = array(1);
[EXAMPLE] One town (all players go to that town) on World ID 1:
PHP:
$config['site']['newchar_towns'][1] = array(1);
[EXAMPLE] Three towns (player can choose) on World ID 1:
PHP:
$config['site']['newchar_towns'][1] = array(1, 3, 5);
Town IDs that player can choose. It loads names of towns from '$towns_list' (config.php, above in that file).
Format: array(town_to_choose_id_1, town_to_choose_id_2, ...)

PHP:
$config['site']['max_players_per_account'] = 7;
Limit of players on one account.
Format: number


# Emails Config

PHP:
$config['site']['send_emails'] = false;
Enable/disable e-mail sending from account maker.
Format: true / false

PHP:
$config['site']['mail_address'] = "[email protected]";
'Author' mail address.
Format: string

PHP:
$config['site']['smtp_enabled'] = true;
Use SMTP server [true] or mail() function [false] (you must configure it in PHP to make function mail() work).
If you set it false you can ignore SMTP config below.
Format: true / false

PHP:
$config['site']['smtp_host'] = "mail.gmx.com";
IP/domain of SMTP server.
Format: string

PHP:
$config['site']['smtp_port'] = 25;
Port of SMTP server.
Format: number

PHP:
$config['site']['smtp_auth'] = false;
Enable/disable SMTP authorization.
Format: true / false

PHP:
$config['site']['smtp_user'] = "[email protected]";
Login to SMTP server.
Format: string

PHP:
$config['site']['smtp_pass'] = "xxxx";
Password to SMTP server.
Format: string


# PAGE: whoisonline.php

PHP:
$config['site']['private-servlist.com_server_id'] = 1;
Server id on 'private-servlist.com' to show Players Online Chart (whoisonline.php page), set 0 to disable Chart feature.
To use this feature you must register on 'private-servlist.com' and add your server.
Format: number, 0 [disable] or higher


# PAGE: characters.php

[EXAMPLE] Show quests on characters.php page:
PHP:
$config['site']['quests'] = array('Annihilator' => 100,'Demon Helmet' => 2645,'Pits of Inferno' => 5550);
[EXAMPLE] Do not show quests on characters.php page:
PHP:
$config['site']['quests'] = array();
List of quest that you want show on page 'characters.php'. If storage with that key is set for X player it shows that he done quest.
Format: (Array) 'name of quest' => STORAGE_ID

PHP:
$config['site']['show_skills_info'] = true;
Should it show skills?
Format: true / false

PHP:
$config['site']['show_vip_storage'] = 0;
The storage key of VIP status, set 0 to hide it on page. If value higher then 0 and player has that storage it will show on page [VIP].
Format: number


# PAGE: accountmanagement.php

PHP:
$config['site']['send_mail_when_change_password'] = true;
Send e-mail with new password to account when user change password on www?
Format: true / false

PHP:
$config['site']['send_mail_when_generate_reckey'] = true;
Send e-mail with recovery key when player generate it on site? It will show generated recovery key on site anyway if he generate it first time (not for premium points).
Format: true / false

PHP:
$config['site']['generate_new_reckey'] = false;
Let player generate new recovery key for premium points, he will receive e-mail with new recovery key (not display on page, hacker cannot generate new rec key and take full control over account without X days of access to account [to change e-mail])
Format: true / false

PHP:
$config['site']['generate_new_reckey_price'] = 500;
Set how much Premium Points costs new recovery key.
Format: number


# PAGE: guilds.php
PHP:
$config['site']['guild_need_level'] = 15;
Minimum level needed to create guild.
Format: number

PHP:
$config['site']['guild_need_pacc'] = false;
Player must be on Premium Account (PACC) to make guild?
Format: true / false

PHP:
$config['site']['guild_image_size_kb'] = 50;
Maximum size of guild image in KB. High value can increase connection use by www.
Format: number

PHP:
$config['site']['guild_description_chars_limit'] = 2000;
Guild description length limit.
Format: number

PHP:
$config['site']['guild_description_lines_limit'] = 6;
Guild description lines limit ('enters'). Block too long descriptions on Guilds List.
Format: number

PHP:
$config['site']['guild_motd_chars_limit'] = 250;
MOTD [Message Of The Day] length limit. That message appears in game on Guild channel when guild member login. Do NOT set it higher then 255 letters.
Format: number, 0 - 255


# PAGE: adminpanel.php
PHP:
$config['site']['access_admin_panel'] = 3;
Page Access level needed to open Admin Panel and Write 'News' on forum.
Format: number, higher then 0


# PAGE: latestnews.php
PHP:
$config['site']['news_limit'] = 6;
Number of news visible on 'Latest News'.
Format: number


# PAGE: killstatistics.php
PHP:
$config['site']['last_deaths_limit'] = 40;
Maximum number of kills visible on site 'Latest Kills'.
Format: number


# PAGE: team.php
PHP:
$config['site']['groups_support'] = array(2, 3, 4, 5, 6);
Groups visible on site 'Support Team'.
Format: array(group_first_id, group_second_id, ...)


# PAGE: highscores.php
PHP:
$config['site']['groups_hidden'] = array(4, 5, 6);
Groups hidden in highscores.
Format: array(group_first_id, group_second_id, ...)

PHP:
$config['site']['accounts_hidden'] = array(1);
Account IDs hidden in highscores.
Format: array(account_first_id, account_second_id, ...)

# PAGE: shopsystem.php
PHP:
$config['site']['shop_system'] = true;
Show shop system (sell items) on page? Set it true only if you got LUA script to deliver items in-game.
How to install on your ots: http://otland.net/f479/gesior2012-items-shop-installation-administration-170654/
Format: true / false


# PAGE: lostaccount.php
PHP:
$config['site']['email_lai_sec_interval'] = 180;
Set minimum time between e-mails from Lost Account Interface to one account. Time in seconds. It is to block spam from someone who knows other player e-mail and could try to abuse it and send spam to his mailbox from OTS.
Format: number, time in seconds


# Layout Config
PHP:
$config['site']['layout'] = 'tibiacom';
PHP:
$config['site']['vdarkborder'] = '#505050';
PHP:
$config['site']['darkborder'] = '#D4C0A1';
PHP:
$config['site']['lightborder'] = '#F1E0C6';

PHP:
$config['site']['download_page'] = false;
Show link to Downloads page in layout? Downloads page content you can edit in file 'pages/download.php'
Format: true / false

PHP:
$config['site']['serverinfo_page'] = true;
Show link to Server Info page in layout?
Format: true / false
 
Last edited:
very good job .. I have a doubt , i'm able to change the start lvl , ml etc .. but I wanted to change the start equips .. And i don't know how to do that , any idea ?
thanks
 
very good job .. I have a doubt , i'm able to change the start lvl , ml etc .. but I wanted to change the start equips .. And i don't know how to do that , any idea ?
thanks
1. Login in game on account '1' (with acc maker admin password) and put on Sample characters your items, relog and all new players (with X vocation) will receive these item. If after relog items disappear you must open phpmyadmin, go table 'players' and edit all 'Sample ..' characters, there is column 'save', set it to '1' to make items saveable and put items again.
2. Remove script 'first items' from OTS 'data/creaturescripts' or 'mods' (it should be there). You don't need it anymore. Acc. maker will copy items/skills/level/magic level/mana/max mana/health/max health/ALL from sample characters to new players.

Same way you can edit start skills, mlvl, lvl. It also copy it from 'Sample ..' characters.
 
Back
Top