HubsInfo Network
Login or Register to remove ads! You're browsing our forum and website as a Guest meaning you can only see a portion of the forum in read-only mode.
PHP MySQL Linux Material Design Web Hosting Online Games SimCity BuildIt

Adding scripts to TrinityCore

0 Members and 1 Guest are viewing this topic.

Adding scripts to TrinityCore
« on: May 24, 2014, 06:40:54 AM »
Add the script to your Src/Scripts/Custom folder then, open Game/Src/Scriptloader.cpp and go to the very bottom of the script and type this:

#ifdef SCRIPTS
/* This is where custom scripts' loading functions should be declared. */
   AddSc_universal_teleporter();
   AddSc_BountyHunter();
   AddSC_npc_arena_setup();
#endif

void AddCustomScripts()
{
#ifdef SCRIPTS
  /* This is where custom scripts should be added. */
   AddSc_universal_teleporter();
   AddSc_BountyHunter();
   AddSC_npc_arena_setup();
#endif
}

Then you need to open Scripts/Src, right click on it and hit add existing item, and voila compile your core and it works.
 



Linux Ubuntu Guides Linux games - Lutris.net