Error al compilar

Pues cuando voy a compilar el trinity con un script custom siempre sale que ha habido 2 o 3 incorrectos y no se me compila el worldserver.exe.

pongo datos:

El script que meto es un NPC para que le das a una profesion y te la sube al maximo (75,150,225,etc…)

este es su código (se llama professionnpc.cpp):

[SPOILER]

[CODE]/* Copyright (C) 2006 - 2009 ScriptDev2 https://scriptdev2.svn.sourceforge.net/

  • This program is free software; you can redistribute it and/or modify

  • it under the terms of the GNU General Public License as published by

  • the Free Software Foundation; either version 2 of the License, or

  • (at your option) any later version.

  • This program is distributed in the hope that it will be useful,

  • but WITHOUT ANY WARRANTY; without even the implied warranty of

  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

  • GNU General Public License for more details.

  • You should have received a copy of the GNU General Public License

  • along with this program; if not, write to the Free Software

  • Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

*/

/* ScriptData

SDName: professionnpc

SD%Complete: 100

SDComment: Profession Master

SDCategory: NPC

EndScriptData */

#include “ScriptedPch.h”

#include “…/…/shared/Config/Config.h”

#ifndef _TRINITY_CORE_CONFIG

define _TRINITY_CORE_CONFIG “trinitycore.conf”

#endif _TRINITY_CORE_CONFIG

bool GossipHello_ProfessionNPC(Player* pPlayer, Creature* pCreature)

{

Config TScriptConfig;

if(!TScriptConfig.SetSource(_TRINITY_CORE_CONFIG,true))

	error_log("TScript: Unable to open configuration file");


if(TScriptConfig.GetBoolDefault("ProfessionNPC.OnlyGMs", false)) // If ProfessionNPC.OnlyGMs is enabled in trinitycore.conf

	if (pPlayer->GetSession()->GetSecurity() == SEC_PLAYER)

	{

		pCreature->MonsterWhisper("Sorry, I can only trade to game masters.", pPlayer->GetGUID());

		return true;

	}


bool EnableProfessions = TScriptConfig.GetBoolDefault("ProfessionNPC.EnableProfessions", true);

bool EnableSecondarySkills = TScriptConfig.GetBoolDefault("ProfessionNPC.EnableSecondarySkills", true);


// Main Menu for Alliance

if (pPlayer->GetTeam() == ALLIANCE)

{

// Check config if "Professions" is enabled or not

if(EnableProfessions)

	pPlayer->ADD_GOSSIP_ITEM( 7, "Professions ->"        , GOSSIP_SENDER_MAIN, 1000);

// Check config if "Secondary Skills" is enabled or not

if(EnableSecondarySkills)

	pPlayer->ADD_GOSSIP_ITEM( 7, "Secondary Skills ->"   , GOSSIP_SENDER_MAIN, 2000);

}

else // Main Menu for Horde

{

// Check config if "Professions" is enabled or not

if(EnableProfessions)

	pPlayer->ADD_GOSSIP_ITEM( 7, "Professions ->"        , GOSSIP_SENDER_MAIN, 1000);

// Check config if "Secondary Skills" is enabled or not

if(EnableSecondarySkills)

	pPlayer->ADD_GOSSIP_ITEM( 7, "Secondary Skills ->"   , GOSSIP_SENDER_MAIN, 2000);

}


pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());

return true;

}

void SendDefaultMenu_ProfessionNPC(Player* pPlayer, Creature* pCreature, uint32 uiAction)

{

// Not allow in combat

if (pPlayer->isInCombat())

{

pPlayer->CLOSE_GOSSIP_MENU();

pCreature->MonsterSay("You are in combat!", LANG_UNIVERSAL, NULL);

return;

}

Config TScriptConfig;

if(!TScriptConfig.SetSource(_TRINITY_CORE_CONFIG,true))

	error_log("TScript: Unable to open configuration file");

bool EnableProfessions = TScriptConfig.GetBoolDefault("ProfessionNPC.EnableProfessions", true);

bool EnableSecondarySkills = TScriptConfig.GetBoolDefault("ProfessionNPC.EnableSecondarySkills", true);

//Mony Check

if (pPlayer->GetMoney() < (TScriptConfig.GetFloatDefault(“SkillGoldCost”,0)))

{

pPlayer->CLOSE_GOSSIP_MENU();

pCreature->MonsterWhisper("You don't have enough money.", pPlayer->GetGUID());

return;

}

switch(uiAction)

{

case 1000: //Profession

        pPlayer->ADD_GOSSIP_ITEM( 5, "Alchemy."              , GOSSIP_SENDER_MAIN, 1001);

        pPlayer->ADD_GOSSIP_ITEM( 5, "Blacksmithing."        , GOSSIP_SENDER_MAIN, 1002);

        pPlayer->ADD_GOSSIP_ITEM( 5, "Enchanting."           , GOSSIP_SENDER_MAIN, 1003);

        pPlayer->ADD_GOSSIP_ITEM( 5, "Engineering."          , GOSSIP_SENDER_MAIN, 1004);

        pPlayer->ADD_GOSSIP_ITEM( 5, "Herbalism."            , GOSSIP_SENDER_MAIN, 1005);

        pPlayer->ADD_GOSSIP_ITEM( 5, "Inscription."          , GOSSIP_SENDER_MAIN, 1006);

        pPlayer->ADD_GOSSIP_ITEM( 5, "Jewelcrafting."        , GOSSIP_SENDER_MAIN, 1007);

        pPlayer->ADD_GOSSIP_ITEM( 5, "Leatherworking."       , GOSSIP_SENDER_MAIN, 1008);

        pPlayer->ADD_GOSSIP_ITEM( 5, "Mining."               , GOSSIP_SENDER_MAIN, 1009);

        pPlayer->ADD_GOSSIP_ITEM( 5, "Skinning."             , GOSSIP_SENDER_MAIN, 1010);

        pPlayer->ADD_GOSSIP_ITEM( 5, "Tailoring."            , GOSSIP_SENDER_MAIN, 1011);

        pPlayer->ADD_GOSSIP_ITEM( 7, "<- Main Menu"          , GOSSIP_SENDER_MAIN, 3000);


pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());

break;

case 2000: //Secondary Skills

        pPlayer->ADD_GOSSIP_ITEM( 5, "Cooking."              , GOSSIP_SENDER_MAIN, 2001);

        pPlayer->ADD_GOSSIP_ITEM( 5, "First Aid."            , GOSSIP_SENDER_MAIN, 2002);

        pPlayer->ADD_GOSSIP_ITEM( 5, "Fishing."              , GOSSIP_SENDER_MAIN, 2003);

      //pPlayer->ADD_GOSSIP_ITEM( 5, "Riding."               , GOSSIP_SENDER_MAIN, 2004);

        pPlayer->ADD_GOSSIP_ITEM( 7, "<- Main Menu"          , GOSSIP_SENDER_MAIN, 3000);


pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());

break;

case 3000: //Back To Main Menu

// Main Menu for Alliance

if (pPlayer->GetTeam() == ALLIANCE)

{

// Check config if "Professions" is enabled or not

if(EnableProfessions)

	pPlayer->ADD_GOSSIP_ITEM( 7, "Professions ->"        , GOSSIP_SENDER_MAIN, 1000);

// Check config if "Secondary Skills" is enabled or not

if(EnableSecondarySkills)

	pPlayer->ADD_GOSSIP_ITEM( 7, "Secondary Skills ->"   , GOSSIP_SENDER_MAIN, 2000);

}

else // Main Menu for Horde

{

// Check config if "Professions" is enabled or not

if(EnableProfessions)

	pPlayer->ADD_GOSSIP_ITEM( 7, "Professions ->"        , GOSSIP_SENDER_MAIN, 1000);

// Check config if "Secondary Skills" is enabled or not

if(EnableSecondarySkills)

	pPlayer->ADD_GOSSIP_ITEM( 7, "Secondary Skills ->"   , GOSSIP_SENDER_MAIN, 2000);

}


pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());

break;

//////////////////////////////////////////////////Professions///////////////////////////////////////////////////////////////

case 1001: // Alchemy

if(!pPlayer->UpdateSkill(171,0))

  {

	pCreature->MonsterWhisper("You don't have this skill or you allready have the maximum skill value $C.", pPlayer->GetGUID());

	GossipHello_ProfessionNPC(pPlayer, pCreature);

	return;

}


pPlayer->UpdateSkill(171,(TScriptConfig.GetFloatDefault("SkillPoints",0)));

pPlayer->ModifyMoney(-(TScriptConfig.GetFloatDefault("SkillGoldCost",0)));

pPlayer->CLOSE_GOSSIP_MENU();

break;

case 1002: // Blacksmithing

if(!pPlayer->UpdateSkill(164,0))

  {

	pCreature->MonsterWhisper("You don't have this skill or you allready have the maximum skill value $C.", pPlayer->GetGUID());

	GossipHello_ProfessionNPC(pPlayer, pCreature);

	return;

}


pPlayer->UpdateSkill(164,(TScriptConfig.GetFloatDefault("SkillPoints",0)));

pPlayer->ModifyMoney(-(TScriptConfig.GetFloatDefault("SkillGoldCost",0)));

pPlayer->CLOSE_GOSSIP_MENU();

break;

case 1003: // Enchanting

if(!pPlayer->UpdateSkill(333,0))

  {

	pCreature->MonsterWhisper("You don't have this skill or you allready have the maximum skill value $C.", pPlayer->GetGUID());

	GossipHello_ProfessionNPC(pPlayer, pCreature);

	return;

}


pPlayer->UpdateSkill(333,(TScriptConfig.GetFloatDefault("SkillPoints",0)));

