CREDITS: QQrofl

Hello all! I am going to show you how to compile a Cpp script like a gossip, pvp scripts or etc... that goes with your Extra Scripts Folder.


First thing we do is download our SVN Source:


Arcemu SVN

Then we will go to:

Programs Needed:
[Only registered and activated users can see links. ]

[Only registered and activated users can see links. ]


trunk > src > scripts > src > ExtraScripts
Now you will need to put your .cpp script in the "ExtraScripts" folder, now we will go back until you see the "ExtraScripts2008" located in your "scripts" folder.

Double click it and click the + signs and everything should be open and now right click the "Scripts" folder while you're in the "ExtraScripts2008" Visual C++ and go to "Add" > "Existing Item" Like SO:


Click this bar to view the full image.



Now search your Folder that you download the SVN with and go to your ExtraScripts folder and ADD The script to the Visual C++, like so:



Click this bar to view the full image.


Now double click the script while it is in your Visual C++ and look down until you see the

SetupYOURSCRIPTNAME(ScriptMgr * mgr)
Copy SetupYOURSCRIPTNAME and go to your setup.cpp in the "Main Resources" folder, you should see it in the pictures above and put this where mine is:

SetupYOURSCRIPTNAME(mgr);
Picture:

Click this bar to view the full image.



Now copy this in your script:

void SetupYOURSCRIPTNAME(ScriptMgr * mgr)
Now paste it in the "Setup.h" as this:

void SetupRepop(ScriptMgr * mgr);
Picture:

Click this bar to view the full image.

Now go all the way back to the start of that folder go to:

trunk > win > Double Click VC90 - All Projects and do the following:

Change it to "Release" instead of Debug and click build:

Click this bar to view the full image.


Click this bar to view the full image.

Now you're done! Thanks for reading.