So, your hung up on the dreaded script adding?!?!??!? NP, i'm here to help *Flex*. Okay, so in this example my scriptname will be CS_World_chat.cpp. So letsago!
1. Open your trinitycore folder, and navigate from TrinityCore->src->scripts->custom. Open CMakelists.txt and then add the file right under the 2 examples.
It should say custom/yourscriptname.cpp
In my case,
Code:
set(scripts_STAT_SRCS
${scripts_STAT_SRCS}
Custom/cs_world_chat.cpp
)
2. Open your build solution. After its open, go to game->scriptloader.CPP. Now, scroll to the bottom til you find
Code:
#ifdef SCRIPTS
/* This is where custom scripts' loading functions should be declared. */
#endif
void AddCustomScripts()
{
#ifdef SCRIPTS
/* This is where custom scripts should be added. */
#endif
}
2. Place your info under each line. This is a bit tricky. Where it says the custom scripts loading functions should be declared, you should type void AddSC_scriptname
or in my case void AddSC_cs_world_chat();
3. Now, go under the custom scripts thing. If it does not tab for you, press tab so you are able to see it like this
Code:
/* This is where custom scripts should be added */
|
#endif
NOT
|
#endif.
Now, what you type is AddSC_yourscriptname();
in my case AddSC_cs_world_chat();
4. This is the hardest part. Now move to your scripts, right click source files and click add-> existing item. Now locate your custom script and click ok with that highlighted.
Now recompile your core by clicking the Green > and enjoy.
Recompiling is basically compiling like you did originally but going back into the bin folder and copying the new world and auth folders with the new DLLs, don't recopy your .confs.
Enjoy.
Need help? I do teamviewer and skype help. Add iamaturtlehehe on skype or PM me if you get stuck, I remember how bad this was for me when I was new.