pPlayer->ModifyMoney(-(TScriptConfig.GetFloatDefault("SkillGoldCost",0)));

pPlayer->CLOSE_GOSSIP_MENU();

break;

case 1004: // Engineering

if(!pPlayer->UpdateSkill(202,0))

  {

	pCreature->MonsterWhisper("You don't have this skill or you allready have the maximum skill value $C.", pPlayer->GetGUID());

	GossipHello_ProfessionNPC(pPlayer, pCreature);

	return;

}


pPlayer->UpdateSkill(202,(TScriptConfig.GetFloatDefault("SkillPoints",0)));

pPlayer->ModifyMoney(-(TScriptConfig.GetFloatDefault("SkillGoldCost",0)));

pPlayer->CLOSE_GOSSIP_MENU();

break;

case 1005: // Herbalism

if(!pPlayer->UpdateSkill(182,0))

  {

	pCreature->MonsterWhisper("You don't have this skill or you allready have the maximum skill value $C.", pPlayer->GetGUID());

	GossipHello_ProfessionNPC(pPlayer, pCreature);

	return;

}


pPlayer->UpdateSkill(182,(TScriptConfig.GetFloatDefault("SkillPoints",0)));

pPlayer->ModifyMoney(-(TScriptConfig.GetFloatDefault("SkillGoldCost",0)));

pPlayer->CLOSE_GOSSIP_MENU();

break;

case 1006: // Inscription

if(!pPlayer->UpdateSkill(773,0))

  {

	pCreature->MonsterWhisper("You don't have this skill or you allready have the maximum skill value $C.", pPlayer->GetGUID());

	GossipHello_ProfessionNPC(pPlayer, pCreature);

	return;

}


pPlayer->UpdateSkill(773,(TScriptConfig.GetFloatDefault("SkillPoints",0)));

pPlayer->ModifyMoney(-(TScriptConfig.GetFloatDefault("SkillGoldCost",0)));

pPlayer->CLOSE_GOSSIP_MENU();

break;

case 1007: // Jewelcrafting

if(!pPlayer->UpdateSkill(755,0))

  {

	pCreature->MonsterWhisper("You don't have this skill or you allready have the maximum skill value $C.", pPlayer->GetGUID());

	GossipHello_ProfessionNPC(pPlayer, pCreature);

	return;

}


pPlayer->UpdateSkill(755,(TScriptConfig.GetFloatDefault("SkillPoints",0)));

pPlayer->ModifyMoney(-(TScriptConfig.GetFloatDefault("SkillGoldCost",0)));

pPlayer->CLOSE_GOSSIP_MENU();

break;

case 1008: // Leatherworking

if(!pPlayer->UpdateSkill(165,0))

  {

	pCreature->MonsterWhisper("You don't have this skill or you allready have the maximum skill value $C.", pPlayer->GetGUID());

	GossipHello_ProfessionNPC(pPlayer, pCreature);

	return;

}


pPlayer->UpdateSkill(165,(TScriptConfig.GetFloatDefault("SkillPoints",0)));

pPlayer->ModifyMoney(-(TScriptConfig.GetFloatDefault("SkillGoldCost",0)));

pPlayer->CLOSE_GOSSIP_MENU();

break;

case 1009: // Mining

if(!pPlayer->UpdateSkill(186,0))

  {

	pCreature->MonsterWhisper("You don't have this skill or you allready have the maximum skill value $C.", pPlayer->GetGUID());

	GossipHello_ProfessionNPC(pPlayer, pCreature);

	return;

}


pPlayer->UpdateSkill(186,(TScriptConfig.GetFloatDefault("SkillPoints",0)));

pPlayer->ModifyMoney(-(TScriptConfig.GetFloatDefault("SkillGoldCost",0)));

pPlayer->CLOSE_GOSSIP_MENU();

break;

case 1010: // Skinning

if(!pPlayer->UpdateSkill(393,0))

  {

	pCreature->MonsterWhisper("You don't have this skill or you allready have the maximum skill value $C.", pPlayer->GetGUID());

	GossipHello_ProfessionNPC(pPlayer, pCreature);

	return;

}


pPlayer->UpdateSkill(393,(TScriptConfig.GetFloatDefault("SkillPoints",0)));

pPlayer->ModifyMoney(-(TScriptConfig.GetFloatDefault("SkillGoldCost",0)));

pPlayer->CLOSE_GOSSIP_MENU();

break;

case 1011: // Tailoring

if(!pPlayer->UpdateSkill(197,0))

  {

	pCreature->MonsterWhisper("You don't have this skill or you allready have the maximum skill value $C.", pPlayer->GetGUID());

	GossipHello_ProfessionNPC(pPlayer, pCreature);

	return;

}


pPlayer->UpdateSkill(197,(TScriptConfig.GetFloatDefault("SkillPoints",0)));

pPlayer->ModifyMoney(-(TScriptConfig.GetFloatDefault("SkillGoldCost",0)));

pPlayer->CLOSE_GOSSIP_MENU();

break;

//////////////////////////////////////////////////Secondary Skills///////////////////////////////////////////////////////////////

case 2001: // Cooking

if(!pPlayer->UpdateSkill(185,0))

  {

	pCreature->MonsterWhisper("You don't have this skill or you allready have the maximum skill value $C.", pPlayer->GetGUID());

	GossipHello_ProfessionNPC(pPlayer, pCreature);

	return;

}


pPlayer->UpdateSkill(185,(TScriptConfig.GetFloatDefault("SkillPoints",0)));

pPlayer->ModifyMoney(-(TScriptConfig.GetFloatDefault("SkillGoldCost",0)));

pPlayer->CLOSE_GOSSIP_MENU();

break;

case 2002: // First Aid

if(!pPlayer->UpdateSkill(129,0))

  {

	pCreature->MonsterWhisper("You don't have this skill or you allready have the maximum skill value $C.", pPlayer->GetGUID());

	GossipHello_ProfessionNPC(pPlayer, pCreature);

	return;

}


pPlayer->UpdateSkill(129,(TScriptConfig.GetFloatDefault("SkillPoints",0)));

pPlayer->ModifyMoney(-(TScriptConfig.GetFloatDefault("SkillGoldCost",0)));

pPlayer->CLOSE_GOSSIP_MENU();

break;

case 2003: // Fishing

if(!pPlayer->UpdateSkill(356,0))

  {

	pCreature->MonsterWhisper("You don't have this skill or you allready have the maximum skill value $C.", pPlayer->GetGUID());

	GossipHello_ProfessionNPC(pPlayer, pCreature);

	return;

}


pPlayer->UpdateSkill(356,(TScriptConfig.GetFloatDefault("SkillPoints",0)));

pPlayer->ModifyMoney(-(TScriptConfig.GetFloatDefault("SkillGoldCost",0)));

pPlayer->CLOSE_GOSSIP_MENU();

break;

//case 2004: // Riding

// if(!pPlayer->UpdateSkill(,0))

// {

// pCreature->MonsterWhisper(“You don’t have this skill or you allready have the maximum skill value $C.”, pPlayer->GetGUID());

// GossipHello_ProfessionNPC(pPlayer, pCreature);

// return;

// }

//

// pPlayer->UpdateSkill(,(TScriptConfig.GetFloatDefault(“SkillPoints”,0)));

// pPlayer->ModifyMoney(-(TScriptConfig.GetFloatDefault(“SkillGoldCost”,0)));

// pPlayer->CLOSE_GOSSIP_MENU();

//break;

pPlayer->CLOSE_GOSSIP_MENU();

} // end of switch

} //end of function

bool GossipSelect_ProfessionNPC(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)

{

// Main menu

if (uiSender == GOSSIP_SENDER_MAIN)

SendDefaultMenu_ProfessionNPC(pPlayer, pCreature, uiAction);

return true;

}

void AddSC_professionnpc()

{

Script *newscript;


newscript = new Script;

newscript->Name = "professionnpc";

newscript->pGossipHello = &GossipHello_ProfessionNPC;

newscript->pGossipSelect = &GossipSelect_ProfessionNPC;

newscript->RegisterSelf();

}[/CODE][/SPOILER]

Lo que hago a continuación es meterla en scripts/custom, y en el el archivo Scriptloader.cpp de game/scripting lo dejo así:

[SPOILER]

[CODE]/*

  • Copyright (C) 2008-2011 TrinityCore http://www.trinitycore.org/

  • This program is free software; you can redistribute it and/or modify it

  • under the terms of the GNU General Public License as published by the

  • Free Software Foundation; either version 2 of the License, or (at your

  • option) any later version.

  • This program is distributed in the hope that it will be useful, but WITHOUT

  • ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or

  • FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for

  • more details.

  • You should have received a copy of the GNU General Public License along

  • with this program. If not, see http://www.gnu.org/licenses/.

*/

#include “ScriptLoader.h”

//examples

void AddSC_example_creature();

void AddSC_example_escort();

void AddSC_example_gossip_codebox();

void AddSC_example_misc();

void AddSC_example_commandscript();

// spells

void AddSC_deathknight_spell_scripts();

void AddSC_druid_spell_scripts();

void AddSC_generic_spell_scripts();

void AddSC_hunter_spell_scripts();

void AddSC_mage_spell_scripts();

void AddSC_paladin_spell_scripts();

void AddSC_priest_spell_scripts();

void AddSC_rogue_spell_scripts();

void AddSC_shaman_spell_scripts();

void AddSC_warlock_spell_scripts();

void AddSC_warrior_spell_scripts();

void AddSC_quest_spell_scripts();

void AddSC_item_spell_scripts();

void AddSC_example_spell_scripts();

void AddSC_SmartSCripts();

