• 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!

[7.6] Nicaw v1.5!

Erevius

It Was A Good Day
Joined
Feb 12, 2010
Messages
157
Reaction score
7
Location
Poland/Olsztyn
I'm using avesta 7.6 server, I have installed and configurated my AAC, added tables to my database. Everything is okay but if I open my "localhost" everything is white, empty, there is just a ".:Home:." text. Did I do something wrong?

My config.php:
PHP:
<?
/*
    Copyright (C) 2006  Nicaw

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
error_reporting(E_ALL ^ E_NOTICE);
//---------------------------- Data Dir ----------------------------------------

/*Set location of data directory
IMPORTANT! Use / to separate folders, put / in the end     */
$cfg['dirdata'] = 'D:/Gry/Tibia/OTS/0.1 Erevia World/server/data/';

//---------------------------- MySQL -------------------------------------------

$cfg['SQL_Server'] = 'localhost';
$cfg['SQL_User'] = '<doesnt matter>';
$cfg['SQL_Password'] = '<doesnt matter>';
$cfg['SQL_Database'] = '<doesnt matter>';

//----------------------------- Website Configuration --------------------------

//look in skins folder to see available skins
$cfg['skin'] = 'conquest';

//name displayed in window title
$cfg['server_name'] = 'Erevia World';

/*Encrypt passwords. (true / false)
Works together with md5passwords = "yes" in server config.lua
Strongly recomended, but off by default. After changing this, existing accounts will become inaccessible!*/
$cfg['md5passwords'] = false; 

/*(true / false)
Using captcha will prevent automated sripts from flooding server with accounts. 
Note that GD library must be enabled in php.ini for this to work.
extension_loaded('gd') means "auto"*/
$cfg['use_captha'] = extension_loaded('gd'); 

/* Session security. Set medium if you get kicked out after loging in account.
0 - low		(no fancy stuff)
1 - medium	(users are loged out after being idle for specified time interval)
2 - high	(IPs are checked to prevent session hijacking)*/
$cfg['session_security'] = 2;

//seconds in which user is loged out. default is 10 minutes: 10*60
$cfg['session_timeout'] = 10*60; 

//allowed characters per account
$cfg['maxchars'] = 10; 

//Vocation names
$cfg['voc_normal'] = array('None','Sorcerer','Druid','Paladin','Knight');

//Promoted names
$cfg['voc_promoted'] = array('None','Master Sorcerer','Elder Druid','Royal Paladin','Elite Knight');

//Access level names
$cfg['positions'] = array("Player", "Tutor", "Senior Tutor", "Gamemaster", "God");

//For online status. Do not change, unless you running on diferent port.
$cfg['server_ip'] = 'localhost';
$cfg['server_port'] = 7171;

//----------------------------- Houses Configuration ---------------------------
$cfg['house_file'] = 'Erevia World Housefile.xml';

$cfg['town_names'] = array('Rookgaard','City1','Town2','Town3','Town4','Town5','Town6','Town7','Town8','Town9','Town10');

//----------------------------- Highscore Configuration ------------------------

//Skills to include in highscores
$cfg['skill_names'] = Array('fist', 'club', 'sword', 'axe', 'distance', 'shielding', 'fishing');

// this access level and above not included in ranks
$cfg['gm_access'] = 3;

//how many displayer per page
$cfg['ranks_per_page'] = 30;

//----------------------------- Email ------------------------------------------
/*A few hints about spam blocking techniques:
# Set correct from header
# Have DNS MX record and/or correct reverse DNS
# Do not fake anything, all must match or say hello to spam folder
*/

/* If you don't unsterstand things here, I suggest you leave 0
0 - do not send any emails
1 - send email greeting
2 - validate email (login details sent to email)*/
$cfg['Emailing'] = 1;

$cfg['SMTP_Host'] = 'localhost';
$cfg['SMTP_Auth'] = false; //Turn on/off mail server authentication

/*If authentication true*/
$cfg['SMTP_User'] = '<doesnt matter>';
$cfg['SMTP_Password'] = '<doesnt matter>';

$cfg['SMTP_From'] = '<doesnt matter>';

$cfg['Email_body'] = '<doesnt matter>';

//----------------------------- All vocations ----------------------------------
$cfg['lvl'] = '1'; 	// initial level (can be float like: 8.3 or 14.7)

//whether to allow users to choose vocations. Set to false if you have Rook system
$cfg['vocation_choose'] = false; 


// SPAWN PLACES
$cfg['temple']['Rookgaard']['x'] = 2000;
$cfg['temple']['Rookgaard']['y'] = 2000;
$cfg['temple']['Rookgaard']['z'] = 8;

// Leave this stuff as it is :P
if (!defined('MALE')) define('MALE', 1);
if (!defined('FEMALE')) define('FEMALE', 0);
if (!defined('NOVOC')) define('NOVOC', 0);
if (!defined('SORCERER')) define('SORCERER', 1);
if (!defined('DRUID')) define('DRUID', 2);
if (!defined('PALADIN')) define('PALADIN', 3);
if (!defined('KNIGHT')) define('KNIGHT', 4);

//-------------------------------- Sorcerer ------------------------------------
// Looks
$cfg['look'][SORCERER][MALE] = '130';
$cfg['look'][SORCERER][FEMALE] = '138';

// HP, mana, magic level
$cfg['health'][SORCERER] = '185';
$cfg['mana'][SORCERER] = '40';
$cfg['mlvl'][SORCERER] = '0';
$cfg['cap'][SORCERER] = '470';

