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

Afs-cms

Status
Not open for further replies.
The Next Problem
1.
Manage Guild Menu:
Sorry, your rank in the guild is not high enough.
I make Character but i cant Edit/delete guild becous i dont have "Rank"


2. I Make Guild and when i go character search and type my name and enter than come:

Name: Test Paladin
Sex: Male
Level: 226
Vocation: Paladin
Residence: Carlin
Guild: None
Lastlogin: Jan 24 2008, 12:04:22
Account Type: Premium Account
Guild: None
But i have one Guild ;p
May u can help me plx :D:D:D:D:D


Edit


3. Problem Online Player List :)

Players Online:
Unknown column 'online' in 'where clause'
 
Last edited:
Hiho all, hi avarian, and before anything, let me just say...Great Work!



I have a problem.

When I open localhost for the first time. A error appears:

Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\config.php on line 10

Im using latest version of the avarian acc (1.8) and i haven't did any change.

My config.php:

<?php
//------------------------------------------------------------------
//-------------------Avarians Forgotten AAC v1.8--------------------
//------------------------------------------------------------------

//--------------------Database settings--------------------------
//--------------------------Connect DB---------------------------
function connect_db(){
mysql_connect('localhost', 'root', '');
mysql_select_db(DATABASE HERE) or die( "Unable to select database");
}
//--------------------------End Connect DB-----------------------
//--------------------End Database settings----------------------

//---------------Layout Settings----------------


$layout = 'grayshades'; // Layout (the name of the folder is the name of the layout)

$show_news = '1'; // Display latest news on home page(index.php)? 1 = YES 0 = NO

$show_potw = '1'; // Display picture of the week? 1 = YES 0 = NO
$potw_des = 'A player gaining level 200.'; // Place a description of your pic of the week here
$potw_link = 'http://www.photobucket.com/albums/k320/silentxxnights/pics%20of%20the%20week/200.jpg'; // Place the link to your pic of the week here

$serv_story = 'Welcome to (SERVER NAME) here you will find challenging quests and strong monsters!'; // A short little intro story to make ppl want to play.
$show_story = '1'; // Do you want to display an intro story? 1 = YES 0 = NO

$forumlink = "http://localhost/afaac/forum.php"; //Forum link (AF-AAC has a built-in forum)
$forum_show = '1'; // Display forum link on website? 1 = Yes 0 = No
$gb_show = "1"; //Display guestbook link on website? 1 = Yes 0 = No
$RE_show = "1"; //Display rule enforcers link on website? 1 = YES 0 = NO
$LT_show = "1"; //Display login tutorial link on website? 1 = YES 0 = NO


//---------------Affiliates-----------------

$aff_link1_name = "Avarians Forgotten AAC"; // Affiliate Name
$aff_link1 = 'http://******.net/showthread.php?t=74706'; // Affiliate Link
$display_aff1 = '1'; // Display this link? 1 = YES 0 = NO

$aff_link2_name = "******.net"; // Affiliate Name
$aff_link2 = 'http://******.net/'; // Affiliate Link
$display_aff2 = '1'; // Display this link? 1 = YES 0 = NO

$aff_link3_name = "Otland.net"; // Affiliate Name
$aff_link3 = 'http://otland.net/'; // Affiliate Link
$display_aff3 = '1'; // Display this link? 1 = YES 0 = NO

$aff_link4_name = "Otservlist.org"; // Affiliate Name
$aff_link4 = 'http://otservlist.org'; // Affiliate Link
$display_aff4 = '1'; // Display this link? 1 = YES 0 = NO

//---------------End Affiliates-------------

//------------End Layout Settings--------------

//------------------------AAC Settings --------------------------

$servpath = 'C:\Documents and Settings\Avarian\Desktop\AF-AAC_Test_Server'; //Serv path (DONT end this with \data or /data (it's already scripted, so it's not needed)

$chartype = 'main'; //Rookgaard or main? Rookgaard = rook, Mainland = main
$charlength = '14'; //Max amount of letters in character names.
$maxchars = '5'; //Max amount of characters an account can have.