//Commands

void AddSC_account_commandscript();

void AddSC_achievement_commandscript();

void AddSC_debug_commandscript();

void AddSC_event_commandscript();

void AddSC_gm_commandscript();

void AddSC_go_commandscript();

void AddSC_gobject_commandscript();

void AddSC_honor_commandscript();

void AddSC_learn_commandscript();

void AddSC_modify_commandscript();

void AddSC_npc_commandscript();

void AddSC_quest_commandscript();

void AddSC_reload_commandscript();

void AddSC_tele_commandscript();

void AddSC_titles_commandscript();

void AddSC_wp_commandscript();

void AddSC_gps_commandscript();

#ifdef SCRIPTS

//world

void AddSC_areatrigger_scripts();

void AddSC_emerald_dragons();

void AddSC_generic_creature();

void AddSC_go_scripts();

void AddSC_guards();

void AddSC_item_scripts();

void AddSC_npc_professions();

void AddSC_npc_innkeeper();

void AddSC_npcs_special();

void AddSC_npc_taxi();

void AddSC_achievement_scripts();

//eastern kingdoms

void AddSC_alterac_valley(); //Alterac Valley

void AddSC_boss_balinda();

void AddSC_boss_drekthar();

void AddSC_boss_galvangar();

void AddSC_boss_vanndar();

void AddSC_blackrock_depths(); //Blackrock Depths

void AddSC_boss_ambassador_flamelash();

void AddSC_boss_anubshiah();

void AddSC_boss_draganthaurissan();

void AddSC_boss_general_angerforge();

void AddSC_boss_gorosh_the_dervish();

void AddSC_boss_grizzle();

void AddSC_boss_high_interrogator_gerstahn();

void AddSC_boss_magmus();

void AddSC_boss_moira_bronzebeard();

void AddSC_boss_tomb_of_seven();

void AddSC_instance_blackrock_depths();

void AddSC_boss_drakkisath(); //Blackrock Spire

void AddSC_boss_halycon();

void AddSC_boss_highlordomokk();

void AddSC_boss_mothersmolderweb();

void AddSC_boss_overlordwyrmthalak();

void AddSC_boss_shadowvosh();

void AddSC_boss_thebeast();

void AddSC_boss_warmastervoone();

void AddSC_boss_quatermasterzigris();

void AddSC_boss_pyroguard_emberseer();

void AddSC_boss_gyth();

void AddSC_boss_rend_blackhand();

void AddSC_instance_blackrock_spire();

void AddSC_boss_razorgore(); //Blackwing lair

void AddSC_boss_vael();

void AddSC_boss_broodlord();

void AddSC_boss_firemaw();

void AddSC_boss_ebonroc();

void AddSC_boss_flamegor();

void AddSC_boss_chromaggus();

void AddSC_boss_nefarian();

void AddSC_boss_victor_nefarius();

void AddSC_boss_mr_smite();

void AddSC_deadmines(); //Deadmines

void AddSC_instance_deadmines();

void AddSC_gnomeregan(); //Gnomeregan

void AddSC_instance_gnomeregan();

void AddSC_boss_attumen(); //Karazhan

void AddSC_boss_curator();

void AddSC_boss_maiden_of_virtue();

void AddSC_boss_shade_of_aran();

void AddSC_boss_malchezaar();

void AddSC_boss_terestian_illhoof();

void AddSC_boss_moroes();

void AddSC_bosses_opera();

void AddSC_boss_netherspite();

void AddSC_instance_karazhan();

void AddSC_karazhan();

void AddSC_boss_nightbane();

void AddSC_boss_felblood_kaelthas(); // Magister’s Terrace

void AddSC_boss_selin_fireheart();

void AddSC_boss_vexallus();

void AddSC_boss_priestess_delrissa();

void AddSC_instance_magisters_terrace();

void AddSC_magisters_terrace();

void AddSC_boss_lucifron(); //Molten core

void AddSC_boss_magmadar();

void AddSC_boss_gehennas();

void AddSC_boss_garr();

void AddSC_boss_baron_geddon();

void AddSC_boss_shazzrah();

void AddSC_boss_golemagg();

void AddSC_boss_sulfuron();

void AddSC_boss_majordomo();

void AddSC_boss_ragnaros();

void AddSC_instance_molten_core();

void AddSC_molten_core();

void AddSC_the_scarlet_enclave(); //Scarlet Enclave

void AddSC_the_scarlet_enclave_c1();

void AddSC_the_scarlet_enclave_c2();

void AddSC_the_scarlet_enclave_c5();

void AddSC_boss_arcanist_doan(); //Scarlet Monastery

void AddSC_boss_azshir_the_sleepless();

void AddSC_boss_bloodmage_thalnos();

void AddSC_boss_headless_horseman();

void AddSC_boss_herod();

void AddSC_boss_high_inquisitor_fairbanks();

void AddSC_boss_houndmaster_loksey();

void AddSC_boss_interrogator_vishas();

void AddSC_boss_scorn();

void AddSC_instance_scarlet_monastery();

void AddSC_boss_mograine_and_whitemane();

void AddSC_boss_darkmaster_gandling(); //Scholomance

void AddSC_boss_death_knight_darkreaver();

void AddSC_boss_theolenkrastinov();

void AddSC_boss_illuciabarov();

void AddSC_boss_instructormalicia();

void AddSC_boss_jandicebarov();

void AddSC_boss_kormok();

void AddSC_boss_lordalexeibarov();

void AddSC_boss_lorekeeperpolkelt();

void AddSC_boss_rasfrost();

void AddSC_boss_theravenian();

void AddSC_boss_vectus();

void AddSC_instance_scholomance();

void AddSC_shadowfang_keep(); //Shadowfang keep

void AddSC_instance_shadowfang_keep();

void AddSC_boss_magistrate_barthilas(); //Stratholme

void AddSC_boss_maleki_the_pallid();

void AddSC_boss_nerubenkan();

void AddSC_boss_cannon_master_willey();

void AddSC_boss_baroness_anastari();

void AddSC_boss_ramstein_the_gorger();

void AddSC_boss_timmy_the_cruel();

void AddSC_boss_postmaster_malown();

void AddSC_boss_baron_rivendare();

void AddSC_boss_dathrohan_balnazzar();

void AddSC_boss_order_of_silver_hand();

void AddSC_instance_stratholme();

void AddSC_stratholme();

void AddSC_sunken_temple(); // Sunken Temple

void AddSC_instance_sunken_temple();

void AddSC_instance_sunwell_plateau(); //Sunwell Plateau

void AddSC_boss_kalecgos();

void AddSC_boss_brutallus();

void AddSC_boss_felmyst();

void AddSC_boss_eredar_twins();

void AddSC_boss_muru();

void AddSC_boss_kiljaeden();

void AddSC_sunwell_plateau();

void AddSC_boss_archaedas(); //Uldaman

void AddSC_boss_ironaya();

void AddSC_uldaman();

void AddSC_instance_uldaman();

void AddSC_boss_akilzon(); //Zul’Aman

void AddSC_boss_halazzi();

void AddSC_boss_hex_lord_malacrass();

void AddSC_boss_janalai();

void AddSC_boss_nalorakk();

void AddSC_boss_zuljin();

void AddSC_instance_zulaman();

void AddSC_zulaman();

void AddSC_boss_jeklik(); //Zul’Gurub

void AddSC_boss_venoxis();

void AddSC_boss_marli();

void AddSC_boss_mandokir();

void AddSC_boss_gahzranka();

void AddSC_boss_thekal();

void AddSC_boss_arlokk();

void AddSC_boss_jindo();

void AddSC_boss_hakkar();

void AddSC_boss_grilek();

void AddSC_boss_hazzarah();

void AddSC_boss_renataki();

void AddSC_boss_wushoolay();

void AddSC_instance_zulgurub();

//void AddSC_alterac_mountains();

void AddSC_arathi_highlands();

void AddSC_blasted_lands();

void AddSC_boss_kruul();

void AddSC_burning_steppes();

void AddSC_duskwood();

void AddSC_eastern_plaguelands();

void AddSC_eversong_woods();

void AddSC_ghostlands();

void AddSC_hinterlands();

void AddSC_ironforge();

void AddSC_isle_of_queldanas();

void AddSC_loch_modan();

void AddSC_redridge_mountains();

void AddSC_searing_gorge();

void AddSC_silvermoon_city();

void AddSC_silverpine_forest();

void AddSC_stormwind_city();

void AddSC_stranglethorn_vale();

void AddSC_swamp_of_sorrows();

void AddSC_tirisfal_glades();

void AddSC_undercity();

void AddSC_western_plaguelands();

void AddSC_westfall();

void AddSC_wetlands();

//kalimdor

void AddSC_blackfathom_deeps(); //Blackfathom Depths

void AddSC_boss_gelihast();

void AddSC_boss_kelris();

void AddSC_boss_aku_mai();

void AddSC_instance_blackfathom_deeps();

void AddSC_hyjal(); //CoT Battle for Mt. Hyjal

void AddSC_boss_archimonde();

void AddSC_instance_mount_hyjal();

void AddSC_hyjal_trash();

void AddSC_boss_rage_winterchill();

void AddSC_boss_anetheron();

void AddSC_boss_kazrogal();

void AddSC_boss_azgalor();

void AddSC_boss_captain_skarloc(); //CoT Old Hillsbrad

void AddSC_boss_epoch_hunter();

void AddSC_boss_lieutenant_drake();

void AddSC_instance_old_hillsbrad();

void AddSC_old_hillsbrad();

void AddSC_boss_aeonus(); //CoT The Dark Portal

void AddSC_boss_chrono_lord_deja();

