HubsInfo Network

Gaming => Online Games & Servers => World of Warcraft => Topic started by: Remix on May 24, 2014, 06:40:54 AM

Title: Adding scripts to TrinityCore
Post by: Remix 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.