$dont_show = array('bisbal', 'deathslicer', 'Noobing', 'monsters', 'egipctothrower', 'magicthrower', 'plaguethrower', 'exp', 'Demon2', 'flamethrower', 'bazir', 'butterfly', 'butterflyblue', 'butterflypurple', 'butterflyred', 'butterflyyellow', 'deathslicer', 'ferumbras', 'ashmunrah', 'dipthrah', 'gamemaster', 'Frost Demon', 'human', 'illusion', 'infernatil', 'mimic', 'mahrdis', 'morguthis', 'murius', 'omruc', 'rahemos', 'shredderthrower', 'thalas', 'vashresamun', 'yeti', 'slime2'); //monsters not shown in monster list

$home_url = "http://localhost/"; //Home url

$server_port ="7171"; //Port to your server
$worldip = "127.0.0.1"; //IP to your server
$worldname = "AF-AAC Test Server"; // World Name
$logo = "Server Logo Here"; // Server logo goes here (some layouts display the logo by the Server name in the header)

$housefile = 'forgotten-house.xml'; // House file

$death_limit = '25'; // Death limit in latest deaths

$hs_group_id = '2'; // Exclude players with this group_id and higher in Highscores.

$rand_acc_gen = '0'; // 1 = YES 0 = NO (If yes then account numbers will be randomly generated, if no then players choose their account number)

$search_result_limit = '50'; // Max number of results shown when you search two or more letters.

$view_options = '5'; //Only accounts with this type and higher will be able to view the following links in *Account Home*, "Post News", "Visit SQL Manager" and "View Violation Reports"
$view_reports = '5'; //Only players with this account type and higher can view and delete violation reports..

$guild_premdays = '1'; //Premdays required to create a guild (0 = Free accounts allowed) (Disabled, not finished yet.)
$guildlvl = '11'; //Level required for players to start guilds (Disabled, not finished yet.)
//$maxsize = (512*1000); //Maxsize for guild images. (Disabled, not finished yet.)


//-------------- Groups ----------------
$group_id1 = 'Player'; //Group 1 name.
$group_id2 = 'GM'; //Group 2 name.
$group_id3 = 'God'; //Group 3 name.
$group_id4 = ''; //Group 4 name. (Leave blank if you dont have a group 4)
$group_id5 = ''; //Group 5 name. (Leave blank if you dont have a group 5)
$group_id6 = ''; //Group 6 name. (Leave blank if you dont have a group 6)
$group_id7 = ''; //Group 7 name. (Leave blank if you dont have a group 7)
$group_id8 = ''; //Group 8 name. (Leave blank if you dont have a group 8)
$group_id9 = ''; //Group 9 name. (Leave blank if you dont have a group 9)
$show_group2 = '1'; //Display players with group_id 2 on rule enforcers page? 1 = YES 0 = NO
$show_group3 = '1'; //Display players with group_id 3 on rule enforcers page? 1 = YES 0 = NO
$show_group4 = '0'; //Display players with group_id 4 on rule enforcers page? 1 = YES 0 = NO
$show_group5 = '0'; //Display players with group_id 5 on rule enforcers page? 1 = YES 0 = NO
$show_group6 = '0'; //Display players with group_id 6 on rule enforcers page? 1 = YES 0 = NO
$show_group7 = '0'; //Display players with group_id 7 on rule enforcers page? 1 = YES 0 = NO
$show_group8 = '0'; //Display players with group_id 8 on rule enforcers page? 1 = YES 0 = NO
$show_group9 = '0'; //Display players with group_id 9 on rule enforcers page? 1 = YES 0 = NO
//----------- End Groups ---------------

$adminmail = '[email protected]';
$adminname = 'Avarian';

$sinds = "January 16th 2008"; // type here the date when the counter started counting
$bestand = "teller.log"; // filename from the log file (Visitor counter)

//-----------------------Admin Panel------------------------
$admin['pass'] = 'ADMIN PASSWORD HERE'; // Login password
//-----------------------End Admin Panel------------------

//------------------------End AAC Settings ----------------------