void AddSC_boss_temporus();

void AddSC_dark_portal();

void AddSC_instance_dark_portal();

void AddSC_boss_epoch(); //CoT Culling Of Stratholme

void AddSC_boss_infinite_corruptor();

void AddSC_boss_salramm();

void AddSC_boss_mal_ganis();

void AddSC_boss_meathook();

void AddSC_culling_of_stratholme();

void AddSC_instance_culling_of_stratholme();

void AddSC_boss_celebras_the_cursed(); //Maraudon

void AddSC_boss_landslide();

void AddSC_boss_noxxion();

void AddSC_boss_ptheradras();

void AddSC_boss_onyxia(); //Onyxia’s Lair

void AddSC_instance_onyxias_lair();

void AddSC_boss_amnennar_the_coldbringer(); //Razorfen Downs

void AddSC_razorfen_downs();

void AddSC_instance_razorfen_downs();

void AddSC_razorfen_kraul(); //Razorfen Kraul

void AddSC_instance_razorfen_kraul();

void AddSC_boss_kurinnaxx(); //Ruins of ahn’qiraj

void AddSC_boss_rajaxx();

void AddSC_boss_moam();

void AddSC_boss_buru();

void AddSC_boss_ayamiss();

void AddSC_boss_ossirian();

void AddSC_instance_ruins_of_ahnqiraj();

void AddSC_boss_cthun(); //Temple of ahn’qiraj

void AddSC_boss_fankriss();

void AddSC_boss_huhuran();

void AddSC_bug_trio();

void AddSC_boss_sartura();

void AddSC_boss_skeram();

void AddSC_boss_twinemperors();

void AddSC_mob_anubisath_sentinel();

void AddSC_instance_temple_of_ahnqiraj();

void AddSC_wailing_caverns(); //Wailing caverns

void AddSC_instance_wailing_caverns();

void AddSC_zulfarrak(); //Zul’Farrak generic

void AddSC_instance_zulfarrak(); //Zul’Farrak instance script

void AddSC_ashenvale();

void AddSC_azshara();

void AddSC_azuremyst_isle();

void AddSC_bloodmyst_isle();

void AddSC_boss_azuregos();

void AddSC_darkshore();

void AddSC_desolace();

void AddSC_durotar();

void AddSC_dustwallow_marsh();

void AddSC_felwood();

void AddSC_feralas();

void AddSC_moonglade();

void AddSC_mulgore();

void AddSC_orgrimmar();

void AddSC_silithus();

void AddSC_stonetalon_mountains();

void AddSC_tanaris();

void AddSC_teldrassil();

void AddSC_the_barrens();

void AddSC_thousand_needles();

void AddSC_thunder_bluff();

void AddSC_ungoro_crater();

void AddSC_winterspring();

//northrend

void AddSC_boss_slad_ran();

void AddSC_boss_moorabi();

void AddSC_boss_drakkari_colossus();

void AddSC_boss_gal_darah();

void AddSC_boss_eck();

void AddSC_instance_gundrak();

void AddSC_boss_krik_thir(); //Azjol-Nerub

void AddSC_boss_hadronox();

void AddSC_boss_anub_arak();

void AddSC_instance_azjol_nerub();

void AddSC_instance_ahnkahet(); //Azjol-Nerub Ahn’kahet

void AddSC_boss_amanitar();

void AddSC_boss_taldaram();

void AddSC_boss_jedoga_shadowseeker();

void AddSC_boss_elder_nadox();

void AddSC_boss_volazj();

void AddSC_boss_argent_challenge(); //Trial of the Champion

void AddSC_boss_black_knight();

void AddSC_boss_grand_champions();

void AddSC_instance_trial_of_the_champion();

void AddSC_trial_of_the_champion();

void AddSC_boss_anubarak_trial(); //Trial of the Crusader

void AddSC_boss_faction_champions();

void AddSC_boss_jaraxxus();

void AddSC_boss_northrend_beasts();

void AddSC_boss_twin_valkyr();

void AddSC_trial_of_the_crusader();

void AddSC_instance_trial_of_the_crusader();

void AddSC_boss_anubrekhan(); //Naxxramas

void AddSC_boss_maexxna();

void AddSC_boss_patchwerk();

void AddSC_boss_grobbulus();

void AddSC_boss_razuvious();

void AddSC_boss_kelthuzad();

void AddSC_boss_loatheb();

void AddSC_boss_noth();

void AddSC_boss_gluth();

void AddSC_boss_sapphiron();

void AddSC_boss_four_horsemen();

void AddSC_boss_faerlina();

void AddSC_boss_heigan();

void AddSC_boss_gothik();

void AddSC_boss_thaddius();

void AddSC_instance_naxxramas();

void AddSC_boss_magus_telestra(); //The Nexus Nexus

void AddSC_boss_anomalus();

void AddSC_boss_ormorok();

void AddSC_boss_keristrasza();

void AddSC_instance_nexus();

void AddSC_boss_drakos(); //The Nexus The Oculus

void AddSC_boss_urom();

void AddSC_boss_varos();

void AddSC_boss_eregos();

void AddSC_instance_oculus();

void AddSC_oculus();

void AddSC_boss_malygos(); // The Nexus: Eye of Eternity

void AddSC_instance_eye_of_eternity();

void AddSC_boss_sartharion(); //Obsidian Sanctum

void AddSC_instance_obsidian_sanctum();

void AddSC_boss_bjarngrim(); //Ulduar Halls of Lightning

void AddSC_boss_loken();

void AddSC_boss_ionar();

void AddSC_boss_volkhan();

void AddSC_instance_halls_of_lightning();

void AddSC_boss_maiden_of_grief(); //Ulduar Halls of Stone

void AddSC_boss_krystallus();

void AddSC_boss_sjonnir();

void AddSC_instance_halls_of_stone();

void AddSC_halls_of_stone();

void AddSC_boss_auriaya(); //Ulduar Ulduar

void AddSC_boss_flame_leviathan();

void AddSC_boss_ignis();

void AddSC_boss_razorscale();

void AddSC_boss_xt002();

void AddSC_boss_kologarn();

void AddSC_boss_assembly_of_iron();

void AddSC_boss_general_vezax();

void AddSC_ulduar_teleporter();

void AddSC_boss_mimiron();

void AddSC_boss_hodir();

void AddSC_boss_freya();

void AddSC_instance_ulduar();

void AddSC_boss_keleseth(); //Utgarde Keep

void AddSC_boss_skarvald_dalronn();

void AddSC_boss_ingvar_the_plunderer();

void AddSC_instance_utgarde_keep();

void AddSC_boss_svala(); //Utgarde pinnacle

void AddSC_boss_palehoof();

void AddSC_boss_skadi();

void AddSC_boss_ymiron();

void AddSC_instance_utgarde_pinnacle();

void AddSC_utgarde_keep();

void AddSC_boss_archavon(); //Vault of Archavon

void AddSC_boss_emalon();

void AddSC_boss_koralon();

void AddSC_boss_toravon();

void AddSC_instance_archavon();

void AddSC_boss_trollgore(); //Drak’Tharon Keep

void AddSC_boss_novos();

void AddSC_boss_dred();

void AddSC_boss_tharon_ja();

void AddSC_instance_drak_tharon();

void AddSC_boss_cyanigosa(); //Violet Hold

void AddSC_boss_erekem();

void AddSC_boss_ichoron();

void AddSC_boss_lavanthor();

void AddSC_boss_moragg();

void AddSC_boss_xevozz();

void AddSC_boss_zuramat();

void AddSC_instance_violet_hold();

void AddSC_violet_hold();

void AddSC_instance_forge_of_souls(); //Forge of Souls

void AddSC_forge_of_souls();

void AddSC_boss_bronjahm();

void AddSC_boss_devourer_of_souls();

void AddSC_instance_pit_of_saron(); //Pit of Saron

void AddSC_pit_of_saron();

void AddSC_boss_garfrost();

void AddSC_boss_ick();

void AddSC_boss_tyrannus();

void AddSC_instance_halls_of_reflection(); // Halls of Reflection

void AddSC_halls_of_reflection();

void AddSC_boss_falric();

void AddSC_boss_marwyn();

void AddSC_boss_lord_marrowgar(); // Icecrown Citadel

void AddSC_boss_lady_deathwhisper();

void AddSC_boss_deathbringer_saurfang();

void AddSC_boss_festergut();

void AddSC_boss_rotface();

void AddSC_boss_professor_putricide();

void AddSC_boss_blood_prince_council();

void AddSC_boss_blood_queen_lana_thel();

void AddSC_boss_valithria_dreamwalker();

void AddSC_boss_sindragosa();

void AddSC_icecrown_citadel_teleport();

void AddSC_instance_icecrown_citadel();

void AddSC_icecrown_citadel();

void AddSC_instance_ruby_sanctum(); // Ruby Sanctum

void AddSC_ruby_sanctum();

void AddSC_boss_baltharus_the_warborn();

void AddSC_boss_saviana_ragefire();

void AddSC_boss_general_zarithrian();

void AddSC_dalaran();

void AddSC_borean_tundra();

void AddSC_dragonblight();

void AddSC_grizzly_hills();

void AddSC_howling_fjord();

void AddSC_icecrown();

void AddSC_sholazar_basin();

void AddSC_storm_peaks();

void AddSC_zuldrak();

void AddSC_crystalsong_forest();

void AddSC_isle_of_conquest();

//outland

void AddSC_boss_exarch_maladaar(); //Auchindoun Auchenai Crypts

void AddSC_boss_shirrak_the_dead_watcher();

void AddSC_boss_nexusprince_shaffar(); //Auchindoun Mana Tombs

