there should be a guide in the armory on how to set it up.
here it is:
Code:
-= Armory Setup =-
1. Move contents of svn to a folder on your webserver (except the SQL folder) (ex. /armory [any directory may be used]).
2. Create a new database on your MySQL server, and name it anything you want. This is for the item_cache table and the tables used to generate tooltips, so I'd recommend calling it 'armory'.
3. Execute upd_sql_statements.sql (located in /sql) on your "armory(create new database and name it armory)" database.And tblwowitems.sql and allies.sql in character db.
-= Armory Configuration =-
4. Set up your databases, rowse to your configuration/mysql.php file, and modify it.
This is how it works:
$realms is the array where you specify your realms. In my example setup, I have:
$realms = array(
"Malchezzar" => array( "MALCHEZZAR" , "root" , "" , "localhost" , "antrix" ),
"Sargeras" => array( "SARGERAS" , "root" , "" , "localhost" , "charsheet" ),
);
This means the realm Malchezzar will have the unique key 'MALCHEZZAR', will login to the SQL database using the account 'root', with the password '', and the SQL host will be 'localhost'. 'antrix' is the database. (Note: Split World/Character DB thingy is not working yet)
Similarly, for Sargeras, 'charsheet' is the database.
Next, we specify the default realm. You only need to set one line here:
$realmName["DEFAULT_REALM"] = "Malchezzar";
Change 'Malchezzar' to the left-most text in the $realms array. This realm is used if the $_GET["realm"] parameter is not specified.
Skip the $realm loop array after that, and find the WEBSITE and WSERVER things.
/* RealmDB must be the database used for your item_cache database */
$MySQL_User["WEBSITE"] = "root";
$MySQL_Password["WEBSITE"] = "";
$MySQL_Host["WEBSITE"] = "localhost";
$RealmDB["WEBSITE"] = "wowanirena";
/* WorldServer DB if applicable */
$MySQL_User["WSERVER"] = "root";
$MySQL_Password["WSERVER"] = "";
$MySQL_Host["WSERVER"] = "localhost";
$RealmDB["WSERVER"] = "antrix";
Note: I don't think WSERVER is used anymore.
Change the WEBSITE entries to the correct settings used to access your 'armory' database (if you used that name)!
This is a really important database, as without it, you'll get shitloads of errors in the background, and items will not be cached, so stats will not be calculated.
Is that all?
Oh no.
5. Modify your /configuration/settings.inc.php file.
$LEVEL_CAP = 70; // This might be different on a funserver //
$DEBUG_KEY = "001dotphpquestionmark"; // Change this to something unique //
define( "HEADER_TITLE" , "AniRena" ); // Change this to the text that you want on the top of each page, like AniRena - Home //
define( "ARMORY_FULLURL" , "http://localhost/armory/" ); // <- the URL of your armory folder //
define( "DEFAULT_ERROR_REPORTING" , "E_ALL & ~E_NOTICE" ); // You probably don't need to edit this //
define( "ITEM_ID_CUSTOM_CUTOFF" , 69999 ); /* Not relevant to blizzlike servers. Any item with an ID larger than this will be generated from the database */
A lot of these things are still to be implemented or were deprecated.
$LEVEL_CAP - fairly obvious. Unfortunately this was deprecated since I removed the advanced search feature (however, I will readd it)
$DEBUG_KEY - Deprecated. I used it to upload news.
define( "HEADER_TITLE" , "AniRena" ); - Not implemented yet.
define( "ARMORY_FULLURL" , "http://localhost/armory" ); - Woohoo, finally, something that was implemented. This is used on the guildsearch and character search page to create "Link to This" results. Change it to the full URL of your Armory, like I did in mine.
define( "DEFAULT_ERROR_REPORTING" "E_ALL & ~E_NOTICE" ); - I think this was deprecated.. ffs
define( "ITEM_ID_CUSTOM_CUTOFF" , 69999 ); - This is for servers with custom content. Any item that has an entry higher than this will not have its data grabbed from Allakhazam. I recommend lowering it, I only made it 69999 because my funserver content uses IDs starting from 70000.
You're done! I think...
after that add to your header.php file in your "www" folder
Code:
<a href="./armory" title="">Armory</a>
after this :
Code:
<a href="./quest.php?name=contact" title="">Contact Us</a>
here is a guide to make your website public using WAMP:
http://www.mmowned.com/forums/ascent...-friendly.html