//-----------------------Character start settings----------------
//All vocations
$startlvl = '10';
$startexp = '9300';
$maxdepotitems = '1000';
$prem_days = '0';

//No voc settings
$novoc['cap'] = '470';
$novoc['hp'] = '185';
$novoc['mag'] = '0';
$novoc['mana'] = '35';
$novoc['soul'] = '100';
//Starting EQ
$novoc_helm['helmet'] = '2461'; //This is the slot for a helmet.
$novoc_neck['necklace'] = '2170'; //This is the slot for a necklace.
$novoc_bag['bag'] = '1988'; //This is the slot for a bag or backpack.
$novoc_armor['armor'] = '2467'; //This is the slot for armor.
$novoc_lhand['lhand'] = '2512'; //This slot can hold a shield or weapon.
$novoc_rhand['rhand'] = '2398'; //This slot can hold a shield or weapon.
$novoc_legs['legs'] = '2649'; //This is the slot for legs.
$novoc_boots['boots'] = '2643'; //This is the slot for boots.
$novoc_ammo['ammo'] = '2120'; //This is the slot where you place arrows or other items.
$novoc_amount['novoc_amount'] = '1'; //How many of the item in the ammo slot should players get?
//Look Settings
//Default look type for males is 128 and for females 138
$novoc['lookhead'] = '59';
$novoc['lookbody'] = '121';
$novoc['looklegs'] = '116';
$novoc['lookfeet'] = '114';
$novoc['lookaddons'] = '0';

//Sorcerer settings
$sorc['cap'] = '470';
$sorc['hp'] = '185';
$sorc['mag'] = '0';
$sorc['mana'] = '35';
$sorc['soul'] = '100';
//Starting EQ
$sorc_helm['helmet'] = '2461'; //This is the slot for a helmet.
$sorc_neck['necklace'] = '2170'; //This is the slot for a necklace.
$sorc_bag['bag'] = '1988'; //This is the slot for a bag or backpack.
$sorc_armor['armor'] = '2467'; //This is the slot for armor.
$sorc_lhand['lhand'] = '2512'; //This slot can hold a shield or weapon.
$sorc_rhand['rhand'] = '2398'; //This slot can hold a shield or weapon.
$sorc_legs['legs'] = '2649'; //This is the slot for legs.
$sorc_boots['boots'] = '2643'; //This is the slot for boots.
$sorc_ammo['ammo'] = '2120'; //This is the slot where you place arrows or other items.
$sorc_amount['sorc_amount'] = '1'; //How many of the item in the ammo slot should players get?
//Look Settings
//Default look type for males is 128 and for females 138
$sorc['lookhead'] = '59';
$sorc['lookbody'] = '121';
$sorc['looklegs'] = '116';
$sorc['lookfeet'] = '114';
$sorc['lookaddons'] = '0';


//Druid settings
$druid['cap'] = '470';
$druid['hp'] = '185';
$druid['mag'] = '0';
$druid['mana'] = '35';
$druid['soul'] = '100';
//Starting EQ
$druid_helm['helmet'] = '2461'; //This is the slot for a helmet.
$druid_neck['necklace'] = '2170'; //This is the slot for a necklace.
$druid_bag['bag'] = '1988'; //This is the slot for a bag or backpack.
$druid_armor['armor'] = '2467'; //This is the slot for armor.
$druid_lhand['lhand'] = '2512'; //This slot can hold a shield or weapon.
$druid_rhand['rhand'] = '2398'; //This slot can hold a shield or weapon.
$druid_legs['legs'] = '2649'; //This is the slot for legs.
$druid_boots['boots'] = '2643'; //This is the slot for boots.
$druid_ammo['ammo'] = '2120'; //This is the slot where you place arrows or other items.
$druid_amount['druid_amount'] = '1'; //How many of the item in the ammo slot should players get?
//Look Settings
//Default look type for males is 128 and for females 138
$druid['lookhead'] = '59';
$druid['lookbody'] = '121';
$druid['looklegs'] = '116';
$druid['lookfeet'] = '114';
$druid['lookaddons'] = '0';