void AddSC_boss_pandemonius();

void AddSC_boss_darkweaver_syth(); //Auchindoun Sekketh Halls

void AddSC_boss_talon_king_ikiss();

void AddSC_instance_sethekk_halls();

void AddSC_instance_shadow_labyrinth(); //Auchindoun Shadow Labyrinth

void AddSC_boss_ambassador_hellmaw();

void AddSC_boss_blackheart_the_inciter();

void AddSC_boss_grandmaster_vorpil();

void AddSC_boss_murmur();

void AddSC_black_temple(); //Black Temple

void AddSC_boss_illidan();

void AddSC_boss_shade_of_akama();

void AddSC_boss_supremus();

void AddSC_boss_gurtogg_bloodboil();

void AddSC_boss_mother_shahraz();

void AddSC_boss_reliquary_of_souls();

void AddSC_boss_teron_gorefiend();

void AddSC_boss_najentus();

void AddSC_boss_illidari_council();

void AddSC_instance_black_temple();

void AddSC_boss_fathomlord_karathress(); //CR Serpent Shrine Cavern

void AddSC_boss_hydross_the_unstable();

void AddSC_boss_lady_vashj();

void AddSC_boss_leotheras_the_blind();

void AddSC_boss_morogrim_tidewalker();

void AddSC_instance_serpentshrine_cavern();

void AddSC_boss_the_lurker_below();

void AddSC_boss_hydromancer_thespia(); //CR Steam Vault

void AddSC_boss_mekgineer_steamrigger();

void AddSC_boss_warlord_kalithresh();

void AddSC_instance_steam_vault();

void AddSC_boss_hungarfen(); //CR Underbog

void AddSC_boss_the_black_stalker();

void AddSC_boss_gruul(); //Gruul’s Lair

void AddSC_boss_high_king_maulgar();

void AddSC_instance_gruuls_lair();

void AddSC_boss_broggok(); //HC Blood Furnace

void AddSC_boss_kelidan_the_breaker();

void AddSC_boss_the_maker();

void AddSC_instance_blood_furnace();

void AddSC_boss_magtheridon(); //HC Magtheridon’s Lair

void AddSC_instance_magtheridons_lair();

void AddSC_boss_grand_warlock_nethekurse(); //HC Shattered Halls

void AddSC_boss_warbringer_omrogg();

void AddSC_boss_warchief_kargath_bladefist();

void AddSC_instance_shattered_halls();

void AddSC_boss_watchkeeper_gargolmar(); //HC Ramparts

void AddSC_boss_omor_the_unscarred();

void AddSC_boss_vazruden_the_herald();

void AddSC_instance_ramparts();

void AddSC_arcatraz(); //TK Arcatraz

void AddSC_boss_harbinger_skyriss();

void AddSC_instance_arcatraz();

void AddSC_boss_high_botanist_freywinn(); //TK Botanica

void AddSC_boss_laj();

void AddSC_boss_warp_splinter();

void AddSC_boss_alar(); //TK The Eye

void AddSC_boss_kaelthas();

void AddSC_boss_void_reaver();

void AddSC_boss_high_astromancer_solarian();

void AddSC_instance_the_eye();

void AddSC_the_eye();

void AddSC_boss_gatewatcher_iron_hand(); //TK The Mechanar

void AddSC_boss_nethermancer_sepethrea();

void AddSC_boss_pathaleon_the_calculator();

void AddSC_instance_mechanar();

void AddSC_blades_edge_mountains();

void AddSC_boss_doomlordkazzak();

void AddSC_boss_doomwalker();

void AddSC_hellfire_peninsula();

void AddSC_nagrand();

void AddSC_netherstorm();

void AddSC_shadowmoon_valley();

void AddSC_shattrath_city();

void AddSC_terokkar_forest();

void AddSC_zangarmarsh();

// battlegrounds

// outdoor pvp

void AddSC_outdoorpvp_ep();

void AddSC_outdoorpvp_hp();

void AddSC_outdoorpvp_na();

void AddSC_outdoorpvp_si();

void AddSC_outdoorpvp_tf();

void AddSC_outdoorpvp_zm();

// player

void AddSC_chat_log();

#endif

void AddScripts()

{

AddExampleScripts();

AddSpellScripts();

AddSC_SmartSCripts();

AddCommandScripts();

#ifdef SCRIPTS

AddWorldScripts();

AddEasternKingdomsScripts();

AddKalimdorScripts();

AddOutlandScripts();

AddNorthrendScripts();

AddBattlegroundScripts();

AddOutdoorPvPScripts();

AddCustomScripts();

#endif

}

void AddExampleScripts()

{

AddSC_example_creature();

AddSC_example_escort();

AddSC_example_gossip_codebox();

AddSC_example_misc();

AddSC_example_commandscript();

}

void AddSpellScripts()

{

AddSC_deathknight_spell_scripts();

AddSC_druid_spell_scripts();

AddSC_generic_spell_scripts();

AddSC_hunter_spell_scripts();

AddSC_mage_spell_scripts();

AddSC_paladin_spell_scripts();

AddSC_priest_spell_scripts();

AddSC_rogue_spell_scripts();

AddSC_shaman_spell_scripts();

AddSC_warlock_spell_scripts();

AddSC_warrior_spell_scripts();

AddSC_quest_spell_scripts();

AddSC_item_spell_scripts();

AddSC_example_spell_scripts();

}

void AddCommandScripts()

{

AddSC_account_commandscript();

AddSC_achievement_commandscript();

AddSC_debug_commandscript();

AddSC_event_commandscript();

AddSC_gm_commandscript();

AddSC_go_commandscript();

AddSC_gobject_commandscript();

AddSC_honor_commandscript();

AddSC_learn_commandscript();

AddSC_modify_commandscript();

AddSC_npc_commandscript();

AddSC_quest_commandscript();

AddSC_reload_commandscript();

AddSC_tele_commandscript();

AddSC_titles_commandscript();

AddSC_wp_commandscript();

AddSC_gps_commandscript();

}

void AddWorldScripts()

{

#ifdef SCRIPTS

AddSC_areatrigger_scripts();

AddSC_emerald_dragons();

AddSC_generic_creature();

AddSC_go_scripts();

AddSC_guards();

AddSC_item_scripts();

AddSC_npc_professions();

AddSC_npc_innkeeper();

AddSC_npcs_special();

AddSC_npc_taxi();

AddSC_achievement_scripts();

AddSC_chat_log();

#endif

}

void AddEasternKingdomsScripts()

