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

website still shows server as offline

IMac

entrepreneur
Joined
May 31, 2009
Messages
2,482
Reaction score
16
Location
Pluto
im using a 7.4 distro and using nicaw acc for 7.xx the problem is the website still says the server is off line and i have changed. i have changed the cofig.php and everything and still says server off. do i need to execute anything in phpmyadmin?
heres my cofig.php

im not sure about this line $cfg['dirdata'] = 'C:/desktop/Avesta063/data/'
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'] = 'C:/desktop/Avesta063/data/'

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

$cfg['SQL_Server'] = 'localhost';
$cfg['SQL_User'] = 'root';
$cfg['SQL_Password'] = 'xxxxx';
$cfg['SQL_Database'] = 'xxxxx';

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

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

//name displayed in window title
$cfg['server_name'] = 'Opentibia Server';

/*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", "Counselor", "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'] = 'evolutions-house.xml';

$cfg['town_names'] = array('Unknown','Town1','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'] = 2;

//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'] = 0;

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

/*If authentication true*/
$cfg['SMTP_User'] = 'nicaw';
$cfg['SMTP_Password'] = 'password';

$cfg['SMTP_From'] = '[email protected]';

$cfg['Email_body'] = '
Thank you for registering at http://$_SERVER[SERVER_NAME]/

Here is your login information:
Account number: $accno
Password: $password

Yours sincerely,
$cfg[server_name] admin';

//----------------------------- All vocations ----------------------------------
$cfg['lvl'] = '8'; 	// 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'] = true; 


// SPAWN PLACES
$cfg['temple']['Vilnius']['x'] = 547;
$cfg['temple']['Vilnius']['y'] = 544;
$cfg['temple']['Vilnius']['z'] = 556;

$cfg['temple']['Kaunas']['x'] = 123;
$cfg['temple']['Kaunas']['y'] = 32;
$cfg['temple']['Kaunas']['z'] = 4554;

// 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] = '130';
$cfg['look'][NOVOC][FEMALE] = '138';

// 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,		3939,	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