//Paladin settings
$paladin['cap'] = '470';
$paladin['hp'] = '185';
$paladin['mag'] = '0';
$paladin['mana'] = '35';
$paladin['soul'] = '100';
//Starting EQ
$paladin_helm['helmet'] = '2461'; //This is the slot for a helmet.
$paladin_neck['necklace'] = '2170'; //This is the slot for a necklace.
$paladin_bag['bag'] = '1988'; //This is the slot for a bag or backpack.
$paladin_armor['armor'] = '2467'; //This is the slot for armor.
$paladin_lhand['lhand'] = '2512'; //This slot can hold a shield or weapon.
$paladin_rhand['rhand'] = '2398'; //This slot can hold a shield or weapon.
$paladin_legs['legs'] = '2649'; //This is the slot for legs.
$paladin_boots['boots'] = '2643'; //This is the slot for boots.
$paladin_ammo['ammo'] = '2120'; //This is the slot where you place arrows or other items.
$paladin_amount['paladin_amount'] = '1'; //How many of the item in the ammo slot should the player get?
//Look Settings
//Default look type for males is 128 and for females 138
$paladin['lookhead'] = '59';
$paladin['lookbody'] = '121';
$paladin['looklegs'] = '116';
$paladin['lookfeet'] = '114';
$paladin['lookaddons'] = '0';

//Knight settings
$knight['cap'] = '470';
$knight['hp'] = '185';
$knight['mag'] = '0';
$knight['mana'] = '35';
$knight['soul'] = '100';
//Starting EQ
$knight_helm['helmet'] = '2461'; //This is the slot for a helmet.
$knight_neck['necklace'] = '2170'; //This is the slot for a necklace.
$knight_bag['bag'] = '1988'; //This is the slot for a bag or backpack.
$knight_armor['armor'] = '2467'; //This is the slot for armor.
$knight_lhand['lhand'] = '2512'; //This slot can hold a shield or weapon.
$knight_rhand['rhand'] = '2398'; //This slot can hold a shield or weapon.
$knight_legs['legs'] = '2649'; //This is the slot for legs.
$knight_boots['boots'] = '2643'; //This is the slot for boots.
$knight_ammo['ammo'] = '2120'; //This is the slot where you place arrows or other items.
$knight_amount['knight_amount'] = '1'; //How many of the item in the ammo slot should the player get?
//Look Settings
//Default look type for males is 128 and for females 138
$knight['lookhead'] = '59';
$knight['lookbody'] = '121';
$knight['looklegs'] = '116';
$knight['lookfeet'] = '114';
$knight['lookaddons'] = '0';

//-----------------------End Character start settings----------------

//----------------------------Towns-----------------------------
//-----All towns that you set to enabled can be chosen when creating a char-----
//-----If rook is enabled then you will only be able to choose rook-----

$rook_town_id = '10'; //This is the town_id of your rook according to your map editor.
$rook_town_name = 'Rook';//This is the name of your rook cause not everyone wants to call it rook.
$rook_spawn_x = '120'; //These are the x cordinates of your rook.
$rook_spawn_y = '120'; //These are the y cordinates of your rook.
$rook_spawn_z = '7'; //These are the z cordinates of your rook.

$town1_id = '1';
$town1name ='First town'; //Your first town name.
$town1_spawn_x = '121'; //These are the x cordinates of your first town.
$town1_spawn_y = '121'; //These are the y cordinates of your first town.
$town1_spawn_z = '7'; //These are the z cordinates of your first town.
$town1_enabled = '1';// 1 = YES 0 = NO if you choose yes then it can be chosen when creating a char.

$town2_id = '2';
$town2name ='Second Town'; //Your second town name.
$town2_spawn_x = '122'; //These are the x cordinates of your second town.
$town2_spawn_y = '122'; //These are the y cordinates of your second town.
$town2_spawn_z = '7'; //These are the z cordinates of your second town.
$town2_enabled = '1';// 1 = YES 0 = NO if you choose yes then it can be chosen when creating a char.