{

#ifdef SCRIPTS

AddSC_alterac_valley();                 //Alterac Valley

AddSC_boss_balinda();

AddSC_boss_drekthar();

AddSC_boss_galvangar();

AddSC_boss_vanndar();

AddSC_blackrock_depths();               //Blackrock Depths

AddSC_boss_ambassador_flamelash();

AddSC_boss_anubshiah();

AddSC_boss_draganthaurissan();

AddSC_boss_general_angerforge();

AddSC_boss_gorosh_the_dervish();

AddSC_boss_grizzle();

AddSC_boss_high_interrogator_gerstahn();

AddSC_boss_magmus();

AddSC_boss_moira_bronzebeard();

AddSC_boss_tomb_of_seven();

AddSC_instance_blackrock_depths();

AddSC_boss_drakkisath();                //Blackrock Spire

AddSC_boss_halycon();

AddSC_boss_highlordomokk();

AddSC_boss_mothersmolderweb();

AddSC_boss_overlordwyrmthalak();

AddSC_boss_shadowvosh();

AddSC_boss_thebeast();

AddSC_boss_warmastervoone();

AddSC_boss_quatermasterzigris();

AddSC_boss_pyroguard_emberseer();

AddSC_boss_gyth();

AddSC_boss_rend_blackhand();

AddSC_instance_blackrock_spire();

AddSC_boss_razorgore();                 //Blackwing lair

AddSC_boss_vael();

AddSC_boss_broodlord();

AddSC_boss_firemaw();

AddSC_boss_ebonroc();

AddSC_boss_flamegor();

AddSC_boss_chromaggus();

AddSC_boss_nefarian();

AddSC_boss_victor_nefarius();

AddSC_boss_mr_smite();

AddSC_deadmines();                      //Deadmines

AddSC_instance_deadmines();

AddSC_gnomeregan();                     //Gnomeregan

AddSC_instance_gnomeregan();

AddSC_boss_attumen();                   //Karazhan

AddSC_boss_curator();

AddSC_boss_maiden_of_virtue();

AddSC_boss_shade_of_aran();

AddSC_boss_malchezaar();

AddSC_boss_terestian_illhoof();

AddSC_boss_moroes();

AddSC_bosses_opera();

AddSC_boss_netherspite();

AddSC_instance_karazhan();

AddSC_karazhan();

AddSC_boss_nightbane();

AddSC_boss_felblood_kaelthas();         // Magister's Terrace

AddSC_boss_selin_fireheart();

AddSC_boss_vexallus();

AddSC_boss_priestess_delrissa();

AddSC_instance_magisters_terrace();

AddSC_magisters_terrace();

AddSC_boss_lucifron();                  //Molten core

AddSC_boss_magmadar();

AddSC_boss_gehennas();

AddSC_boss_garr();

AddSC_boss_baron_geddon();

AddSC_boss_shazzrah();

AddSC_boss_golemagg();

AddSC_boss_sulfuron();

AddSC_boss_majordomo();

AddSC_boss_ragnaros();

AddSC_instance_molten_core();

AddSC_molten_core();

AddSC_the_scarlet_enclave();            //Scarlet Enclave

AddSC_the_scarlet_enclave_c1();

AddSC_the_scarlet_enclave_c2();

AddSC_the_scarlet_enclave_c5();

AddSC_boss_arcanist_doan();             //Scarlet Monastery

AddSC_boss_azshir_the_sleepless();

AddSC_boss_bloodmage_thalnos();

AddSC_boss_headless_horseman();

AddSC_boss_herod();

AddSC_boss_high_inquisitor_fairbanks();

AddSC_boss_houndmaster_loksey();

AddSC_boss_interrogator_vishas();

AddSC_boss_scorn();

AddSC_instance_scarlet_monastery();

AddSC_boss_mograine_and_whitemane();

AddSC_boss_darkmaster_gandling();       //Scholomance

AddSC_boss_death_knight_darkreaver();

AddSC_boss_theolenkrastinov();

AddSC_boss_illuciabarov();

AddSC_boss_instructormalicia();

AddSC_boss_jandicebarov();

AddSC_boss_kormok();

AddSC_boss_lordalexeibarov();

AddSC_boss_lorekeeperpolkelt();

AddSC_boss_rasfrost();

AddSC_boss_theravenian();

AddSC_boss_vectus();

AddSC_instance_scholomance();

AddSC_shadowfang_keep();                //Shadowfang keep

AddSC_instance_shadowfang_keep();

AddSC_boss_magistrate_barthilas();      //Stratholme

AddSC_boss_maleki_the_pallid();

AddSC_boss_nerubenkan();

AddSC_boss_cannon_master_willey();

AddSC_boss_baroness_anastari();

AddSC_boss_ramstein_the_gorger();

AddSC_boss_timmy_the_cruel();

AddSC_boss_postmaster_malown();

AddSC_boss_baron_rivendare();

AddSC_boss_dathrohan_balnazzar();

AddSC_boss_order_of_silver_hand();

AddSC_instance_stratholme();

AddSC_stratholme();

AddSC_sunken_temple();                  // Sunken Temple

AddSC_instance_sunken_temple();

AddSC_instance_sunwell_plateau();       //Sunwell Plateau

AddSC_boss_kalecgos();

AddSC_boss_brutallus();

AddSC_boss_felmyst();

AddSC_boss_eredar_twins();

AddSC_boss_muru();

AddSC_boss_kiljaeden();

AddSC_sunwell_plateau();

AddSC_boss_archaedas();                 //Uldaman

AddSC_boss_ironaya();

AddSC_uldaman();

AddSC_instance_uldaman();

AddSC_boss_akilzon();                   //Zul'Aman

AddSC_boss_halazzi();

AddSC_boss_hex_lord_malacrass();

AddSC_boss_janalai();

AddSC_boss_nalorakk();

AddSC_boss_zuljin();

AddSC_instance_zulaman();

AddSC_zulaman();

AddSC_boss_jeklik();                    //Zul'Gurub

AddSC_boss_venoxis();

AddSC_boss_marli();

AddSC_boss_mandokir();

AddSC_boss_gahzranka();

AddSC_boss_thekal();

AddSC_boss_arlokk();

AddSC_boss_jindo();

AddSC_boss_hakkar();

AddSC_boss_grilek();

AddSC_boss_hazzarah();

AddSC_boss_renataki();

AddSC_boss_wushoolay();

AddSC_instance_zulgurub();


//AddSC_alterac_mountains();

AddSC_arathi_highlands();

AddSC_blasted_lands();

AddSC_boss_kruul();

AddSC_burning_steppes();

AddSC_duskwood();

AddSC_eastern_plaguelands();

AddSC_eversong_woods();

AddSC_ghostlands();

AddSC_hinterlands();

AddSC_ironforge();

AddSC_isle_of_queldanas();

AddSC_loch_modan();

AddSC_redridge_mountains();

AddSC_searing_gorge();

AddSC_silvermoon_city();

AddSC_silverpine_forest();

AddSC_stormwind_city();

AddSC_stranglethorn_vale();

AddSC_swamp_of_sorrows();

AddSC_tirisfal_glades();

AddSC_undercity();

AddSC_western_plaguelands();

AddSC_westfall();

AddSC_wetlands();

#endif

}

void AddKalimdorScripts()

{

#ifdef SCRIPTS

AddSC_blackfathom_deeps();              //Blackfathom Depths

AddSC_boss_gelihast();

AddSC_boss_kelris();

AddSC_boss_aku_mai();

AddSC_instance_blackfathom_deeps();

AddSC_hyjal();                          //CoT Battle for Mt. Hyjal

AddSC_boss_archimonde();

AddSC_instance_mount_hyjal();

AddSC_hyjal_trash();

AddSC_boss_rage_winterchill();

AddSC_boss_anetheron();

AddSC_boss_kazrogal();

AddSC_boss_azgalor();

AddSC_boss_captain_skarloc();           //CoT Old Hillsbrad

AddSC_boss_epoch_hunter();

AddSC_boss_lieutenant_drake();

AddSC_instance_old_hillsbrad();

AddSC_old_hillsbrad();

AddSC_boss_aeonus();                    //CoT The Dark Portal

AddSC_boss_chrono_lord_deja();

AddSC_boss_temporus();

AddSC_dark_portal();

AddSC_instance_dark_portal();

AddSC_boss_epoch();                     //CoT Culling Of Stratholme

AddSC_boss_infinite_corruptor();

AddSC_boss_salramm();

AddSC_boss_mal_ganis();

AddSC_boss_meathook();

AddSC_culling_of_stratholme();

AddSC_instance_culling_of_stratholme();

AddSC_boss_celebras_the_cursed();       //Maraudon

AddSC_boss_landslide();

AddSC_boss_noxxion();

AddSC_boss_ptheradras();

AddSC_boss_onyxia();                    //Onyxia's Lair

AddSC_instance_onyxias_lair();

AddSC_boss_amnennar_the_coldbringer();  //Razorfen Downs

AddSC_razorfen_downs();

AddSC_instance_razorfen_downs();

AddSC_razorfen_kraul();                 //Razorfen Kraul

AddSC_instance_razorfen_kraul();

AddSC_boss_kurinnaxx();                 //Ruins of ahn'qiraj

AddSC_boss_rajaxx();

AddSC_boss_moam();

AddSC_boss_buru();

AddSC_boss_ayamiss();

AddSC_boss_ossirian();

AddSC_instance_ruins_of_ahnqiraj();

AddSC_boss_cthun();                     //Temple of ahn'qiraj

AddSC_boss_fankriss();

AddSC_boss_huhuran();

AddSC_bug_trio();

AddSC_boss_sartura();

AddSC_boss_skeram();

AddSC_boss_twinemperors();

AddSC_mob_anubisath_sentinel();

AddSC_instance_temple_of_ahnqiraj();

AddSC_wailing_caverns();                //Wailing caverns

AddSC_instance_wailing_caverns();

AddSC_zulfarrak();                      //Zul'Farrak generic

AddSC_instance_zulfarrak();             //Zul'Farrak instance script


AddSC_ashenvale();

AddSC_azshara();

AddSC_azuremyst_isle();

AddSC_bloodmyst_isle();

AddSC_boss_azuregos();

AddSC_darkshore();

AddSC_desolace();

AddSC_durotar();

AddSC_dustwallow_marsh();

AddSC_felwood();

AddSC_feralas();

AddSC_moonglade();

AddSC_mulgore();

AddSC_orgrimmar();

AddSC_silithus();

AddSC_stonetalon_mountains();

AddSC_tanaris();

AddSC_teldrassil();

AddSC_the_barrens();

AddSC_thousand_needles();

AddSC_thunder_bluff();

AddSC_ungoro_crater();

AddSC_winterspring();

#endif

}

void AddOutlandScripts()

{

#ifdef SCRIPTS

AddSC_boss_exarch_maladaar();           //Auchindoun Auchenai Crypts

AddSC_boss_shirrak_the_dead_watcher();

AddSC_boss_nexusprince_shaffar();       //Auchindoun Mana Tombs

AddSC_boss_pandemonius();

AddSC_boss_darkweaver_syth();           //Auchindoun Sekketh Halls

AddSC_boss_talon_king_ikiss();

AddSC_instance_sethekk_halls();

AddSC_instance_shadow_labyrinth();      //Auchindoun Shadow Labyrinth

AddSC_boss_ambassador_hellmaw();

AddSC_boss_blackheart_the_inciter();

AddSC_boss_grandmaster_vorpil();

AddSC_boss_murmur();

AddSC_black_temple();                   //Black Temple

AddSC_boss_illidan();

AddSC_boss_shade_of_akama();

AddSC_boss_supremus();

AddSC_boss_gurtogg_bloodboil();

AddSC_boss_mother_shahraz();

AddSC_boss_reliquary_of_souls();

AddSC_boss_teron_gorefiend();

AddSC_boss_najentus();

AddSC_boss_illidari_council();

AddSC_instance_black_temple();

AddSC_boss_fathomlord_karathress();     //CR Serpent Shrine Cavern

AddSC_boss_hydross_the_unstable();

AddSC_boss_lady_vashj();

AddSC_boss_leotheras_the_blind();

AddSC_boss_morogrim_tidewalker();

AddSC_instance_serpentshrine_cavern();

AddSC_boss_the_lurker_below();

AddSC_boss_hydromancer_thespia();       //CR Steam Vault

AddSC_boss_mekgineer_steamrigger();

AddSC_boss_warlord_kalithresh();

AddSC_instance_steam_vault();

AddSC_boss_hungarfen();                 //CR Underbog

AddSC_boss_the_black_stalker();

AddSC_boss_gruul();                     //Gruul's Lair

AddSC_boss_high_king_maulgar();

AddSC_instance_gruuls_lair();

AddSC_boss_broggok();                   //HC Blood Furnace

AddSC_boss_kelidan_the_breaker();

AddSC_boss_the_maker();

AddSC_instance_blood_furnace();

AddSC_boss_magtheridon();               //HC Magtheridon's Lair

AddSC_instance_magtheridons_lair();

AddSC_boss_grand_warlock_nethekurse();  //HC Shattered Halls

AddSC_boss_warbringer_omrogg();

AddSC_boss_warchief_kargath_bladefist();

AddSC_instance_shattered_halls();

AddSC_boss_watchkeeper_gargolmar();     //HC Ramparts

AddSC_boss_omor_the_unscarred();

AddSC_boss_vazruden_the_herald();

AddSC_instance_ramparts();

AddSC_arcatraz();                       //TK Arcatraz

AddSC_boss_harbinger_skyriss();

AddSC_instance_arcatraz();

AddSC_boss_high_botanist_freywinn();    //TK Botanica

AddSC_boss_laj();

AddSC_boss_warp_splinter();

AddSC_boss_alar();                      //TK The Eye

AddSC_boss_kaelthas();

AddSC_boss_void_reaver();

AddSC_boss_high_astromancer_solarian();

AddSC_instance_the_eye();

AddSC_the_eye();

AddSC_boss_gatewatcher_iron_hand();     //TK The Mechanar

AddSC_boss_nethermancer_sepethrea();

AddSC_boss_pathaleon_the_calculator();

AddSC_instance_mechanar();


AddSC_blades_edge_mountains();

AddSC_boss_doomlordkazzak();

AddSC_boss_doomwalker();

AddSC_hellfire_peninsula();

AddSC_nagrand();

AddSC_netherstorm();

AddSC_shadowmoon_valley();

AddSC_shattrath_city();

AddSC_terokkar_forest();

AddSC_zangarmarsh();

#endif

}

