Before start we suggest you to read Documentation about modular structure to understand the way AzerothCore works.
Create a folder inside modules/
directory
Now you can develop add anything to the main project, such as some scripts or even an entire library
Note: we suggest to use the directory structure standards of AzerothCore to better organize your modules and be familiar with main project.
Before continue, we suggest you to follow our guide on how to create a script for AzerothCore
After you’ve created your script you’ve to create a .cpp file to handle the script loading.
For example ( Assuming you’ve created an src folder ):
my_custom_loader.cpp
// From SC
void AddMyCustomScripts();
// Add all
// cf. the naming convention https://github.com/azerothcore/azerothcore-wotlk/blob/master/doc/changelog/master#how-to-upgrade-4
// additionally replace all '-' in the module folder name with '_' here
void Addmod_my_customScripts()
{
AddMyCustomScripts();
}
NOTE: AddMyCustomScripts is composed by:
Add (Prefix)
MyCustom (An unique name identifier for your script to avoid function collisions)
Scripts ( Suffix )
if you need to add a custom configuration file to your module that will be installed with server, the steps are very simple.
.conf.dist
in folder ./conf
you are able to create base, updates and custom sql that will be automatically loaded in our db_assembler
work in progress….
Publish your module to our catalogue: https://www.azerothcore.org/catalogue.html#/how-to