There is a few of these as I saw but they are now two years old and not updated so here is my guide.
Some pre-requisites:
You must know how to compile
Compile a fresh un-altered core first
1.0 Getting your script
2.0 Setting Up and saving your .cpp file
3.0 Modifing Setup.cpp and Setup.h
4.0 Compiling your script
5.0 Now Your Done
1.0
For this script we will be using is Magers Boss Tracker
http://www.mmowned.com/forums/emulat...ck-v1-0-a.html but you could have made your own script or found another one they all compile the same. If you have two scripts in the same release you would follow this guide for both of them
2.0
First Copy the script in the post above.
Then open up your Visual C++ and go to
new>>new file>>new .cpp file
then paste the your script into the new file.
Now go to file>>Save as
Here you want to save your file in the extra scripts folder, to find this folder go to:
Trunk folder your main one then src>>scripts>>src>>ExtraScripts
that is were you want to save your script as whatever.cpp the .cpp is vital
3.0
Modifying the proper files to get your script to run right
Once you have saved your file in the extra scripts you need to add your script to the project, to do this you:
First navigate your your Trunk>>src>>scripts>>win>>Scripts2008
open this up then click on extrascripts
First you have to add the script to your extra scripts project:
and go to add existing item and find your script in the extra script folder then your done with that part
3.1
go to setup.cpp
open it up. Then open up your script and scroll down to the bottom you will see somthing like this:
Code:
void SetupFirstBossKill(ScriptMgr * mgr)
Go ahead and copy the whole thing then go back to setup.cpp
you will see a section like:
Code:
extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr) // Comment any script to disable it
{
SetupNeutralGuards(mgr);
}
You want to paste your script you just copied into it and modify it so it looks like this:
Code:
extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr) // Comment any script to disable it
{
SetupNeutralGuards(mgr);
SetupFirstBossKill(mgr);
}
now save it.
3.2
Now open up your setup.h and you will see somthing like this:
Code:
void SetupNeutralGuards(ScriptMgr* mgr);
underneath that paste your script it will look somthing like this
Code:
void SetupNeutralGuards(ScriptMgr* mgr);
void SetupFirstBossKill(ScriptMgr * mgr);
save it.
4.0
Now compile your scripts2008 solution if you know how to compile you should know how to do this
that is what I got and Is what you should have got if you followed my steps
5.0
Now your done take your updated core and replace it with your other core or if they are the same rev just take your script_bin and replace it with your old one and test it out
And thats it I hope you found this tutorial easy to follow and well laid out. If you have any questions feel free to ask.
Thanks