void AddNorthrendScripts()

{

#ifdef SCRIPTS

AddSC_boss_slad_ran();               //Gundrak

AddSC_boss_moorabi();

AddSC_boss_drakkari_colossus();

AddSC_boss_gal_darah();

AddSC_boss_eck();

AddSC_instance_gundrak();

AddSC_boss_amanitar();

AddSC_boss_taldaram();              //Azjol-Nerub Ahn'kahet

AddSC_boss_elder_nadox();

AddSC_boss_jedoga_shadowseeker();

AddSC_boss_volazj();

AddSC_instance_ahnkahet();

AddSC_boss_argent_challenge();      //Trial of the Champion

AddSC_boss_black_knight();

AddSC_boss_grand_champions();

AddSC_instance_trial_of_the_champion();

AddSC_trial_of_the_champion();

AddSC_boss_anubarak_trial();        //Trial of the Crusader

AddSC_boss_faction_champions();

AddSC_boss_jaraxxus();

AddSC_trial_of_the_crusader();

AddSC_boss_twin_valkyr();

AddSC_boss_northrend_beasts();

AddSC_instance_trial_of_the_crusader();

AddSC_boss_krik_thir();             //Azjol-Nerub Azjol-Nerub

AddSC_boss_hadronox();

AddSC_boss_anub_arak();

AddSC_instance_azjol_nerub();

AddSC_boss_anubrekhan();            //Naxxramas

AddSC_boss_maexxna();

AddSC_boss_patchwerk();

AddSC_boss_grobbulus();

AddSC_boss_razuvious();

AddSC_boss_kelthuzad();

AddSC_boss_loatheb();

AddSC_boss_noth();

AddSC_boss_gluth();

AddSC_boss_sapphiron();

AddSC_boss_four_horsemen();

AddSC_boss_faerlina();

AddSC_boss_heigan();

AddSC_boss_gothik();

AddSC_boss_thaddius();

AddSC_instance_naxxramas();

AddSC_boss_magus_telestra();        //The Nexus Nexus

AddSC_boss_anomalus();

AddSC_boss_ormorok();

AddSC_boss_keristrasza();

AddSC_instance_nexus();

AddSC_boss_drakos();                //The Nexus The Oculus

AddSC_boss_urom();

AddSC_boss_varos();

AddSC_boss_eregos();

AddSC_instance_oculus();

AddSC_oculus();

AddSC_boss_malygos();              // The Nexus: Eye of Eternity

AddSC_instance_eye_of_eternity();

AddSC_boss_sartharion();            //Obsidian Sanctum

AddSC_instance_obsidian_sanctum();

AddSC_boss_bjarngrim();             //Ulduar Halls of Lightning

AddSC_boss_loken();

AddSC_boss_ionar();

AddSC_boss_volkhan();

AddSC_instance_halls_of_lightning();

AddSC_boss_maiden_of_grief();       //Ulduar Halls of Stone

AddSC_boss_krystallus();

AddSC_boss_sjonnir();

AddSC_instance_halls_of_stone();

AddSC_halls_of_stone();

AddSC_boss_auriaya();               //Ulduar Ulduar

AddSC_boss_flame_leviathan();

AddSC_boss_ignis();

AddSC_boss_razorscale();

AddSC_boss_xt002();

AddSC_boss_general_vezax();

AddSC_boss_assembly_of_iron();

AddSC_boss_kologarn();

AddSC_ulduar_teleporter();

AddSC_boss_mimiron();

AddSC_boss_hodir();

AddSC_boss_freya();

AddSC_instance_ulduar();

AddSC_boss_keleseth();              //Utgarde Keep

AddSC_boss_skarvald_dalronn();

AddSC_boss_ingvar_the_plunderer();

AddSC_instance_utgarde_keep();

AddSC_boss_svala();                 //Utgarde pinnacle

AddSC_boss_palehoof();

AddSC_boss_skadi();

AddSC_boss_ymiron();

AddSC_instance_utgarde_pinnacle();

AddSC_utgarde_keep();

AddSC_boss_archavon();              //Vault of Archavon

AddSC_boss_emalon();

AddSC_boss_koralon();

AddSC_boss_toravon();

AddSC_instance_archavon();

AddSC_boss_trollgore();             //Drak'Tharon Keep

AddSC_boss_novos();

AddSC_boss_dred();

AddSC_boss_tharon_ja();

AddSC_instance_drak_tharon();

AddSC_boss_cyanigosa();             //Violet Hold

AddSC_boss_erekem();

AddSC_boss_ichoron();

AddSC_boss_lavanthor();

AddSC_boss_moragg();

AddSC_boss_xevozz();

AddSC_boss_zuramat();

AddSC_instance_violet_hold();

AddSC_violet_hold();

AddSC_instance_forge_of_souls();   //Forge of Souls

AddSC_forge_of_souls();

AddSC_boss_bronjahm();

AddSC_boss_devourer_of_souls();

AddSC_instance_pit_of_saron();      //Pit of Saron

AddSC_pit_of_saron();

AddSC_boss_garfrost();

AddSC_boss_ick();

AddSC_boss_tyrannus();

AddSC_instance_halls_of_reflection();   // Halls of Reflection

AddSC_halls_of_reflection();

AddSC_boss_falric();

AddSC_boss_marwyn();

AddSC_boss_lord_marrowgar();        // Icecrown Citadel

AddSC_boss_lady_deathwhisper();

AddSC_boss_deathbringer_saurfang();

AddSC_boss_festergut();

AddSC_boss_rotface();

AddSC_boss_professor_putricide();

AddSC_boss_blood_prince_council();

AddSC_boss_blood_queen_lana_thel();

AddSC_boss_valithria_dreamwalker();

AddSC_boss_sindragosa();

AddSC_icecrown_citadel_teleport();

AddSC_instance_icecrown_citadel();

AddSC_icecrown_citadel();

AddSC_instance_ruby_sanctum();      // Ruby Sanctum

AddSC_ruby_sanctum();

AddSC_boss_baltharus_the_warborn();

AddSC_boss_saviana_ragefire();

AddSC_boss_general_zarithrian();


AddSC_dalaran();

AddSC_borean_tundra();

AddSC_dragonblight();

AddSC_grizzly_hills();

AddSC_howling_fjord();

AddSC_icecrown();

AddSC_sholazar_basin();

AddSC_storm_peaks();

AddSC_zuldrak();

AddSC_crystalsong_forest();

AddSC_isle_of_conquest();

#endif

}

void AddOutdoorPvPScripts()

{

#ifdef SCRIPTS

AddSC_outdoorpvp_ep();

AddSC_outdoorpvp_hp();

AddSC_outdoorpvp_na();

AddSC_outdoorpvp_si();

AddSC_outdoorpvp_tf();

AddSC_outdoorpvp_zm();

#endif

}

void AddBattlegroundScripts()

{

#ifdef SCRIPTS

#endif

}

#ifdef SCRIPTS

/* This is where custom scripts’ loading functions should be declared. */

void AddSC_professionnpc();

#endif

void AddCustomScripts()

{

#ifdef SCRIPTS

/* This is where custom scripts should be added. */

AddSC_professionnpc();

#endif

}

[/CODE][/SPOILER]

luego por ultimo voy a la carpeta server/scripts y dejo cmakelist de la siguiente forma:

[CODE]# Copyright (C) 2008-2011 TrinityCore http://www.trinitycore.org/

This file is free software; as a special exception the author gives

unlimited permission to copy and/or distribute it, with or without

modifications, as long as this notice is preserved.

This program is distributed in the hope that it will be useful, but

WITHOUT ANY WARRANTY, to the extent permitted by law; without even the

implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Enable precompiled headers when using the GCC compiler.

if( USE_SCRIPTPCH )

include_directories(

${CMAKE_CURRENT_BINARY_DIR}

)

endif()

if( USE_SCRIPTPCH AND MSVC )

