Ok so you know how to compile your own server but now you are starting to find awsome c++ scripts but you dont know how to add them in well some people say that c++ is hard to manage but it really isnt if you have some logic
I will go step by step on how to add an existing cpp to an already existing project file (easier than copying the folder and erasing, blablablabala)
This guide will be based on arcemus file directory but the same concept should go for aspire
We will add my NoobHelper script to the already existing miscscripts project
First place the cpp in the source folder of the project you want to add it to
in our case the directory will be trunk\src\scripts\src\MiscScripts
next we will open Scripts2008.sln found in trunk\src\scripts\
after it opens click on solution explorer>right click the Miscscripts folder>add existing item.
navigate to where we placed the noobhelper.cpp trunk\src\scripts\src\MiscScripts and select the file and click add
lets double click the newly added file
we need to take some information to go any further
the decleration is what matters here we need to add it to our setup files
the higlighted part is what we need so copy that into your clipboard(ctrl+c)
the red underlined number is the id number of your npc that will talk to it you can set this to any number you want aslong as the npc exists in your db and has a flag of "1" which means its a gossip npc.
now we go back to solution explorer and open both files under Main Resources
which should be Setup.cpp and Setup.h
first in Setup.h
add the line just like it shows in the picture! everything else you can leave the same.
and the same goes with Setup.cpp just that it has a different line in it
and thats all the setting up that is needed !
hit f7 (Build Solution) and it will spit out the script in trunk\bin\Release\script_bin
since we added the noobhelper script to the MiscScript project the name of the dll that contains noobhelper will be named ArcScriptMiscScripts.dll
now since you are reading how to compile a script im assuming that you already know how to compile before and just read this so you can learn how to compile custom scripts ^_^
although if you do not know how to compile or are confused about it and none of the other guides are helping out too much leave a reply requesting for a full guide on how to compile from scratch by that i mean from svn checkout to starting up the server
ps make sure that the configuration for the scripts is set to release and not debug.
Comment on how well i did with this guide as it is my first >_<