$town3_id = '3';
$town3name ='Third town'; //Your third town name.
$town3_spawn_x = '123'; //These are the x cordinates of your third town.
$town3_spawn_y = '123'; //These are the y cordinates of your third town.
$town3_spawn_z = '7'; //These are the z cordinates of your third town.
$town3_enabled = '1';// 1 = YES 0 = NO if you choose yes then it can be chosen when creating a char.

$town4_id = '4';
$town4name ='Fourth town'; //Your fourth town name.
$town4_spawn_x = '124'; //These are the x cordinates of your fourth town.
$town4_spawn_y = '124'; //These are the y cordinates of your fourth town.
$town4_spawn_z = '7'; //These are the z cordinates of your fourth town.
$town4_enabled = '0';// 1 = YES 0 = NO if you choose yes then it can be chosen when creating a char.

$town5_id = '5';
$town5name ='fifth town'; //Your fifth town name.
$town5_spawn_x = '125'; //These are the x cordinates of your fifth town.
$town5_spawn_y = '125'; //These are the y cordinates of your fifth town.
$town5_spawn_z = '7'; //These are the z cordinates of your fifth town.
$town5_enabled = '0';// 1 = YES 0 = NO if you choose yes then it can be chosen when creating a char.

$town6_id = '6';
$town6name ='sixth town'; //Your sixth town name.
$town6_spawn_x = '126'; //These are the x cordinates of your sixth town.
$town6_spawn_y = '126'; //These are the y cordinates of your sixth town.
$town6_spawn_z = '7'; //These are the z cordinates of your sixth town.
$town6_enabled = '0';// 1 = YES 0 = NO if you choose yes then it can be chosen when creating a char.

$town7_id = '7';
$town7name ='seventh town'; //Your seventh town name.
$town7_spawn_x = '127'; //These are the x cordinates of your seventh town.
$town7_spawn_y = '127'; //These are the y cordinates of your seventh town.
$town7_spawn_z = '7'; //These are the z cordinates of your seventh town.
$town7_enabled = '0';// 1 = YES 0 = NO if you choose yes then it can be chosen when creating a char.

$town8_id = '8';
$town8name ='eighth town'; //Your eighth town name.
$town8_spawn_x = '128'; //These are the x cordinates of your eighth town.
$town8_spawn_y = '128'; //These are the y cordinates of your eighth town.
$town8_spawn_z = '7'; //These are the z cordinates of your eighth town.
$town8_enabled = '0';// 1 = YES 0 = NO if you choose yes then it can be chosen when creating a char.

$town9_id = '9';
$town9name ='ninth town'; //Your ninth town name.
$town9_spawn_x = '129'; //These are the x cordinates of your ninth town.
$town9_spawn_y = '129'; //These are the y cordinates of your ninth town.
$town9_spawn_z = '7'; //These are the z cordinates of your ninth town.
$town9_enabled = '0';// 1 = YES 0 = NO if you choose yes then it can be chosen when creating a char.

//--------------------------End Towns--------------------------
//--------------Do NOT change this if you dont know what youre doing -----------
$dirmonster = $servpath.'\\data\\monster/'; //monster dir
$dirworld = $servpath.'\\data\\world/'; //world dir
$dirdata = $servpath.'\\data/'; //data dir
$house = $servpath.'\\data\\world\\'.$housefile; //house file
$onlinelist = $servpath.'\\data\\logs\\online.php'; //Online list file
$fileitems = 'items.xml'; //items.xml for loot on monster page
$monsterimg = "img/monsterimg/"; //monster img dir on monster page
$fileitems = $servpath.'\\data\\items\\items.xml'; //Set path to items.xml here!
$spells_file = $servpath.'\\data\\spells\\spells.xml'; //spells.xml file
/*
$guildimgdir = "img/guildimgs/"; //guild img dir
*/
//--------------End Do NOT change this if you dont know what youre doing -----------


?>

This is REALLY frustrating for me and any help will be welcome.

thank you all.
 
Last edited:
Hahahaha, I see the problem right away. ^^

Code:
 mysql_select_db(DATABASE HERE) or die( "Unable to select database");

