What You Need:
A subversion client - This allows you to download the core and keep it updated. I advise using Tortoise SVN.
MySQL - MySQL is your database program
Navicat Lite - Navicat Lite is how you will edit MySQL
Downloading and Installing the Subversion Client:
Navigate to tortoisesvn.tigris.org. Download Tortoise SVN and install it. Once again. This is very basic. After you finish the install you need to restart your system.
Downloading and Installing MySQL:
Download MySQL at MySQL :: MySQL Downloads Follow the instructions it provides. When it asks for password and username info just put "root"
Downloading and Installing Navicat Lite:
Download Navicat Lite at Download Navicat MySQL Manager Lite , Navicat MySQL Manager Lite 8.0.29 Download Follow the instillation instructions.
Downloading RivalDB:
Create a new folder on your desktop named RivalDB. Right click and select SVN Checkout. A window should then appear. Type RivalDB - Revision 198: / into the "Location of repository" box. Once that is completed we can begin setting up the DB.
Preparing to install RivalDB:
Open up Navicat Lite. Create a new connection and name it "localhost". Once that is completed open localhost and create two new databases by right-clicking in the "Connections" box and selecting "New Database". Name one "world" and the other "logon". Remember your password and other info. You will need it.
Installing RivalDB:
Go to the RivalDB folder. Open the folder called "Development". From there go to the world folder and right click and extract the database.rar into your world folder. Now go back to the development folder and double click the RDB instillation.bat This will ask for all your MySQL info.
When it asks for your info put this:
Server: localhost
Database login: root
Password: root
World Database: world
Character Database: logon
A menu should pop up. Press "i". After the instillation is complete press any key. Then select "c". This will install the changesets. After this is complete press any key once more you should be back at the main menu. Press any button again. Back to the main menu we go. Press "h". After that is finished go back to the main menu again! This time press "d". Once this is finished exit out of the installer.
Our final step is to apply any Hearthstone sql updates past revision 1135. So go to your Aspire folder and open up Navicat Lite. Open up your "world" databse. Right click on it and select "Execute Batch File..." Select the file you want to apply from this menu.
You need to apply:
1776_reputation_instance_onkill.sql
There you are! You have installed RivalDB!
Compiling Your Custom C++ Scripts
Compile Your Own Server:
You must compile your own server before doing this. This will not work with repacks.
Properly Placing Your cpp:
First of all you need the cpp you want to compile. Place this file in your already existing miscscripts project. So navigate to trunk\src\scripts\src\MiscScripts and place your cpp there.
Now open up your Scripts2008.sln This can be found in your trunk\src\scripts. Once it opens click on "Solution Explorer" to the left of your screen. Right click the ArcScriptMiscScripts, go to "Add", and then "Existing Item". Navigate to your cpp and double click on it.
Gathering Information:
Now we need to get some info before we finish up compiling your cpp. Copy the part where it says "SCRIPT_DECL" and then it should say something of yours. Copy that all the way till the ":". Make sure to copy this to clipboard (ctrl + c)
Now its time to go back to the solution explorer. Open up both files in your main resources. These should be your Setup.cpp and Setup.h
The Setup.H:
You need to add a line right after "void SetupEbonHold(ScriptMgr * mgr);".
Add this:
Code:
void SetupWHATCOMESAFTERYOURSCRIPT_DECL(ScriptMgr * mgr);
Now to the Setup.cpp:
You need to add a line right after "SetupEbonHold(mgr);"
Add this:
Code:
SetupWHATCOMESAFTERYOURSCRIPT_DECL(mgr);
After this you simply press F7 and let it compile. It will add a "script_bin" folder in your trunk\bin\release. Copy that folder into your already compiled server folder. You have just compiled a C++ script!