// Skills:							fist,	club,	sword,	axe,	dist,	shld,	fish
$cfg['skill'][SORCERER] = array(	10,		15,		15,		15,		15,		15,		15);

// Eq:								helm,	amul,	bp,		armor,	rght,	left,	legs,	boot,	ring,	ammo
$cfg['equip'][SORCERER] = array(	2480,	2172,	2000,	2464,	0,		2530,	2468,	2643,	0,		0);

//--------------------------------- Druid --------------------------------------
// Looks
$cfg['look'][DRUID][MALE] = '130';
$cfg['look'][DRUID][FEMALE] = '138';

// HP, mana, magic level
$cfg['health'][DRUID] = '185';
$cfg['mana'][DRUID] = '40';
$cfg['mlvl'][DRUID] = '0';
$cfg['cap'][DRUID] = '470';

// Skills:						fist,	club,	sword,	axe,	dist,	shld,	fish
$cfg['skill'][DRUID] = array(	10,		15,		15,		15,		15,		15,		15);

// Eq:							helm,	amul,	bp,		armor,	rght,	left,	legs,	boot,	ring,	ammo
$cfg['equip'][DRUID] = array(	2480,	2172,	2000,	2464,	0,		2530,	2468,	2643,	0,		0	);

//-------------------------------- Paladin -------------------------------------
// Looks
$cfg['look'][PALADIN][MALE] = '129';
$cfg['look'][PALADIN][FEMALE] = '137';

// HP, mana, magic level
$cfg['health'][PALADIN] = '185';
$cfg['mana'][PALADIN] = '40';
$cfg['mlvl'][PALADIN] = '0';
$cfg['cap'][PALADIN] = '470';

// Skills:						fist,	club,	sword,	axe,	dist,	shld,	fish
$cfg['skill'][PALADIN] = array(	10,		15,		15,		15,		15,		15,		15);

// Eq:							helm,	amul,	bp,		armor,	rght,	left,	legs,	boot,	ring,	ammo
$cfg['equip'][PALADIN] = array(	2480,	2172,	2000,	2464,	0,		2530,	2468,	2643,	0,		0	);

//--------------------------------- Knight -------------------------------------
// Looks
$cfg['look'][KNIGHT][MALE] = '131';
$cfg['look'][KNIGHT][FEMALE] = '139';

// HP, mana, magic level
$cfg['health'][KNIGHT] = '185';
$cfg['mana'][KNIGHT] = '40';
$cfg['mlvl'][KNIGHT] = '0';
$cfg['cap'][KNIGHT] = '470';

// Skills:						fist,	club,	sword,	axe,	dist,	shld,	fish
$cfg['skill'][KNIGHT] = array(	10,		20,		20,		20,		15,		20,		15);

// Eq:							helm,	amul,	bp,		armor,	rght,	left,	legs,	boot,	ring,	ammo
$cfg['equip'][KNIGHT] = array(	2480,	2172,	2000,	2464,	0,		2530,	2468,	2643,	0,		0	);

//-------------------------------- No Vocation ---------------------------------
// Looks
$cfg['look'][NOVOC][MALE] = '136';
$cfg['look'][NOVOC][FEMALE] = '128';

// HP, mana, magic level
$cfg['health'][NOVOC] = '150';
$cfg['mana'][NOVOC] = '0';
$cfg['mlvl'][NOVOC] = '0';
$cfg['cap'][NOVOC] = '400';

// Skills:						fist,	club,	sword,	axe,	dist,	shld,	fish
$cfg['skill'][NOVOC] = array(	1,		1,		1,		1,		1,		1,		1);

// Eq:							helm,	amul,	bp,		armor,	rght,	left,	legs,	boot,	ring,	ammo
$cfg['equip'][NOVOC] = array(	0,		0,		1987,	2650,	2382,	0,		0,		0,		0,		2050);

//-------------------------- NOOB SENSATIVE -----------------------------------

//relative paths hidden here from newbs. If you are one: DO NOT EDIT
$cfg['dirworld'] = $cfg['dirdata'].'world/';
$cfg['dirmonster'] = $cfg['dirdata'].'monster/';
$cfg['dirvip'] = $cfg['dirdata'].'vip/';
$cfg['dirnpc'] = $cfg['dirdata'].'npc/';

//-------------------------- END OF CONFIGURATION -----------------------------

//checking if IP not banned
if (file_exists('banned.txt')){
$banned_ips = file ('banned.txt');
foreach ($banned_ips as $ip){
	if ($ip == $_SERVER['REMOTE_ADDR']){
		die("Sorry, your IP is banned from the website."); 
		//ha ha ha. die die die. I love this function :D you're dead bye :P
	}
}
}

//Calculating correct exp for level
$cfg['exp'] = round(50*($cfg['lvl']-1)*($cfg['lvl']*$cfg['lvl']-5*$cfg['lvl']+12)/3);
$cfg['lvl'] = floor($cfg['lvl']);

//disable magic_quotes_gpc. ty wrzasq
if( get_magic_quotes_gpc() )
{
  $_POST = array_map('stripslashes', $_POST);
  $_GET = array_map('stripslashes', $_GET);
  $_COOKIE = array_map('stripslashes', $_COOKIE);
  $_REQUEST = array_map('stripslashes', $_REQUEST);
}
?>
 
Back
Top