set(scripts_STAT_SRCS

PrecompiledHeaders/ScriptPCH.cpp

PrecompiledHeaders/ScriptPCH.h

)

endif()

message(STATUS “SCRIPT PREPARATIONS”)

include(Spells/CMakeLists.txt)

include(Commands/CMakeLists.txt)

include(Examples/CMakeLists.txt)

set(scripts_STAT_SRCS

${scripts_STAT_SRCS}

…/game/AI/ScriptedAI/ScriptedEscortAI.cpp

…/game/AI/ScriptedAI/ScriptedCreature.cpp

…/game/AI/ScriptedAI/ScriptedFollowerAI.cpp

…/game/AI/ScriptedAI/ScriptedSimpleAI.cpp

Custom/professionnpc.cpp

)

if(SCRIPTS)

include(Custom/CMakeLists.txt)

include(World/CMakeLists.txt)

include(OutdoorPvP/CMakeLists.txt)

include(EasternKingdoms/CMakeLists.txt)

include(Kalimdor/CMakeLists.txt)

include(Outland/CMakeLists.txt)

include(Northrend/CMakeLists.txt)

endif()

message(STATUS “SCRIPT PREPARATION COMPLETE”)

message(“”)

include_directories(

${CMAKE_BINARY_DIR}

${CMAKE_SOURCE_DIR}/dep/SFMT

${CMAKE_SOURCE_DIR}/dep/mersennetwister

${CMAKE_SOURCE_DIR}/dep/zlib

${CMAKE_SOURCE_DIR}/src/server/shared

${CMAKE_SOURCE_DIR}/src/server/shared/Configuration

${CMAKE_SOURCE_DIR}/src/server/shared/Cryptography

${CMAKE_SOURCE_DIR}/src/server/shared/Database

${CMAKE_SOURCE_DIR}/src/server/shared/DataStores

${CMAKE_SOURCE_DIR}/src/server/shared/Debugging

${CMAKE_SOURCE_DIR}/src/server/shared/Dynamic/CountedReference

${CMAKE_SOURCE_DIR}/src/server/shared/Dynamic/LinkedReference

${CMAKE_SOURCE_DIR}/src/server/shared/Dynamic

${CMAKE_SOURCE_DIR}/src/server/shared/Logging

${CMAKE_SOURCE_DIR}/src/server/shared/Packets

${CMAKE_SOURCE_DIR}/src/server/shared/Policies

${CMAKE_SOURCE_DIR}/src/server/shared/Threading

${CMAKE_SOURCE_DIR}/src/server/shared/Utilities

${CMAKE_SOURCE_DIR}/src/server/collision

${CMAKE_SOURCE_DIR}/src/server/collision/Management

${CMAKE_SOURCE_DIR}/src/server/shared

${CMAKE_SOURCE_DIR}/src/server/shared/Database

${CMAKE_SOURCE_DIR}/src/server/game/Accounts

${CMAKE_SOURCE_DIR}/src/server/game/Achievements

${CMAKE_SOURCE_DIR}/src/server/game/Addons

${CMAKE_SOURCE_DIR}/src/server/game/AI

${CMAKE_SOURCE_DIR}/src/server/game/AI/CoreAI

${CMAKE_SOURCE_DIR}/src/server/game/AI/EventAI

${CMAKE_SOURCE_DIR}/src/server/game/AI/ScriptedAI

${CMAKE_SOURCE_DIR}/src/server/game/AI/SmartScripts

${CMAKE_SOURCE_DIR}/src/server/game/AuctionHouse

${CMAKE_SOURCE_DIR}/src/server/game/Battlegrounds

${CMAKE_SOURCE_DIR}/src/server/game/Battlegrounds/Zones

${CMAKE_SOURCE_DIR}/src/server/game/Calendar

${CMAKE_SOURCE_DIR}/src/server/game/Chat

${CMAKE_SOURCE_DIR}/src/server/game/Chat/Channels

${CMAKE_SOURCE_DIR}/src/server/game/Conditions

${CMAKE_SOURCE_DIR}/src/server/shared/Configuration

${CMAKE_SOURCE_DIR}/src/server/game/Combat

${CMAKE_SOURCE_DIR}/src/server/game/DataStores

${CMAKE_SOURCE_DIR}/src/server/game/DungeonFinding

${CMAKE_SOURCE_DIR}/src/server/game/Entities/Corpse

${CMAKE_SOURCE_DIR}/src/server/game/Entities/Creature

${CMAKE_SOURCE_DIR}/src/server/game/Entities/DynamicObject

${CMAKE_SOURCE_DIR}/src/server/game/Entities/Item

${CMAKE_SOURCE_DIR}/src/server/game/Entities/Item/Container

${CMAKE_SOURCE_DIR}/src/server/game/Entities/GameObject

${CMAKE_SOURCE_DIR}/src/server/game/Entities/Object

${CMAKE_SOURCE_DIR}/src/server/game/Entities/Object/Updates

${CMAKE_SOURCE_DIR}/src/server/game/Entities/Pet

${CMAKE_SOURCE_DIR}/src/server/game/Entities/Player

${CMAKE_SOURCE_DIR}/src/server/game/Entities/Transport

${CMAKE_SOURCE_DIR}/src/server/game/Entities/Unit

${CMAKE_SOURCE_DIR}/src/server/game/Entities/Vehicle

${CMAKE_SOURCE_DIR}/src/server/game/Events

${CMAKE_SOURCE_DIR}/src/server/game/Globals

${CMAKE_SOURCE_DIR}/src/server/game/Grids

${CMAKE_SOURCE_DIR}/src/server/game/Grids/Cells

${CMAKE_SOURCE_DIR}/src/server/game/Grids/Notifiers

${CMAKE_SOURCE_DIR}/src/server/game/Groups

${CMAKE_SOURCE_DIR}/src/server/game/Guilds

${CMAKE_SOURCE_DIR}/src/server/game/Instances

${CMAKE_SOURCE_DIR}/src/server/game/LookingForGroup

${CMAKE_SOURCE_DIR}/src/server/game/Loot

${CMAKE_SOURCE_DIR}/src/server/game/Mails

${CMAKE_SOURCE_DIR}/src/server/game/Miscellaneous

${CMAKE_SOURCE_DIR}/src/server/game/Maps

${CMAKE_SOURCE_DIR}/src/server/game/Movement

${CMAKE_SOURCE_DIR}/src/server/game/Movement/MovementGenerators

${CMAKE_SOURCE_DIR}/src/server/game/Movement/Waypoints

${CMAKE_SOURCE_DIR}/src/server/game/Opcodes

${CMAKE_SOURCE_DIR}/src/server/game/OutdoorPvP

${CMAKE_SOURCE_DIR}/src/server/game/Pools

${CMAKE_SOURCE_DIR}/src/server/game/PrecompiledHeaders

${CMAKE_SOURCE_DIR}/src/server/game/Quests

${CMAKE_SOURCE_DIR}/src/server/game/Reputation

${CMAKE_SOURCE_DIR}/src/server/game/Scripting

${CMAKE_SOURCE_DIR}/src/server/game/Server

${CMAKE_SOURCE_DIR}/src/server/game/Server/Protocol

${CMAKE_SOURCE_DIR}/src/server/game/Server/Protocol/Handlers

${CMAKE_SOURCE_DIR}/src/server/game/Skills

${CMAKE_SOURCE_DIR}/src/server/game/Spells

${CMAKE_SOURCE_DIR}/src/server/game/Spells/Auras

${CMAKE_SOURCE_DIR}/src/server/game/Texts

${CMAKE_SOURCE_DIR}/src/server/game/Tickets

${CMAKE_SOURCE_DIR}/src/server/game/Tools

${CMAKE_SOURCE_DIR}/src/server/game/Weather

${CMAKE_SOURCE_DIR}/src/server/game/World

${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders

${ACE_INCLUDE_DIR}

${MYSQL_INCLUDE_DIR}

)

add_library(scripts STATIC ${scripts_STAT_SRCS})

add_dependencies(scripts revision.h)

Generate precompiled header

if( USE_SCRIPTPCH )

if(CMAKE_COMPILER_IS_GNUCXX)

add_precompiled_header(scripts ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders/ScriptPCH.h)

elseif(MSVC)

add_native_precompiled_header(scripts ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders/ScriptPCH)

endif()

endif()

[/CODE]

Al compilar lo pongo en modo release, pero me sigue dando fallos, me estoy volviendo loco /emoticons/default_mellow.png

Gracias de antemano

Buenas .

Podrias especificar cuales son los errores que te da al compilar?

Le indicaste al arachivo CMakeLists.txt que se encuentra dentro de la carpeta Custom?

Verificaste que la sintaxis del script sea la correcta (me refiero a la estructura).

Saludos

puedes dejar los logs de los errores que te muestra ?

el error es fatal error LNK1181: no se puede abrir el archivo de entrada ‘…\scripts\Release\scripts.lib’

si necesitais los registros por favor decid me donde estan

Hola

Si el script no tiene errores lógicos ni de sintaxis, debe modificar el archivo Cmakelist.txt de la carpeta Custom


.../trinitycore/src/server/scripts/Custom


# Copyright (C) 2008-2011 TrinityCore <http://www.trinitycore.org/>

#

# This file is free software; as a special exception the author gives

# unlimited permission to copy and/or distribute it, with or without

# modifications, as long as this notice is preserved.

#

# This program is distributed in the hope that it will be useful, but

# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the

# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


set(scripts_STAT_SRCS

  ${scripts_STAT_SRCS}

  >>>> Agregar acá el script <<<<

)


message("  -> Prepared: Custom")

Saludos

El error esta en el script a simple vista se ve !