There's the problem, change "DATABASE HERE" to your TFS database's name. ^^
 
Any time, my friend.

EDIT:

Code:
 $sinds = "January 16th 2008"; // type here the date when the counter started counting
Oh my god, my birthday. xD
 
The Next Problem
3. Problem Online Player List :)

Players Online:
Unknown column 'online' in 'where clause'

Using newest TFS SQL file?
I think not, so import it or add it manually.

-> go to `players` table and press `add column` name it `online`.
 
@ Marcinek Paladinek
I will Do That when i come @ home
I Hope its fixxed than :p

btw u know the guild system fixxing? :D

Using newest TFS SQL file?
I think not, so import it or add it manually.

-> go to `players` table and press `add column` name it `online`.

Work Fine Thank you men !!!!! :)
 
Last edited:
@ Ragal - The guild system works fine. To manage a guild choose the player that you made the guild with.
 
@ Ragal - The guild system works fine. To manage a guild choose the player that you made the guild with.

yes i know but look i make with a character guild.
and when i wan to edit this i become message your guildrank is to low :(
 
I haven't touched the guild system since it was implemented so it's not as advanced as i'd like it to be yet, so basically right now to see if someone is the owner of a guild it checks guild rank. Guild rank has to be 3 if you want to manage a guild.

So check out your char's guild ranking.
 
When using your AAC and Forgotten - Mystic Spirit the accounts I create wont work ingame, whats the problem?? Since I want to use a good distro and a good AAC those would be great to use at the same time.
 
Hello, awesome account, finally fixed the issues :).

Getting these errors when entering the monster dir of the website.

Warning: opendir() [function.opendir]: open_basedir restriction in effect. File(/kiwi/data/monster/) is not within the allowed path(s): (/home/*/:/tmp:/usr/local/lib/php/) in /home/*/domains/*.net/public_html/AF-AAC_v1.8/info.php on line 1220

Warning: opendir(/kiwi/data/monster/) [function.opendir]: failed to open dir: Operation not permitted in /home/*/domains/*.net/public_html/AF-AAC_v1.8/info.php on line 1220

Warning: readdir(): supplied argument is not a valid Directory resource in /home/*/domains/*.net/public_html/AF-AAC_v1.8/info.php on line 1223

ignore the *'s.

It's the same with everything that access a data dir.

Could someone please help me?

Thank you.

~Kiwi Dan~
 
you have set the right file path in config.lua?
Like This:
$servpath = 'C:\TheForgottenServer-0.2.9'; //Serv path (DONT end this with \data or /data (it's already scripted, so it's not needed)
??
 
Hello, awesome account, finally fixed the issues :).

Getting these errors when entering the monster dir of the website.

Warning: opendir() [function.opendir]: open_basedir restriction in effect. File(/kiwi/data/monster/) is not within the allowed path(s): (/home/*/:/tmp:/usr/local/lib/php/) in /home/*/domains/*.net/public_html/AF-AAC_v1.8/info.php on line 1220

Warning: opendir(/kiwi/data/monster/) [function.opendir]: failed to open dir: Operation not permitted in /home/*/domains/*.net/public_html/AF-AAC_v1.8/info.php on line 1220

Warning: readdir(): supplied argument is not a valid Directory resource in /home/*/domains/*.net/public_html/AF-AAC_v1.8/info.php on line 1223

ignore the *'s.

It's the same with everything that access a data dir.

Could someone please help me?

Thank you.

~Kiwi Dan~

Wow um i'm not really sure what would cause that, i've never seen that error before. I wouldn't know why the operation opendir wouldn't be permitted or what to change so that it would be permitted..I'll ask someone for help and see if they know.
 
Wow um i'm not really sure what would cause that, i've never seen that error before. I wouldn't know why the operation opendir wouldn't be permitted or what to change so that it would be permitted..I'll ask someone for help and see if they know.

Well I forgot to mention last night, I'm using linux so I had to change the /s to \s and a few other things so it would actually redirect to the correct folder, if that changes anything..

Thanks for the help.

~Kiwi Dan~
 
Status
Not open for further replies.
Back
Top